Subversion Repositories ZenDark

Rev

Rev 16 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 iacchi 1
<?php
2
/*
3
 * The default template for displaying content
4
 */
5
?>
6
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
7
  <header class="entry-header">
27 iacchi 8
    <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>
3 iacchi 9
    <?php
10
    /* display the meta infos only if it's not a page, otherwise pages
11
     * get the infos during searches.
12
     */
13
    if ($post->post_type != 'page') : ?>
14
    <span class="entry-meta-top"><?php
15
      // Show the author's name if the blog has more than one author
27 iacchi 16
      if(zendark_count_authors() > 1) {
3 iacchi 17
        the_author(); echo ' &bull; ';
18
      }
27 iacchi 19
    ?><?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>
3 iacchi 20
  <?php endif; ?>
21
  </header>
22
  <?php if (!is_home()) : // Display the entire post only in the index ?>
23
        <div class="entry-summary">
24
                <?php the_excerpt(); ?>
25
        </div><!-- .entry-summary -->
26
        <?php else : ?>
27
        <div class="entry-content">
27 iacchi 28
                <?php the_content(__('Continue reading ⇾', 'zendark')); ?>
29
                <?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'zendark'), 'after' => '</div>')); ?>
16 iacchi 30
    <div style="clear:both"></div>
3 iacchi 31
        </div><!-- .entry-content -->
32
        <?php endif; ?>
33
  <?php
34
    /* display the footer only if it's not a page, otherwise pages
35
     * get the footer during searches.
36
     */
37
    if ($post->post_type != 'page') : ?>
38
  <footer class="entry-meta-bottom">
27 iacchi 39
    <?php printf(_n("category: ", "categories: ", count(get_the_category()), 'zendark')); the_category(', '); ?><br />
40
    <?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'zendark')); the_tags('', ', ', ''); ?>
3 iacchi 41
  </footer>
42
  <?php endif; ?>
43
</article>