wordpress/php-fpm/wordpress_files/themes/sd-bushwick/content-single.php

61 lines
2.1 KiB
PHP
Raw Permalink Normal View History

2020-05-22 03:40:23 +02:00
<?php
/**
* @package Bushwick
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
<?php if ( has_excerpt() ) : ?>
<aside class="entry-summary">
<?php the_excerpt(); ?>
</aside><!-- .entry-summary -->
<?php endif; ?>
<div class="entry-content">
<?php
the_content();
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'bushwick' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-meta">
<?php
$category_list = get_the_category_list( _x( ', ', 'used between list items, there is a space after the comma', 'bushwick' ) );
$tag_list = get_the_tag_list( '', _x( ', ', 'used between list items, there is a space after the comma', 'bushwick' ) );
$author = sprintf( '<span class="author">%1$s</span>', get_the_author() ) ;
if ( ! bushwick_categorized_blog() ) :
// This blog only has 1 category so we just need to worry about tags in the meta text.
if ( '' != $tag_list && ! is_wp_error( $tag_list ) ) :
$meta_text = __( 'This entry was tagged %2$s. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'bushwick' );
else :
$meta_text = __( 'Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'bushwick' );
endif;
else :
// But this blog has loads of categories so we should probably display them here.
if ( '' != $tag_list && ! is_wp_error( $tag_list ) ) :
$meta_text = __( '%3$s en %1$s Etiquetas: tagged %2$s. <a href="%4$s" title="Permalink to %5$s" rel="bookmark">enlace</a>.', 'bushwick' );
else :
$meta_text = __( '%3$s en %1$s. <a href="%4$s" title="Permalink to %5$s" rel="bookmark">enlace</a>.', 'bushwick' );
endif;
endif; // End check for categories on this blog.
printf(
$meta_text,
$category_list,
$tag_list,
$author,
get_permalink(),
the_title_attribute( 'echo=0')
);
edit_post_link( __( 'Edit', 'bushwick' ), ' <span class="edit-link">', '</span>' );
?>
</footer><!-- .entry-meta -->
</article><!-- #post-## -->