本文整理汇总了PHP中Paginator::urlNextPage方法的典型用法代码示例。如果您正苦于以下问题:PHP Paginator::urlNextPage方法的具体用法?PHP Paginator::urlNextPage怎么用?PHP Paginator::urlNextPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Paginator
的用法示例。
在下文中一共展示了Paginator::urlNextPage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$tags = $Post->tags(true);
foreach ($tags as $tagKey => $tagName) {
echo '<li><a href="' . HTML_PATH_ROOT . $Url->filters('tag') . '/' . $tagKey . '">' . $tagName . '</a></li>';
}
?>
</ul>
</footer>
<!-- Plugins Post End -->
<?php
Theme::plugins('postEnd');
?>
</article>
<?php
}
?>
<!-- Pagination -->
<ul class="actions pagination">
<?php
if (Paginator::get('showNewer')) {
echo '<li><a href="' . Paginator::urlPrevPage() . '" class="button previous">Previous Page</a></li>';
}
if (Paginator::get('showOlder')) {
echo '<li><a href="' . Paginator::urlNextPage() . '" class="button next">Next Page</a></li>';
}
?>
</ul>
示例2: foreach
<?php
$tags = $Post->tags(true);
foreach ($tags as $tagKey => $tagName) {
echo '<li><a href="' . HTML_PATH_ROOT . $Url->filters('tag') . '/' . $tagKey . '">' . $tagName . '</a></li>';
}
?>
</ul>
</footer>
<!-- Plugins Post End -->
<?php
Theme::plugins('postEnd');
?>
</article>
<?php
}
?>
<!-- Pagination -->
<ul class="actions pagination">
<?php
if (Paginator::get('showNewer')) {
echo '<li><a href="' . Paginator::urlPrevPage() . '" class="button big previous">' . $Language->get('Prev page') . '</a></li>';
}
if (Paginator::get('showOlder')) {
echo '<li><a href="' . Paginator::urlNextPage() . '" class="button big next">' . $Language->get('Next page') . '</a></li>';
}
?>
</ul>