Subversion Repositories ZenDark

Revisione

Revisione 16 | Responsabilità | Confronta con la precedente | Ultima modifica | Visualizza Log | feed RSS

<?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', 'zendark'), 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(zendark_count_authors() > 1) {
        the_author(); echo ' &bull; ';
      }
    ?><?php the_date() ?> <?php the_time() ?> &bull; <?php comments_popup_link(__('0 comments', 'zendark'),__('1 comment', 'zendark'),__('% comments', 'zendark'),'',__('Comments closed', 'zendark')); ?> <?php edit_post_link(__('Edit', 'zendark'), ' &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 ⇾', 'zendark')); ?>
                <?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'zendark'), 'after' => '</div>')); ?>
    <div style="clear:both"></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 printf(_n("category: ", "categories: ", count(get_the_category()), 'zendark')); the_category(', '); ?><br />
    <?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'zendark')); the_tags('', ', ', ''); ?>
  </footer>
  <?php endif; ?>
</article>