Gallery – Photo Gallery – Image Gallery - Version 1.3.6

Version Description

  • removed custom js field.
Download this release

Release Info

Developer machothemes
Plugin Icon wp plugin Gallery – Photo Gallery – Image Gallery
Version 1.3.6
Comparing to
See all releases

Code changes from version 1.3.5 to 1.3.6

Files changed (3) hide show
  1. Modula.php +3 -15
  2. README.txt +4 -1
  3. lib/gallery-class.php +0 -4
Modula.php CHANGED
@@ -5,14 +5,14 @@
5
* Description: Modula is one of the best & most creative WordPress gallery plugins. Use it to create a great grid or
6
* masonry image gallery.
7
* Author: Macho Themes
8
- * Version: 1.3.5
9
* Author URI: https://www.machothemes.com/
10
*/
11
12
define( 'MODULA_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
13
define( 'MODULA_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
14
15
- define( 'MODULA_VERSION', '1.3.5' );
16
define( 'MODULA_PLUGIN_BASE', plugin_basename( __FILE__ ) );
17
define( 'MODULA_PREVIOUS_PLUGIN_VERSION', '1.3.3' );
18
define( 'MODULA_FILE_', __FILE__ );
@@ -27,7 +27,7 @@ class ModulaLite {
27
private $loadedData;
28
private $fields = array();
29
30
- private $version = "1.3.5";
31
32
private $defaultValues = array(
33
'width' => 100,
@@ -59,7 +59,6 @@ class ModulaLite {
59
'shadowSize' => 0,
60
'shadowColor' => '#ffffff',
61
'style' => '',
62
- 'script' => '',
63
'randomFactor' => 50,
64
'hoverColor' => '#000000',
65
'hoverOpacity' => '50',
@@ -438,15 +437,6 @@ class ModulaLite {
438
$this->fields[ esc_html__( 'Customizations', 'modula-gallery' ) ] = array(
439
"icon" => "mdi mdi-puzzle",
440
"fields" => array(
441
- "script" => array(
442
- "name" => esc_html__( 'Custom scripts', 'modula-gallery' ),
443
- "type" => "textarea",
444
- "description" => esc_html__( 'This script will be called after the gallery initialization. Useful for custom lightboxes.', 'modula-gallery' ) . "
445
- <br />
446
- <br />
447
- <strong>Write just the code without using the &lt;script&gt;&lt;/script&gt; tags</strong>",
448
- "excludeFrom" => array( "shortcode" ),
449
- ),
450
"style" => array(
451
"name" => esc_html__( 'Custom css', 'modula-gallery' ),
452
"type" => "textarea",
@@ -1092,7 +1082,6 @@ class ModulaLite {
1092
$shadowColor = sanitize_hex_color($_POST['tg_shadowColor']);
1093
$shadowSize = intval( $_POST['tg_shadowSize'] );
1094
$style = sanitize_text_field($_POST['tg_style']);
1095
- $script = sanitize_text_field($_POST['tg_script']);
1096
1097
$id = isset( $_POST['ftg_gallery_edit'] ) ? intval( $_POST['ftg_gallery_edit'] ) : 0;
1098
@@ -1131,7 +1120,6 @@ class ModulaLite {
1131
'width' => $width,
1132
'height' => $height,
1133
'style' => $style,
1134
- 'script' => $script,
1135
);
1136
1137
header( "Content-type: application/json" );
5
* Description: Modula is one of the best & most creative WordPress gallery plugins. Use it to create a great grid or
6
* masonry image gallery.
7
* Author: Macho Themes
8
+ * Version: 1.3.6
9
* Author URI: https://www.machothemes.com/
10
*/
11
12
define( 'MODULA_PLUGIN_DIR_PATH', plugin_dir_path( __FILE__ ) );
13
define( 'MODULA_PLUGIN_DIR_URL', plugin_dir_url( __FILE__ ) );
14
15
+ define( 'MODULA_VERSION', '1.3.6' );
16
define( 'MODULA_PLUGIN_BASE', plugin_basename( __FILE__ ) );
17
define( 'MODULA_PREVIOUS_PLUGIN_VERSION', '1.3.3' );
18
define( 'MODULA_FILE_', __FILE__ );
27
private $loadedData;
28
private $fields = array();
29
30
+ private $version = "1.3.6";
31
32
private $defaultValues = array(
33
'width' => 100,
59
'shadowSize' => 0,
60
'shadowColor' => '#ffffff',
61
'style' => '',
62
'randomFactor' => 50,
63
'hoverColor' => '#000000',
64
'hoverOpacity' => '50',
437
$this->fields[ esc_html__( 'Customizations', 'modula-gallery' ) ] = array(
438
"icon" => "mdi mdi-puzzle",
439
"fields" => array(
440
"style" => array(
441
"name" => esc_html__( 'Custom css', 'modula-gallery' ),
442
"type" => "textarea",
1082
$shadowColor = sanitize_hex_color($_POST['tg_shadowColor']);
1083
$shadowSize = intval( $_POST['tg_shadowSize'] );
1084
$style = sanitize_text_field($_POST['tg_style']);
1085
1086
$id = isset( $_POST['ftg_gallery_edit'] ) ? intval( $_POST['ftg_gallery_edit'] ) : 0;
1087
1120
'width' => $width,
1121
'height' => $height,
1122
'style' => $style,
1123
);
1124
1125
header( "Content-type: application/json" );
README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: machothemes, silkalns
3
Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wordpress gallery plugin, wordpress portfolio plugin, masonry gallery, fancy gallery, media gallery, mosaic gallery, polaroid gallery, portfolio gallery
4
Requires at least: 3.8
5
Tested up to: 4.9
6
- Stable tag: 1.3.5
7
License: GPLv3 or later
8
License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
@@ -173,6 +173,9 @@ Free support is included only with a PRO license: [Buy Modula PRO](https://wp-mo
173
174
== Changelog ==
175
176
= 1.3.5 =
177
* second wp.org review
178
3
Tags: best gallery plugin, image gallery, photo gallery, responsive gallery, wordpress gallery plugin, wordpress portfolio plugin, masonry gallery, fancy gallery, media gallery, mosaic gallery, polaroid gallery, portfolio gallery
4
Requires at least: 3.8
5
Tested up to: 4.9
6
+ Stable tag: 1.3.6
7
License: GPLv3 or later
8
License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
173
174
== Changelog ==
175
176
+ = 1.3.6 =
177
+ * removed custom js field.
178
+
179
= 1.3.5 =
180
* second wp.org review
181
lib/gallery-class.php CHANGED
@@ -323,10 +323,6 @@ class ModulaLiteFE {
323
$html .= "<script type='text/javascript'>";
324
$html .= "jQuery('#jtg-$this->id$rid').modulaGallery({";
325
326
- if ( strlen( $this->gallery->script ) ) {
327
- $html .= "onComplete: function () { " . esc_js( $this->gallery->script ) . "},";
328
- }
329
-
330
$html .= "resizer: '" . plugins_url( 'image.php', dirname(__FILE__) ) . "',";
331
$html .= "margin: " . absint($this->gallery->margin) . ",";
332
// $html .= "\t\tkeepArea: " . ($this->gallery->keepArea == "T" ? "true" : "false") . ",\n";
323
$html .= "<script type='text/javascript'>";
324
$html .= "jQuery('#jtg-$this->id$rid').modulaGallery({";
325
326
$html .= "resizer: '" . plugins_url( 'image.php', dirname(__FILE__) ) . "',";
327
$html .= "margin: " . absint($this->gallery->margin) . ",";
328
// $html .= "\t\tkeepArea: " . ($this->gallery->keepArea == "T" ? "true" : "false") . ",\n";