Subversion Repositories ZenDark

Rev

Rev 7 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
/*
 * The default template for displaying content
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <header class="entry-header">
    <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf(esc_attr__('Permalink to %s', 'sdt'), the_title_attribute('echo=0')); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
    <?php
    /* display the meta infos only if it's not a page, otherwise pages
     * get the infos during searches.
     */

    if ($post->post_type != 'page') : ?>
    <span class="entry-meta-top"><?php
      // Show the author's name if the blog has more than one author
      if(sdt_count_authors() > 1) {
        the_author(); echo ' &bull; ';
      }
    ?><?php the_date() ?> <?php the_time() ?> &bull; <?php comments_popup_link(__('0 comments', 'sdt'),__('1 comment', 'sdt'),__('% comments', 'sdt'),'',__('Comments closed', 'sdt')); ?> <?php edit_post_link(__('Edit', 'sdt'), ' &bull; ', ''); ?></span>
  <?php endif; ?>
  </header>
  <?php if (!is_home()) : // Display the entire post only in the index ?>
        <div class="entry-summary">
                <?php the_excerpt(); ?>
        </div><!-- .entry-summary -->
        <?php else : ?>
        <div class="entry-content">
                <?php the_content(__('Continue reading ⇾', 'sdt')); ?>
                <?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'sdt'), 'after' => '</div>')); ?>
        </div><!-- .entry-content -->
        <?php endif; ?>
  <?php
    /* display the footer only if it's not a page, otherwise pages
     * get the footer during searches.
     */

    if ($post->post_type != 'page') : ?>
  <footer class="entry-meta-bottom">
    <?php _e('Categories: ', 'sdt'); the_category(', '); ?><br />
    <?php _e('Tags: ', 'sdt'); the_tags('', ', ', ''); ?>
  </footer>
  <?php endif; ?>
</article>