Rev 3 | Rev 16 | Go to most recent revision | 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"> |
||
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> |
||
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 |
||
16 | if(sdt_count_authors() > 1) { |
||
17 | the_author(); echo ' • '; |
||
18 | } |
||
19 | ?><?php the_date() ?> <?php the_time() ?> • <?php comments_popup_link(__('0 comments', 'sdt'),__('1 comment', 'sdt'),__('% comments', 'sdt'),'',__('Comments closed', 'sdt')); ?> <?php edit_post_link(__('Edit', 'sdt'), ' • ', ''); ?></span> |
||
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"> |
||
28 | <?php the_content(__('Continue reading ⇾', 'sdt')); ?> |
||
29 | <?php wp_link_pages(array( 'before' => '<div class="page-link">'.__('Pages:', 'sdt'), 'after' => '</div>')); ?> |
||
30 | </div><!-- .entry-content --> |
||
31 | <?php endif; ?> |
||
32 | <?php |
||
33 | /* display the footer only if it's not a page, otherwise pages |
||
34 | * get the footer during searches. |
||
35 | */ |
||
36 | if ($post->post_type != 'page') : ?> |
||
37 | <footer class="entry-meta-bottom"> |
||
7 | iacchi | 38 | <?php printf(_n("category: ", "categories: ", count(get_the_category()), 'sdt')); the_category(', '); ?><br /> |
39 | <?php printf(_n("tag: ", "tags: ", count(get_the_tags()), 'sdt')); the_tags('', ', ', ''); ?> |
||
3 | iacchi | 40 | </footer> |
41 | <?php endif; ?> |
||
42 | </article> |