Bludit v4 - Alpha version

User avatar
CCDzine
Ssr. Bludit
Posts: 13
Joined: Thu Sep 07, 2023 11:49 pm
Location: Sierra Nevada Mountains, Califonia
Has thanked: 4 times
Been thanked: 6 times
Contact:

Misteric wrote: Mon Jul 10, 2023 7:49 am

Code: Select all

<?php 
	if(!isset($_GET['page'])){
		$getPage = 1;
	} else {
		$getPage = $_GET['page'];
	} 
	?>
	<ul class="list-group flex-md-row">
		<?php if($getPage != 1) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl(); ?>?page=1">First</a>
		</li>
		<?php } ?>
		<?php if ($getPage >= 3) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl(); ?>?page=<?php echo $getPage - 2; ?>"><?php echo $getPage - 2; ?></a>
		</li>
		<?php } ?>
		<?php if ($getPage >= 2) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl(); ?>?page=<?php echo $getPage - 1; ?>"><?php echo $getPage - 1; ?></a>
		</li>
		<?php } ?>
		<?php if ($getPage) { ?>
		<li class="list-group-item">
			<a class="btn btn-warning" href="<?php echo Theme::siteUrl().'?page='.$getPage; ?>"><?php echo $getPage; ?></a>
		</li>
		<?php } ?>
		<?php if (Paginator::numberOfPages()-1 >= $getPage) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl().'?page='.$getPage + 1; ?>"><?php echo $getPage + 1; ?></a>
		</li>
		<?php } ?>
		<?php if (Paginator::numberOfPages()-2 >= $getPage) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl().'?page='.$getPage + 2; ?>"><?php echo $getPage + 2; ?></a>
		</li>
		<?php } ?>
		<?php if(Paginator::numberOfPages() != $getPage) { ?>
		<li class="list-group-item">
			<a class="btn btn-dark" href="<?php echo Theme::siteUrl().'?page='.Paginator::numberOfPages(); ?>">Last</a>
		</li>;
		<?php } ?>
		
	</ul>
Thank you for this. I added prev/next links and SVG icons. This was a great help for we new to Bludit.
Greg Sweet
randomuser
Jr. Bludit
Posts: 2
Joined: Sun Oct 29, 2023 2:21 pm

Hello,

Is there any news about the v4 ?

Can't find anything on https://blog.bludit.com/bludit-4-road-map, neither on Github (no branch), etc

Thanks a lot ;)
Surreal9951
Jr. Bludit
Posts: 1
Joined: Tue Mar 05, 2024 12:21 pm

randomuser wrote: Fri Feb 02, 2024 11:55 am Hello,

Is there any news about the v4 ?

Can't find anything on https://blog.bludit.com/bludit-4-road-map, neither on Github (no branch), etc

Thanks a lot ;)
I also join the question. How does it look like with the further development? ;)
Post Reply