本文整理匯總了PHP中zerif_categorized_blog函數的典型用法代碼示例。如果您正苦於以下問題:PHP zerif_categorized_blog函數的具體用法?PHP zerif_categorized_blog怎麽用?PHP zerif_categorized_blog使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了zerif_categorized_blog函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: the_title
>
<header class="entry-header">
<h1 class="entry-title"><?php
the_title();
?>
</h1>
<div class="entry-meta">
<?php
zerif_posted_on();
?>
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php
the_content();
wp_link_pages(array('before' => '<div class="page-links">' . __('Pages:', 'zerif-lite'), 'after' => '</div>'));
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php
/* translators: used between list items, there is a space after the comma */
$category_list = get_the_category_list(__(', ', 'zerif-lite'));
/* translators: used between list items, there is a space after the comma */
$tag_list = get_the_tag_list('', __(', ', 'zerif-lite'));
if (!zerif_categorized_blog()) {
// This blog only has 1 category so we just need to worry about tags in the meta text
if ('' != $tag_list) {
$meta_text = __('This entry was tagged %2$s. Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'zerif-lite');
} else {
$meta_text = __('Bookmark the <a href="%3$s" rel="bookmark">permalink</a>.', 'zerif-lite');
}
示例2: get_the_category_list
}
?>
</div><!-- .list-post-top -->
<footer class="entry-footer-large">
<?php
if ('post' == get_post_type()) {
/* Hide category and tag text for pages on Search */
?>
<?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list(__(', ', 'zerif'));
if ($categories_list && zerif_categorized_blog()) {
?>
<span class="cat-links">
<?php
printf(__('Posted in %1$s', 'zerif'), $categories_list);
?>
</span>
<?php
}
?>