-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-post-item-simple.php
30 lines (27 loc) · 1.2 KB
/
content-post-item-simple.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
<?php
global $porto_settings;
$featured_images = porto_get_featured_images();
$image_size = isset( $image_size ) ? $image_size : 'full';
?>
<?php
if ( count( $featured_images ) ) :
$attachment_id = $featured_images[0]['attachment_id'];
$attachment = porto_get_attachment( $attachment_id, $image_size );
?>
<div class="thumb-info thumb-info-no-borders thumb-info-bottom-info thumb-info-lighten thumb-info-bottom-info-dark thumb-info-centered-icons">
<div class="thumb-info-wrapper">
<div class="post-image">
<img width="<?php echo esc_attr( $attachment['width'] ); ?>" height="<?php echo esc_attr( $attachment['height'] ); ?>" src="<?php echo esc_url( $attachment['src'] ); ?>" alt="<?php echo esc_attr( $attachment['alt'] ); ?>" />
</div>
<span class="thumb-info-title">
<span class="thumb-info-inner"><?php echo the_title(); ?></span>
<span class="thumb-info-type"><?php echo get_the_category_list( ', ' ); ?></span>
</span>
<span class="thumb-info-action">
<a href="<?php echo esc_url( get_the_permalink() ); ?>">
<span class="thumb-info-action-icon thumb-info-action-icon-light"><i class="fa fa-link text-dark"></i></span>
</a>
</span>
</div>
</div>
<?php endif; ?>