Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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