當前位置: 首頁>>代碼示例>>PHP>>正文


PHP zerif_categorized_blog函數代碼示例

本文整理匯總了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');
    }
開發者ID:arakoswara,項目名稱:wp_arakoswara,代碼行數:31,代碼來源:content-single.php

示例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 
    }
    ?>

開發者ID:spartanEnglish,項目名稱:zerif-lite,代碼行數:29,代碼來源:content-large.php


注:本文中的zerif_categorized_blog函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。