mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-23 02:51:06 +01:00
59 lines
1.3 KiB
PHP
59 lines
1.3 KiB
PHP
<?php
|
|
/**
|
|
* Template part for displaying posts
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
|
|
*
|
|
* @package hero
|
|
*/
|
|
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
|
|
<?php if( has_post_thumbnail() ) : ?>
|
|
<div class="entry-thumbnail">
|
|
<?php hero_post_thumbnail(); ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="entry-content-wrapper">
|
|
|
|
<header class="entry-header">
|
|
<?php
|
|
if ( is_singular() ) :
|
|
the_title( '<div class="entry-title hidden">', '</div>' );
|
|
else :
|
|
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
|
|
endif;
|
|
|
|
if ( 'post' === get_post_type() ) :
|
|
?>
|
|
<div class="entry-meta">
|
|
<?php
|
|
hero_posted_on();
|
|
|
|
?>
|
|
</div><!-- .entry-meta -->
|
|
<?php endif; ?>
|
|
</header><!-- .entry-header -->
|
|
|
|
|
|
|
|
<div class="entry-content">
|
|
<?php if ( is_singular() ) : ?>
|
|
<?php the_content(); ?>
|
|
<?php else: ?>
|
|
<?php the_excerpt(); ?>
|
|
<?php endif; ?>
|
|
<?php
|
|
wp_link_pages( array(
|
|
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'hero' ),
|
|
'after' => '</div>',
|
|
) );
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
</div><!-- .entry-content-wrapper -->
|
|
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|