本文整理汇总了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
示例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();
示例3: while
?>
<?php
while (next_news()) {
?>
<div class="news-truncate">
<h2><?php
printNewsURL();
?>
</h2>
<div class="newsarticlecredit">
<span><?php
printNewsDate();
?>
⋅ <?php
printNewsCategories(", ", gettext("Categories: "), "taglist");
if (function_exists('printCommentForm')) {
?>
⋅ <?php
echo gettext("Comments:");
?>
<?php
echo getCommentCount();
?>
<?php
}
?>
</span>
</div>
<?php
printNewsContent();
示例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);
}
}
示例5: printNewsURL
echo $zpbase_newsstyle;
?>
-padding">
<h3><?php
printNewsURL();
?>
</h3>
<div class="news-meta">
<span>
<?php
if (getOption('zpbase_date_news')) {
echo getNewsDate() . ' | ';
}
?>
<?php
printNewsCategories(', ', gettext('Categories: '), 'taglist');
?>
</span>
</div>
<?php
printNewsContent();
?>
</div>
</div>
<?php
}
?>
</div>
<?php
if ($zpbase_newsstyle == 'masonry-style') {
示例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();
}
示例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 »'), gettext('« prev'), true, 'pagelist', true);
}
}
示例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>
示例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
}
}
示例10: gettext
?>
<?php
if (function_exists('getCommentCount')) {
?>
<span><i class="fa fa-comments-o"></i> <?php
echo gettext('Comments:') . ' ' . getCommentCount();
?>
</span>
<?php
}
?>
<?php
if (getNewsCategories()) {
?>
<span><i class="fa fa-folder-o"></i> <?php
printNewsCategories(', ', '', 'taglist');
?>
</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
示例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>
示例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);
}