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

PHP printNewsCategories函数代码示例

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

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



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

示例1: while

        ?>
		</div>

		<div id="news" class="clearfix">
			<?php 
        while (next_news()) {
            ?>
			<div class="news-truncate clearfix">
				<h3><?php 
            printNewsURL();
            ?>
</h3>
				<div class="newsarticlecredit">
					<?php 
            printNewsDate();
            printNewsCategories(', ', ' | ', 'hor-list');
            ?>
				</div>

				<?php 
            printNewsContent();
            ?>

			</div>
			<?php 
        }
        ?>
		</div>

		<div class="pagination-news clearfix">
			<?php 
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:news.php


示例2: getNewsCategories

									<?php 
        $count = @call_user_func('getCommentCount');
        $cat = getNewsCategories();
        printNewsDate();
        if ($count > 0) {
            echo ' | ';
            printf(gettext("Comments: %d"), $count);
        }
        if (!empty($cat)) {
            echo ' | ';
        }
        ?>
								</span>
								<?php 
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newscategories");
        }
        ?>
								<?php 
        printCodeblock(1);
        ?>
								<?php 
        printNewsContent();
        ?>
								<?php 
        printCodeblock(2);
        ?>
							</div>
							<?php 
        @call_user_func('printRating');
        commonComment();
开发者ID:jurgenoosting,项目名称:zenphoto,代码行数:31,代码来源:news.php


示例3: while

    ?>
						<?php 
    while (next_news()) {
        ?>
 
						<div class="news-truncate"> 
							<h2><?php 
        printNewsURL();
        ?>
</h2>	
							<div class="newsarticlecredit">
								<span><?php 
        printNewsDate();
        ?>
 &sdot; <?php 
        printNewsCategories(", ", gettext("Categories: "), "taglist");
        if (function_exists('printCommentForm')) {
            ?>
 &sdot; <?php 
            echo gettext("Comments:");
            ?>
 <?php 
            echo getCommentCount();
            ?>
 <?php 
        }
        ?>
</span>
							</div>	
							<?php 
        printNewsContent();
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:news.php


示例4: 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


示例5: printNewsURL

    echo $zpbase_newsstyle;
    ?>
-padding">
							<h3><?php 
    printNewsURL();
    ?>
</h3>
							<div class="news-meta">
								<span>
								<?php 
    if (getOption('zpbase_date_news')) {
        echo getNewsDate() . '&nbsp;|&nbsp;';
    }
    ?>
								<?php 
    printNewsCategories(', ', gettext('Categories: '), 'taglist');
    ?>
								</span>
							</div>	
							<?php 
    printNewsContent();
    ?>
						</div>
					</div>
					<?php 
}
?>
				</div>
				
				<?php 
if ($zpbase_newsstyle == 'masonry-style') {
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:31,代码来源:index-news.php


示例6: gettext

        case 9:
            $sticky = ' <small><strong>[' . gettext('sticky') . ']</strong></small>';
            break;
        default:
            $sticky = '';
            break;
    }
    echo '<a href="admin-edit.php' . getNewsAdminOptionPath(array_merge(array('newsarticle' => NULL, 'titlelink' => urlencode($article->getTitlelink())), getNewsAdminOption(NULL))) . '">';
    checkForEmptyTitle($article->getTitle(), "news");
    echo '</a>' . checkHitcounterDisplay($article->getHitcounter()) . $sticky;
    ?>

									</td>
									<td>
										<?php 
    printNewsCategories($article);
    ?>
<br />
									</td>
									<td>
										<?php 
    echo html_encode($article->getAuthor());
    ?>
									</td>
									<td>
										<?php 
    if ($sortorder == 'date') {
        echo $article->getDateTime();
    } else {
        echo $article->getLastchange();
    }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:admin-news.php


示例7: 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


示例8: strftime

							<div class="post-date">
								<span class="month"><?php 
echo strftime('%b', strtotime($_zp_current_article->getDateTime()));
?>
</span>
								<span class="day"><?php 
echo strftime('%d', strtotime($_zp_current_article->getDateTime()));
?>
</span>
								<span class="year"><?php 
echo strftime('%Y', strtotime($_zp_current_article->getDateTime()));
?>
</span>
							</div>
							<h3 class="post-title"><?php 
printNewsURL();
?>
</h3>
							<div class="post-meta"><?php 
printNewsCategories('', '', 'nav nav-label');
?>
</div>
							<div class="post-content clearfix">
								<?php 
printNewsContent();
if (is_NewsArticle()) {
    printCodeblock(1);
}
?>
							</div>
						</div>
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc_print_news.php


示例9: 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


示例10: gettext

            ?>
							<?php 
            if (function_exists('getCommentCount')) {
                ?>
							<span><i class="fa fa-comments-o"></i>&nbsp;<?php 
                echo gettext('Comments:') . ' ' . getCommentCount();
                ?>
&nbsp;&nbsp;&nbsp;&nbsp;</span>
							<?php 
            }
            ?>
							<?php 
            if (getNewsCategories()) {
                ?>
<span><i class="fa fa-folder-o"></i>&nbsp;<?php 
                printNewsCategories(', ', '', 'taglist');
                ?>
&nbsp;&nbsp;&nbsp;&nbsp;</span><?php 
            }
            ?>
						</div>
						<div class="news-content">
							<?php 
            $hasFeaturedImage = false;
            if (function_exists('printSizedFeaturedImage')) {
                $hasFeaturedImage = getFeaturedImage();
            }
            if ($hasFeaturedImage) {
                ?>
							<div class="featured-image news-reel">
								<?php 
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:news.php


示例11: zpFormattedDate

			<span class="month"><?php 
echo zpFormattedDate('%b', $dt);
?>
</span>
			<span class="day"><?php 
echo date('jS', $dt);
?>
</span>
		</div>
		<div class="news-info">
			<div class="news-title"><?php 
echo getNewsTitle();
?>
</div>
			<div class="news-categories">In: <?php 
printNewsCategories(',', false, false);
?>
</div>
		</div>
	</div>
	<div class="news-content">
		<?php 
$c = getNewsContent();
if (defined('CROP_NEWS')) {
    $c = Utils::crop($c, 200, '<p><a>', '<a href="' . getNewsURL(getNewsTitleLink()) . '">(...)</a>');
}
echo $c;
?>
	</div>
</div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:template.php


示例12: printNewsDate

										<?php 
            printNewsDate();
            if (function_exists('getCommentCount')) {
                ?>
											|
											<?php 
                echo gettext("Comments:");
                ?>
											<?php 
                echo getCommentCount();
            }
            ?>
									</span>
									<?php 
            echo ' | ';
            printNewsCategories(", ", gettext("Categories: "), "list-inline");
            ?>
								</div>
								<?php 
            printNewsContent();
            printCodeblock(1);
            if (getTags()) {
                echo gettext('<strong>Tags:</strong>');
            }
            printTags('links', '', 'taglist', ', ');
            ?>
							</div>
							<?php 
        }
        printNewsPageListWithNav(gettext('next »'), gettext('« prev'), true, 'pagelist', true);
    }
开发者ID:bgenere,项目名称:negpos,代码行数:31,代码来源:news.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP printNewsContent函数代码示例发布时间:2022-05-15
下一篇:
PHP printMessage函数代码示例发布时间: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