Gallery – Photo Gallery and Images Gallery - Version 2.8.15

Version Description

  • Added Gutenberg editor support
  • Added Gutenberg block
  • Small code fixes
Download this release

Release Info

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

Code changes from version 2.8.14 to 2.8.15

app/app.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  /*
4
  * Robo Gallery
5
- * Version: 2.8.15 - 24146
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.16 - 59839
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.15 - 24146
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
6
  * By Robosoft
7
  *
8
  * Contact: https://robosoft.co/robogallery/
2
 
3
  /*
4
  * Robo Gallery
5
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
 
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
1
  /*
2
  * Robo Gallery
3
+ * Version: 2.8.16 - 59839
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.15 - 24146
5
  * By Robosoft
6
  *
7
  * Contact: https://robosoft.co/robogallery/
1
  <?php
2
  /*
3
  * Robo Gallery
4
+ * Version: 2.8.16 - 59839
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.15 - 24146
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
1
  /*
2
  * Robo Gallery
3
+ * Version: 2.8.16 - 59839
4
  * By Robosoft
5
  *
6
  * Contact: https://robosoft.co/robogallery/
includes/extensions/block/dist/blocks.build.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){function t(l){if(n[l])return n[l].exports;var o=n[l]={i:l,l:!1,exports:{}};return e[l].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,l){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:l})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";var l=n(2),o=(n.n(l),n(3));Object(l.registerBlockType)("robo/block-robo-gallery",o.a)},function(e,t){e.exports=wp.blocks},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var l=n(4),o=(n.n(l),n(5)),r=(n.n(o),n(6)),a=(n.n(r),n(7)),i=n(9),c=wp.i18n.__,u=wp.editor,s=u.InspectorControls,d=u.BlockControls,f=wp.components,p=f.PanelBody,w=f.PanelRow,m=(f.SelectControl,f.Dashicon,f.Toolbar),y=f.Button,b=f.Icon,g=(f.Tooltip,f.IconButton);window.roboGalleryList=[],window.roboGalleryLoad=!1,window.roboGalleryLoading=!1,window.roboGalleryLoadedCallBack=[];var h={title:c("Robo Gallery"),icon:{background:"#2c8ded",foreground:"#fff",src:"format-gallery"},category:"common",keywords:[c("gallery"),c("photo image gallery block"),c("robo gallery ")],attributes:{galleryid:{type:"string",default:0},forseReload:{type:"bool",default:!1},loaded:{type:"bool",default:!1}},edit:function(e){function t(){var e="post-new.php?post_type="+E;window.open(e,"_blank")}var n=e.attributes,l=e.setAttributes,o=e.className,r=e.isSelected,u=n.galleryid,f=n.forseReload,h=n.loaded,E="robo_gallery_table",v=function(e){l({galleryid:e})},_=function(){l({forseReload:!1,loaded:!1}),l({forseReload:!1,loaded:!0})},G=function(){l({forseReload:!0,loaded:!1})},k=function(){if(L){var e="post.php?post="+u+"&action=edit";window.open(e,"_blank")}else alert(c("Select Gallery first"))},L=u>0,C=function(e){return e.title+" [ID:"+u+"]"},R=function(){if(L)for(var e=0;e<window.roboGalleryList.length;e++)if(window.roboGalleryList[e].id==u)return C(window.roboGalleryList[e]);return""},O=function(){return!r&&!L&&wp.element.createElement(y,{isDefault:!0,isLarge:!0},c("Select Gallery")," ")},j=function(){return!r&&L&&wp.element.createElement(y,{isDefault:!0,isLarge:!0},c("Select Other Gallery")," ")},S=function(){return wp.element.createElement(y,{isDefault:!0,isLarge:!0,onClick:t}," ",c("Create Gallery")," ")},D=function(){return wp.element.createElement("div",{className:"robo-gallery_block_buttons"},wp.element.createElement(O,null),wp.element.createElement(j,null),wp.element.createElement(S,null))},P=function(){return!r&&!L&&wp.element.createElement("p",null,c("Click to select Robo gallery from list or create new Robo gallery item"))},x=function(){return L&&wp.element.createElement("p",null,c("Selected Robo Gallery"),": ",wp.element.createElement("strong",null,R()))},T=function(){return r&&!L&&wp.element.createElement("p",null,"OR")},I=function(){return wp.element.createElement("div",{className:"robo-gallery_block_div"},wp.element.createElement(P,null),wp.element.createElement(x,null),wp.element.createElement(T,null),wp.element.createElement(D,null))},B=function(){return r&&wp.element.createElement(i.a,{galleryid:u,forseReload:f,hideLabel:!0,loaded:h,onGalleryIdChange:v})},N=function(){return L&&wp.element.createElement(g,{className:"robo-gallery_icon",label:c("Edit gallery"),icon:"edit",onClick:k})},q=function(){return r&&wp.element.createElement(d,null,wp.element.createElement(m,null,wp.element.createElement(N,null),wp.element.createElement(g,{className:"robo-gallery_icon",label:c("Add gallery"),icon:"plus",onClick:t}),wp.element.createElement(g,{className:"robo-gallery_icon robo-gallery_icon-reload",label:c("Reload galleries"),icon:"update",onClick:G})))},M=function(){return!!r&&wp.element.createElement(s,{key:"inspector"},wp.element.createElement(p,{title:c("Robo Gallery Block Settings"),initialOpen:!0},wp.element.createElement(i.a,{galleryid:u,forseReload:f,loaded:h,onGalleryIdChange:v}),wp.element.createElement(w,null,wp.element.createElement(y,{isLink:!0,onClick:G},c("Refresh Gallery List"))),wp.element.createElement(w,null,L&&wp.element.createElement(y,{isDefault:!0,isSmall:!0,onClick:k},c("Edit Gallery")),wp.element.createElement(y,{isDefault:!0,isSmall:!0,onClick:t},c("Create Gallery")))))};return[wp.element.createElement(a.a,{forseReload:f,onDataLoaded:_}),wp.element.createElement(q,null),wp.element.createElement(M,null),wp.element.createElement("div",{className:o},wp.element.createElement("h2",{className:"robo-logo"},wp.element.createElement(b,{size:"25",icon:"format-gallery"})," ",c("Robo Gallery")),wp.element.createElement(B,null),wp.element.createElement(I,null))]},save:function(e){return null}}},function(e,t){},function(e,t){},function(e,t){e.exports=wp.element},function(e,t,n){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=n(8),i=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),c=function(e){function t(e){l(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleDataLoaded=n.handleDataLoaded.bind(n),n}return r(t,e),i(t,[{key:"handleDataLoaded",value:function(e){this.props.onDataLoaded(e)}},{key:"readConfig",value:function(e){var t=this;1!=e&&(e=!1),Object(a.a)(e,function(){t.handleDataLoaded(!0)})}},{key:"componentDidMount",value:function(){this.readConfig(!1)}},{key:"componentWillReceiveProps",value:function(e){e.forseReload&&e.forseReload!=this.props.forseReload&&this.readConfig(!0)}},{key:"render",value:function(){return null}}]),t}(React.Component);t.a=c},function(e,t,n){"use strict";var l=wp.i18n.__,o=function(e,t){if(null==e&&(e=!1),window.roboGalleryLoad&&!e)return void t();if(window.roboGalleryLoadedCallBack.push(t),!window.roboGalleryLoading){window.roboGalleryLoading=!0;new Promise(function(e,t){var n=new XMLHttpRequest;n.onreadystatechange=function(){if(4===n.readyState)if(n.status>=200&&n.status<300){var o=JSON.parse(n.responseText);window.roboGalleryList=o,window.roboGalleryList.unshift({id:0,title:l("Select gallery")}),e(!0)}else window.roboGalleryLoad=!1,window.roboGalleryLoadError=!0,t({status:n.status,statusText:n.statusText})};var o=ajaxurl+"?action=robo_gallery_get_gallery_json";n.open("GET",o,!0),n.setRequestHeader("X_REQUESTED_WITH","xmlhttprequest"),n.send()}).then(function(e){window.roboGalleryLoading=!1,window.roboGalleryLoad=!0;for(var t=window.roboGalleryLoadedCallBack.length,n=0;n<t;n++)window.roboGalleryLoadedCallBack[n]();window.roboGalleryLoadedCallBack=[]}).catch(function(e){console.log("Robo GalleryConfig Request is wrong",e)})}};t.a=o},function(e,t,n){"use strict";function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var l=t[n];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,n,l){return n&&e(t.prototype,n),l&&e(t,l),t}}(),i=wp.components.SelectControl,c=wp.i18n.__,u=function(e){function t(e){l(this,t);var n=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleGalleryIdChange=n.handleGalleryIdChange.bind(n),n}return r(t,e),a(t,[{key:"handleGalleryIdChange",value:function(e){this.props.onGalleryIdChange(e)}},{key:"render",value:function(){var e=window.roboGalleryList;return wp.element.createElement(i,{label:this.props.hideLabel?"":c("Gallery List"),onChange:this.handleGalleryIdChange,value:this.props.galleryid,options:e.map(function(e){return{label:e.title,value:e.id}})})}}]),t}(React.Component);t.a=u}]);
includes/extensions/block/dist/blocks.editor.build.css ADDED
@@ -0,0 +1 @@
 
1
+ .wp-block-robo-block-robo-gallery{max-width:100%;margin-bottom:1em;margin-left:0;margin-right:0;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:1em;min-height:200px;width:100%;text-align:center;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;font-size:13px;background:rgba(139,139,150,0.1)}div.robo-gallery_block_buttons button{margin-right:10px}div.wp-block-robo-block-robo-gallery h2.robo-logo{font-weight:bold;font-size:26px;font-size:1.625rem;color:#666;clear:both;line-height:1.4;margin:0 0 0.75em;padding:1em 0 0}div.wp-block-robo-block-robo-gallery .robo-gallery-block_div{margin:5px 0}
includes/extensions/block/dist/blocks.style.build.css ADDED
File without changes
includes/extensions/block/index.html ADDED
File without changes
includes/extensions/block/src/index.html ADDED
File without changes
includes/extensions/block/src/init.php ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! defined( 'ABSPATH' ) ) {
4
+ exit;
5
+ }
6
+
7
+ /*add_filter( 'block_categories', 'block_robo_gallery_add_category', 10, 2 );
8
+
9
+ function block_robo_gallery_add_category( $categories, $post ) {
10
+ return array_merge(
11
+ $categories,
12
+ array(
13
+ array(
14
+ 'slug' => 'robo-blocks',
15
+ 'title' => __( 'Robo Gallery Blocks', 'robo-gallery' ),
16
+ 'icon' => 'wordpress',
17
+ ),
18
+ )
19
+ );
20
+ }*/
21
+
22
+ function block_robo_gallery_block_assets(){
23
+ wp_enqueue_style(
24
+ 'block_robo_gallery-style-css',
25
+ plugins_url( 'dist/blocks.style.build.css', dirname( __FILE__ ) ),
26
+ array( 'wp-editor' ),
27
+ ROBO_GALLERY_VERSION
28
+ );
29
+ }
30
+ add_action( 'enqueue_block_assets', 'block_robo_gallery_block_assets' );
31
+
32
+ function block_robo_gallery_editor_assets(){
33
+
34
+ wp_enqueue_script(
35
+ 'block_robo_gallery-block-js',
36
+ plugins_url( '/dist/blocks.build.js', dirname( __FILE__ ) ),
37
+ array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor' ),
38
+ ROBO_GALLERY_VERSION,
39
+ true // Enqueue the script in the footer.
40
+ );
41
+
42
+ wp_enqueue_style(
43
+ 'block_robo_gallery-block-editor-css',
44
+ plugins_url( 'dist/blocks.editor.build.css', dirname( __FILE__ ) ),
45
+ array( 'wp-edit-blocks' ),
46
+ ROBO_GALLERY_VERSION
47
+ );
48
+ }
49
+
50
+ add_action( 'enqueue_block_editor_assets', 'block_robo_gallery_editor_assets' );
51
+
52
+ register_block_type( 'robo/block-robo-gallery', array(
53
+ 'render_callback' => 'roboGalleryRenderGutenbergBlock',
54
+ 'attributes' => array(
55
+ 'galleryid' => array(
56
+ 'type' => 'number',
57
+ 'default' => 99,
58
+ ),
59
+ ),
60
+ ) );
61
+
62
+ function roboGalleryRenderGutenbergBlock( $attributes, $content ) {
63
+
64
+ if( is_array($attributes) && isset($attributes['galleryid']) && $attributes['galleryid']>0 ){
65
+ if(class_exists('roboGallery')){
66
+ $attr = array('id'=>$attributes['galleryid']);
67
+ $gallery = new roboGallery($attr);
68
+ return $gallery->getGallery();
69
+ } else return 'Robo Gallery:: Error 999';
70
+
71
+ } else {
72
+ return sprintf(
73
+ '<div><strong>%s</strong>: %s</div>',
74
+ 'Robo Gallery',
75
+ __("You didn't select any Robo Gallery item in editor. Please select one from the list or create new gallery",'robo-gallery')
76
+ ) ;
77
+ }
78
+ }
79
+
80
+ add_action( 'wp_ajax_robo_gallery_get_gallery_json','roboGalleryGetGalleryListJson' );
81
+
82
+ function roboGalleryGetGalleryListJson() {
83
+
84
+ $query = new WP_Query(
85
+ array(
86
+ 'post_type' => ROBO_GALLERY_TYPE_POST,
87
+ 'post_status' => array( 'publish', 'private', 'future' )
88
+ )
89
+ );
90
+
91
+ $posts = $query->posts;
92
+
93
+ $returnJson = array();
94
+
95
+ if( is_array($posts) && count($posts)){
96
+ foreach($posts as $post) {
97
+ $returnJson[] = array(
98
+ 'id' => $post->ID,
99
+ 'title' => esc_js($post->post_title),
100
+ 'parent' => $post->post_parent,
101
+ );
102
+ }
103
+ }
104
+
105
+ wp_send_json( $returnJson );
106
+ wp_die();
107
+ }
includes/frontend/rbs_gallery_class.php CHANGED
@@ -308,6 +308,9 @@ class roboGallery extends roboGalleryUtils{
308
  $width = 240; $height = 140;
309
 
310
  $size = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'thumb-size-options', true );
 
 
 
311
  if( count($size) ){
312
  if( isset($size['width']) ) $width = (int) $size['width']; else $width = 240;
313
  if( isset($size['height']) ) $height = (int) $size['height']; else $height = 140;
@@ -503,7 +506,7 @@ class roboGallery extends roboGalleryUtils{
503
 
504
  $widthSize = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'width-size', true );
505
  $widthSizeValue = '';
506
- if( count($widthSize) ){
507
  if( isset($widthSize['width']) ){
508
  $widthSizeValue = (int) $widthSize['width'];
509
  if($widthSizeValue){
308
  $width = 240; $height = 140;
309
 
310
  $size = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'thumb-size-options', true );
311
+
312
+ if( !is_array($size) ) $size = array();
313
+
314
  if( count($size) ){
315
  if( isset($size['width']) ) $width = (int) $size['width']; else $width = 240;
316
  if( isset($size['height']) ) $height = (int) $size['height']; else $height = 140;
506
 
507
  $widthSize = get_post_meta( $this->id, ROBO_GALLERY_PREFIX.'width-size', true );
508
  $widthSizeValue = '';
509
+ if( is_array($widthSize) && count($widthSize) ){
510
  if( isset($widthSize['width']) ){
511
  $widthSizeValue = (int) $widthSize['width'];
512
  if($widthSizeValue){
includes/frontend/rbs_gallery_class_utils.php CHANGED
@@ -21,7 +21,7 @@ if( !ROBO_GALLERY_PRO || !class_exists('roboGalleryParent')){
21
  class roboGalleryUtils extends roboGalleryParent{
22
  function getTemplateItem( $item, $class = '', $template = '', $addClass = '' ){
23
  $retHtml = '';
24
- if(count($item)){
25
  if( isset($item['enabled']) && $item['enabled'] ){
26
  if(isset($item['fontSize'])) $this->{$class.'Style'} .= ' font-size:'. (int)$item['fontSize'].'px;';
27
 
21
  class roboGalleryUtils extends roboGalleryParent{
22
  function getTemplateItem( $item, $class = '', $template = '', $addClass = '' ){
23
  $retHtml = '';
24
+ if( is_array($item) && count($item)){
25
  if( isset($item['enabled']) && $item['enabled'] ){
26
  if(isset($item['fontSize'])) $this->{$class.'Style'} .= ' font-size:'. (int)$item['fontSize'].'px;';
27
 
includes/rbs_gallery_init.php CHANGED
@@ -160,6 +160,7 @@ if(!function_exists('rbs_gallery_main_init')){
160
  }
161
  }
162
 
 
163
  if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && ( rbs_gallery_is_edit_page('new') || rbs_gallery_is_edit_page('edit') ) ){
164
 
165
  // Adding the Metabox class
@@ -228,3 +229,4 @@ if(!function_exists('rbs_gallery_main_init')){
228
 
229
  add_action( 'plugins_loaded', 'rbs_gallery_main_init' );
230
 
 
160
  }
161
  }
162
 
163
+
164
  if( rbs_gallery_get_current_post_type() == ROBO_GALLERY_TYPE_POST && ( rbs_gallery_is_edit_page('new') || rbs_gallery_is_edit_page('edit') ) ){
165
 
166
  // Adding the Metabox class
229
 
230
  add_action( 'plugins_loaded', 'rbs_gallery_main_init' );
231
 
232
+ require_once ROBO_GALLERY_EXTENSIONS_PATH . 'block/src/init.php';
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: 5.0
7
- Stable tag: 2.8.14
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -202,6 +202,11 @@ If any problem occurs, please contact us.
202
 
203
  == Changelog ==
204
 
 
 
 
 
 
205
  = 2.8.14 =
206
  * Fixed lightbox background transporancy issue
207
  * Compatibility with Wordpress 5.0
@@ -474,6 +479,11 @@ If any problem occurs, please contact us.
474
 
475
  == Upgrade Notice ==
476
 
 
 
 
 
 
477
  = 2.8.14 =
478
  Fixed lightbox background transporancy issue
479
  Compatibility with Wordpress 5.0
4
  Tags: gallery, photo gallery, image gallery, wordpress gallery plugin, responsive gallery
5
  Requires at least: 3.3
6
  Tested up to: 5.0
7
+ Stable tag: 2.8.15
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.15 =
206
+ * Added Gutenberg editor support
207
+ * Added Gutenberg block
208
+ * Small code fixes
209
+
210
  = 2.8.14 =
211
  * Fixed lightbox background transporancy issue
212
  * Compatibility with Wordpress 5.0
479
 
480
  == Upgrade Notice ==
481
 
482
+ = 2.8.15 =
483
+ Added Gutenberg editor support
484
+ Added Gutenberg block
485
+ Small code fixes
486
+
487
  = 2.8.14 =
488
  Fixed lightbox background transporancy issue
489
  Compatibility with Wordpress 5.0
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.14
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.14');
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.15
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.15');
19
 
20
  define("ROBO_GALLERY_OPTIONS", 'rbs_opt_');
21