-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcfa77b
commit dc6e34b
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?php | ||
/** | ||
* Template part for displaying posts. | ||
* | ||
* @link https://codex.wordpress.org/Template_Hierarchy | ||
* | ||
* @package coletivo | ||
*/ | ||
?> | ||
|
||
<article id="post-<?php the_ID(); ?>" <?php post_class( array('list-article', 'clearfix') ); ?>> | ||
|
||
<div class="list-article-thumb"> | ||
<a href="<?php echo esc_url( get_permalink() ); ?>"> | ||
<?php | ||
if ( has_post_thumbnail( ) ) { | ||
the_post_thumbnail( 'coletivo-small' ); | ||
} else { | ||
echo '<img alt="" src="'. get_template_directory_uri() . '/assets/images/placholder2.png' .'">'; | ||
} | ||
?> | ||
</a> | ||
</div> | ||
|
||
<div class="list-article-content"> | ||
<div class="list-article-meta"> | ||
<?php the_category(' / '); ?> | ||
</div> | ||
<header class="entry-header"> | ||
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> | ||
</header><!-- .entry-header --> | ||
<div class="entry-excerpt"> | ||
<?php | ||
the_excerpt(); | ||
?> | ||
<?php | ||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'coletivo' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
</div> | ||
|
||
</article><!-- #post-## --> |