示例#1
0
            printf(esc_attr__('Permalink to %s', 'gabfire'), the_title_attribute('echo=0'));
            ?>
" ><?php 
            the_title();
            ?>
</a>
									</h2>	
								
									<p><?php 
            echo string_limit_words(18);
            ?>
</p>
									<p class="postmeta">
										<?php 
            gabfire_bydate();
            gabfire_commentsnr();
            ?>
							
									</p>						
							</article>
						<?php 
        }
        ?>
								
					<?php 
        $count++;
    }
} else {
}
?>
					<div class="clearfix"></div>
示例#2
0
    function gabfire_singleposttitle()
    {
        global $wp_query;
        $post_layout = get_post_meta($wp_query->post->ID, 'gabfire_post_template', true);
        $subtitle = get_post_meta($wp_query->post->ID, 'subtitle', true);
        ?>

		<section class="row">
			<div class="col-md-12">
				<div class="post-lead">

					<?php 
        if (!is_page()) {
            ?>
						<p class="post-category"><?php 
            the_category(' &middot; ');
            ?>
</p>
					<?php 
        }
        ?>

					<h1 class="post-title" itemprop="headline"><?php 
        the_title();
        ?>
</h1>

					<?php 
        if (!is_page()) {
            ?>
						<p class="post-datecomment">
							<?php 
            gabfire_bydate();
            gabfire_commentsnr();
            ?>
						</p>
					<?php 
        }
        /* Display subtitle below post title if thats a fullwidth or big picture post template */
        if ($subtitle != '' && $post_layout == 'fullwidth') {
            echo "<p class='subtitle postlead_subtitle'>{$subtitle}</p>";
        }
        ?>

				</div>
			</div>
		</section><?php 
    }