Subversion Repositories ZenDark

Rev

Rev 16 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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