summaryrefslogtreecommitdiff
path: root/content.php
blob: 9d79482a386fd4dbcf05a495bbb38dfea9885857 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
/**
 * @package remulus
 */
?>


<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <div class="article-header">
    <?php if ( 'page' == get_post_type() ) : ?>
    <h2 class="article-title"><?php the_title(); ?></h2>
    <?php else: ?>
    <h2 class="article-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <?php endif; ?>

    <?php if ( 'post' == get_post_type() ) : ?>
    <time datetime="<?php the_time('c'); ?>">
      <?php the_time('F jS, Y'); ?>
    </time>
    <?php endif; ?>
  </div>

  <div class="article-content">
    <?php the_content(); ?>
  </div>
</article>