Version Description
- Fixed notices nad optimization of the admin interface
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.8.13 |
Comparing to | |
See all releases |
Code changes from version 2.8.12 to 2.8.13
- app/app.php +1 -1
- app/class.brand.php +1 -1
- app/class.listing.php +1 -1
- app/class.php +1 -1
- app/class.view.php +1 -1
- app/extensions/dashboard/assets/style.css +1 -1
- app/extensions/dashboard/class.dashboard.php +1 -1
- app/extensions/dashboard/init.php +1 -1
- app/extensions/dashboard/overview.php +1 -1
- app/extensions/dashboard/video_guide.php +1 -1
- app/extensions/manager/class.addons.action.php +1 -1
- app/extensions/manager/class.addons.php +1 -1
- app/extensions/manager/css/style.css +1 -1
- app/extensions/manager/init.php +1 -1
- app/extensions/manager/js/script.js +1 -1
- includes/extensions/rbs_create_post_ajax.php +12 -3
- includes/frontend/rbs_gallery_source.php +15 -1
- includes/options/rbs_gallery_options_css.php +1 -1
- includes/options/rbs_gallery_options_hover.php +1 -1
- readme.txt +7 -1
- robogallery.php +2 -2
app/app.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
-
* Version: 2.8.
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
+
* Version: 2.8.14 - 71958
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
app/class.brand.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
-
* Version: 2.8.
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
+
* Version: 2.8.14 - 71958
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
app/class.listing.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/class.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/class.view.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
-
* Version: 2.8.
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
2 |
|
3 |
/*
|
4 |
* Robo Gallery
|
5 |
+
* Version: 2.8.14 - 71958
|
6 |
* By Robosoft
|
7 |
*
|
8 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/dashboard/assets/style.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/dashboard/class.dashboard.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/dashboard/init.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/dashboard/overview.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/dashboard/video_guide.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/manager/class.addons.action.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/manager/class.addons.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/manager/css/style.css
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*
|
2 |
* Robo Gallery
|
3 |
-
* Version: 2.8.
|
4 |
* By Robosoft
|
5 |
*
|
6 |
* Contact: https://robosoft.co/robogallery/
|
1 |
/*
|
2 |
* Robo Gallery
|
3 |
+
* Version: 2.8.14 - 71958
|
4 |
* By Robosoft
|
5 |
*
|
6 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/manager/init.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
-
* Version: 2.8.
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
1 |
<?php
|
2 |
/*
|
3 |
* Robo Gallery
|
4 |
+
* Version: 2.8.14 - 71958
|
5 |
* By Robosoft
|
6 |
*
|
7 |
* Contact: https://robosoft.co/robogallery/
|
app/extensions/manager/js/script.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
/*
|
2 |
* Robo Gallery
|
3 |
-
* Version: 2.8.
|
4 |
* By Robosoft
|
5 |
*
|
6 |
* Contact: https://robosoft.co/robogallery/
|
1 |
/*
|
2 |
* Robo Gallery
|
3 |
+
* Version: 2.8.14 - 71958
|
4 |
* By Robosoft
|
5 |
*
|
6 |
* Contact: https://robosoft.co/robogallery/
|
includes/extensions/rbs_create_post_ajax.php
CHANGED
@@ -127,6 +127,13 @@ if(!function_exists('rbs_ajax_create_article')){
|
|
127 |
$postId = $Poster->PC_current_post_id;
|
128 |
$posts_id[] = $postId;
|
129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
update_post_meta($galleryid, 'rbs_gallery_id', json_encode($posts_id, JSON_FORCE_OBJECT ));
|
131 |
|
132 |
if( isset($Poster->errors) && count($Poster->errors) ){
|
@@ -165,13 +172,15 @@ if(!function_exists('rbs_ajax_posts_list')){
|
|
165 |
} ;
|
166 |
$galleryid = (int) $_POST['galleryid'];
|
167 |
$posts = get_post_meta( $galleryid, 'rbs_gallery_id' , true);
|
|
|
168 |
|
169 |
-
|
170 |
-
|
|
|
|
|
171 |
die();
|
172 |
}
|
173 |
|
174 |
-
$posts = json_decode($posts, true);
|
175 |
echo '<table class="widefat importers striped">';
|
176 |
echo '<thead>
|
177 |
<tr>
|
127 |
$postId = $Poster->PC_current_post_id;
|
128 |
$posts_id[] = $postId;
|
129 |
|
130 |
+
|
131 |
+
$new_array = array();
|
132 |
+
for ($i = 0; $i < count($posts_id); $i++) {
|
133 |
+
if($posts_id[$i]) $new_array[] = $posts_id[$i];
|
134 |
+
}
|
135 |
+
$posts_id = $new_array;
|
136 |
+
|
137 |
update_post_meta($galleryid, 'rbs_gallery_id', json_encode($posts_id, JSON_FORCE_OBJECT ));
|
138 |
|
139 |
if( isset($Poster->errors) && count($Poster->errors) ){
|
172 |
} ;
|
173 |
$galleryid = (int) $_POST['galleryid'];
|
174 |
$posts = get_post_meta( $galleryid, 'rbs_gallery_id' , true);
|
175 |
+
|
176 |
|
177 |
+
$posts = json_decode($posts, true);
|
178 |
+
|
179 |
+
if( !is_array($posts) ){
|
180 |
+
echo '<p> -- '.__('No post','robo-gallery').'-- </p>';
|
181 |
die();
|
182 |
}
|
183 |
|
|
|
184 |
echo '<table class="widefat importers striped">';
|
185 |
echo '<thead>
|
186 |
<tr>
|
includes/frontend/rbs_gallery_source.php
CHANGED
@@ -103,7 +103,7 @@ class roboGalleryImages{
|
|
103 |
} else {
|
104 |
$this->imgArray[$i]['image'] = wp_get_attachment_url( $img['id'] );
|
105 |
$this->imgArray[$i]['thumb'] = (isset($thumb) && count($thumb) ) ? $thumb[0] : '';
|
106 |
-
$this->imgArray[$i]['sizeW'] = (isset($thumb[1]) && count($thumb)) ? $thumb[1] : $this->width;
|
107 |
$this->imgArray[$i]['sizeH'] = (isset($thumb[2]) && count($thumb)) ? $thumb[2] : $this->height;
|
108 |
$this->imgArray[$i]['data'] = get_post($img['id'] );
|
109 |
$this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
|
@@ -121,6 +121,20 @@ class roboGalleryImages{
|
|
121 |
}
|
122 |
|
123 |
$this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
$this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
|
125 |
$this->imgArray[$i]['alt'] = get_post_meta( $img['id'], '_wp_attachment_image_alt', true );
|
126 |
|
103 |
} else {
|
104 |
$this->imgArray[$i]['image'] = wp_get_attachment_url( $img['id'] );
|
105 |
$this->imgArray[$i]['thumb'] = (isset($thumb) && count($thumb) ) ? $thumb[0] : '';
|
106 |
+
$this->imgArray[$i]['sizeW'] = (isset($thumb[1]) && count($thumb)) ? $thumb[1] : $this->width; //*($i%2 ? 1.5: 1)
|
107 |
$this->imgArray[$i]['sizeH'] = (isset($thumb[2]) && count($thumb)) ? $thumb[2] : $this->height;
|
108 |
$this->imgArray[$i]['data'] = get_post($img['id'] );
|
109 |
$this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
|
121 |
}
|
122 |
|
123 |
$this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
|
124 |
+
|
125 |
+
/*switch ($i) {
|
126 |
+
case 4:
|
127 |
+
$this->imgArray[$i]['col'] = 4;
|
128 |
+
break;
|
129 |
+
case 7:
|
130 |
+
$this->imgArray[$i]['col'] = 4;
|
131 |
+
break;
|
132 |
+
}*/
|
133 |
+
|
134 |
+
|
135 |
+
//if( !$this->imgArray[$i]['col'] && ( $i % 2 == 0) ) $this->imgArray[$i]['col'] = rand(2,3);
|
136 |
+
|
137 |
+
|
138 |
$this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
|
139 |
$this->imgArray[$i]['alt'] = get_post_meta( $img['id'], '_wp_attachment_image_alt', true );
|
140 |
|
includes/options/rbs_gallery_options_css.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
16 |
|
17 |
$css_group = new_cmb2_box( array(
|
18 |
-
'id' => ROBO_GALLERY_PREFIX . '
|
19 |
'title' => '<span class="dashicons dashicons-media-text"></span> '.__( 'Custom CSS', 'robo-gallery' ),
|
20 |
'object_types' => array( ROBO_GALLERY_TYPE_POST ),
|
21 |
'show_names' => false,
|
15 |
if ( ! defined( 'ABSPATH' ) ) exit;
|
16 |
|
17 |
$css_group = new_cmb2_box( array(
|
18 |
+
'id' => ROBO_GALLERY_PREFIX . 'css_metabox',
|
19 |
'title' => '<span class="dashicons dashicons-media-text"></span> '.__( 'Custom CSS', 'robo-gallery' ),
|
20 |
'object_types' => array( ROBO_GALLERY_TYPE_POST ),
|
21 |
'show_names' => false,
|
includes/options/rbs_gallery_options_hover.php
CHANGED
@@ -204,7 +204,7 @@ $hover_group->add_field( array(
|
|
204 |
|
205 |
$hover_group->add_field( array(
|
206 |
'name' => __('Description Template', 'robo-gallery' ),
|
207 |
-
'desc' => '@TITLE@ <br/> @CAPTION@ <br/> @DESC@ <br/> @LINK@ ',
|
208 |
'default' =>
|
209 |
'<div class="rbs-hover-title">@TITLE@</div>'."\n".
|
210 |
'<div class="rbs-hover-caption">@CAPTION@</div>'."\n".
|
204 |
|
205 |
$hover_group->add_field( array(
|
206 |
'name' => __('Description Template', 'robo-gallery' ),
|
207 |
+
'desc' => '@TITLE@ <br/> @CAPTION@ <br/> @DESC@ <br/> @LINK@ <br/> @VIDEOLINK@ ',
|
208 |
'default' =>
|
209 |
'<div class="rbs-hover-title">@TITLE@</div>'."\n".
|
210 |
'<div class="rbs-hover-caption">@CAPTION@</div>'."\n".
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
|
|
4 |
Tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 2.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -202,6 +202,9 @@ If any problem occurs, please contact us.
|
|
202 |
|
203 |
== Changelog ==
|
204 |
|
|
|
|
|
|
|
205 |
= 2.8.12 =
|
206 |
* Added new template tag for video link
|
207 |
* Modification of the general CSS styles structure
|
@@ -467,6 +470,9 @@ If any problem occurs, please contact us.
|
|
467 |
|
468 |
== Upgrade Notice ==
|
469 |
|
|
|
|
|
|
|
470 |
= 2.8.12 =
|
471 |
Added new template tag for video link
|
472 |
Modification of the general CSS styles structure
|
4 |
Tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
|
5 |
Requires at least: 3.3
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 2.8.13
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
202 |
|
203 |
== Changelog ==
|
204 |
|
205 |
+
= 2.8.13 =
|
206 |
+
* Fixed notices nad optimization of the admin interface
|
207 |
+
|
208 |
= 2.8.12 =
|
209 |
* Added new template tag for video link
|
210 |
* Modification of the general CSS styles structure
|
470 |
|
471 |
== Upgrade Notice ==
|
472 |
|
473 |
+
= 2.8.13 =
|
474 |
+
Fixed notices nad optimization of the admin interface
|
475 |
+
|
476 |
= 2.8.12 =
|
477 |
Added new template tag for video link
|
478 |
Modification of the general CSS styles structure
|
robogallery.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/wordpress-gallery-plugin
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
-
Version: 2.8.
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/wordpress-gallery-plugin
|
9 |
License: GPLv3 or later
|
@@ -15,7 +15,7 @@ if(!defined('WPINC'))die;
|
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
-
define("ROBO_GALLERY_VERSION", '2.8.
|
19 |
|
20 |
define("ROBO_GALLERY_OPTIONS", 'rbs_opt_');
|
21 |
|
3 |
Plugin Name: Robo Gallery
|
4 |
Plugin URI: https://robosoft.co/wordpress-gallery-plugin
|
5 |
Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
|
6 |
+
Version: 2.8.13
|
7 |
Author: RoboSoft
|
8 |
Author URI: https://robosoft.co/wordpress-gallery-plugin
|
9 |
License: GPLv3 or later
|
15 |
if(!defined("ABSPATH"))exit;
|
16 |
|
17 |
define("ROBO_GALLERY", 1);
|
18 |
+
define("ROBO_GALLERY_VERSION", '2.8.13');
|
19 |
|
20 |
define("ROBO_GALLERY_OPTIONS", 'rbs_opt_');
|
21 |
|