/**
 * Prints title/subtitle ( Post )
 */
function grve_print_post_header_title($position = 'top')
{
    if (grve_check_title_visibility()) {
        $post_title_height = grve_option('post_title_height', '350');
        $post_title_color = grve_option('post_title_color', 'light');
        $post_style = grve_option('post_style', 'default');
        $bg_image = 'post_title_background';
        if ('simple' == $post_style) {
            ?>
			<!-- Post Title -->
			<h1 class="grve-post-simple-title" itemprop="name headline"><span><?php 
            the_title();
            ?>
</span></h1>
			<!-- End Post Title -->
<?php 
        } else {
            if ('content' != $position) {
                global $post;
                $grve_post_title_bg = get_post_meta($post->ID, 'grve_post_title_bg', true);
                $bg_mode = grve_array_value($grve_post_title_bg, 'mode');
                if (!empty($bg_mode)) {
                    $post_title_height = grve_array_value($grve_post_title_bg, 'height', '350');
                }
                ?>
			<!-- Post Title -->
			<div id="grve-post-title" class="grve-align-center" style="height:<?php 
                echo esc_attr($post_title_height);
                ?>
px;">
				<div id="grve-post-title-content" data-height="<?php 
                echo esc_attr($post_title_height);
                ?>
">
					<?php 
                do_action('grve_post_title_top');
                ?>
					<div class="grve-container">
						<h1 class="grve-title grve-<?php 
                echo esc_attr($post_title_color);
                ?>
" itemprop="name headline"><span><?php 
                the_title();
                ?>
</span></h1>
						<?php 
                if ('default' == $post_style) {
                    grve_print_post_social($post_title_color);
                }
                ?>
					</div>
					<?php 
                do_action('grve_post_title_bottom');
                ?>
				</div>
				<?php 
                grve_print_title_bg_image_container($bg_image, $grve_post_title_bg);
                ?>
			</div>
			<!-- End Post Title -->
<?php 
            }
        }
    }
}
示例#2
0
/**
 * Prints Single Template Meta fields ( Post )
 */
function grve_print_post_single_meta()
{
    $post_style = grve_option('post_style', 'default');
    if ('simple' == $post_style) {
        ?>
	<div id="grve-meta-simple-style">
		<?php 
        grve_print_post_meta('grve-meta-responsive', 'grve-meta-style-classic');
        grve_print_post_social('primary-1', 'grve-social-share-responsive', 'grve-social-style-classic');
        ?>
	</div>
<?php 
    }
}
示例#3
0
					</div>
				<?php 
} elseif ('simple' == $post_style) {
    ?>
						<?php 
    grve_print_header_item_navigation('grve-nav-wrapper-classic');
    ?>
				<?php 
} else {
    ?>
					<div id="grve-meta-social-responsive" class="grve-meta-social-classic">
						<?php 
    grve_print_header_item_navigation('grve-nav-wrapper-classic');
    grve_print_post_meta('grve-meta-responsive', 'grve-meta-style-classic');
    grve_print_post_social('primary-1', 'grve-social-share-responsive', 'grve-social-style-classic');
    ?>
					</div>
                
				<?php 
}
?>
                <?php 
wpfp_link();
?>
				<?php 
grve_print_blog_meta_bar();
?>

				<?php 
if (grve_visibility('post_author_visibility')) {