Example #1
0
    function weaverii_post_title($before = '', $after = '', $single = '')
    {
        weaverii_fi_pre_title('single' == $single ? 'single' : 'post');
        if (weaverii_is_checked_post_opt('hide_post_title') || weaverii_sc_getopt('hide_title')) {
            return;
        }
        if ($single != 'single' && weaverii_is_checked_post_opt('ttw-favorite-post')) {
            $before = $before . sprintf("<img class=\"post-fav-star\" src=\"%s\" alt=\"Favorite\" />", esc_url(weaverii_relative_url('images/icons/yellow-star.png')));
        }
        if ('page' == get_post_type() && !is_search() && !is_archive() || (weaverii_getopt('wii_post_no_titlelink') || weaverii_is_checked_post_opt('wvpp_post_no_titlelink')) || $single == 'single') {
            echo "\t\t" . $before;
            the_title();
        } else {
            echo "\t\t" . $before;
            ?>
	<a href="<?php 
            esc_url(the_permalink());
            ?>
" title="<?php 
            printf(esc_attr(__('Permalink to %s', 'weaver-ii')), the_title_attribute('echo=0'));
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a>
<?php 
        }
        $show_avatar = false;
        $sc = weaverii_sc_getopt('show_avatar');
        if ('no' == (string) $sc) {
            $show_avatar = false;
        } else {
            if (weaverii_getopt('wii_show_post_avatar') || weaverii_is_checked_post_opt('ttw-show-post-avatar') || $sc) {
                $show_avatar = true;
            }
        }
        if ($show_avatar && !weaverii_getopt('wii_show_tiny_avatar')) {
            ?>
		<div class="post-avatar post-avatar-normal">
		<?php 
            echo get_avatar(get_the_author_meta('user_email'), 44, null, 'avatar');
            ?>
		</div>
<?php 
        }
        echo $after . "\n";
    }
 */
weaverii_trace_template(__FILE__);
global $weaverii_cur_post_id;
$weaverii_cur_post_id = get_the_ID();
weaverii_per_post_style();
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('content-page');
?>
>
<?php 
weaverii_fi_pre_title('page');
?>
	<header class="entry-header<?php 
weaverii_hide_page_title();
?>
">
		<h1 class="entry-title"><?php 
the_title();
?>
</h1>
	</header><!-- .entry-header -->

	<div class="entry-content cf">
<?php 
weaverii_the_page_contnt_featured(false);
// put any featured image at the top...