07/09/2018 at 11:48 am
#467115
Keymaster
@ Michael
Well, this is untested… but the code would be something like this.
Replace this:
<?php $entry->getImage(
array(
'image' => $atts['image'],
'height' => $atts['image_height'],
'width' => $atts['image_width'],
'fallback' => array(
'type' => 'block',
'string' => ''
),
'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(),
)
); ?>
with this:
<?php
echo '<a href="' . $entry->getPermalink() . '>';
$entry->getImage(
array(
'image' => $atts['image'],
'height' => $atts['image_height'],
'width' => $atts['image_width'],
'fallback' => array(
'type' => 'block',
'string' => ''
),
'style' => $atts['image_opacity'] ? array( 'opacity' => $atts['image_opacity'], 'filter' => 'alpha(opacity=' . $atts['image_opacity'] * 100 . ')' ) : array(),
)
);
echo '</a>';
?>