wp386/content-single.php

64 lines
2.0 KiB
PHP
Raw Normal View History

2012-01-06 22:25:13 -05:00
<?php
/**
2013-08-10 05:41:27 -04:00
* @package wp386
2012-01-06 22:25:13 -05:00
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); ?></h1>
<div class="entry-meta">
2013-07-27 12:02:52 -04:00
<?php wp386_posted_on(); ?>
2012-01-06 22:25:13 -05:00
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<?php the_content(); ?>
2013-04-19 20:26:43 -04:00
<?php
wp_link_pages( array(
2013-07-27 12:02:52 -04:00
'before' => '<div class="page-links">' . __( 'Pages:', 'wp386' ),
'after' => '</div>',
2013-04-19 20:26:43 -04:00
) );
?>
2012-01-06 22:25:13 -05:00
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php
/* translators: used between list items, there is a space after the comma */
2013-07-27 12:02:52 -04:00
$category_list = get_the_category_list( __( ', ', 'wp386' ) );
2012-01-06 22:25:13 -05:00
/* translators: used between list items, there is a space after the comma */
2013-07-27 12:02:52 -04:00
$tag_list = get_the_tag_list( '', __( ', ', 'wp386' ) );
2012-01-06 22:25:13 -05:00
2013-07-27 12:02:52 -04:00
if ( ! wp386_categorized_blog() ) {
2012-01-06 22:25:13 -05:00
// This blog only has 1 category so we just need to worry about tags in the meta text
if ( '' != $tag_list ) {
2013-07-27 12:02:52 -04:00
$meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'wp386' );
2012-01-06 22:25:13 -05:00
} else {
2013-07-27 12:02:52 -04:00
$meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'wp386' );
2012-01-06 22:25:13 -05:00
}
} else {
// But this blog has loads of categories so we should probably display them here
if ( '' != $tag_list ) {
2013-07-27 12:02:52 -04:00
$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>.', 'wp386' );
2012-01-06 22:25:13 -05:00
} else {
2013-07-27 12:02:52 -04:00
$meta_text = __( 'This entry was posted in %1$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'wp386' );
2012-01-06 22:25:13 -05:00
}
} // end check for categories on this blog
printf(
$meta_text,
$category_list,
$tag_list,
get_permalink(),
the_title_attribute( 'echo=0' )
);
?>
2013-07-27 12:02:52 -04:00
<?php edit_post_link( __( 'Edit', 'wp386' ), '<span class="edit-link">', '</span>' ); ?>
2012-01-06 22:25:13 -05:00
</footer><!-- .entry-meta -->
</article><!-- #post-## -->