本文整理汇总了PHP中printNewsPageListWithNav函数的典型用法代码示例。如果您正苦于以下问题:PHP printNewsPageListWithNav函数的具体用法?PHP printNewsPageListWithNav怎么用?PHP printNewsPageListWithNav使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了printNewsPageListWithNav函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printNewsPageList
/**
* Prints the page number list for news page navigation
*
* @param string $class The CSS class for the disabled link
*
* @return string
*/
function printNewsPageList($class = 'pagelist')
{
printNewsPageListWithNav("", "", false, $class, true);
}
示例2: printNewsDate
<?php
printNewsDate();
printNewsCategories(', ', ' | ', 'hor-list');
?>
</div>
<?php
printNewsContent();
?>
</div>
<?php
}
?>
</div>
<div class="pagination-news clearfix">
<?php
printNewsPageListWithNav(' » ', ' « ', true, 'clearfix');
?>
</div>
<?php
}
?>
<?php
include 'inc_footer.php';
} else {
include SERVERPATH . '/' . ZENFOLDER . '/404.php';
}
示例3: printBaseAlbumMenuJump
<div id="page-nav" class="clearfix">
<div class="jump"><?php
printBaseAlbumMenuJump('count', gettext('Gallery Index'));
?>
</div>
</div>
<?php
} else {
?>
<div class="page-nav">
<div class="jump"><?php
printBaseAlbumMenuJump('count', gettext('Gallery Index'));
?>
</div>
<?php
printNewsPageListWithNav(gettext('Next »'), gettext('« Prev'), true, 'pagination', true);
?>
</div>
<?php
}
?>
</div>
<?php
if ($zpbase_newsstyle == 'blog-style') {
?>
<div id="sidebar">
<div class="block">
<h3><?php
echo gettext('Categories');
示例4: printNewsContent
<?php
printNewsContent();
printCodeblock(1);
?>
</div>
<?php
}
?>
</div>
<?php
if (getNextNewsPageURL() || getPrevNewsPageURL()) {
?>
<div id="pagination">
<?php
printNewsPageListWithNav(gettext('Next →'), gettext('← Prev'), true, '');
?>
</div>
<?php
}
?>
<?php
}
?>
</div>
<div id="sidebar"<?php
if ($zpmin_switch) {
echo ' class="switch"';
}
?>
示例5: commonNewsLoop
function commonNewsLoop($paged)
{
$newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
while (next_news()) {
$newstypedisplay = gettext('news');
if (stickyNews()) {
$newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
}
?>
<div class="newsarticle<?php
if (stickyNews()) {
echo ' sticky';
}
?>
">
<h3><?php
printNewsURL();
echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
?>
</h3>
<div class="newsarticlecredit">
<span class="newsarticlecredit-left">
<?php
$count = @call_user_func('getCommentCount');
$cat = getNewsCategories();
printNewsDate();
if ($count > 0) {
echo ' | ';
printf(gettext("Comments: %d"), $count);
}
?>
</span>
<?php
if (!empty($cat)) {
echo ' | ';
printNewsCategories(", ", gettext("Categories: "), "newscategories");
}
?>
</div> <!-- newsarticlecredit -->
<?php
printCodeblock(1);
?>
<?php
printNewsContent();
?>
<?php
printCodeblock(2);
?>
<br class="clearall" />
</div>
<?php
}
if ($paged) {
printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
}
}
示例6: printNewsContent
<?php
printNewsContent();
?>
<?php
printCodeblock(1);
?>
<?php
printTags('links', gettext('<strong>Tags:</strong>') . ' ', 'taglist', ', ');
?>
<br style="clear:both;" /><br />
</div>
<?php
}
echo "</div><br/><hr/>";
printNewsPageListWithNav(gettext('next »'), gettext('« prev'));
}
?>
</div><!-- content left-->
<div id="sidebar">
<?php
include "sidebar.php";
?>
</div><!-- sidebar -->
<div id="footer">
示例7: printNewsContent
printNewsContent();
?>
<?php
printCodeblock(1);
?>
<?php
if (getTags()) {
echo gettext('<strong>Tags:</strong>');
}
printTags('links', '', 'taglist', ', ');
?>
<br style="clear:both;" /><br />
</div>
<?php
}
printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
}
?>
</div><!-- content left-->
<div id="sidebar">
<?php
include "sidebar.php";
?>
</div><!-- sidebar -->
<div id="footer">
示例8: printNewsDate
<small>(<?php
printNewsDate();
?>
)</small>
<div class="albumdesc"><?php
echo shortenContent(getBare(getNewsContent()), 57, '(...)', false);
?>
</div>
</a>
</li>
<?php
}
?>
</ul>
<?php
printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true, 7);
}
?>
</div>
<div class="content-secondary">
<?php
jqm_printMenusLinks();
?>
</div>
</div><!-- /content -->
<?php
jqm_printBacktoTopLink();
?>
<?php
jqm_printFooterNav();
示例9: printNewsContent
?>
<?php
printNewsContent();
?>
<?php
printCodeblock(2);
?>
<p><?php
printNewsReadMoreLink();
?>
</p>
</div>
<?php
}
printNewsPageListWithNav(gettext('next »'), gettext('« prev'));
}
}
?>
</div><!-- content left-->
<div id="sidebar">
<?php
include "sidebar.php";
?>
</div><!-- sidebar -->
<br style="clear:both" />
</div> <!-- main2 -->
</div> <!-- content -->
示例10: commonNewsLoop
function commonNewsLoop($paged)
{
$newstypes = array('album' => gettext('album'), 'image' => gettext('image'), 'video' => gettext('video'), 'news' => gettext('news'));
while (next_news()) {
$newstype = getNewsType();
$newstypedisplay = $newstypes[$newstype];
if (stickyNews()) {
$newstypedisplay .= ' <small><em>' . gettext('sticky') . '</em></small>';
}
?>
<div class="newsarticle<?php
if (stickyNews()) {
echo ' sticky';
}
?>
">
<h3><?php
printNewsTitleLink();
echo " <span class='newstype'>[" . $newstypedisplay . "]</span>";
?>
</h3>
<div class="newsarticlecredit">
<span class="newsarticlecredit-left">
<?php
$count = getCommentCount();
$cat = getNewsCategories();
printNewsDate();
if ($count > 0) {
echo ' | ';
printf(gettext("Comments: %d"), $count);
}
?>
</span>
<?php
if (is_GalleryNewsType()) {
echo ' | ' . gettext("Album:") . " <a href='" . getNewsAlbumURL() . "' title='" . getBareNewsAlbumTitle() . "'>" . getNewsAlbumTitle() . "</a>";
} else {
if (!empty($cat) && !in_context(ZP_ZENPAGE_NEWS_CATEGORY)) {
echo ' | ';
printNewsCategories(", ", gettext("Categories: "), "newscategories");
}
}
?>
</div> <!-- newsarticlecredit -->
<br clear="all" />
<?php
printCodeblock(1);
?>
<?php
printNewsContent();
?>
<?php
printCodeblock(2);
?>
<br clear="all" />
</div>
<?php
}
if ($paged) {
printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
}
}
示例11: printNewsContent
?>
</div>
<?php
}
?>
<?php
printNewsContent();
?>
</div>
</div>
<?php
}
?>
<?php
if (getNextNewsPageURL() || getPrevNewsPageURL()) {
printNewsPageListWithNav(gettext('next') . ' »', '« ' . gettext('prev'), true, 'pagination', true);
}
?>
<?php
}
?>
</div>
<div class="page-sidebar pad">
<?php
if (is_NewsArticle()) {
?>
<div class="single-nav">
<?php
if ($prev = getNextPrevNews('prev')) {
示例12: printNewsURL
</div>
<h3><?php
printNewsURL();
?>
</h3>
<?php
printNewsContent();
?>
<?php
printCodeblock();
?>
</div>
<?php
}
?>
<div class="page-nav">
<?php
printNewsPageListWithNav('»', '«', 'true', 'page-nav');
?>
</div>
<?php
}
?>
</div>
<?php
include "inc-footer.php";
?>
示例13: printAllNewsCategories
<?php
include 'inc_print_news.php';
?>
<?php
}
?>
</div>
</div>
<div class="span3">
<?php
printAllNewsCategories(gettext('All news'), false, 'news-cat-list', 'active');
?>
</div>
</div>
<div class="row">
<div class="span12">
<div class="pagination">
<?php
printNewsPageListWithNav('»', '«', true, 'pagination top-margin-reset', true, 7);
?>
</div>
</div>
</div>
<?php
}
?>
<?php
include 'inc_footer.php';