Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 64 lines (53 sloc) 2.062 kb
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
1 <?php
2 /**
3 * @package _s
4 */
5 ?>
6
7 <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
8 <header class="entry-header">
9 <h1 class="entry-title"><?php the_title(); ?></h1>
10
11 <div class="entry-meta">
12 <?php _s_posted_on(); ?>
13 </div><!-- .entry-meta -->
14 </header><!-- .entry-header -->
15
16 <div class="entry-content">
17 <?php the_content(); ?>
7be7577 Takashi Irie Minor code style clean-up
iamtakashi authored
18 <?php
19 wp_link_pages( array(
20 'before' => '<div class="page-links">' . __( 'Pages:', '_s' ),
21 'after' => '</div>'
22 ) );
23 ?>
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
24 </div><!-- .entry-content -->
25
26 <footer class="entry-meta">
27 <?php
28 /* translators: used between list items, there is a space after the comma */
29 $category_list = get_the_category_list( __( ', ', '_s' ) );
30
31 /* translators: used between list items, there is a space after the comma */
ea03ecd Naoko Takano (McCracken) Fix tag list separator i18n in content-single.php
naokomc authored
32 $tag_list = get_the_tag_list( '', __( ', ', '_s' ) );
edfeccc Ian Stewart _s: initial fork of Toolbox
ianstewart authored
33
34 if ( ! _s_categorized_blog() ) {
35 // This blog only has 1 category so we just need to worry about tags in the meta text
36 if ( '' != $tag_list ) {
37 $meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
38 } else {
39 $meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
40 }
41
42 } else {
43 // But this blog has loads of categories so we should probably display them here
44 if ( '' != $tag_list ) {
45 $meta_text = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
46 } else {
47 $meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', '_s' );
48 }
49
50 } // end check for categories on this blog
51
52 printf(
53 $meta_text,
54 $category_list,
55 $tag_list,
56 get_permalink(),
57 the_title_attribute( 'echo=0' )
58 );
59 ?>
60
61 <?php edit_post_link( __( 'Edit', '_s' ), '<span class="edit-link">', '</span>' ); ?>
62 </footer><!-- .entry-meta -->
c4f2aa3 Konstantin Obenland _s: Formatting changes:
obenland authored
63 </article><!-- #post-## -->
Something went wrong with that request. Please try again.