/**
 * Display Logo
 */
function flat_logo()
{
    $header_display = flat_get_theme_option('header_display', 'site_title');
    if ('both_title_logo' === $header_display) {
        $header_class = 'display-title-logo';
    } else {
        if ('site_logo' === $header_display) {
            $header_class = 'display-logo';
        } else {
            $header_class = 'display-title';
        }
    }
    $logo = esc_url(flat_get_theme_option('logo'));
    $tagline = get_bloginfo('description');
    echo '<h1 class="site-title ' . esc_attr($header_class) . '"><a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(get_bloginfo('name', 'display')) . '" rel="home">';
    if ('display-title' !== $header_class) {
        echo '<img itemprop="primaryImageofPage" alt="' . esc_attr(get_bloginfo('name', 'display')) . '" src="' . esc_attr($logo) . '" />';
    }
    if ('display-logo' !== $header_class) {
        echo '<span itemprop="name">' . esc_attr(get_bloginfo('name')) . '</span>';
    }
    echo '</a></h1>';
    if ($tagline) {
        echo '<h2 itemprop="description" class="site-description">' . esc_attr($tagline) . '</h2>';
    }
}
# Whether to show an author postbox or not
$author_postbox = false;
$single_author_box = flat_get_theme_option( 'single_author_box' );
if ( get_the_author_meta( 'description' ) && empty( $single_author_box ) ) {
	$author_postbox = true;
}
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">
		<h1 class="entry-title" itemprop="name"><?php the_title(); ?></h1>
		<?php $single_metadata = flat_get_theme_option( 'single_metadata' ); ?>
		<?php if ( empty( $single_metadata ) ) : ?>
			<div class="entry-meta"><?php flat_entry_meta( true, $author_postbox ); ?></div>
		<?php endif; ?>
	</header>
	<?php $single_featured_image = flat_get_theme_option( 'single_featured_image' ); ?>
	<?php if ( has_post_thumbnail() && ! post_password_required() && empty( $single_featured_image ) ) : ?>
		<div class="entry-thumbnail"><?php the_post_thumbnail( 'post-thumbnail', array( 'itemprop' => 'thumbnailUrl' ) ); ?></div>
	<?php endif; ?>

	<?php flat_hook_entry_before(); ?>

	<div class="entry-content clearfix" itemprop="articleBody">
		<?php flat_hook_entry_top(); ?>
		<?php the_content( __( 'Continue reading', 'flat' ) ); ?>
		<?php 
		if ( function_exists( 'cwppos_show_review' ) ) :
			echo cwppos_show_review(); 
			
		endif;
		?>
Example #3
0
/**
 * Display Logo
 */
function flat_logo()
{
    $header_display = flat_get_theme_option('header_display', 'site_title');
    if ($header_display === 'both_title_logo') {
        $header_class = 'display-title-logo';
    } else {
        if ($header_display === 'site_logo') {
            $header_class = 'display-logo';
        } else {
            $header_class = 'display-title';
        }
    }
    $logo = esc_url(flat_get_theme_option('logo'));
    $tagline = get_bloginfo('description');
    echo '<h1 class="site-title ' . esc_attr($header_class) . '"><a href="' . esc_url(home_url('/')) . '" title="' . esc_attr(get_bloginfo('name', 'display')) . '" rel="home">';
    if ($header_class != 'display-title') {
        echo '<img alt="' . esc_attr(get_bloginfo('name', 'display')) . '" src="' . esc_attr($logo) . '" />';
    }
    if ($header_class != 'display-logo') {
        echo esc_attr(get_bloginfo('name'));
    }
    echo '</a></h1>';
    if ($tagline) {
        echo '<h2 class="site-description">' . esc_attr($tagline) . '</h2>';
    }
}
Example #4
0
    ?>
		<div class="entry-thumbnail"><a href="<?php 
    the_permalink();
    ?>
" title="<?php 
    echo esc_attr(sprintf(__('Permalink to %s', 'flat'), the_title_attribute('echo=0')));
    ?>
" rel="bookmark"><?php 
    the_post_thumbnail();
    ?>
</a></div>
	<?php 
}
?>
	<?php 
$archive_content = flat_get_theme_option('archive_content');
?>
	<?php 
if (empty($archive_content)) {
    ?>
		<div class="entry-content">
			<?php 
    the_content(__('Continue reading', 'flat'));
    ?>
			<?php 
    wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'flat') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
    ?>
		</div>
	<?php 
} else {
    ?>
Example #5
0
		<div class="entry-thumbnail"><?php 
    the_post_thumbnail();
    ?>
</div>
	<?php 
}
?>

	<div class="entry-content">
		<?php 
the_content(__('Continue reading', 'flat'));
?>
		<?php 
wp_link_pages(array('before' => '<div class="page-links"><span class="page-links-title">' . __('Pages:', 'flat') . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>'));
?>
	</div>
	<?php 
the_tags('<div class="tags-links">', __(' ', 'flat'), '</div>');
?>
</article>
	<?php 
$single_author_box = flat_get_theme_option('single_author_box');
?>
	<?php 
if (get_the_author_meta('description') && empty($single_author_box)) {
    ?>
		<?php 
    get_template_part('author-bio');
    ?>
	<?php 
}
Example #6
0
		<?php 
$single_metadata = flat_get_theme_option('single_metadata', 1);
?>
		<?php 
if (1 != $single_metadata) {
    ?>
			<div class="entry-meta"><?php 
    flat_entry_meta(true, $author_postbox);
    ?>
</div>
		<?php 
}
?>
	</header>
	<?php 
$single_featured_image = flat_get_theme_option('single_featured_image', 1);
?>
	<?php 
if (has_post_thumbnail() && !post_password_required() && 1 != $single_featured_image) {
    ?>
		<div class="entry-thumbnail"><?php 
    the_post_thumbnail('post-thumbnail', array('itemprop' => 'thumbnailUrl'));
    ?>
</div>
	<?php 
}
?>

	<?php 
flat_hook_entry_before();
?>