forked from Codeinwp/flat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.php
23 lines (23 loc) · 1.5 KB
/
content.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h2 class="entry-title">
<a 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'); 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(); ?></a></div>
<?php endif; ?>
<?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 : ?>
<div class="entry-summary"><?php the_excerpt(); ?></div>
<?php endif; ?>
</article>