本文整理匯總了PHP中Paginator::urlPrevPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP Paginator::urlPrevPage方法的具體用法?PHP Paginator::urlPrevPage怎麽用?PHP Paginator::urlPrevPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Paginator
的用法示例。
在下文中一共展示了Paginator::urlPrevPage方法的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>