• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP thematic_postheader函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中thematic_postheader函数的典型用法代码示例。如果您正苦于以下问题:PHP thematic_postheader函数的具体用法?PHP thematic_postheader怎么用?PHP thematic_postheader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了thematic_postheader函数的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: thematic_404_content

    /**
     * Create the content for the 404 Error page
     * 
     * Located in 404.php
     * Override: childtheme_override_404_content
     */
    function thematic_404_content()
    {
        ?>
  			<?php 
        thematic_postheader();
        ?>
  			
			<div class="entry-content">
				<p><?php 
        _e('Apologies, but we were unable to find what you were looking for. Perhaps searching will help.', 'thematic');
        ?>
</p>
			</div><!-- .entry-content -->
			
			<form id="error404-searchform" method="get" action="<?php 
        echo home_url();
        ?>
/">
				<div>
					<input id="error404-s" name="s" type="text" value="<?php 
        the_search_query();
        ?>
" size="40" />
					<input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php 
        esc_attr_e('Find', 'thematic');
        ?>
" />
				</div>
			</form>
<?php 
    }
开发者ID:rowatt,项目名称:Thematic,代码行数:37,代码来源:content-extensions.php


示例4: thematic_abovepost

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 -->
				</div><!-- #post -->
	
	        <?php 
thematic_belowpost();
开发者ID:StudentLifeMarketingAndDesign,项目名称:krui-wp,代码行数:31,代码来源:page.php


示例5: test_thematic_postheader

 function test_thematic_postheader()
 {
     $this->expectOutputRegex('/<header/', thematic_postheader());
 }
开发者ID:scottnix,项目名称:Thematic,代码行数:4,代码来源:test-content-extensions.php


示例6: thematic_404_content

function thematic_404_content()
{
    ?>
   			<?php 
    thematic_postheader();
    ?>
   			
				<div class="entry-content">
					<p><?php 
    _e('Apologies, but we were unable to find what you were looking for. Perhaps  searching will help.', 'thematic');
    ?>
</p>
				</div>
				
				<form id="error404-searchform" method="get" action="<?php 
    bloginfo('home');
    ?>
">
					<div>
						<input id="error404-s" name="s" type="text" value="<?php 
    echo wp_specialchars(stripslashes($_GET['s']), true);
    ?>
" size="40" />
						<input id="error404-searchsubmit" name="searchsubmit" type="submit" value="<?php 
    _e('Find', 'thematic');
    ?>
" />
					</div>
				</form>
	<?php 
}
开发者ID:blazingcloud,项目名称:blog.blazingcloud.net,代码行数:31,代码来源:content-extensions.php


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


示例8: tm_category_loop

function tm_category_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 
        $tm_image = the_attached_image('img_size=thumb');
        echo $tm_image;
        tm_content();
        ?>

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

		<?php 
    }
}
开发者ID:ramblinollie,项目名称:VAM,代码行数:32,代码来源:functions.php


示例9: widget

	function widget($args,$instance){
		//Handles outputting the widgets content to theme
		extract($args, EXTRA_SKIP);
		echo $before_widget;
		$categories1 = $this->extractCategories($instance['include_cats1']);
		$post_per_page = $instance['dw_loop_posts_limit1'];
		query_posts("posts_per_page=".$post_per_page."&cat=".$categories1);
		$counter = 1;
		?><div class="dw-latest-headlines">
		<div class="dw-title-block"><h1><? echo $instance['headline1']; ?></h1></div><?php
		if(have_posts()) : while (have_posts()) : the_post(); 
			if(!is_sticky()):
		?> 
			<div id="post-<?php the_id() ?>" class="dw-home-posts">
			<?php thematic_postheader();
			if($counter == 1 && has_post_thumbnail()) {
				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 endif; ?>
		<?php endwhile; else: ?>
			<!-- No post available -->
		<?php endif; ?>
		<?php
		#####
		## Start second loop
		###
        wp_reset_query();
        $categories2 = $this->extractCategories($instance['include_cats2']);
		$post_per_page2 = $instance['dw_loop_posts_limit2'];
		query_posts("posts_per_page=".$post_per_page2."&cat=".$categories2);
        $counter = 1;
        ?>
        <div class="dw-title-block"><h1><? echo $instance['headline2']; ?></h1></div><?php
        if(have_posts()) : while (have_posts()) : the_post(); 
            if(is_sticky()):
        ?> 
            <div id="post-<?php the_id() ?>" class="dw-home-posts">
            <?php thematic_postheader();
            if($counter == 1 && has_post_thumbnail()) {
                the_post_thumbnail('homepage-thumbnail');
            } ?>
           </div><!-- .post -->
        <?php endif; ?>
        <?php endwhile; else: ?>
            <!-- No post available -->
        <?php endif; ?>
        <!-- /dw-sticky-headlines -->
         <?php
		 ######
		 ## Start 3rd loop
		 ######
        wp_reset_query();
        $categories3 = $this->extractCategories($instance['include_cats3']);
		$post_per_page3 = $instance['dw_loop_posts_limit3'];
		query_posts("posts_per_page=".$post_per_page3."&cat=".$categories3);
        $counter = 1;
        ?>
        <div class="dw-title-block"><h1><? echo $instance['headline3']; ?></h1></div><?php
        if(have_posts()) : while (have_posts()) : the_post(); 
            if(!is_sticky()):
        ?> 
            <div id="post-<?php the_id() ?>" class="dw-home-posts">
            <?php thematic_postheader();
            if($counter == 1 && has_post_thumbnail()) {
                the_post_thumbnail('homepage-thumbnail');
            } ?>
           </div><!-- .post -->
        <?php endif; ?>
        <?php endwhile; else: ?>
            <!-- No post available -->
        <?php endif; ?>
         </div><!-- /dw-latest-headlines -->
         </div>
         <?php
        wp_reset_query();
	   echo $after_widget;	
	} // end widget function
开发者ID:GraphicLingoes,项目名称:codesamples,代码行数:83,代码来源:homepage_loops.php



注:本文中的thematic_postheader函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP theme函数代码示例发布时间:2022-05-23
下一篇:
PHP thematic_post_class函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap