Version Description
- Lightbox interface update
- Added new lightbox counter template field
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.5.0 |
Comparing to | |
See all releases |
Code changes from version 2.4.9 to 2.5.0
- cmb2/fields/toolbox/cmb-field-toolbox.php +4 -0
- includes/frontend/rbs_gallery_class.php +10 -5
- includes/options/rbs_gallery_options_button.php +2 -1
- includes/options/rbs_gallery_options_lightbox.php +13 -0
- includes/options/rbs_gallery_options_polaroid.php +1 -0
- index.php +1 -1
- readme.txt +9 -1
- robogallery.php +2 -2
cmb2/fields/toolbox/cmb-field-toolbox.php
CHANGED
@@ -46,6 +46,10 @@ class RBS_TOOLBOX {
|
|
46 |
</script>';
|
47 |
}
|
48 |
/* Express panel - */
|
|
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
public function rbs_setup_admin_header(){
|
46 |
</script>';
|
47 |
}
|
48 |
/* Express panel - */
|
49 |
+
/*
|
50 |
+
<p><a href="#rsg_button_metabox">Menu Options</a></p>
|
51 |
+
<p><a href="#rsg_polaroid_metabox">Polaroid Style Options</a></p>
|
52 |
+
*/
|
53 |
}
|
54 |
|
55 |
public function rbs_setup_admin_header(){
|
includes/frontend/rbs_gallery_class.php
CHANGED
@@ -48,7 +48,6 @@ class roboGallery extends roboGalleryUtils{
|
|
48 |
|
49 |
public $rbsTitleLightboxStyle = '';
|
50 |
|
51 |
-
public $rbsCounterLightboxStyle = '';
|
52 |
public $rbsCloseLightboxStyle = '';
|
53 |
public $rbsArrowLightboxStyle = '';
|
54 |
|
@@ -243,6 +242,15 @@ class roboGallery extends roboGalleryUtils{
|
|
243 |
}
|
244 |
/* ver 2 - */
|
245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
246 |
|
247 |
$width = 240; $height = 140;
|
248 |
|
@@ -402,10 +410,7 @@ class roboGallery extends roboGalleryUtils{
|
|
402 |
}
|
403 |
|
404 |
|
405 |
-
|
406 |
-
$this->rbsCounterLightboxStyle = 'display:none;';
|
407 |
-
$this->addJavaScriptStyle('rbsCounterLightbox','.mfp-container .mfp-counter',2);
|
408 |
-
}
|
409 |
|
410 |
if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxClose', true )){
|
411 |
$this->rbsCloseLightboxStyle = 'display:none;';
|
48 |
|
49 |
public $rbsTitleLightboxStyle = '';
|
50 |
|
|
|
51 |
public $rbsCloseLightboxStyle = '';
|
52 |
public $rbsArrowLightboxStyle = '';
|
53 |
|
242 |
}
|
243 |
/* ver 2 - */
|
244 |
|
245 |
+
$lightboxCounterText = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxCounterText', true );
|
246 |
+
|
247 |
+
if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxCounter', true )){
|
248 |
+
$lightboxCounterText="";
|
249 |
+
} else {
|
250 |
+
$lightboxCounterText = '%curr% '.esc_attr($lightboxCounterText).' %total%';
|
251 |
+
}
|
252 |
+
|
253 |
+
$this->helper->setValue( 'lightboxOptions', '{ gallery: { enabled: true, tCounter: "'.$lightboxCounterText.'" } }', 'raw' );
|
254 |
|
255 |
$width = 240; $height = 140;
|
256 |
|
410 |
}
|
411 |
|
412 |
|
413 |
+
|
|
|
|
|
|
|
414 |
|
415 |
if(!get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'lightboxClose', true )){
|
416 |
$this->rbsCloseLightboxStyle = 'display:none;';
|
includes/options/rbs_gallery_options_button.php
CHANGED
@@ -26,12 +26,13 @@ $button_group->add_field( array(
|
|
26 |
'name' => __('Menu', 'rbs_gallery' ),
|
27 |
'id' => ROBO_GALLERY_PREFIX . 'menu',
|
28 |
'type' => 'switch',
|
29 |
-
'level'
|
30 |
'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
|
31 |
'bootstrap_style'=> 1,
|
32 |
'showhide' => 1,
|
33 |
'depends' => '.rbs_menu_options',
|
34 |
'before_row' => '
|
|
|
35 |
<div class="rbs_block"><br/>',
|
36 |
'after_row' => '
|
37 |
<div class="rbs_menu_options">',
|
26 |
'name' => __('Menu', 'rbs_gallery' ),
|
27 |
'id' => ROBO_GALLERY_PREFIX . 'menu',
|
28 |
'type' => 'switch',
|
29 |
+
'level' => !ROBO_GALLERY_PRO,
|
30 |
'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
|
31 |
'bootstrap_style'=> 1,
|
32 |
'showhide' => 1,
|
33 |
'depends' => '.rbs_menu_options',
|
34 |
'before_row' => '
|
35 |
+
<a id="rbs_menu_options_link"></a>
|
36 |
<div class="rbs_block"><br/>',
|
37 |
'after_row' => '
|
38 |
<div class="rbs_menu_options">',
|
includes/options/rbs_gallery_options_lightbox.php
CHANGED
@@ -94,6 +94,19 @@ $lightbox_group->add_field( array(
|
|
94 |
'showhide' => 1,
|
95 |
'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
|
96 |
'bootstrap_style'=> 1,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
));
|
98 |
|
99 |
$lightbox_group->add_field( array(
|
94 |
'showhide' => 1,
|
95 |
'default' => rbs_gallery_set_checkbox_default_for_new_post(1),
|
96 |
'bootstrap_style'=> 1,
|
97 |
+
'depends' => '.rbs_lightbox_counter_text',
|
98 |
+
'after_row' => '
|
99 |
+
<div class="rbs_lightbox_counter_text">',
|
100 |
+
));
|
101 |
+
|
102 |
+
$lightbox_group->add_field( array(
|
103 |
+
'name' => __('Counter Divider','rbs_gallery'),
|
104 |
+
'default' => ' of ',
|
105 |
+
'id' => ROBO_GALLERY_PREFIX .'lightboxCounterText',
|
106 |
+
'type' => 'rbstext',
|
107 |
+
'small' => 1,
|
108 |
+
'after_row' => '
|
109 |
+
</div>',
|
110 |
));
|
111 |
|
112 |
$lightbox_group->add_field( array(
|
includes/options/rbs_gallery_options_polaroid.php
CHANGED
@@ -30,6 +30,7 @@ $polaroid_group->add_field( array(
|
|
30 |
'depends' => '.rbs_polaroid_block',
|
31 |
'bootstrap_style'=> 1,
|
32 |
'before_row' => '
|
|
|
33 |
<div class="rbs_block"><br/>',
|
34 |
'after_row' => '
|
35 |
<div class="rbs_polaroid_block">',
|
30 |
'depends' => '.rbs_polaroid_block',
|
31 |
'bootstrap_style'=> 1,
|
32 |
'before_row' => '
|
33 |
+
<a id="rbs_polaroid_options_link"></a>
|
34 |
<div class="rbs_block"><br/>',
|
35 |
'after_row' => '
|
36 |
<div class="rbs_polaroid_block">',
|
index.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: http://robosoft.co
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.5.0
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: http://robosoft.co
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://robosoft.co/robogallery
|
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.6
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -232,6 +232,10 @@ If any problem occurs, please contact us.
|
|
232 |
|
233 |
== Changelog ==
|
234 |
|
|
|
|
|
|
|
|
|
235 |
= 2.4.9 =
|
236 |
* Fixed galley link function, preload for the link function is disabled
|
237 |
|
@@ -908,6 +912,10 @@ If any problem occurs, please contact us.
|
|
908 |
|
909 |
== Upgrade Notice ==
|
910 |
|
|
|
|
|
|
|
|
|
911 |
= 2.4.9 =
|
912 |
Fixed galley link function, preload for the link function is disabled
|
913 |
|
4 |
Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.6
|
7 |
+
Stable tag: 2.5.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
232 |
|
233 |
== Changelog ==
|
234 |
|
235 |
+
= 2.5.0 =
|
236 |
+
* Lightbox interface update
|
237 |
+
* Added new lightbox counter template field
|
238 |
+
|
239 |
= 2.4.9 =
|
240 |
* Fixed galley link function, preload for the link function is disabled
|
241 |
|
912 |
|
913 |
== Upgrade Notice ==
|
914 |
|
915 |
+
= 2.5.0 =
|
916 |
+
Lightbox interface update
|
917 |
+
Added new lightbox counter template field
|
918 |
+
|
919 |
= 2.4.9 =
|
920 |
Fixed galley link function, preload for the link function is disabled
|
921 |
|
robogallery.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Robo Gallery
|
|
4 |
Plugin URI: http://robosoft.co/gallery
|
5 |
Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
|
6 |
Author: RoboSoft
|
7 |
-
Version: 2.
|
8 |
Author URI: http://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
10 |
*/
|
@@ -13,7 +13,7 @@ if(!defined('WPINC'))die;
|
|
13 |
if(!defined("ABSPATH"))exit;
|
14 |
|
15 |
define("ROBO_GALLERY", 1);
|
16 |
-
define("ROBO_GALLERY_VERSION", '2.
|
17 |
|
18 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
19 |
|
4 |
Plugin URI: http://robosoft.co/gallery
|
5 |
Description: Gallery it's easy and elegant way to publish images on page. Responsive, stylish and simple gallery.
|
6 |
Author: RoboSoft
|
7 |
+
Version: 2.5.0
|
8 |
Author URI: http://robosoft.co/gallery
|
9 |
License: GPLv3 or later
|
10 |
*/
|
13 |
if(!defined("ABSPATH"))exit;
|
14 |
|
15 |
define("ROBO_GALLERY", 1);
|
16 |
+
define("ROBO_GALLERY_VERSION", '2.5.0');
|
17 |
|
18 |
if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
19 |
|