Skip to content
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.

Commit

Permalink
removed duplicate image output + adding actions
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Jun 29, 2013
1 parent 9b95a60 commit 3483d74
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions image.php
Expand Up @@ -42,12 +42,11 @@
<div class="entry-content">
<div class="entry-attachment">
<div class="attachment">

<?php do_action('wolf_before_attached_image'); ?>
<?php _wolf_the_attached_image(); ?>
<?php do_action('wolf_after_attached_image'); ?>

<a href="<?php echo esc_url($next_attachment_url); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
$attachment_size = apply_filters( 'wolf_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( get_the_ID(), $attachment_size );
?></a>
</div><!-- .attachment -->

<?php if ( has_excerpt() ) : ?>
Expand Down

0 comments on commit 3483d74

Please sign in to comment.