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


PHP toolbox_content_nav函數代碼示例

本文整理匯總了PHP中toolbox_content_nav函數的典型用法代碼示例。如果您正苦於以下問題:PHP toolbox_content_nav函數的具體用法?PHP toolbox_content_nav怎麽用?PHP toolbox_content_nav使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了toolbox_content_nav函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: toolbox_post_list

function toolbox_post_list()
{
    rewind_posts();
    ?>
			<?php 
    if (have_posts()) {
        ?>

				<?php 
        /* Start the Loop */
        ?>
				<?php 
        while (have_posts()) {
            the_post();
            ?>

					<?php 
            /* Include the Post-Format-specific template for the content.
             * If you want to overload this in a child theme then include a file
             * called content-___.php (where ___ is the Post Format name) and that will be used instead.
             */
            get_template_part('content', get_post_format());
            ?>

				<?php 
        }
        ?>

				<?php 
        toolbox_content_nav('nav-below');
        ?>

			<?php 
    } else {
        ?>

				<article id="post-0" class="post no-results not-found">
					<header class="entry-header">
						<h1 class="entry-title"><?php 
        _e('Nothing Found', 'jan1');
        ?>
</h1>
					</header><!-- .entry-header -->

					<div class="entry-content">
						<p><?php 
        _e('It seems we can\'t find what you\'re looking for. Perhaps searching can help.', 'jan1');
        ?>
</p>
						<?php 
        get_search_form();
        ?>
					</div><!-- .entry-content -->
				</article><!-- #post-0 -->

			<?php 
    }
}
開發者ID:neapel,項目名稱:wp-theme-green,代碼行數:58,代碼來源:functions.php

示例2: get_template_part

        ?>

					<?php 
        /* Include the Post-Format-specific template for the content.
         * If you want to overload this in a child theme then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('content', get_post_format());
        ?>

				<?php 
    }
    ?>

				<?php 
    toolbox_content_nav('nav-below');
    ?>

			<?php 
} else {
    ?>

				<article id="post-0" class="post no-results not-found">
					<header class="entry-header">
						<h1 class="entry-title"><?php 
    _e('Nothing Found', 'toolbox');
    ?>
</h1>
					</header><!-- .entry-header -->

					<div class="entry-content">
開發者ID:danaiser,項目名稱:hollandLawns,代碼行數:31,代碼來源:archive.php

示例3: bloginfo

bloginfo('template_directory');
?>
/images/BG_LOGO.png" alt="Blank Wall" id="Background" width="60%" />
			
		<div id="primary">
			<div id="content" role="main">
				
				
				
				
			<?php 
if (have_posts()) {
    ?>

				<?php 
    toolbox_content_nav('nav-above');
    ?>

				

								</div><!-- .entry-content -->
							</article><!-- #post-0 -->

						<?php 
}
?>
			
					
			</div><!-- #content -->

		</div><!-- #primary -->
開發者ID:rep1946,項目名稱:TBW_toolbox,代碼行數:31,代碼來源:index.php


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