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


PHP thematic_abovepost函數代碼示例

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


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

示例1: thematic_tag_loop

    /**
     * The Tag loop
     * 
     * Located in tag.php
     * 
     * Override: childtheme_override_tag_loop
     */
    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            // action hook for insterting content above #post
            thematic_abovepost();
            ?>

				<div id="post-<?php 
            the_ID();
            ?>
" <?php 
            post_class();
            ?>
 > 

				<?php 
            // creating the post header
            thematic_postheader();
            ?>
     				
					<div class="entry-content">
					
						<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					
					<?php 
            thematic_postfooter();
            ?>
					
				</div><!-- #post -->

			<?php 
            // action hook for insterting content below #post
            thematic_belowpost();
        }
    }
開發者ID:rowatt,項目名稱:Thematic,代碼行數:47,代碼來源:content-extensions.php

示例2: thematic_abovecontainer

thematic_abovecontainer();
?>

		<div id="container">
		
			<?php 
thematic_abovecontent();
?>
		
			<div id="content">
	
	            <?php 
// calling the widget area 'page-top'
get_sidebar('page-top');
the_post();
thematic_abovepost();
?>
	            
				<div id="post-<?php 
the_ID();
echo '" ';
if (!THEMATIC_COMPATIBLE_POST_CLASS) {
    post_class();
    echo '>';
} else {
    echo 'class="';
    thematic_post_class();
    echo '">';
}
// creating the post header
thematic_postheader();
開發者ID:StudentLifeMarketingAndDesign,項目名稱:krui-wp,代碼行數:31,代碼來源:page.php

示例3: thematic_single_post_xhtml

/**
 * The single posts xhtml loop
 * 
 * @since 2.0.0
 */
function thematic_single_post_xhtml()
{
    // action hook for insterting content above #post
    thematic_abovepost();
    ?>
		
			<div id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class();
    ?>
 > 

			<?php 
    // creating the post header
    thematic_postheader();
    ?>
 				
				<div class="entry-content">
				
					<?php 
    thematic_content();
    ?>

					<?php 
    wp_link_pages(array('before' => sprintf('<div class="page-link">%s', __('Pages:', 'thematic')), 'after' => '</div>'));
    ?>
					
				</div><!-- .entry-content -->
				
				<?php 
    thematic_postfooter();
    ?>
				
			</div><!-- #post -->
	<?php 
    // action hook for insterting content below #post
    thematic_belowpost();
}
開發者ID:scottnix,項目名稱:Thematic,代碼行數:45,代碼來源:legacy.php

示例4: thematic_tag_loop

    /**
     * The Tag loop
     * 
     * Located in tag.php
     * 
     * Override: childtheme_override_tag_loop
     */
    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            // action hook for insterting content above #post
            thematic_abovepost();
            ?>

				<?php 
            echo '<div id="post-' . get_the_ID() . '" ';
            // Checking for defined constant to enable Thematic's post classes
            if (!THEMATIC_COMPATIBLE_POST_CLASS) {
                post_class();
                echo '>';
            } else {
                echo 'class="';
                thematic_post_class();
                echo '">';
            }
            // creating the post header
            thematic_postheader();
            ?>
     				
					<div class="entry-content">
					
						<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					
					<?php 
            thematic_postfooter();
            ?>
					
				</div><!-- #post -->

			<?php 
            // action hook for insterting content below #post
            thematic_belowpost();
        }
    }
開發者ID:kuberjsr,項目名稱:thematic,代碼行數:49,代碼來源:content-extensions.php

示例5: thematic_tag_loop

    function thematic_tag_loop()
    {
        while (have_posts()) {
            the_post();
            thematic_abovepost();
            ?>

				<div id="post-<?php 
            the_ID();
            echo '" ';
            if (!THEMATIC_COMPATIBLE_POST_CLASS) {
                post_class();
                echo '>';
            } else {
                echo 'class="';
                thematic_post_class();
                echo '">';
            }
            thematic_postheader();
            ?>
					<div class="entry-content">
<?php 
            thematic_content();
            ?>

					</div><!-- .entry-content -->
					<?php 
            thematic_postfooter();
            ?>
				</div><!-- #post -->

			<?php 
            thematic_belowpost();
        }
    }
開發者ID:sams,項目名稱:Thematic-html5boilerplate,代碼行數:35,代碼來源:content-extensions.php


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