summaryrefslogtreecommitdiff
path: root/liberty_plugins
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2012-10-29 14:42:45 +0000
committerlsces <lester@lsces.co.uk>2012-10-29 14:42:45 +0000
commitb2f94f21cd76c6b88edb9dae0eca60c71d4c73ca (patch)
tree6dd489a3e8a8842cded53cb9d19a941838919bc8 /liberty_plugins
parentc35391e3e7ce948c42e2b73c57081f7d94345e46 (diff)
downloadfisheye-b2f94f21cd76c6b88edb9dae0eca60c71d4c73ca.tar.gz
fisheye-b2f94f21cd76c6b88edb9dae0eca60c71d4c73ca.tar.bz2
fisheye-b2f94f21cd76c6b88edb9dae0eca60c71d4c73ca.zip
Restore site_fancy_zoom when using {image in other content
Diffstat (limited to 'liberty_plugins')
-rw-r--r--liberty_plugins/data.image.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/liberty_plugins/data.image.php b/liberty_plugins/data.image.php
index 178aedc..2adcc8d 100644
--- a/liberty_plugins/data.image.php
+++ b/liberty_plugins/data.image.php
@@ -100,7 +100,9 @@ function data_image( $pData, $pParams ) {
// if this image is linking to something, wrap the image with the <a>
$ret = '<a href="'.trim( $wrapper['link'] ).'">'.$ret.'</a>';
} elseif ( empty( $pParams['size'] ) || $pParams['size'] != 'original' ) {
- if ( $item->getDownloadUrl() ) {
+ if ( $gBitSystem->isFeatureActive( 'site_fancy_zoom' ) and !empty( $item->mInfo['source_url'] ) ) {
+ $ret = '<a href="'.trim( $item->mInfo['source_url'] ).'">'.$ret.'</a>';
+ } else if ( $item->getDownloadUrl() ) {
$ret = '<a href="'.trim( $item->getDownloadUrl() ).'">'.$ret.'</a>';
} else if ( !empty( $item->mInfo['media_url'] ) ) {
$ret = '<a href="'.trim( $item->mInfo['media_url'] ).'">'.$ret.'</a>';