<?php # 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;
<article itemscope itemtype="http://schema.org/Article" id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="entry-header"> <h2 class="entry-title" itemprop="name"> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'flat' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <?php $archive_metadata = flat_get_theme_option( 'archive_metadata' ); ?> <?php if ( empty ( $archive_metadata ) ) : ?> <div class="entry-meta"><?php flat_entry_meta(); ?></div> <?php endif; ?> </header> <?php $archive_featured_image = flat_get_theme_option( 'archive_featured_image' ) ?> <?php if ( has_post_thumbnail() && ! post_password_required() && empty( $archive_featured_image ) ) : ?> <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( 'post-thumbnail', array( 'itemprop' => 'thumbnailUrl' ) ); ?></a></div> <?php endif; ?> <?php $archive_content = flat_get_theme_option( 'archive_content' ); ?> <?php flat_hook_entry_before(); ?> <?php if ( empty ( $archive_content ) ) : ?> <div class="entry-content clearfix" itemprop="articleBody"> <?php flat_hook_entry_top(); ?> <?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>' ) ); ?> <?php flat_hook_entry_bottom(); ?> </div> <?php else : ?> <div class="entry-summary" itemprop="description"> <?php flat_hook_entry_top(); ?> <?php the_excerpt(); ?> <?php flat_hook_entry_bottom(); ?> </div> <?php endif; ?> <?php flat_hook_entry_after(); ?>
" title="<?php echo esc_attr(sprintf(__('Permalink to %s', 'flat'), the_title_attribute('echo=0'))); ?> " rel="bookmark"><?php the_title(); ?> </a> </h2> <?php $archive_metadata = flat_get_theme_option('archive_metadata'); ?> <?php if (empty($archive_metadata)) { ?> <div class="entry-meta"><?php flat_entry_meta(); ?> </div> <?php } ?> </header> <?php $archive_featured_image = flat_get_theme_option('archive_featured_image'); ?> <?php if (has_post_thumbnail() && !post_password_required() && empty($archive_featured_image)) { ?> <div class="entry-thumbnail"><a href="<?php the_permalink(); ?>
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 } ?> </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')); ?>