forked from hacklabr/cultural
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontent-grid.php
32 lines (29 loc) · 1.31 KB
/
content-grid.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* The template part for displaying results in a masonry grid.
*
* @package cultural
*/
?>
<article <?php post_class(); ?>>
<?php if ('' != get_the_post_thumbnail()) { ?>
<figure class="entry__image">
<a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('large'); ?></a>
<?php cultural_thumb_caption() ?>
</figure>
<?php } ?>
<header class="entry-header">
<?php cultural_categories(); ?>
<?php cultural_the_format(); ?>
<?php the_title(sprintf('<h1 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h1>'); ?>
<?php cultural_the_time(); ?>
<?php cultural_the_post_author(); ?>
</header><!-- /entry-header -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- /entry-summary -->
<footer class="entry-footer">
<a href="<?php the_permalink(); ?>" title="<?php printf(__('Permalink para “%s”', 'cultural'), the_title_attribute('echo=0')); ?>" rel="bookmark" class="u-pull-right"><i class="fa fa-link"></i></a>
<a href="<?php the_permalink(); ?>" class="read-more"><i class="fa fa-align-left"></i> <?php _e('Mais informações', 'cultural'); ?></a>
</footer><!-- /entry-footer -->
</article><!-- /post-<?php the_ID(); ?> -->