Gallery – Photo Gallery and Images Gallery - Version 1.7.4

Version Description

  • Updated code structure of the backup module
  • Fixed backup import security issues
  • Fixed backup export security issues
  • Optimized import/export code algorithm
Download this release

Release Info

Developer robosoft
Plugin Icon 128x128 Gallery – Photo Gallery and Images Gallery
Version 1.7.4
Comparing to
See all releases

Code changes from version 1.7.3 to 1.7.4

addons/bootstrap-iconpicker/js/bootstrap-iconpicker.min.js DELETED
@@ -1,19 +0,0 @@
1
- /* ========================================================================
2
- * Bootstrap: bootstrap-iconpicker.js v1.6.0 by @recktoner
3
- * https://victor-valencia.github.com/bootstrap-iconpicker
4
- * ========================================================================
5
- * Copyright 2013-2014 Victor Valencia Rico.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ======================================================================== */
19
- !function(t){"use strict";var e=function(o,s){this.$element=t(o),this.options=t.extend({},e.DEFAULTS,this.$element.data()),this.options=t.extend({},this.options,s)};e.ICONSET_EMPTY={iconClass:"",iconClassFix:"",icons:[]},e.ICONSET={_custom:null,elusiveicon:t.iconset_elusiveicon||e.ICONSET_EMPTY,fontawesome:t.iconset_fontawesome||e.ICONSET_EMPTY,ionicon:t.iconset_ionicon||e.ICONSET_EMPTY,glyphicon:t.iconset_glyphicon||e.ICONSET_EMPTY,mapicon:t.iconset_mapicon||e.ICONSET_EMPTY,octicon:t.iconset_octicon||e.ICONSET_EMPTY,typicon:t.iconset_typicon||e.ICONSET_EMPTY,weathericon:t.iconset_weathericon||e.ICONSET_EMPTY},e.DEFAULTS={arrowClass:"btn-primary",arrowNextIconClass:"glyphicon glyphicon-arrow-right",arrowPrevIconClass:"glyphicon glyphicon-arrow-left",cols:4,icon:"",iconset:"glyphicon",labelHeader:"{0} / {1}",labelFooter:"{0} - {1} of {2}",placement:"bottom",rows:4,search:!0,searchText:"Search icon",selectedClass:"btn-warning",unselectedClass:"btn-default"},e.prototype.bindEvents=function(){var e=this.options,o=this;e.table.find(".btn-previous, .btn-next").off("click").on("click",function(){var s=parseInt(t(this).val(),10);o.changeList(e.page+s)}),e.table.find(".btn-icon").off("click").on("click",function(){o.select(t(this).val()),o.$element.popover("destroy")}),e.table.find(".search-control").off("keyup").on("keyup",function(){o.changeList(1)})},e.prototype.changeList=function(t){this.filterIcons(),this.updateLabels(t),this.updateIcons(t),this.options.page=t,this.bindEvents()},e.prototype.filterIcons=function(){var o=this.options,s=o.table.find(".search-control").val();if(""===s)o.icons=e.ICONSET[o.iconset].icons;else{var n=[];t.each(e.ICONSET[o.iconset].icons,function(t,e){e.indexOf(s)>-1&&n.push(e)}),o.icons=n}},e.prototype.removeAddClass=function(t,e,o){return this.options.table.find(t).removeClass(e).addClass(o),o},e.prototype.reset=function(){this.updatePicker(),this.changeList(1)},e.prototype.select=function(e){var o=this.options,s=this.$element;o.selected=t.inArray(e.replace(o.iconClassFix,""),o.icons),-1===o.selected&&(o.selected=0,e=o.iconClassFix+o.icons[o.selected]),""!==e&&o.selected>=0&&(o.icon=e,s.find("input").val(e),s.find("i").attr("class","").addClass(o.iconClass).addClass(e),s.trigger({type:"change",icon:e}),o.table.find("button."+o.selectedClass).removeClass(o.selectedClass))},e.prototype.switchPage=function(e){var o=this.options;if(o.selected=t.inArray(e.replace(o.iconClassFix,""),o.icons),""!==e&&o.selected>=0){var s=Math.ceil((o.selected+1)/this.totalIconsPerPage());this.changeList(s)}o.table.find("i."+e).parent().addClass(o.selectedClass)},e.prototype.totalPages=function(){return Math.ceil(this.totalIcons()/this.totalIconsPerPage())},e.prototype.totalIcons=function(){return this.options.icons.length},e.prototype.totalIconsPerPage=function(){return this.options.cols*this.options.rows},e.prototype.updateArrows=function(t){var e=this.options,o=this.totalPages();1===t?e.table.find(".btn-previous").addClass("disabled"):e.table.find(".btn-previous").removeClass("disabled"),t===o||0===o?e.table.find(".btn-next").addClass("disabled"):e.table.find(".btn-next").removeClass("disabled")},e.prototype.updateIcons=function(e){for(var o=this.options,s=o.table.find("tbody").empty(),n=(e-1)*this.totalIconsPerPage(),i=0;i<o.rows;i++){for(var a=t("<tr></tr>"),c=0;c<o.cols;c++){var r=n+i*o.cols+c,p=t('<button class="btn '+o.unselectedClass+' btn-icon"></button>').hide();if(r<o.icons.length){var l=o.iconClassFix+o.icons[r];p.val(l).attr("title",l).append('<i class="'+o.iconClass+" "+l+'"></i>').show(),o.icon===l&&p.addClass(o.selectedClass).addClass("btn-icon-selected")}a.append(t("<td></td>").append(p))}s.append(a)}},e.prototype.updateIconsCount=function(){var t=this.options,e=["<tr>",' <td colspan="'+t.cols+'" class="text-center">',' <span class="icons-count"></span>'," </td>","</tr>"];t.table.find("tfoot").empty().append(e.join(""))},e.prototype.updateLabels=function(t){var e=this.options,o=this.totalIcons(),s=this.totalPages();e.table.find(".page-count").html(e.labelHeader.replace("{0}",0===s?0:t).replace("{1}",s));var n=(t-1)*this.totalIconsPerPage(),i=t*this.totalIconsPerPage();e.table.find(".icons-count").html(e.labelFooter.replace("{0}",n+1).replace("{1}",o>i?i:o).replace("{2}",o)),this.updateArrows(t)},e.prototype.updatePagesCount=function(){for(var e=this.options,o=t("<tr></tr>"),s=0;s<e.cols;s++){var n=t('<td class="text-center"></td>');if(0===s||s===e.cols-1){var i=['<button class="btn btn-arrow '+(0===s?"btn-previous":"btn-next")+" "+e.arrowClass+'" value="'+(0===s?-1:1)+'">','<span class="'+(0===s?e.arrowPrevIconClass:e.arrowNextIconClass)+'"></span>',"</button>"];n.append(i.join("")),o.append(n)}else 0===o.find(".page-count").length&&(n.attr("colspan",e.cols-2).append('<span class="page-count"></span>'),o.append(n))}e.table.find("thead").empty().append(o)},e.prototype.updatePicker=function(){var t=this.options;if(t.cols<4)throw"Iconpicker => The number of columns must be greater than or equal to 4. [option.cols = "+t.cols+"]";if(t.rows<1)throw"Iconpicker => The number of rows must be greater than or equal to 1. [option.rows = "+t.rows+"]";this.updatePagesCount(),this.updateSearch(),this.updateIconsCount()},e.prototype.updateSearch=function(){var e=this.options,o=["<tr>",' <td colspan="'+e.cols+'">',' <input type="text" class="form-control search-control" style="width: '+39*e.cols+'px;" placeholder="'+e.searchText+'">'," </td>","</tr>"];o=t(o.join("")),e.search===!0?o.show():o.hide(),e.table.find("thead").append(o)},e.prototype.setArrowClass=function(t){this.options.arrowClass=this.removeAddClass(".btn-arrow",this.options.arrowClass,t)},e.prototype.setArrowNextIconClass=function(t){this.options.arrowNextIconClass=this.removeAddClass(".btn-next > span",this.options.arrowNextIconClass,t)},e.prototype.setArrowPrevIconClass=function(t){this.options.arrowPrevIconClass=this.removeAddClass(".btn-previous > span",this.options.arrowPrevIconClass,t)},e.prototype.setCols=function(t){this.options.cols=t,this.reset()},e.prototype.setIcon=function(t){this.select(t)},e.prototype.setIconset=function(o){var s=this.options;t.isPlainObject(o)?(e.ICONSET._custom=t.extend(e.ICONSET_EMPTY,o),s.iconset="_custom"):s.iconset=e.ICONSET.hasOwnProperty(o)?o:e.DEFAULTS.iconset,s=t.extend(s,e.ICONSET[s.iconset]),this.reset(),this.select(s.icon)},e.prototype.setLabelHeader=function(t){this.options.labelHeader=t,this.updateLabels(this.options.page)},e.prototype.setLabelFooter=function(t){this.options.labelFooter=t,this.updateLabels(this.options.page)},e.prototype.setPlacement=function(t){this.options.placement=t},e.prototype.setRows=function(t){this.options.rows=t,this.reset()},e.prototype.setSearch=function(t){var e=this.options.table.find(".search-control");t===!0?e.show():e.hide(),e.val(""),this.changeList(1),this.options.search=t},e.prototype.setSearchText=function(t){this.options.table.find(".search-control").attr("placeholder",t),this.options.searchText=t},e.prototype.setSelectedClass=function(t){this.options.selectedClass=this.removeAddClass(".btn-icon-selected",this.options.selectedClass,t)},e.prototype.setUnselectedClass=function(t){this.options.unselectedClass=this.removeAddClass(".btn-icon",this.options.unselectedClass,t)};var o=t.fn.iconpicker;t.fn.iconpicker=function(o,s){return this.each(function(){var n=t(this),i=n.data("bs.iconpicker"),a="object"==typeof o&&o;if(i||n.data("bs.iconpicker",i=new e(this,a)),"string"==typeof o){if("undefined"==typeof i[o])throw'Iconpicker => The "'+o+'" method does not exists.';i[o](s)}else{var c=i.options;c=t.extend(c,{page:1,selected:-1,table:t('<table class="table-icons"><thead></thead><tbody></tbody><tfoot></tfoot></table>')});var r="undefined"!=typeof n.attr("name")?'name="'+n.attr("name")+'"':"";n.empty().append("<i></i>").append('<input type="hidden" '+r+"></input>").append('<span class="caret"></span>'),n.addClass("iconpicker"),i.setIconset(c.iconset),n.on("click",function(t){t.preventDefault(),n.popover({animation:!1,trigger:"manual",html:!0,content:c.table,container:"body",placement:c.placement}).on("shown.bs.popover",function(){i.switchPage(c.icon),i.bindEvents()}),n.data("bs.popover").tip().addClass("iconpicker-popover"),n.popover("show")})}})},t.fn.iconpicker.Constructor=e,t.fn.iconpicker.noConflict=function(){return t.fn.iconpicker=o,this},t(document).on("click","body",function(e){t(".iconpicker").each(function(){t(this).is(e.target)||0!==t(this).has(e.target).length||0!==t(".popover").has(e.target).length||t(this).popover("destroy")})}),t('button[role="iconpicker"]').iconpicker()}(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/extensions/backup/{class_backup.php → backup.class.php} RENAMED
File without changes
includes/extensions/backup/backup.form.php ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 1.2
5
+ * By Robosoft
6
+ *
7
+ * Contact: http://robosoft.co
8
+ * Created: 2015
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2015, Robosoft. All rights reserved.
12
+ * Available only in http://robosoft.co/
13
+ */
14
+
15
+
16
+ //wp_enqueue_style ( 'toolbox-gallery-about', ROBO_GALLERY_URL.'css/admin/about.css', array( ), ROBO_GALLERY_VERSION );
17
+
18
+
19
+ if( isset($_POST['rbsSubmitBackup']) ){
20
+ if( check_admin_referer( 'rbs-gallery-backup-import', 'rbs-gallery-backup' ) ){
21
+ if ( $_FILES['rbsBackupFile']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['rbsBackupFile']['tmp_name'])) {
22
+ $tmp_name = $_FILES['rbsBackupFile']['tmp_name'];
23
+
24
+ rbs_gallery_include('backup.class.php', plugin_dir_path( __FILE__ ));
25
+
26
+ $wordPressExport = new rbsGalleryExport();
27
+ //$wordPressExport->setArchiveDir(ABSPATH . 'tmp');
28
+ //$wordPressExport->setArchiveChunkSize(2000000);
29
+ //$wordPressExport->exportPostsZip(['post_type' => $postType], 'export.xml');
30
+ //$wordPressExport->duplicate = $duplicate;
31
+
32
+ $export = new rbsGalleryExport('robo_gallery_table');
33
+ $result = $export->importPostsXml($tmp_name);
34
+ echo "<h2>".__('Success Import ', 'rbs_gallery')."</h2>";
35
+ //print_r($result);
36
+ }
37
+ } else {
38
+ echo "error: check secure";
39
+ }
40
+ }
41
+ ?>
42
+ <div class="wrap">
43
+ <h1 class="rbs-nobackup">
44
+ <?php _e('Robo Gallery Backup', 'rbs_gallery'); ?>
45
+ </h1>
46
+ <table class="form-table">
47
+ <tbody>
48
+ <tr>
49
+ <th scope="row"><label for="blogname"><?php _e('Export Gallery', 'rbs_gallery'); ?></label></th>
50
+ <td>
51
+ <form method="post" enctype="multipart/form-data" class="rbs_download_backup_export" action="<?php echo admin_url().'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup'; ?>">
52
+ <input type="submit" class="button button-primary " value="<?php _e('Download Backup'); ?>" name="rbsDownloadBackup">
53
+ <input type="hidden" name="rbsGalleryExport" value="1">
54
+ <?php wp_nonce_field( 'rbs-gallery-backup-export', 'rbs-gallery-backup' ); ?>
55
+ </form>
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td colspan="2"><p class="description" id="rbsBackupFile-description"><?php _e('After backup of the galleries settings with EXPORT option, copy images from server folder: {Wordpress folder}/wp-content/uploads to the new location by FTP'); ?></p></td>
60
+ </tr>
61
+ <tr>
62
+ <th scope="row"><label for="blogname"><?php _e('Import Gallery', 'rbs_gallery'); ?></label></th>
63
+ <td>
64
+ <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo admin_url().'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup'; ?>">
65
+
66
+ <?php wp_nonce_field( 'rbs-gallery-backup-import', 'rbs-gallery-backup' ); ?>
67
+
68
+ <label class="screen-reader-text" for="pluginzip">Import xml file</label>
69
+ <input type="file" name="rbsBackupFile" id="rbsBackupFile">
70
+ <input type="submit" class="button button-primary " value="<?php _e('Upload XML'); ?>" name="rbsSubmitBackup">
71
+
72
+ </form>
73
+ </td>
74
+ </tr>
75
+
76
+ </tbody>
77
+ </table>
78
+
79
+ </div>
80
+ <?php
includes/extensions/backup/backup.init.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery
4
+ * Version: 1.6
5
+ * By Robosoft
6
+ *
7
+ * Contact: http://robosoft.co
8
+ * Created: 2015
9
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
+ *
11
+ * Copyright (c) 2014-2015, Robosoft. All rights reserved.
12
+ * Available only in http://robosoft.co/
13
+ */
14
+
15
+ if(!function_exists('robo_gallery_backup_submenu_page')){
16
+ add_action('admin_menu', 'robo_gallery_backup_submenu_page');
17
+ function robo_gallery_backup_submenu_page() {
18
+ add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Backup', 'Backup', 'manage_options', 'robo-gallery-backup', 'robo_gallery_backup_submenu_page_render' );
19
+ }
20
+ function robo_gallery_backup_submenu_page_render(){
21
+ rbs_gallery_include('backup.form.php', plugin_dir_path( __FILE__ ));
22
+ }
23
+ }
24
+
25
+ /* backup export + */
26
+ if(!function_exists('rbs_gallery_export')){
27
+ function rbs_gallery_export(){
28
+ if(isset($_POST['rbsGalleryExport']) && $_POST['rbsGalleryExport']==1 && check_admin_referer('rbs-gallery-backup-export', 'rbs-gallery-backup') ){
29
+ //rbs_gallery_include('class_backup.php', ROBO_GALLERY_EXTENSIONS_PATH.'/backup/');
30
+ rbs_gallery_include('backup.class.php', plugin_dir_path( __FILE__ ) );
31
+ $export = new rbsGalleryExport('robo_gallery_table');
32
+ $export->setArchiveDir(ABSPATH . 'tmp');
33
+ $export->isExportFiles = true;
34
+ $isExport = $export->exportPostsXml(array('post_type' => ROBO_GALLERY_TYPE_POST), 'export.xml');
35
+ if(!$isExport) {
36
+ // show pretty error
37
+ var_dump($export->getError());
38
+ } else {
39
+ wp_redirect(get_permalink( 'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' ));
40
+ }
41
+
42
+ die();
43
+ }
44
+ }
45
+ add_action( 'init', 'rbs_gallery_export' );
46
+ }
47
+ if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && rbs_gallery_is_edit_page('list') ){
48
+ if(!function_exists('rbs_gallery_robogalleryBackup')){
49
+ function rbs_gallery_robogalleryBackup (){
50
+ wp_enqueue_script('robo-gallery-backup', ROBO_GALLERY_URL.'js/admin/extensions/backup/rbs_backup_button.js', array( 'jquery' ), ROBO_GALLERY_VERSION, true );
51
+ }
52
+ add_action( 'in_admin_header', 'rbs_gallery_robogalleryBackup' );
53
+ }
54
+ }
55
+
56
+
57
+
58
+
59
+
60
+
61
+ /* backup export - */
includes/extensions/rbs_create_article_button.php DELETED
@@ -1,27 +0,0 @@
1
- <?php
2
- if ( ! defined( 'WPINC' ) ) die;
3
-
4
- //add_action( 'admin_footer', 'rbs_create_article_button_javascript' );
5
- function rbs_create_article_button_javascript() {
6
- $postId = 0;
7
- if( isset($_GET['post']) && $_GET['post'] ){
8
- $postId = (int) $_GET['post'];
9
- }
10
-
11
- ?>
12
- <script type="text/javascript" >
13
- jQuery(document).ready(function($) {
14
-
15
- var data = {
16
- 'action': 'rbs_gallery_ajax',
17
- 'whatever': 1234,
18
- 'postid': <?php echo $postId; ?>,
19
- };
20
-
21
- // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
22
- jQuery.post(ajaxurl, data, function(response) {
23
- alert('Got this from the server: ' + response);
24
- });
25
- });
26
- </script> <?php
27
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/rbs_gallery_backup.php DELETED
@@ -1,83 +0,0 @@
1
- <?php
2
- /*
3
- * Robo Gallery
4
- * Version: 1.2
5
- * By Robosoft
6
- *
7
- * Contact: http://robosoft.co
8
- * Created: 2015
9
- * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
10
- *
11
- * Copyright (c) 2014-2015, Robosoft. All rights reserved.
12
- * Available only in http://robosoft.co/
13
- */
14
-
15
-
16
-
17
- wp_enqueue_style ( 'toolbox-gallery-about', ROBO_GALLERY_URL.'css/admin/about.css', array( ), ROBO_GALLERY_VERSION );
18
-
19
-
20
- if(isset($_POST['rbsSubmitBackup'])){
21
- if( check_admin_referer( 'rbs-gallery-backup-import' ) ){
22
- if ( $_FILES['rbsBackupFile']['error'] == UPLOAD_ERR_OK && is_uploaded_file($_FILES['rbsBackupFile']['tmp_name'])) {
23
- $tmp_name = $_FILES['rbsBackupFile']['tmp_name'];
24
- rbs_gallery_include('class_backup.php', ROBO_GALLERY_EXTENSIONS_PATH.'/backup/');
25
-
26
- $wordPressExport = new rbsGalleryExport();
27
- //$wordPressExport->setArchiveDir(ABSPATH . 'tmp');
28
- //$wordPressExport->setArchiveChunkSize(2000000);
29
- //$wordPressExport->exportPostsZip(['post_type' => $postType], 'export.xml');
30
- //$wordPressExport->duplicate = $duplicate;
31
-
32
-
33
-
34
- $export = new rbsGalleryExport('robo_gallery_table');
35
- $result = $export->importPostsXml($tmp_name);
36
- echo "<h2>".__('Success Import ', 'rbs_gallery')."</h2>";
37
- //print_r($result);
38
- }
39
- } else {
40
- echo "check secrete error ";
41
- }
42
-
43
- }
44
- ?>
45
- <div class="wrap">
46
- <h1 class="rbs-nobackup">
47
- <?php _e('Robo Gallery Backup', 'rbs_gallery'); ?>
48
- </h1>
49
- <table class="form-table">
50
- <tbody>
51
- <tr>
52
- <th scope="row"><label for="blogname"><?php _e('Export Gallery', 'rbs_gallery'); ?></label></th>
53
- <td>
54
- <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo admin_url().'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup'; ?>">
55
- <a href="<?php echo admin_url(); ?>edit.php?post_type=robo_gallery_table&page=robo-gallery-backup&rbsGalleryExport=1" class="button button-primary">Download Backup</a>
56
- </form></td>
57
- </tr>
58
- <tr>
59
- <td colspan="2"><p class="description" id="rbsBackupFile-description"><?php _e('After backup of the galleries settings with EXPORT option, copy images from server folder: {Wordpress folder}/wp-content/uploads to the new location by FTP'); ?></p></td>
60
- </tr>
61
- <tr>
62
- <th scope="row"><label for="blogname"><?php _e('Import Gallery', 'rbs_gallery'); ?></label></th>
63
- <td>
64
- <form method="post" enctype="multipart/form-data" class="wp-upload-form" action="<?php echo admin_url().'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup'; ?>">
65
-
66
- <input id="_wpnonce" name="_wpnonce" value="75248da724" type="hidden">
67
- <input name="_wp_http_referer" value="/site/w5/wp-admin/plugin-install.php?tab=upload" type="hidden">
68
- <?php wp_nonce_field( 'rbs-gallery-backup-import' ); ?>
69
-
70
- <label class="screen-reader-text" for="pluginzip">Import xml file</label>
71
- <input type="file" name="rbsBackupFile" id="rbsBackupFile">
72
- <input type="submit" class="button button-primary " value="<?php _e('Upload XML'); ?>" name="rbsSubmitBackup">
73
-
74
-
75
- </form>
76
- </td>
77
- </tr>
78
-
79
- </tbody>
80
- </table>
81
-
82
- </div>
83
- <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/rbs_gallery_init.php CHANGED
@@ -148,25 +148,5 @@ rbs_gallery_include('rbs_create_post_ajax.php', ROBO_GALLERY_EXTENSIONS_PATH);
148
 
149
  /* Init function */
150
 
151
- /* backup export + */
152
- if(!function_exists('rbs_gallery_export')){
153
- function rbs_gallery_export(){
154
- if(isset($_GET['rbsGalleryExport']) && $_GET['rbsGalleryExport']==1 ){
155
- rbs_gallery_include('class_backup.php', ROBO_GALLERY_EXTENSIONS_PATH.'/backup/');
156
- $export = new rbsGalleryExport('robo_gallery_table');
157
- $export->setArchiveDir(ABSPATH . 'tmp');
158
- $export->isExportFiles = true;
159
- $isExport = $export->exportPostsXml(array('post_type' => ROBO_GALLERY_TYPE_POST), 'export.xml');
160
- if(!$isExport) {
161
- // show pretty error
162
- var_dump($export->getError());
163
- } else {
164
- wp_redirect(get_permalink( 'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' ));
165
- }
166
-
167
- die();
168
- }
169
- }
170
- add_action( 'init', 'rbs_gallery_export' );
171
- }
172
- /* backup export - */
148
 
149
  /* Init function */
150
 
151
+
152
+ rbs_gallery_include('backup\backup.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/rbs_gallery_list.php CHANGED
@@ -58,12 +58,6 @@ if(!function_exists('add_rbs_table_columns')){
58
 
59
  if(!function_exists('rbs_gallery_robogalleryList')){
60
  function rbs_gallery_robogalleryList (){
61
- echo '<script type="text/javascript">
62
- jQuery(document).ready( function($){
63
- //var rbsButtonBackup =
64
- jQuery("<a href=\''.admin_url().'edit.php?post_type=robo_gallery_table&page=robo-gallery-backup\' id=\'rbs_backup_button\' class=\'page-title-action\'>'.__('Backup Gallery').'</a>").appendTo(jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1")[0]);
65
- });
66
- </script>';
67
  wp_enqueue_style ('robo-gallery-list', ROBO_GALLERY_URL.'css/admin/list.css', array( ), ROBO_GALLERY_VERSION );
68
  }
69
  add_action( 'in_admin_header', 'rbs_gallery_robogalleryList' );
58
 
59
  if(!function_exists('rbs_gallery_robogalleryList')){
60
  function rbs_gallery_robogalleryList (){
 
 
 
 
 
 
61
  wp_enqueue_style ('robo-gallery-list', ROBO_GALLERY_URL.'css/admin/list.css', array( ), ROBO_GALLERY_VERSION );
62
  }
63
  add_action( 'in_admin_header', 'rbs_gallery_robogalleryList' );
includes/rbs_gallery_menu.php CHANGED
@@ -54,16 +54,6 @@ if(!function_exists('robo_gallery_settings_submenu_page')){
54
 
55
  }
56
 
57
- if(!function_exists('robo_gallery_backup_submenu_page')){
58
- add_action('admin_menu', 'robo_gallery_backup_submenu_page');
59
- function robo_gallery_backup_submenu_page() {
60
- add_submenu_page( 'edit.php?post_type=robo_gallery_table', 'Backup', 'Backup', 'manage_options', 'robo-gallery-backup', 'robo_gallery_backup_submenu_page_render' );
61
- }
62
- function robo_gallery_backup_submenu_page_render(){
63
- rbs_gallery_include('rbs_gallery_backup.php', ROBO_GALLERY_INCLUDES_PATH);
64
- }
65
- }
66
-
67
  if(!function_exists('robo_gallery_about_submenu_page')){
68
  add_action('admin_menu', 'robo_gallery_about_submenu_page');
69
  function robo_gallery_about_submenu_page() {
54
 
55
  }
56
 
 
 
 
 
 
 
 
 
 
 
57
  if(!function_exists('robo_gallery_about_submenu_page')){
58
  add_action('admin_menu', 'robo_gallery_about_submenu_page');
59
  function robo_gallery_about_submenu_page() {
js/admin/{backup.js → extensions/backup/backup.js} RENAMED
File without changes
js/admin/extensions/backup/index.html ADDED
File without changes
js/admin/extensions/backup/rbs_backup_button.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ * Robo Gallery
3
+ * Version: 1.0
4
+ * By Robosoft
5
+ *
6
+ * Contact: http://robosoft.co
7
+ * Created: 2015
8
+ * Licensed under the GPLv2 license - http://opensource.org/licenses/gpl-2.0.php
9
+ *
10
+ * Copyright (c) 2014-2015, Robosoft. All rights reserved.
11
+ * Available only in http://robosoft.co/
12
+ */
13
+
14
+ jQuery(document).ready( function($){
15
+ //var rbsButtonBackup =
16
+ jQuery("<a href='edit.php?post_type=robo_gallery_table&page=robo-gallery-backup' id='rbs_backup_button' class='page-title-action'>Backup Gallery</a>").appendTo(jQuery(".wp-admin.edit-php.post-type-robo_gallery_table .wrap h1")[0]);
17
+ });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.robosoft.co/robogallery
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
- Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -186,41 +186,37 @@ Just install it using regular Wordpress plugins installing mechanism. If you ha
186
 
187
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
188
 
189
- = Do you have some conflict in gallery back end? =
190
-
191
- If you have some conflict in gallery back end you can sort it with new compatibility option. You can switch between standard and alternative jquery library. This modes implemented to help you to avoid any conflicts with another libraries from wordpress themes or another plugin.
192
-
193
  = How to upload images to the gallery? =
194
 
195
  When you create new gallery or open already existent gallery for edit on the right side of the edit gallery section you'll see gallery images manager button. When you open gallery images manager you'll be able there edit all gallery images. Upload, edit or delete. In gallery images manager you can use drag and drop gallery images upload tool.
196
 
197
- = Where specify description of the gallery images? =
198
-
199
- When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
200
-
201
- = How to change quality of the gallery thumbnails? =
202
 
203
- Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
204
 
205
  = How to define video for some gallery image? =
206
 
207
  Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
208
 
209
- = How to define size of the gallery images thumbnails? =
210
 
211
- Our gallery is fully responsive and gallery thumbnails size depend of a lot of factors. Gallery calculate thumbnails automatically depend of the general gallery size and gallery layout settings. First of all you can define ratio values for gallery thumbnails. Size of the thumbnails could be selected from standard pre-defined wordpress sizes: thumbnail, medium, large, full
212
 
213
- = How to change font size of the gallery image caption? =
214
 
215
- In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
 
 
 
 
216
 
217
  = Is it possible create gallery in Wordpress post with Gallery? =
218
 
219
  Yes, you can insert gallery into post with shortcode tag
220
 
221
- = How to change text below image in lightbox ? =
222
 
223
- In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
224
 
225
  = How to insert gallery into Wordpress page or post? =
226
 
@@ -230,13 +226,9 @@ When you create gallery in plugin galleries manager you can go to the post or pa
230
 
231
  When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have custom effect field where you can select different hover effect for every image of the gallery.
232
 
233
- = How to hide titles of the gallery image in lightbox ? =
234
-
235
- In lightbox section of the gallery settings you can find hide title option. If you enable it titles of the gallery images in lightbox will be turned off.
236
-
237
- = What can I do if some gallery interface elements in backend do not work properly? =
238
 
239
- If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
240
 
241
  = Do you have some limits for images amount in gallery? =
242
 
@@ -245,35 +237,31 @@ No, we don't have any limits for amount of the images in gallery
245
  = How to generate shortcode for Wordpress page, post or widget? =
246
 
247
  First of all you can copy shortcode inside gallery settings , in separate shortcode block. Another way generate shortcode directly in post or page edit mode. You can find wizard button on top of content editor
248
-
 
 
 
 
249
  = Do you have some limit for images size in gallery? =
250
 
251
  No, we don't have any limits for image size in our gallery.
252
 
 
 
 
 
253
  = Is it possible to have different settings for hover and static interface elements? =
254
 
255
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
256
 
257
- = How to customize border of the gallery thumbnails? =
258
-
259
- In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
260
-
261
  = How to change spacing between thumbnails? =
262
 
263
  In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
264
 
265
- = Is it possible to create direct link on the front end to the gallery? =
266
-
267
- Yes, you can use generated direct link inside particular gallery settings
268
-
269
  = How to customize border of the gallery thumbnails? =
270
 
271
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
272
 
273
- = How to change amount of images loading on gallery page? =
274
-
275
- In gallery settings we have few options which makes you able to select amount of the images for the first load and for load more action
276
-
277
  = Which parameters I can change for the gallery thumbnails borders and shadows? =
278
 
279
  You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
@@ -282,49 +270,61 @@ You can change size, color and style of gallery thumbnails borders and shadows.
282
 
283
  In gallery settings you can find images manager where you can change settings of every image, one of the option it's caption of the image
284
 
285
- = How to make gallery thumbnails with rounded corners? =
286
 
287
- In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
288
 
289
- = How to make shadow for the gallery thumbnails? =
290
 
291
- Shadows of the thumbnails you can customize in gallery settings. With gallery settings you can change size , color and position of the gallery thumbnails shadow
292
 
293
  = How to customize hover effect? =
294
 
295
  In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
296
 
 
 
 
 
297
  = How to use multi-category functionality of the gallery? =
298
 
299
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
300
 
301
- = How to change color of the gallery interface elements? =
302
 
303
- Color of every gallery front end interface element could be changed changed in admin section with color selector. There you can change colors of the menu buttons, load more button, borders, shadows, backgrounds and etc.
304
 
305
- = How to set description text below image in the lightbox? =
306
 
307
- In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
 
 
 
 
 
 
 
 
308
 
309
  = How I can create custom (grid) layout of the thumbnails? =
310
 
311
  In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
312
 
313
- = How to load more function work? =
314
 
315
- In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
316
 
317
- = Is it possible to use HTML in image description ? =
318
 
319
- Yes, you can use HTML tags inside gallery image description field
320
 
321
- = How to change ordering of the gallery images? =
322
 
323
- When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
324
 
325
- = How to change font color of the gallery image caption? =
326
 
327
- In gallery settings you can enable custom caption settings where you can customize font color and see results in live preview
328
 
329
  = Do you have fade effect for the thumbnails hover? =
330
 
@@ -338,14 +338,6 @@ In gallery settings you can find option to enable/disable lazy load, also there
338
 
339
  Every gallery image have additional fields where you can define custom link, title, description. All this options you can find in gallery images manager, inside general gallery settings
340
 
341
- = How to customize gallery layouts for different screen resolutions? =
342
-
343
- In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
344
-
345
- = How to change font color of the gallery image description text? =
346
-
347
- In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of the text
348
-
349
  = Is it possible to turn off border of the gallery thumbnails? =
350
 
351
  Yes, in gallery options you can turn on/off border option
@@ -354,6 +346,14 @@ Yes, in gallery options you can turn on/off border option
354
 
355
  When you open gallery images manager you'll find there image edit mode where you can crop source image
356
 
 
 
 
 
 
 
 
 
357
  = How to change color of the gallery thumbnails border? =
358
 
359
  When you enable border in gallery settings you will see multiply options for customization of the border. One from this options it's border color. You can select color using color selector
@@ -361,6 +361,10 @@ When you enable border in gallery settings you will see multiply options for cus
361
  = How to define custom ALT for gallery image? =
362
 
363
  When you open gallery images manager you can define alt for every gallery image there
 
 
 
 
364
 
365
  = Where to change settings of the image of the gallery? =
366
 
@@ -372,11 +376,7 @@ When you open gallery images manager you'll find there image edit mode where you
372
 
373
  = How to add text before and after gallery? =
374
 
375
- In gallery settings you can find before/after text gallery field. This fields support HTML tags.
376
-
377
- = How to customize gallery hover effect shutter layout? =
378
-
379
- In gallery hover settings you can enable template where you can fully customize layout of the shutter content using HTML tags, text and images. In template we have implemented some build in tags which going to help you to build in some gallery images elements into hover
380
 
381
  = Is it possible to create target blank links? =
382
 
@@ -398,10 +398,6 @@ In gallery settings you can enable custom caption settings where you can customi
398
 
399
  In our gallery you can define different amount of the columns for the images thumbnails and every gallery image could have different width which measuring by columns of the images thumbnails. For example you can define 2 column size for the image 1 and 3 columns size for image 5 but the rest of the gallery images could stay with default one column value in images settings.
400
 
401
- = How to change transparency of the gallery thumbnails border? =
402
-
403
- When you enable border in gallery settings you will see multiply options for customization of the border. When you open color selector you can also select some transparency value there
404
-
405
  = Is it possible to change transparency of the hover shutter? =
406
 
407
  Yes, it's possible to change transparency in gallery settings
@@ -410,6 +406,10 @@ Yes, it's possible to change transparency in gallery settings
410
 
411
  In gallery hover settings we implemented full set of configuration settings of the buttons. You can change icon, style size, colors for static and hovered buttons. You can select icon with build in wizard
412
 
 
 
 
 
413
  = How to change style of the gallery thumbnails border? =
414
 
415
  When you enable border in gallery settings you will see multiply options for customization of the border. One of the options it's border style. You can select one value from pre-defined list
@@ -466,10 +466,6 @@ When you open gallery settings you can find there gallery lightbox settings bloc
466
 
467
  Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block, where you can change color of the gallery lightbox background.
468
 
469
- = Where to change font color of the gallery lightbox text? =
470
-
471
- When you open gallery settings you can find there gallery lightbox settings block, where you can gallery lightbox text color using color selector.
472
-
473
  = How to delete title, author, date above the gallery of the gallery post? =
474
 
475
  Actually settings of all this main elements of the gallery post is inherited from the the general Wordpress posts settings. So you can turn in off the same way as it's manage in general posts, not only gallery posts.
@@ -478,18 +474,22 @@ Actually settings of all this main elements of the gallery post is inherited fro
478
 
479
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
480
 
481
- = Which permissions do I need to have on server for proper gallery installation? =
482
 
483
- Our gallery do not require any special permissions for installation of the gallery or during upload of the gallery images. All requirements are basic: our gallery have the same requirements as Wordpress have.
484
 
485
- = How to insert text before/after gallery? =
486
 
487
- In our gallery we implemented few additional options which help you to add some text with HTML before/after gallery on your page. IN gallery settings you can find pre/post text fields where you can define some description text for the gallery. This gallery fields support HTML, so you can customize this text with HTML tags or css styles.
488
 
489
  = How to change amount of the columns in gallery layout? =
490
 
491
  In gallery general settings you can find gallery thumbnails columns options which could depend of the device screen size. You can define different gallery columns amount for different resolution.
492
 
 
 
 
 
493
  = Is it possible to change color of the hovered image in gallery? =
494
 
495
  Yes, you can easily change color of the hovered image in gallery in backend. In gallery settings we build-in comfortable color selector which make you able to change color of the gallery interface elements.
@@ -576,6 +576,12 @@ If any problem occurs, please contact us.
576
 
577
  == Changelog ==
578
 
 
 
 
 
 
 
579
  = 1.7.3 =
580
  * Backend interface of the backup functionality updates
581
  * Added new backup management button on gallery listing section
@@ -871,6 +877,9 @@ If any problem occurs, please contact us.
871
 
872
  == Upgrade Notice ==
873
 
 
 
 
874
  = 1.7.3 =
875
  Backend interface of the backup functionality updates, added new backup management button on gallery listing section
876
 
4
  Tags: gallery, add gallery, photo gallery, images gallery, media gallery, responsive gallery, gallery image, gallery lightbox, Polaroid gallery, Gallery Plugin, plugin gallery, video gallery, gallery shortcode, responsive images gallery, website gallery, widget gallery, wordpress gallery, wordpress gallery plugin, wordpress photo gallery plugin, wp gallery, wp gallery plugin, wp gallery plugins, multi categories gallery, add galleries, add picture, add pictures, album, best gallery, best gallery plugin, responsive galleries, mobile gallery, mobile galleries, responsive photo gallery, best portfolio, easy media gallery, filterable gallery, filterable portfolio, foto, fotoalbum, fotogalerie, sortable gallery, sortable galleries, free photo gallery, fullscreen gallery, galary, galeri, galerie, galerij, galery, gallary, Galleria, gallerie, galleries, gallery decription, gallery slider, gelary, gellary, gellery, google, grid gallery, image, image album, image gallery, image gallery plugin, image lightbox, image slider, image slideshow, images, jquery, jquery gallery, links, media, multiple pictures, page, pagination gallery, pagination portfolio, photo, photo album, photo albums, photoalbum, photogallery, photos, photoset, picture, pictures, plugin, plugin for gallery, portfolio, portfolio gallery, portfolio plugin, Post, posts, responsive slideshow, responsive wordpress photo gallery, seo image, slide show, slideshow, thumbnail, upload images, upload photos, batch upload, multiply images upload, view images, view pictures, wordpress portfolio plugin, multi-categories gallery, multi categories galleries, robo gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.4
7
+ Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
186
 
187
  You can use any standard file type in our gallery: png, jpg, jpeg, gif
188
 
 
 
 
 
189
  = How to upload images to the gallery? =
190
 
191
  When you create new gallery or open already existent gallery for edit on the right side of the edit gallery section you'll see gallery images manager button. When you open gallery images manager you'll be able there edit all gallery images. Upload, edit or delete. In gallery images manager you can use drag and drop gallery images upload tool.
192
 
193
+ = Do you have some conflict in gallery back end? =
 
 
 
 
194
 
195
+ If you have some conflict in gallery back end you can sort it with new compatibility option. You can switch between standard and alternative jquery library. This modes implemented to help you to avoid any conflicts with another libraries from wordpress themes or another plugin.
196
 
197
  = How to define video for some gallery image? =
198
 
199
  Every gallery image have additional fields where you can define custom link, title, description. One of the link option allow you to define link type, for example video link. All this options you can find in gallery images manager, inside general gallery settings
200
 
201
+ = Where specify description of the gallery images? =
202
 
203
+ When you open gallery settings inside you'll find images manager section. Images manager make you able to add/edit descriptions and titles of every gallery image
204
 
205
+ = How to change text below image in lightbox ? =
206
 
207
+ In gallery setting you can select which text show below image in gallery lightbox. You can select Caption, Title or image Description as source for this field in gallery lightbox.
208
+
209
+ = How to change quality of the gallery thumbnails? =
210
+
211
+ Quality of the gallery thumbnails could be easily changed in gallery size option / thumbnails options / source
212
 
213
  = Is it possible create gallery in Wordpress post with Gallery? =
214
 
215
  Yes, you can insert gallery into post with shortcode tag
216
 
217
+ = How to define size of the gallery images thumbnails? =
218
 
219
+ Our gallery is fully responsive and gallery thumbnails size depend of a lot of factors. Gallery calculate thumbnails automatically depend of the general gallery size and gallery layout settings. First of all you can define ratio values for gallery thumbnails. Size of the thumbnails could be selected from standard pre-defined wordpress sizes: thumbnail, medium, large, full
220
 
221
  = How to insert gallery into Wordpress page or post? =
222
 
226
 
227
  When you open gallery media manager you'll see there list of the gallery images. Click on some image and on the right side you'll see images options. Every gallery image have custom effect field where you can select different hover effect for every image of the gallery.
228
 
229
+ = How to change font size of the gallery image caption? =
 
 
 
 
230
 
231
+ In gallery settings you can enable custom caption settings where you can customize font size and see results in live preview
232
 
233
  = Do you have some limits for images amount in gallery? =
234
 
237
  = How to generate shortcode for Wordpress page, post or widget? =
238
 
239
  First of all you can copy shortcode inside gallery settings , in separate shortcode block. Another way generate shortcode directly in post or page edit mode. You can find wizard button on top of content editor
240
+
241
+ = Is it possible to create direct link on the front end to the gallery? =
242
+
243
+ Yes, you can use generated direct link inside particular gallery settings
244
+
245
  = Do you have some limit for images size in gallery? =
246
 
247
  No, we don't have any limits for image size in our gallery.
248
 
249
+ = How to hide titles of the gallery image in lightbox ? =
250
+
251
+ In lightbox section of the gallery settings you can find hide title option. If you enable it titles of the gallery images in lightbox will be turned off.
252
+
253
  = Is it possible to have different settings for hover and static interface elements? =
254
 
255
  Yes, you can have different styles of the borders and shadows for static and hovered gallery thumbnails.
256
 
 
 
 
 
257
  = How to change spacing between thumbnails? =
258
 
259
  In gallery settings you can define horizontal and vertical paddings between gallery thumbnails
260
 
 
 
 
 
261
  = How to customize border of the gallery thumbnails? =
262
 
263
  In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
264
 
 
 
 
 
265
  = Which parameters I can change for the gallery thumbnails borders and shadows? =
266
 
267
  You can change size, color and style of gallery thumbnails borders and shadows. Also you can define different parameters for static and hovered status
270
 
271
  In gallery settings you can find images manager where you can change settings of every image, one of the option it's caption of the image
272
 
273
+ = What can I do if some gallery interface elements in backend do not work properly? =
274
 
275
+ If you have some conflict in gallery back end you can sort it with new compatibility option. If combo box element do not drop down you can switch between classic and modern style, as result you can avoid conflict with another code.
276
 
277
+ = How to customize border of the gallery thumbnails? =
278
 
279
+ In gallery settings you can find general settings section where you can turn on/off thumbnails border. Also you can customize there style of the border, namely width, color and style of the thumbnail borders
280
 
281
  = How to customize hover effect? =
282
 
283
  In gallery settings you can find hover type options. In settings of the gallery you can select custom hover effect settings or even template for customization of the gallery thumbnails hover
284
 
285
+ = How to make gallery thumbnails with rounded corners? =
286
+
287
+ In gallery settings you can find section rounds where with special options you can define radius for the gallery thumbnails
288
+
289
  = How to use multi-category functionality of the gallery? =
290
 
291
  In our gallery we implemented multi-categories structure. Every gallery category could have child and parent gallery, which you can manually define in gallery settings
292
 
293
+ = How to change amount of images loading on gallery page? =
294
 
295
+ In gallery settings we have few options which makes you able to select amount of the images for the first load and for load more action
296
 
297
+ = How to make shadow for the gallery thumbnails? =
298
 
299
+ Shadows of the thumbnails you can customize in gallery settings. With gallery settings you can change size , color and position of the gallery thumbnails shadow
300
+
301
+ = How to change ordering of the gallery images? =
302
+
303
+ When you open gallery for edit you can find there images manager where you can change ordering of the gallery images
304
+
305
+ = How to change font color of the gallery image caption? =
306
+
307
+ In gallery settings you can enable custom caption settings where you can customize font color and see results in live preview
308
 
309
  = How I can create custom (grid) layout of the thumbnails? =
310
 
311
  In our gallery we implemented layout based on columns amount. So you can general amount of the columns in your gallery grid and define custom amount of the columns which every image gonna take. As result you can customize layout of the gallery grid
312
 
313
+ = How to change color of the gallery interface elements? =
314
 
315
+ Color of every gallery front end interface element could be changed changed in admin section with color selector. There you can change colors of the menu buttons, load more button, borders, shadows, backgrounds and etc.
316
 
317
+ = How to set description text below image in the lightbox? =
318
 
319
+ In gallery settings you can find lightbox section and if you need to show description of the images below images in the lightbox you need to select text source in lightbox settings from defined values.
320
 
321
+ = Is it possible to use HTML in image description ? =
322
 
323
+ Yes, you can use HTML tags inside gallery image description field
324
 
325
+ = How to load more function work? =
326
 
327
+ In gallery admin section you can define amount of the images for the first load and after click on load more button. Load more it's such google gallery style pagination functionality which make you able to limit amount of the images for the first load
328
 
329
  = Do you have fade effect for the thumbnails hover? =
330
 
338
 
339
  Every gallery image have additional fields where you can define custom link, title, description. All this options you can find in gallery images manager, inside general gallery settings
340
 
 
 
 
 
 
 
 
 
341
  = Is it possible to turn off border of the gallery thumbnails? =
342
 
343
  Yes, in gallery options you can turn on/off border option
346
 
347
  When you open gallery images manager you'll find there image edit mode where you can crop source image
348
 
349
+ = How to customize gallery layouts for different screen resolutions? =
350
+
351
+ In admin section of the gallery you'll find columns options which provide you advanced customization options for different resolutions. You can define some static size or auto size for every resolution.
352
+
353
+ = How to change font color of the gallery image description text? =
354
+
355
+ In gallery settings, when enabled custom hover settings you can customize style of the gallery image description text. In this settings you can change color of the text
356
+
357
  = How to change color of the gallery thumbnails border? =
358
 
359
  When you enable border in gallery settings you will see multiply options for customization of the border. One from this options it's border color. You can select color using color selector
361
  = How to define custom ALT for gallery image? =
362
 
363
  When you open gallery images manager you can define alt for every gallery image there
364
+
365
+ = How to customize gallery hover effect shutter layout? =
366
+
367
+ In gallery hover settings you can enable template where you can fully customize layout of the shutter content using HTML tags, text and images. In template we have implemented some build in tags which going to help you to build in some gallery images elements into hover
368
 
369
  = Where to change settings of the image of the gallery? =
370
 
376
 
377
  = How to add text before and after gallery? =
378
 
379
+ In gallery settings you can find before/after text gallery field. This fields support HTML tags.
 
 
 
 
380
 
381
  = Is it possible to create target blank links? =
382
 
398
 
399
  In our gallery you can define different amount of the columns for the images thumbnails and every gallery image could have different width which measuring by columns of the images thumbnails. For example you can define 2 column size for the image 1 and 3 columns size for image 5 but the rest of the gallery images could stay with default one column value in images settings.
400
 
 
 
 
 
401
  = Is it possible to change transparency of the hover shutter? =
402
 
403
  Yes, it's possible to change transparency in gallery settings
406
 
407
  In gallery hover settings we implemented full set of configuration settings of the buttons. You can change icon, style size, colors for static and hovered buttons. You can select icon with build in wizard
408
 
409
+ = How to change transparency of the gallery thumbnails border? =
410
+
411
+ When you enable border in gallery settings you will see multiply options for customization of the border. When you open color selector you can also select some transparency value there
412
+
413
  = How to change style of the gallery thumbnails border? =
414
 
415
  When you enable border in gallery settings you will see multiply options for customization of the border. One of the options it's border style. You can select one value from pre-defined list
466
 
467
  Yes, you can change background color of the gallery lightbox. When you open gallery settings you can find there gallery lightbox settings block, where you can change color of the gallery lightbox background.
468
 
 
 
 
 
469
  = How to delete title, author, date above the gallery of the gallery post? =
470
 
471
  Actually settings of all this main elements of the gallery post is inherited from the the general Wordpress posts settings. So you can turn in off the same way as it's manage in general posts, not only gallery posts.
474
 
475
  In our gallery we have 2 buttons for every gallery thumbnail. Zoom button and link button.
476
 
477
+ = Where to change font color of the gallery lightbox text? =
478
 
479
+ When you open gallery settings you can find there gallery lightbox settings block, where you can gallery lightbox text color using color selector.
480
 
481
+ = Which permissions do I need to have on server for proper gallery installation? =
482
 
483
+ Our gallery do not require any special permissions for installation of the gallery or during upload of the gallery images. All requirements are basic: our gallery have the same requirements as Wordpress have.
484
 
485
  = How to change amount of the columns in gallery layout? =
486
 
487
  In gallery general settings you can find gallery thumbnails columns options which could depend of the device screen size. You can define different gallery columns amount for different resolution.
488
 
489
+ = How to insert text before/after gallery? =
490
+
491
+ In our gallery we implemented few additional options which help you to add some text with HTML before/after gallery on your page. IN gallery settings you can find pre/post text fields where you can define some description text for the gallery. This gallery fields support HTML, so you can customize this text with HTML tags or css styles.
492
+
493
  = Is it possible to change color of the hovered image in gallery? =
494
 
495
  Yes, you can easily change color of the hovered image in gallery in backend. In gallery settings we build-in comfortable color selector which make you able to change color of the gallery interface elements.
576
 
577
  == Changelog ==
578
 
579
+ = 1.7.4 =
580
+ * Updated code structure of the backup module
581
+ * Fixed backup import security issues
582
+ * Fixed backup export security issues
583
+ * Optimized import/export code algorithm
584
+
585
  = 1.7.3 =
586
  * Backend interface of the backup functionality updates
587
  * Added new backup management button on gallery listing section
877
 
878
  == Upgrade Notice ==
879
 
880
+ = 1.7.4 =
881
+ Updated code structure of the backup module, fixed backup import/export security issues, optimized code algorithm
882
+
883
  = 1.7.3 =
884
  Backend interface of the backup functionality updates, added new backup management button on gallery listing section
885
 
robogallery.php CHANGED
@@ -8,7 +8,7 @@
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
- * Version: 1.7.3
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
@@ -19,7 +19,7 @@
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
- define("ROBO_GALLERY_VERSION", '1.7.3');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25
 
8
  * Plugin Name: Robo Gallery
9
  * Plugin URI: http://robosoft.co/robogallery
10
  * Description: A responsive, easy and elegant way to show gallery.
11
+ * Version: 1.7.4
12
  * Author: RoboSoft (c)
13
  * Author URI: http://robosoft.co/robogallery
14
  * License: GPL-2.0+
19
 
20
  if ( ! defined( 'WPINC' ) ) die;
21
  define("ROBO_GALLERY", 1);
22
+ define("ROBO_GALLERY_VERSION", '1.7.4');
23
  define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
24
  define("ROBO_GALLERY_SPECIAL", 0);
25