Version Description
Download this release
Release Info
Developer | supsystic.com |
Plugin | Photo Gallery by Supsystic |
Version | 1.15.2 |
Comparing to | |
See all releases |
Code changes from version 1.15.1 to 1.15.2
- index.php +2 -2
- readme.txt +7 -1
- src/GridGallery/Galleries/Model/Galleries.php +1 -1
- src/GridGallery/Galleries/assets/js/frontend.js +5 -4
- src/GridGallery/Photos/Model/Photos.php +2 -2
- src/GridGallery/Photos/Model/Position.php +4 -4
- vendor/Twig/Node/Embed.php +1 -1
- vendor/Twig/Node/Include.php +1 -1
index.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Photo Gallery by Supsystic
|
5 |
* Description: Easy to use Gallery by Supsystic with professional gallery templates. Show off your best design, photography and creative work
|
6 |
-
* Version: 1.15.
|
7 |
* Author: supsystic.com
|
8 |
* Author URI: https://supsystic.com
|
9 |
* Text Domain: grid-gallery
|
@@ -11,5 +11,5 @@
|
|
11 |
|
12 |
require_once dirname(__FILE__) . '/app/SupsysticGallery.php';
|
13 |
|
14 |
-
$supsysticGallery = new SupsysticGallery('1.15.
|
15 |
$supsysticGallery->run();
|
3 |
/**
|
4 |
* Plugin Name: Photo Gallery by Supsystic
|
5 |
* Description: Easy to use Gallery by Supsystic with professional gallery templates. Show off your best design, photography and creative work
|
6 |
+
* Version: 1.15.2
|
7 |
* Author: supsystic.com
|
8 |
* Author URI: https://supsystic.com
|
9 |
* Text Domain: grid-gallery
|
11 |
|
12 |
require_once dirname(__FILE__) . '/app/SupsysticGallery.php';
|
13 |
|
14 |
+
$supsysticGallery = new SupsysticGallery('1.15.2');
|
15 |
$supsysticGallery->run();
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: supsystic.com
|
|
3 |
Donate link: https://supsystic.com/plugins/gallery
|
4 |
Tags: gallery, wordpress gallery plugin, photo gallery, grid gallery, image gallery, video gallery, responsive gallery, polaroid gallery
|
5 |
Tested up to: 5.7
|
6 |
-
Stable tag: 1.15.
|
7 |
|
8 |
Photo Gallery with template editor to build amazing media gallery. Responsive mobile gallery with grid, masonry, carousel, polaroid and more gallery
|
9 |
|
@@ -176,6 +176,12 @@ Add watermark on each image in your gallery and you protect your photos from the
|
|
176 |
14. Photo gallery plugin admin area. Captions and Icons tab. Create impressive gallery with icons and fantastic caption effect.
|
177 |
|
178 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
= Gallery 1.15.1 / 26.03.2021 =
|
180 |
* Add support WP 5.7
|
181 |
* Fixed for OVH
|
3 |
Donate link: https://supsystic.com/plugins/gallery
|
4 |
Tags: gallery, wordpress gallery plugin, photo gallery, grid gallery, image gallery, video gallery, responsive gallery, polaroid gallery
|
5 |
Tested up to: 5.7
|
6 |
+
Stable tag: 1.15.2
|
7 |
|
8 |
Photo Gallery with template editor to build amazing media gallery. Responsive mobile gallery with grid, masonry, carousel, polaroid and more gallery
|
9 |
|
176 |
14. Photo gallery plugin admin area. Captions and Icons tab. Create impressive gallery with icons and fantastic caption effect.
|
177 |
|
178 |
== Changelog ==
|
179 |
+
= Gallery 1.15.2 / 24.05.2021 =
|
180 |
+
* Add support for PHP 8
|
181 |
+
* Add fix for noopener video
|
182 |
+
* Add fix for Show More option
|
183 |
+
* Add fix for Categories dublication
|
184 |
+
|
185 |
= Gallery 1.15.1 / 26.03.2021 =
|
186 |
* Add support WP 5.7
|
187 |
* Fixed for OVH
|
src/GridGallery/Galleries/Model/Galleries.php
CHANGED
@@ -136,7 +136,7 @@ class GridGallery_Galleries_Model_Galleries extends GridGallery_Core_BaseModel
|
|
136 |
public function createFromRequest(Rsc_Http_Request $request, Rsc_Lang $lang, Rsc_Config $config)
|
137 |
{
|
138 |
$title = $request->post->get('title');
|
139 |
-
$unnamed = (!$title ||
|
140 |
|
141 |
if($unnamed) {
|
142 |
$title = $lang->translate('Unnamed gallery');
|
136 |
public function createFromRequest(Rsc_Http_Request $request, Rsc_Lang $lang, Rsc_Config $config)
|
137 |
{
|
138 |
$title = $request->post->get('title');
|
139 |
+
$unnamed = (!$title || strlen($title) == 0);
|
140 |
|
141 |
if($unnamed) {
|
142 |
$title = $lang->translate('Unnamed gallery');
|
src/GridGallery/Galleries/assets/js/frontend.js
CHANGED
@@ -12,6 +12,8 @@
|
|
12 |
//}
|
13 |
//loadScript();
|
14 |
|
|
|
|
|
15 |
var init = false;
|
16 |
|
17 |
function Gallery(selector, autoInit) {
|
@@ -1834,7 +1836,7 @@
|
|
1834 |
self.lazyLoadTriggerHandler();
|
1835 |
},
|
1836 |
});
|
1837 |
-
|
1838 |
// Load more height fix
|
1839 |
if (slimScroll.height() < height) {
|
1840 |
slimScroll.height(height);
|
@@ -2561,10 +2563,9 @@
|
|
2561 |
|
2562 |
Gallery.prototype.init = (function () {
|
2563 |
|
2564 |
-
|
2565 |
-
|
2566 |
var self = this;
|
2567 |
-
|
2568 |
$(document).trigger("GalleryBeforeInit", this);
|
2569 |
|
2570 |
this.hidePreloader();
|
12 |
//}
|
13 |
//loadScript();
|
14 |
|
15 |
+
jQuery('[data-video-source]').attr('rel','video');
|
16 |
+
|
17 |
var init = false;
|
18 |
|
19 |
function Gallery(selector, autoInit) {
|
1836 |
self.lazyLoadTriggerHandler();
|
1837 |
},
|
1838 |
});
|
1839 |
+
|
1840 |
// Load more height fix
|
1841 |
if (slimScroll.height() < height) {
|
1842 |
slimScroll.height(height);
|
2563 |
|
2564 |
Gallery.prototype.init = (function () {
|
2565 |
|
2566 |
+
this.$container.imagesLoaded().done($.proxy(function () {
|
|
|
2567 |
var self = this;
|
2568 |
+
this.setImagesHeight();
|
2569 |
$(document).trigger("GalleryBeforeInit", this);
|
2570 |
|
2571 |
this.hidePreloader();
|
src/GridGallery/Photos/Model/Photos.php
CHANGED
@@ -512,7 +512,7 @@ class GridGallery_Photos_Model_Photos extends Rsc_Mvc_Model
|
|
512 |
$galleries = $resources->getGalleriesWithPhoto($photo->id);
|
513 |
}
|
514 |
|
515 |
-
return count($galleries);
|
516 |
}
|
517 |
|
518 |
public function preExtend($photosList, $resourceIds){
|
@@ -673,7 +673,7 @@ class GridGallery_Photos_Model_Photos extends Rsc_Mvc_Model
|
|
673 |
break;
|
674 |
}
|
675 |
if(!$imgHandle) return false;
|
676 |
-
|
677 |
$imgRotated = imagerotate($imgHandle, $degrees, 0);
|
678 |
|
679 |
switch($fileType) {
|
512 |
$galleries = $resources->getGalleriesWithPhoto($photo->id);
|
513 |
}
|
514 |
|
515 |
+
return !empty($galleries) ? count($galleries) : 0;
|
516 |
}
|
517 |
|
518 |
public function preExtend($photosList, $resourceIds){
|
673 |
break;
|
674 |
}
|
675 |
if(!$imgHandle) return false;
|
676 |
+
|
677 |
$imgRotated = imagerotate($imgHandle, $degrees, 0);
|
678 |
|
679 |
switch($fileType) {
|
src/GridGallery/Photos/Model/Position.php
CHANGED
@@ -215,7 +215,7 @@ class GridGallery_Photos_Model_Position extends GridGallery_Core_BaseModel
|
|
215 |
|
216 |
/**
|
217 |
* Sorted by photos
|
218 |
-
* @param array $photos
|
219 |
* @param string $sortby Tag when be sorted ('title','position'...)
|
220 |
* @param flag $flag Sorted flag (ASC, DESC)
|
221 |
* @return array $photos
|
@@ -289,7 +289,7 @@ class GridGallery_Photos_Model_Position extends GridGallery_Core_BaseModel
|
|
289 |
}
|
290 |
array_multisort($rndSorArr, $photos);
|
291 |
break;
|
292 |
-
|
293 |
//По позиции
|
294 |
default:
|
295 |
$position = array();
|
@@ -378,13 +378,13 @@ class GridGallery_Photos_Model_Position extends GridGallery_Core_BaseModel
|
|
378 |
$removeParams[] = (int)$element['photo_id'];
|
379 |
}
|
380 |
|
381 |
-
$this->removeByPhotoIds($data['
|
382 |
$this->insertPosition($insertParams, (int)$data['scope_id'], $data['scope']);
|
383 |
|
384 |
return true;
|
385 |
}
|
386 |
|
387 |
-
public function removeByPhotoIds($scope = self::SCOPE_MAIN
|
388 |
$query = $this->getQueryBuilder()
|
389 |
->deleteFrom($this->table)
|
390 |
->where('scope', '=', $scope)
|
215 |
|
216 |
/**
|
217 |
* Sorted by photos
|
218 |
+
* @param array $photos
|
219 |
* @param string $sortby Tag when be sorted ('title','position'...)
|
220 |
* @param flag $flag Sorted flag (ASC, DESC)
|
221 |
* @return array $photos
|
289 |
}
|
290 |
array_multisort($rndSorArr, $photos);
|
291 |
break;
|
292 |
+
|
293 |
//По позиции
|
294 |
default:
|
295 |
$position = array();
|
378 |
$removeParams[] = (int)$element['photo_id'];
|
379 |
}
|
380 |
|
381 |
+
$this->removeByPhotoIds($data['scope_id'], $removeParams, $data['scope']);
|
382 |
$this->insertPosition($insertParams, (int)$data['scope_id'], $data['scope']);
|
383 |
|
384 |
return true;
|
385 |
}
|
386 |
|
387 |
+
public function removeByPhotoIds($scope_id, array $photoIds, $scope = self::SCOPE_MAIN) {
|
388 |
$query = $this->getQueryBuilder()
|
389 |
->deleteFrom($this->table)
|
390 |
->where('scope', '=', $scope)
|
vendor/Twig/Node/Embed.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
class Twig_SupTwg_Node_Embed extends Twig_SupTwg_Node_Include
|
18 |
{
|
19 |
// we don't inject the module to avoid node visitors to traverse it twice (as it will be already visited in the main module)
|
20 |
-
public function __construct($name, $index, Twig_SupTwg_Node_Expression $variables = null, $only = false, $ignoreMissing = false, $lineno, $tag = null)
|
21 |
{
|
22 |
parent::__construct(new Twig_SupTwg_Node_Expression_Constant('not_used', $lineno), $variables, $only, $ignoreMissing, $lineno, $tag);
|
23 |
|
17 |
class Twig_SupTwg_Node_Embed extends Twig_SupTwg_Node_Include
|
18 |
{
|
19 |
// we don't inject the module to avoid node visitors to traverse it twice (as it will be already visited in the main module)
|
20 |
+
public function __construct($name, $index, Twig_SupTwg_Node_Expression $variables = null, $only = false, $ignoreMissing = false, $lineno = null, $tag = null)
|
21 |
{
|
22 |
parent::__construct(new Twig_SupTwg_Node_Expression_Constant('not_used', $lineno), $variables, $only, $ignoreMissing, $lineno, $tag);
|
23 |
|
vendor/Twig/Node/Include.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
*/
|
18 |
class Twig_SupTwg_Node_Include extends Twig_SupTwg_Node implements Twig_SupTwg_NodeOutputInterface
|
19 |
{
|
20 |
-
public function __construct(Twig_SupTwg_Node_Expression $expr, Twig_SupTwg_Node_Expression $variables = null, $only = false, $ignoreMissing = false, $lineno, $tag = null)
|
21 |
{
|
22 |
$nodes = array('expr' => $expr);
|
23 |
if (null !== $variables) {
|
17 |
*/
|
18 |
class Twig_SupTwg_Node_Include extends Twig_SupTwg_Node implements Twig_SupTwg_NodeOutputInterface
|
19 |
{
|
20 |
+
public function __construct(Twig_SupTwg_Node_Expression $expr, Twig_SupTwg_Node_Expression $variables = null, $only = false, $ignoreMissing = false, $lineno = null, $tag = null)
|
21 |
{
|
22 |
$nodes = array('expr' => $expr);
|
23 |
if (null !== $variables) {
|