2014-09-30 15:58:34 +03:00
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<header>
|
|
|
|
<?php
|
|
|
|
if ( is_singular() ) {
|
|
|
|
echo '<h1 class="entry-title">';
|
|
|
|
} else {
|
|
|
|
echo '<h2 class="entry-title">';
|
|
|
|
} ?>
|
|
|
|
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a>
|
|
|
|
<?php if ( is_singular() ) { echo '</h1>'; } else { echo '</h2>'; } ?>
|
|
|
|
<?php edit_post_link(); ?>
|
2014-09-30 16:27:05 +03:00
|
|
|
<?php if ( !is_search() && !is_page() ) get_template_part( 'entry', 'meta' ); ?>
|
2014-09-30 15:58:34 +03:00
|
|
|
</header>
|
|
|
|
<?php get_template_part( 'entry', ( is_archive() || is_search() ? 'summary' : 'content' ) ); ?>
|
2014-09-30 16:27:05 +03:00
|
|
|
<?php if ( !is_search() && !is_page()) get_template_part( 'entry-footer' ); ?>
|
2014-09-30 15:58:34 +03:00
|
|
|
</article>
|