summaryrefslogtreecommitdiff
path: root/liberty_plugins/data.gallery.php
diff options
context:
space:
mode:
Diffstat (limited to 'liberty_plugins/data.gallery.php')
-rwxr-xr-xliberty_plugins/data.gallery.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/liberty_plugins/data.gallery.php b/liberty_plugins/data.gallery.php
index 5560a5e..a0cfccf 100755
--- a/liberty_plugins/data.gallery.php
+++ b/liberty_plugins/data.gallery.php
@@ -10,6 +10,7 @@
* required setup
*/
namespace Bitweaver\Liberty;
+
use Bitweaver\Fisheye\FisheyeImage;
use Bitweaver\BitBase;
use Bitweaver\KernelTools;
@@ -43,7 +44,6 @@ $pluginParams = [
$gLibertySystem->registerPlugin( PLUGIN_GUID_DATAGALLERY, $pluginParams );
$gLibertySystem->registerDataTag( $pluginParams['tag'], PLUGIN_GUID_DATAGALLERY );
-
function data_gallery( $pData, $pParams ) {
global $gBitSystem, $gBitSmarty;
$ret = ' ';
@@ -87,7 +87,7 @@ function data_gallery( $pData, $pParams ) {
$images = $gallery->getList( $listHash );
$out = '<div>';
foreach( $images as $image ) {
- // insert source url if we need the original file
+ // insert source url if we need the original file
if( !empty( $pParams['size'] ) && $pParams['size'] == 'original' ) {
$thumbUrl = $image['source_url'];
} elseif( $image['thumbnail_url'] ) {
@@ -107,7 +107,7 @@ $out = '<div>';
' src="' .$thumbUrl.'"'.
' style="float:left; '.$imgStyle.'"'.
' />';
-
+
if( !empty( $pParams['nolink'] ) ) {
} elseif( !empty( $wrapper['link'] ) ) {
// if this image is linking to something, wrap the image with the <a>
@@ -115,9 +115,9 @@ $out = '<div>';
} elseif ( empty( $pParams['size'] ) || $pParams['size'] != 'original' ) {
if ( $image['source_url'] ) {
$ret = '<a href="'.trim( $image['source_url'] ).'">'.$ret.'</a>';
- }
+ }
}
-
+
if( !empty( $wrapper['style'] ) || !empty( $class ) || !empty( $wrapper['description'] ) ) {
$ret = '<'.$wrapper['wrapper'].' class="'.( !empty( $wrapper['class'] ) ? $wrapper['class'] : "img-responsive" ).'" style="'.$wrapper['style'].'">'.$ret.( !empty( $wrapper['description'] ) ? '<br />'.$wrapper['description'] : '' ).'</'.$wrapper['wrapper'].'>';
}
@@ -158,7 +158,7 @@ function data_gallery_help() {
.'<tr class="even">'
.'<td>num</td>'
.'<td>' . KernelTools::tra( "key-words") . '<br />' . KernelTools::tra("(optional)") . '</td>'
- .'<td>' . KernelTools::tra( "Number of images to display from the gallery")
+ .'<td>' . KernelTools::tra( "Number of images to display from the gallery")
. KernelTools::tra( "(Default = " ) . '<strong>3</strong>)</td>'
.'</tr>'
.'</table>'