• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP next_news函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中next_news函数的典型用法代码示例。如果您正苦于以下问题:PHP next_news函数的具体用法?PHP next_news怎么用?PHP next_news使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了next_news函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: prepare

 function prepare()
 {
     global $_zp_current_zenpage_news;
     if (!isset($_zp_current_zenpage_news)) {
         next_news();
     }
     $links = "<table id='news-link' cellspacing='10'><tr>";
     $links .= $this->getNewsBlock($this->getNextPrevNews('prev'));
     $links .= $this->getNewsBlock($_zp_current_zenpage_news, TRUE);
     $links .= $this->getNewsBlock($this->getNextPrevNews('next'));
     $links .= "</tr></table>";
     return $links;
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:13,代码来源:NewsController.php


示例2: printf

							<?php 
    }
    if ($numnews > 0 && ZP_NEWS_ENABLED) {
        $number_to_show = 5;
        $c = 0;
        ?>
							<h3><?php 
        printf(gettext('Articles (%s)'), $numnews);
        ?>
 <small><?php 
        printZDSearchShowMoreLink("news", $number_to_show);
        ?>
</small></h3>
							<ul class="searchresults">
								<?php 
        while (next_news()) {
            $c++;
            ?>
									<li<?php 
            printZDToggleClass('news', $c, $number_to_show);
            ?>
>
										<h4><?php 
            printNewsURL();
            ?>
</h4>
										<p class="zenpageexcerpt"><?php 
            echo shortenContent(getBare(getNewsContent()), 80, getOption("zenpage_textshorten_indicator"));
            ?>
</p>
									</li>
开发者ID:jmruas,项目名称:zenphoto,代码行数:31,代码来源:search.php


示例3: 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);
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:56,代码来源:functions.php


示例4: 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 &raquo;'), gettext('&laquo; prev'), true, 'pagelist', true);
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:62,代码来源:functions.php


示例5: printPageTitlelink

					<div class="news-truncate">
						<h2><?php 
            printPageTitlelink();
            ?>
</h2>
						<p><?php 
            echo html_encodeTagged(shortenContent(strip_tags(getPageContent()), 200, getOption("zenpage_textshorten_indicator")));
            ?>
</p>
					</div>
					<?php 
        }
    }
    if ($numnews > 0) {
        $zpc = 0;
        while ($zpc < $zpmin_zpsearchcount && next_news()) {
            $zpc++;
            $c++;
            ?>
					<div class="news-truncate">
						<h2><?php 
            printNewsURL();
            ?>
</h2>
						<div class="newsarticlecredit">
							<span><?php 
            printNewsDate();
            ?>
 &sdot; <?php 
            printNewsCategories(", ", gettext("Categories: "), "taglist");
            if (function_exists('printCommentForm')) {
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:search.php


示例6: next_news

<?php

global $_zp_current_zenpage_news;
if (!isset($_zp_current_zenpage_news)) {
    next_news();
}
if (!isset($_zp_current_zenpage_news)) {
    return;
}
?>

<div id="news-comments-entries">
	
	<?php 
$first = false;
while (next_comment()) {
    ?>
		<div class="news-comment <?php 
    echo !$first ? 'first' : '';
    $first = true;
    ?>
">
			<div class='news-comment-info'>
				<div class="left opa40">
					<img src='<?php 
    echo $_zp_themeroot;
    ?>
/resources/images/avatar.png' style="vertical-align: bottom;"/> 
					<span class="news-comment-author">
						<?php 
    echo gettext("posted by");
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:fetch-comments.php


示例7: newsListDisplay

/**
 * Displays a list of all news in zenphoto
 *
 */
function newsListDisplay()
{
    while (next_news()) {
        ?>
		<div class="newslist_article">
			<div class="newslist_title">
				<span class="italic date_news"><?php 
        printNewsDate();
        ?>
</span>
				<h4><?php 
        printNewsURL();
        ?>
</h4>
				<div class="newslist_detail">
					<div class="italic newslist_type">
						<?php 
        $cat = getNewsCategories();
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newslist_categories");
        }
        ?>
					</div>
				</div>
			</div>
			<div class="newslist_content">
				<?php 
        printCodeblock(1);
        ?>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock(2);
        ?>
				<?php 
        if (getNewsReadMore()) {
            ?>
					<p class="italic newslist_readmore">
						<?php 
            $readmore = getNewsReadMore($readmore);
            if (!empty($readmore)) {
                $newsurl = getNewsURL();
                echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>";
            }
            ?>
					</p>
				<?php 
        }
        ?>
			</div>
		</div>
		<?php 
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:59,代码来源:functions.php



注:本文中的next_news函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP next_page函数代码示例发布时间:2022-05-15
下一篇:
PHP next_image_link函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap