本文整理匯總了PHP中WoW::GetPrevPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP WoW::GetPrevPage方法的具體用法?PHP WoW::GetPrevPage怎麽用?PHP WoW::GetPrevPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類WoW
的用法示例。
在下文中一共展示了WoW::GetPrevPage方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: url
<a href="%s/wow/search?f=article&a=%s">%s</a>
<span class="spacer">//</span> %s
<a href="%s/wow/blog/%d#comments" class="comments-link">%d</a>
</div>
<div class="article-left" style="background-image: url(\'%s/cms/blog_thumbnail/%s\');">
<a href="%s/wow/blog/%d"><img src="%s/wow/static/images/homepage/thumb-frame.gif" alt="" /></a>
</div>
<div class="article-right">
<div class="article-summary">
%s
<a href="%s/wow/blog/%d#blog" class="more">%s</a>
</div>
</div>
<span class="clear"><!-- --></span>
</div>', WoW::GetWoWPath(), $wow_news[$i]['id'], $wow_news[$i]['title'], WoW::GetWoWPath(), urlencode($wow_news[$i]['author']), $wow_news[$i]['author'], date('d M Y H:i', $wow_news[$i]['postdate']), WoW::GetWoWPath(), $wow_news[$i]['id'], $wow_news[$i]['comments_count'], WoW::GetWoWPath(), $wow_news[$i]['image'], WoW::GetWoWPath(), $wow_news[$i]['id'], WoW::GetWoWPath(), $wow_news[$i]['desc'], WoW::GetWoWPath(), $wow_news[$i]['id'], WoW_Locale::GetString('template_articles_full_caption'));
}
?>
<?php
// paging
if (WoW::GetPrevPage() >= 0 || WoW::GetNextPage() >= 0) {
echo '<div class="blog-paging">';
if (WoW::GetNextPage() >= 0) {
echo '<a class="ui-button button1 button1-next float-right " href="?page=' . (WoW::GetNextPage() + 1) . '"><span><span>Next</span></span></a>';
}
if (WoW::GetPrevPage() >= 0) {
echo '<a class="ui-button button1 button1-previous " href="?page=' . (WoW::GetPrevPage() + 1) . '"><span><span>Prev</span></span></a>';
}
echo '<span class="clear"></span></div>';
}
?>
</div>