Viewing File: /home/maglabs/lacentraleit/wp-content/themes/mlab/tmpl/post/content-featured.php
<?php
defined( 'ABSPATH' ) or die();
$post_permalink = get_permalink();
$post_target = '_self';
$post_image = mlab_get_image_resized( array(
'post_id' => get_the_ID(),
'size' => mlab_option( 'blog__archive__imagesize' ),
'crop' => mlab_option( 'blog__archive__imagesizeCrop' ) == 'crop'
) );
if ( get_post_format() == 'link' ) {
$post_permalink = get_post_meta( get_the_ID(), '_post_link', true );
$post_target = get_post_meta( get_the_ID(), '_post_link_target', true );
}
?>
<?php if ( has_post_thumbnail() ): ?>
<div class="post-image">
<div class="post-categories">
<?php the_category( _x( ' ', 'Used between list items, there is a space after the comma.', 'mlab' ) ) ?>
</div>
<a class="featured-image" href="<?php echo esc_url( $post_permalink ) ?>" target="<?php echo esc_attr( $post_target ) ?>">
<?php echo mlab_cleanup( $post_image['thumbnail'] ); ?>
</a>
</div>
<?php endif ?>
Back to Directory
File Manager