Exemplo n.º 1
0
/**
 * The default template for displaying content on blog pages
 *
 * This will display unmatched post-type blog posts from main blog page and archive-type pages
 * Note - if you are building a custom content-xxx.php page for a custom post type, you should
 * be sure that Feature Images are processed correctly via weaverii_the_contnt_featured().
 *
 * @package WordPress
 * @subpackage Weaver II
 * @since Weaver II 1.0
 */
weaverii_trace_template(__FILE__);
global $weaverii_cur_post_id;
$weaverii_cur_post_id = get_the_ID();
weaverii_per_post_style();
if (weaverii_is_checked_page_opt('wvr_pwp_compact_posts') && !is_archive() && !is_search() && ($the_image = weaverii_get_first_post_image()) != '') {
    ?>
	<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('content-default content-compact-post ' . weaverii_post_count_class());
    ?>
>
		<header class="entry-header">
			<div class="entry-hdr"><h2 class="entry-title">
			<a href="<?php 
    esc_url(the_permalink());
    ?>
" title="<?php 
    printf(esc_attr(__('Permalink to %s', 'weaver-ii')), the_title_attribute('echo=0'));
Exemplo n.º 2
0
$weaverii_cur_post_id = get_the_ID();
weaverii_per_post_style();
if (weaverii_compact_post()) {
    ?>
	<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('format-image-compact ' . weaverii_post_count_class());
    ?>
>
<?php 
    $use_link = true;
    $content = do_shortcode(apply_filters('the_content', get_the_content('')));
    // pick up wp 3.6 post format meta image
    $the_image = weaverii_get_first_post_image($content);
    if ($the_image == '') {
        $the_image = $content;
        $use_link = false;
    }
    ?>
	<div class="entry-content cf">
<?php 
    if ($use_link) {
        ?>
	<a href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title_attribute('echo=1');
        ?>