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


PHP thematic_post_class函數代碼示例

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


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

示例1: wicked_indexloop

function wicked_indexloop()
{
    // load the custom options
    global $childoptions;
    foreach ($childoptions as $value) {
        ${$value}['id'] = get_option($value['id'], $value['std']);
    }
    query_posts("posts_per_page=4&cat=" . $wicked_feature_cat);
    $counter = 1;
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
    <div id="post-<?php 
            the_ID();
            ?>
" class="<?php 
            thematic_post_class();
            ?>
">
      <?php 
            thematic_postheader();
            if ($counter == 1 && has_post_thumbnail() && !is_paged()) {
                the_post_thumbnail('homepage-thumbnail');
            }
            ?>
      <div class="entry-content">
        <?php 
            the_excerpt();
            ?>
        <a href="<?php 
            the_permalink();
            ?>
" class="more"><?php 
            echo more_text();
            ?>
</a>
        <?php 
            $counter++;
            ?>
      </div>
    </div><!-- .post -->
  <?php 
        }
    } else {
        ?>
    <h2>Eek</h2>
    <p>There are no posts to show!</p>
  <?php 
    }
    wp_reset_query();
}
開發者ID:jmawebco,項目名稱:wordpress1,代碼行數:52,代碼來源:functions.php

示例2: wicked_indexloop

function wicked_indexloop()
{
    query_posts("posts_per_page=4");
    $counter = 1;
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
    <div id="post-<?php 
            the_ID();
            ?>
" class="<?php 
            thematic_post_class();
            ?>
">
      <?php 
            thematic_postheader();
            if ($counter == 1 && has_post_thumbnail() && !is_paged()) {
                the_post_thumbnail('homepage-thumbnail');
            }
            ?>
      <div class="entry-content">
        <?php 
            the_excerpt();
            ?>
        <a href="<?php 
            the_permalink();
            ?>
" class="more"><?php 
            echo more_text();
            ?>
</a>
        <?php 
            $counter++;
            ?>
      </div>
    </div><!-- .post -->
  <?php 
        }
    } else {
        ?>
    <h2>Eek</h2>
    <p>There are no posts to show!</p>
  <?php 
    }
    wp_reset_query();
}
開發者ID:jmawebco,項目名稱:wordpress1,代碼行數:47,代碼來源:functions.php

示例3: get_sidebar

	            <?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();
?>
	                
					<div class="entry-content">
	
	                    <?php 
the_content();
wp_link_pages("\t\t\t\t\t<div class='page-link'>" . __('Pages: ', 'thematic'), "</div>\n", 'number');
edit_post_link(__('Edit', 'thematic'), '<span class="edit-link">', '</span>');
?>
	
					</div><!-- .entry-content -->
開發者ID:StudentLifeMarketingAndDesign,項目名稱:krui-wp,代碼行數:31,代碼來源:page.php

示例4: thematic_tag_loop

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

			<div id="post-<?php 
        the_ID();
        ?>
" class="<?php 
        thematic_post_class();
        ?>
">
    			<?php 
        thematic_postheader();
        ?>
				<div class="entry-content">
<?php 
        thematic_content();
        ?>

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

		<?php 
    }
}
開發者ID:blazingcloud,項目名稱:blog.blazingcloud.net,代碼行數:30,代碼來源:content-extensions.php

示例5: 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

示例6: 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

示例7: gallery_single_post

function gallery_single_post()
{
    global $post;
    ?>
<div id="post-<?php 
    the_ID();
    ?>
" class="<?php 
    thematic_post_class();
    ?>
"> 
            <ul>
            <?php 
    if (get_post_meta($post->ID, 'pickle-name')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'pickle-name', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'pickle-maker')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'pickle-maker', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'store-purchased')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'store-purchased', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'store-location')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'store-location', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'price')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'price', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'vegetable-type')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'vegetable-type', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'flavor')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'flavor', $single = true);
        ?>
</li><?php 
    }
    if (get_post_meta($post->ID, 'texture')) {
        ?>
<li class="maker_name"><?php 
        echo get_post_meta($post->ID, 'texture', $single = true);
        ?>
</li><?php 
    }
    ?>
 </ul>
        </div>
<?php 
}
開發者ID:jhgreenblatt,項目名稱:Pickle--Please,代碼行數:74,代碼來源:functions.php

示例8: tm_single_post

function tm_single_post()
{
    ?>
			<div id="post-<?php 
    the_ID();
    ?>
" class="<?php 
    thematic_post_class();
    ?>
">
    			<?php 
    tm_postheader();
    ?>
				<div class="entry-content">
<?php 
    thematic_content();
    ?>

					<?php 
    wp_link_pages('before=<div class="page-link">' . __('Pages:', 'thematic') . '&after=</div>');
    ?>
				</div>
				<?php 
    thematic_postfooter();
    ?>
			</div><!-- .post -->
<?php 
}
開發者ID:ramblinollie,項目名稱:VAM,代碼行數:28,代碼來源:functions.php

示例9: gallery_tag_loop

function gallery_tag_loop()
{
    global $post;
    /* Count the number of posts so we can insert a widgetized area */
    $count = 1;
    while (have_posts()) {
        the_post();
        ?>

			<div id="post-<?php 
        the_ID();
        ?>
" class="<?php 
        thematic_post_class();
        ?>
">
				<div class="entry-content">
			<?php 
        childtheme_post_header();
        ?>
        <a href="<?php 
        echo the_permalink();
        ?>
"><span class="slide-title"><?php 
        echo the_title();
        ?>
</span><img class="thumbnail" src="<?php 
        if (get_post_meta($post->ID, 'thumbnail')) {
            echo get_post_meta($post->ID, 'thumbnail', $single = true);
        } else {
            bloginfo('url');
            echo "/wp-content/themes/gallery/images/thumbnail-default.jpg";
        }
        ?>
" width="125" height="125" alt="<?php 
        echo the_title();
        ?>
" /></a>
				</div>
			</div><!-- .post -->

    <?php 
        comments_template();
        if ($count == $thm_insert_position) {
            get_sidebar('index-insert');
        }
        $count = $count + 1;
    }
}
開發者ID:Aliciakwan,項目名稱:OneCollection,代碼行數:49,代碼來源:functions.php


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