Version Description
- Updated multisite functionality
Download this release
Release Info
Developer | robosoft |
Plugin | Gallery – Photo Gallery and Images Gallery |
Version | 2.2.0 |
Comparing to | |
See all releases |
Code changes from version 2.1.11 to 2.2.0
- gallery/css/gallery.utils.css +4 -0
- includes/frontend/rbs_gallery_class.php +5 -0
- includes/options/rbs_gallery_options_lightbox.php +2 -1
- includes/rbs_gallery_init.php +66 -59
- readme.txt +13 -1
- robogallery.php +2 -2
gallery/css/gallery.utils.css
CHANGED
@@ -319,4 +319,8 @@
|
|
319 |
.rbs_desc_panel_green{
|
320 |
color: white;
|
321 |
background-color: rgba(46, 215, 35,0.8);
|
|
|
|
|
|
|
|
|
322 |
}
|
319 |
.rbs_desc_panel_green{
|
320 |
color: white;
|
321 |
background-color: rgba(46, 215, 35,0.8);
|
322 |
+
}
|
323 |
+
.rbs_desc_panel_pink{
|
324 |
+
color: white;
|
325 |
+
background-color: rgba(185, 35, 215,0.8);
|
326 |
}
|
includes/frontend/rbs_gallery_class.php
CHANGED
@@ -79,6 +79,8 @@ class roboGallery extends roboGalleryUtils{
|
|
79 |
public $touch = 0;
|
80 |
|
81 |
public $debug = 0;
|
|
|
|
|
82 |
|
83 |
function updateCountView(){
|
84 |
if(!$this->id) return ;
|
@@ -538,6 +540,7 @@ class roboGallery extends roboGalleryUtils{
|
|
538 |
$lineBrake="\n";
|
539 |
}
|
540 |
|
|
|
541 |
$this->returnHtml .=
|
542 |
'<div class="rbs-img category'.$img['catid'].'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>'.$lineBrake.$newLine
|
543 |
.'<div class="rbs-img-image '.(!$this->thumbClick?' rbs-lightbox':'').'" '.$descBoxData.' '.( isset($img['effect']) && $img['effect'] ?' data-overlay-effect="'.$img['effect'].'" ' :'').' >'.$lineBrake.$newLine.$newLine
|
@@ -549,6 +552,7 @@ class roboGallery extends roboGalleryUtils{
|
|
549 |
.'</div>'.$lineBrake;
|
550 |
}
|
551 |
}
|
|
|
552 |
if( $this->returnHtml ){
|
553 |
$this->returnHtml =
|
554 |
'<div style="'.$this->rbsMainDivStyle.'">'
|
@@ -559,6 +563,7 @@ class roboGallery extends roboGalleryUtils{
|
|
559 |
.'</div>'
|
560 |
.($aftertext?'<div>'.$aftertext.'</div>':'')
|
561 |
.'</div>'
|
|
|
562 |
.'<script>'.$this->compileJavaScript().'</script>';
|
563 |
|
564 |
if(count($this->scriptList)){
|
79 |
public $touch = 0;
|
80 |
|
81 |
public $debug = 0;
|
82 |
+
|
83 |
+
public $seoContent = '';
|
84 |
|
85 |
function updateCountView(){
|
86 |
if(!$this->id) return ;
|
540 |
$lineBrake="\n";
|
541 |
}
|
542 |
|
543 |
+
|
544 |
$this->returnHtml .=
|
545 |
'<div class="rbs-img category'.$img['catid'].'" '.( isset($img['col']) && $img['col'] ?' data-columns="'.$img['col'].'" ' :'').'>'.$lineBrake.$newLine
|
546 |
.'<div class="rbs-img-image '.(!$this->thumbClick?' rbs-lightbox':'').'" '.$descBoxData.' '.( isset($img['effect']) && $img['effect'] ?' data-overlay-effect="'.$img['effect'].'" ' :'').' >'.$lineBrake.$newLine.$newLine
|
552 |
.'</div>'.$lineBrake;
|
553 |
}
|
554 |
}
|
555 |
+
|
556 |
if( $this->returnHtml ){
|
557 |
$this->returnHtml =
|
558 |
'<div style="'.$this->rbsMainDivStyle.'">'
|
563 |
.'</div>'
|
564 |
.($aftertext?'<div>'.$aftertext.'</div>':'')
|
565 |
.'</div>'
|
566 |
+
.$this->seoContent
|
567 |
.'<script>'.$this->compileJavaScript().'</script>';
|
568 |
|
569 |
if(count($this->scriptList)){
|
includes/options/rbs_gallery_options_lightbox.php
CHANGED
@@ -174,7 +174,8 @@ $lightbox_group->add_field( array(
|
|
174 |
'dark' => __( 'Dark' , 'rbs_gallery' ),
|
175 |
'red' => __( 'Red' , 'rbs_gallery' ),
|
176 |
'blue' => __( 'Blue' , 'rbs_gallery' ),
|
177 |
-
'green'
|
|
|
178 |
),
|
179 |
'after_row' => '</div>',
|
180 |
));
|
174 |
'dark' => __( 'Dark' , 'rbs_gallery' ),
|
175 |
'red' => __( 'Red' , 'rbs_gallery' ),
|
176 |
'blue' => __( 'Blue' , 'rbs_gallery' ),
|
177 |
+
'green' => __( 'Green' , 'rbs_gallery' ),
|
178 |
+
'pink' => __( 'Pink' , 'rbs_gallery' ),
|
179 |
),
|
180 |
'after_row' => '</div>',
|
181 |
));
|
includes/rbs_gallery_init.php
CHANGED
@@ -92,73 +92,80 @@ function create_post_type_robo_gallery() {
|
|
92 |
}
|
93 |
add_action( 'init', 'create_post_type_robo_gallery' );
|
94 |
|
95 |
-
if(
|
96 |
-
|
97 |
-
}
|
98 |
|
99 |
-
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST &&
|
100 |
-
|
101 |
-
}
|
102 |
|
103 |
-
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST &&
|
104 |
-
|
105 |
-
|
106 |
-
$n=1;
|
107 |
-
$my_wp_query = new WP_Query();
|
108 |
-
++$n;
|
109 |
-
$all_wp_pages = $my_wp_query->query(array( 'post_type' => ROBO_GALLERY_TYPE_POST ));
|
110 |
-
if( count($all_wp_pages) >= ++$n ) wp_redirect( "edit.php?post_type=robo_gallery_table&showproinfo=1" );
|
111 |
-
}
|
112 |
-
add_action( 'load-post-new.php', 'rbs_gallery_redirect' );
|
113 |
-
}
|
114 |
-
}
|
115 |
|
116 |
-
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST &&
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
'
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
|
146 |
-
/* only backend */
|
147 |
-
if( is_admin() ) rbs_gallery_include(array('rbs_gallery_media.php', 'rbs_gallery_menu.php' ), ROBO_GALLERY_INCLUDES_PATH);
|
148 |
|
149 |
-
/* Frontend*/
|
150 |
-
rbs_gallery_include(array('rbs_gallery_source.php', 'rbs_gallery_helper.php', 'rbs_gallery_class_utils.php', 'rbs_gallery_class.php', 'rbs_gallery_frontend.php' ), ROBO_GALLERY_FRONTEND_PATH);
|
151 |
|
152 |
-
/* AJAX */
|
153 |
-
rbs_gallery_include('rbs_gallery_ajax.php', ROBO_GALLERY_INCLUDES_PATH);
|
154 |
-
rbs_gallery_include('rbs_create_post_ajax.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
155 |
|
156 |
-
/* Init function */
|
157 |
|
158 |
-
rbs_gallery_include('backup/backup.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
159 |
|
160 |
-
if( !get_option(ROBO_GALLERY_PREFIX.'categoryShow', 0) ){
|
161 |
-
|
|
|
|
|
|
|
|
|
162 |
}
|
163 |
|
164 |
-
|
92 |
}
|
93 |
add_action( 'init', 'create_post_type_robo_gallery' );
|
94 |
|
95 |
+
if(!function_exists('rbs_gallery_main_init')){
|
96 |
+
function rbs_gallery_main_init() {
|
|
|
97 |
|
98 |
+
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && rbs_gallery_is_edit_page('list') ){
|
99 |
+
rbs_gallery_include('rbs_gallery_list.php', ROBO_GALLERY_INCLUDES_PATH);
|
100 |
+
}
|
101 |
|
102 |
+
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && !ROBO_GALLERY_PRO ){
|
103 |
+
rbs_gallery_include('rbs_gallery_topblock.php', ROBO_GALLERY_INCLUDES_PATH);
|
104 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
|
106 |
+
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && rbs_gallery_is_edit_page('new') && !ROBO_GALLERY_PRO ){
|
107 |
+
if(!function_exists('rbs_gallery_redirect')){
|
108 |
+
function rbs_gallery_redirect (){
|
109 |
+
$n=1;
|
110 |
+
$my_wp_query = new WP_Query();
|
111 |
+
++$n;
|
112 |
+
$all_wp_pages = $my_wp_query->query(array( 'post_type' => ROBO_GALLERY_TYPE_POST ));
|
113 |
+
if( count($all_wp_pages) >= ++$n ) wp_redirect( "edit.php?post_type=robo_gallery_table&showproinfo=1" );
|
114 |
+
}
|
115 |
+
add_action( 'load-post-new.php', 'rbs_gallery_redirect' );
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && ( rbs_gallery_is_edit_page('new') || rbs_gallery_is_edit_page('edit') ) ){
|
120 |
+
|
121 |
+
// Adding the Metabox class
|
122 |
+
rbs_gallery_include('init.php', ROBO_GALLERY_CMB_PATH);
|
123 |
+
|
124 |
+
/* Field */
|
125 |
+
rbs_gallery_include( array(
|
126 |
+
'toolbox/cmb-field-toolbox.php',
|
127 |
+
'gallery/cmb-field-gallery.php',
|
128 |
+
'size/cmb-field-size.php',
|
129 |
+
'loading/cmb-field-loading.php',
|
130 |
+
'color/jw-cmb2-rgba-colorpicker.php',
|
131 |
+
'border/cmb-field-border.php',
|
132 |
+
'shadow/cmb-field-shadow.php',
|
133 |
+
'switch/cmb-field-switch.php',
|
134 |
+
'rbsselect/cmb-field-rbsselect.php',
|
135 |
+
'slider/cmb-field-slider.php',
|
136 |
+
'colums/cmb-field-colums.php',
|
137 |
+
'rbstext/cmb-field-rbstext.php',
|
138 |
+
'rbstextarea/cmb-field-rbstextarea.php',
|
139 |
+
'font/cmb-field-font.php',
|
140 |
+
'rbsgallery/cmb-field-rbsgallery.php',
|
141 |
+
'multisize/rbs-multiSize.php',
|
142 |
+
'rbsradiobutton/rbs-radiobutton.php',
|
143 |
+
'padding/rbs-padding.php',
|
144 |
+
), ROBO_GALLERY_CMB_FILEDS_PATH);
|
145 |
+
|
146 |
+
rbs_gallery_include('rbs_gallery_edit.php', ROBO_GALLERY_INCLUDES_PATH);
|
147 |
+
}
|
148 |
|
149 |
+
/* only backend */
|
150 |
+
if( is_admin() ) rbs_gallery_include(array('rbs_gallery_media.php', 'rbs_gallery_menu.php' ), ROBO_GALLERY_INCLUDES_PATH);
|
151 |
|
152 |
+
/* Frontend*/
|
153 |
+
rbs_gallery_include(array('rbs_gallery_source.php', 'rbs_gallery_helper.php', 'rbs_gallery_class_utils.php', 'rbs_gallery_class.php', 'rbs_gallery_frontend.php' ), ROBO_GALLERY_FRONTEND_PATH);
|
154 |
|
155 |
+
/* AJAX */
|
156 |
+
rbs_gallery_include('rbs_gallery_ajax.php', ROBO_GALLERY_INCLUDES_PATH);
|
157 |
+
rbs_gallery_include('rbs_create_post_ajax.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
158 |
|
159 |
+
/* Init function */
|
160 |
|
161 |
+
rbs_gallery_include('backup/backup.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
162 |
|
163 |
+
if( !get_option(ROBO_GALLERY_PREFIX.'categoryShow', 0) ){
|
164 |
+
rbs_gallery_include('category/category.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
165 |
+
}
|
166 |
+
|
167 |
+
rbs_gallery_include('stats/stats.init.php', ROBO_GALLERY_EXTENSIONS_PATH);
|
168 |
+
}
|
169 |
}
|
170 |
|
171 |
+
add_action( 'plugins_loaded', 'rbs_gallery_main_init' );
|
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.5
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -90,6 +90,9 @@ This interface gallery button have wide range of the front end interface customi
|
|
90 |
* **Video Links** - in gallery media manager every image have separate option for video link. Gallery video links could be specified to to the youtube or vimeo.
|
91 |
* **Images Custom Ratio** - in gallery settings you can define custom ratio for every gallery. Every gallery could have personal settings for this option.
|
92 |
* **Thumbnails Fade Effect** - in gallery implemented Fade effect for the hover of the gallery thumbnails. With such effect gallery hover animation become more attractive and eye catching.
|
|
|
|
|
|
|
93 |
|
94 |
|
95 |
= Gallery Pro Key Features =
|
@@ -151,6 +154,9 @@ This interface gallery button have wide range of the front end interface customi
|
|
151 |
* **Images Custom Ratio** - in gallery settings you can define custom ratio for every gallery. Every gallery could have personal settings for this option.
|
152 |
* **Advanced gallery columns** - in gallery implemented advanced customizable thumbnails columns management. In gallery settings you can define different amount of thumbnails columns for different screen size/resolution.
|
153 |
* **Thumbnails Fade Effect** - in gallery implemented Fade effect for the hover of the gallery thumbnails. With such effect gallery hover animation become more attractive and eye catching.
|
|
|
|
|
|
|
154 |
|
155 |
= Gallery Advantages =
|
156 |
|
@@ -693,6 +699,9 @@ If any problem occurs, please contact us.
|
|
693 |
|
694 |
== Changelog ==
|
695 |
|
|
|
|
|
|
|
696 |
= 2.1.11 =
|
697 |
* New lightbox description panel style, added new Green theme
|
698 |
|
@@ -1310,6 +1319,9 @@ If any problem occurs, please contact us.
|
|
1310 |
|
1311 |
== Upgrade Notice ==
|
1312 |
|
|
|
|
|
|
|
1313 |
= 2.1.11 =
|
1314 |
New lightbox description panel style, added new Green theme
|
1315 |
|
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.5
|
7 |
+
Stable tag: 2.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
90 |
* **Video Links** - in gallery media manager every image have separate option for video link. Gallery video links could be specified to to the youtube or vimeo.
|
91 |
* **Images Custom Ratio** - in gallery settings you can define custom ratio for every gallery. Every gallery could have personal settings for this option.
|
92 |
* **Thumbnails Fade Effect** - in gallery implemented Fade effect for the hover of the gallery thumbnails. With such effect gallery hover animation become more attractive and eye catching.
|
93 |
+
* **Multisite Support** - in gallery implemented multisite support. You can install gallery in admin dashboard and enable plugin for all child blogs.
|
94 |
+
* **Advanced Load more function** - in gallery implemented very attractive navigation mode. Auto pre loading images like endless list of the gallery images. This gallery load more function have alot of customization options to make it work the way you need.
|
95 |
+
|
96 |
|
97 |
|
98 |
= Gallery Pro Key Features =
|
154 |
* **Images Custom Ratio** - in gallery settings you can define custom ratio for every gallery. Every gallery could have personal settings for this option.
|
155 |
* **Advanced gallery columns** - in gallery implemented advanced customizable thumbnails columns management. In gallery settings you can define different amount of thumbnails columns for different screen size/resolution.
|
156 |
* **Thumbnails Fade Effect** - in gallery implemented Fade effect for the hover of the gallery thumbnails. With such effect gallery hover animation become more attractive and eye catching.
|
157 |
+
* **Multisite Support** - in gallery implemented multisite support. You can install gallery in admin dashboard and enable plugin for all child blogs.
|
158 |
+
* **Advanced Load more function** - in gallery implemented very attractive navigation mode. Auto pre loading images like endless list of the gallery images. This gallery load more function have alot of customization options to make it work the way you need.
|
159 |
+
|
160 |
|
161 |
= Gallery Advantages =
|
162 |
|
699 |
|
700 |
== Changelog ==
|
701 |
|
702 |
+
= 2.2.0 =
|
703 |
+
* Updated multisite functionality
|
704 |
+
|
705 |
= 2.1.11 =
|
706 |
* New lightbox description panel style, added new Green theme
|
707 |
|
1319 |
|
1320 |
== Upgrade Notice ==
|
1321 |
|
1322 |
+
= 2.2.0 =
|
1323 |
+
Updated multisite functionality
|
1324 |
+
|
1325 |
= 2.1.11 =
|
1326 |
New lightbox description panel style, added new Green theme
|
1327 |
|
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: 2.
|
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", '2.
|
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: 2.2.0
|
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", '2.2.0');
|
23 |
define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
|
24 |
define("ROBO_GALLERY_SPECIAL", 0);
|
25 |
|