-
-
Save arielk/4f8737b0b07236bc767f to your computer and use it in GitHub Desktop.
Atlanta Theme - Gallery Grid Three with custom thumbnails
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
<?php | |
/** | |
* Content: Gallery Grid Three | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
global $_pojo_parent_id; | |
?> | |
<div id="post-<?php the_ID(); ?>" <?php post_class( apply_filters( 'pojo_post_classes', array( 'grid-item gallery-item col-md-4 col-sm-6 col-xs-6' ), get_post_type() ) ); ?>> | |
<?php if ( $image_url = Pojo_Thumbnails::get_post_thumbnail_url( array( 'width' => '360', 'height' => '540', 'crop' => true, 'placeholder' => true ) ) ) : ?> | |
<a class="image-link" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"> | |
<img src="<?php echo $image_url; ?>" alt="<?php echo esc_attr( get_the_title() ); ?>" class="media-object" /> | |
<div class="overlay-plus"> | |
<i class="fa fa-plus-circle"></i> | |
</div> | |
</a> | |
<?php endif; ?> | |
<div class="caption"> | |
<h4 class="grid-heading"> | |
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" rel="bookmark"><?php the_title(); ?></a> | |
</h4> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment