Exemplo n.º 1
0
function printPageListWithNavAlt($prevtext, $nexttext, $nextprev = true, $class = NULL, $id = "pagelist")
{
    echo "<div" . ($id ? " id=\"{$id}\"" : "") . " class=\"{$class}\">";
    $total = getTotalPages();
    $current = getCurrentPage();
    echo "\n<ul class=\"{$class}\"><li>[</li>";
    for ($i = 1; $i <= $total; $i++) {
        echo "\n  <li" . ($i == $current ? " class=\"current\"" : "") . ">";
        printLinkHTML(getPageURL($i), $i, "Page {$i}" . ($i == $current ? " (Current Page)" : ""));
        echo "</li>";
    }
    echo "\n<li>]</li>";
    if ($nextprev) {
        echo "\n  <li class=\"prev\">";
        printPrevPageURL($prevtext, "Previous Page");
        echo "</li>";
    }
    echo "\n<li></li>";
    if ($nextprev) {
        echo "\n  <li class=\"next\">";
        printNextPageURL($nexttext, "Next Page");
        echo "</li>";
    }
    echo "\n</ul>";
    echo "\n</div>\n";
}
Exemplo n.º 2
0
/**
 * Prints a page navigation including previous and next page links
 *
 * @param string $prevtext Insert here the linktext like 'previous page'
 * @param string $separator Insert here what you like to be shown between the prev and next links
 * @param string $nexttext Insert here the linktext like "next page"
 * @param string $class Insert here the CSS-class name you want to style the link with (default is "pagelist")
 * @param string $id Insert here the CSS-ID name if you want to style the link with this
 */
function printPageNav($prevtext, $separator, $nexttext, $class = 'pagenav', $id = NULL)
{
    echo "<div" . ($id ? " id=\"{$id}\"" : "") . " class=\"{$class}\">";
    printPrevPageURL($prevtext, gettext("Previous Page"));
    echo " {$separator} ";
    printNextPageURL($nexttext, gettext("Next Page"));
    echo "</div>\n";
}
Exemplo n.º 3
0
        }
        ?>
						</div>
					</div>
					<?php 
    }
    ?>
				</div>
				
				<?php 
    if (hasNextPage()) {
        ?>
	
				<div id="page-nav-mas">
					<?php 
        printNextPageURL(gettext('Load More...'));
        ?>
				</div>
				<?php 
    }
    ?>
				<div id="page-nav" class="clearfix">
					<div class="jump"><?php 
    printBaseAlbumMenuJump('count', gettext('Gallery Index'));
    ?>
</div>
				</div>
				
				<?php 
    printCodeblock();
    ?>
Exemplo n.º 4
0
/**
 * @deprecated
 * @since 1.4.6
 *
 */
function printNextPageLink($text, $title = NULL, $class = NULL, $id = NULL)
{
    deprecated_functions::notify(gettext('use printNextPageURL()'));
    printNextPageURL($text, $title, $class, $id);
}