diff --git a/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php b/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php index 4cfcf8b..703af7c 100644 --- a/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php +++ b/administrator/components/com_speasyimagegallery/helpers/speasyimagegallery.php @@ -116,7 +116,7 @@ public static function getVersion($type = 'major') * @param string $ext file extention * @return boolean/string */ - public static function createThumbs($src, $sizes = array(), $folder, $base_name, $ext) + public static function createThumbs($src, $sizes , $folder, $base_name, $ext) { list($originalWidth, $originalHeight) = getimagesize($src); diff --git a/administrator/components/com_speasyimagegallery/models/albums.php b/administrator/components/com_speasyimagegallery/models/albums.php index 5206b6a..0a2907e 100644 --- a/administrator/components/com_speasyimagegallery/models/albums.php +++ b/administrator/components/com_speasyimagegallery/models/albums.php @@ -175,6 +175,12 @@ protected function getListQuery() } } + // Filter by access level + $access_level = $this->getState('filter.access'); + if (!empty($access_level)) { + $query->where('a.access = ' . (int) $access_level); + } + // Add the list ordering clause. $orderCol = $app->getUserStateFromRequest($this->context.'filter_order', 'filter_order', 'id', 'cmd'); $orderDirn = $app->getUserStateFromRequest($this->context.'filter_order_Dir', 'filter_order_Dir', 'desc', 'cmd'); @@ -183,5 +189,4 @@ protected function getListQuery() return $query; } -} - +} \ No newline at end of file diff --git a/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php b/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php index 67c9ca9..34aa9a7 100644 --- a/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php +++ b/administrator/components/com_speasyimagegallery/views/albums/tmpl/default.php @@ -153,7 +153,7 @@ - + images); ?> - -
- <?php echo $image->alt; ?> - - + \ No newline at end of file diff --git a/components/com_speasyimagegallery/layouts/gallery/mosaic/image.php b/components/com_speasyimagegallery/layouts/gallery/mosaic/image.php index a7db3ab..15313c0 100644 --- a/components/com_speasyimagegallery/layouts/gallery/mosaic/image.php +++ b/components/com_speasyimagegallery/layouts/gallery/mosaic/image.php @@ -35,11 +35,12 @@ $source = json_decode($image->images); $thumb = $sizes[$index]; ?> - -
- <?php echo $image->alt; ?> - - + \ No newline at end of file diff --git a/components/com_speasyimagegallery/layouts/gallery/rectangle/image.php b/components/com_speasyimagegallery/layouts/gallery/rectangle/image.php index 4f8e361..b790a70 100644 --- a/components/com_speasyimagegallery/layouts/gallery/rectangle/image.php +++ b/components/com_speasyimagegallery/layouts/gallery/rectangle/image.php @@ -1,10 +1,10 @@ diff --git a/gulpfile.js b/gulpfile.js index ef8217c..9a8c3b0 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -147,4 +147,4 @@ function componentPackage(callback) { exports.default = series( clean,modules, plugins, manifest, admin, site, adminLanguage, siteLanguage, componentPackage -) \ No newline at end of file +) diff --git a/modules/mod_speasyimagegallery/layouts/gallery/default/image.php b/modules/mod_speasyimagegallery/layouts/gallery/default/image.php index 4bf9f0f..4962a81 100644 --- a/modules/mod_speasyimagegallery/layouts/gallery/default/image.php +++ b/modules/mod_speasyimagegallery/layouts/gallery/default/image.php @@ -14,11 +14,12 @@ $source = json_decode($image->images); ?> - -
- <?php echo $image->alt; ?> - - + \ No newline at end of file diff --git a/modules/mod_speasyimagegallery/layouts/gallery/mosaic/image.php b/modules/mod_speasyimagegallery/layouts/gallery/mosaic/image.php index 067b55d..ffe8af4 100644 --- a/modules/mod_speasyimagegallery/layouts/gallery/mosaic/image.php +++ b/modules/mod_speasyimagegallery/layouts/gallery/mosaic/image.php @@ -35,11 +35,12 @@ $source = json_decode($image->images); $thumb = $sizes[$index]; ?> - -
- <?php echo $image->alt; ?> - - + \ No newline at end of file diff --git a/modules/mod_speasyimagegallery/layouts/gallery/rectangle/image.php b/modules/mod_speasyimagegallery/layouts/gallery/rectangle/image.php index 513c7ab..29614c0 100644 --- a/modules/mod_speasyimagegallery/layouts/gallery/rectangle/image.php +++ b/modules/mod_speasyimagegallery/layouts/gallery/rectangle/image.php @@ -37,12 +37,13 @@ $col = $sizes[$index][1]; ?> + +
+ <?php echo $image->alt; ?> + +
+
+
\ No newline at end of file