Last active
December 20, 2015 20:08
-
-
Save jasoncarrigan/6187826 to your computer and use it in GitHub Desktop.
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
<div class="span6"> | |
<?php | |
if(has_post_thumbnail()){ | |
$src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ) ); | |
$src_url = $src[0]; | |
} else { | |
} | |
?> | |
<a href="<?php echo $src_url; ?>" rel="lightbox[<?php echo $post->ID ?>]"> | |
<img src="<?php echo $src_url; ?>" width="300" height="300" class="attachment-300x300 wp-post-image" alt="bicycle" /> | |
</a> | |
</br> | |
<a href="<?php echo $src_url; ?>" rel="lightbox[<?php echo $post->ID ?>]"> | |
<?php _e( 'Click here image to view all images', $this->text_domain ); ?> | |
</a></br> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment