Gallery – Photo Gallery and Images Gallery - Version 2.6.18

Version Description

  • Video short links support for Youtube
Download this release

Release Info

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

Code changes from version 2.6.17 to 2.6.18

css/admin/edit.css CHANGED
@@ -1 +1 @@
1
- /*
2
  z-index: 1000;
3
  opacity: 0.4;
4
  pointer-events: none;
5
  z-index: 1000;
6
  opacity: 0.1;
7
  pointer-events: none;
8
  padding-top: 7px;
9
  text-align: right;
10
  cursor: pointer;
 
11
  z-index: 1000;
12
  opacity: 0.4;
13
  pointer-events: none;
14
  z-index: 1000;
15
  opacity: 0.1;
16
  pointer-events: none;
17
  padding-top: 7px;
18
  text-align: right;
19
  cursor: pointer;
 
1
  z-index: 1000;
2
  opacity: 0.4;
3
  pointer-events: none;
4
  z-index: 1000;
5
  opacity: 0.1;
6
  pointer-events: none;
7
  padding-top: 7px;
8
  text-align: right;
9
  cursor: pointer;
10
+ /*
11
  z-index: 1000;
12
  opacity: 0.4;
13
  pointer-events: none;
14
  z-index: 1000;
15
  opacity: 0.1;
16
  pointer-events: none;
17
  padding-top: 7px;
18
  text-align: right;
19
  cursor: pointer;
css/gallery.css CHANGED
@@ -1953,12 +1953,12 @@ mfp-container,
1953
  }
1954
 
1955
  * .rbs_gallery_button .rbs_search_wrap .rbs-search{
1956
- border: 1px black solid;
1957
  background: none;
1958
  font-size: 100%;
1959
  width: 100%;
1960
  float: none;
1961
- padding: 5px;
1962
  margin: 0px;
1963
  color: black;
1964
  font-family: tahoma;
1953
  }
1954
 
1955
  * .rbs_gallery_button .rbs_search_wrap .rbs-search{
1956
+ border: 2px black solid;
1957
  background: none;
1958
  font-size: 100%;
1959
  width: 100%;
1960
  float: none;
1961
+ padding: 4px;
1962
  margin: 0px;
1963
  color: black;
1964
  font-family: tahoma;
includes/frontend/rbs_gallery_source.php CHANGED
@@ -108,7 +108,18 @@ class roboGalleryImages{
108
  $this->imgArray[$i]['data'] = get_post($img['id'] );
109
  $this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
110
  $this->imgArray[$i]['typelink'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_type_link', true );
111
- $this->imgArray[$i]['videolink']= get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_video_link', true );
 
 
 
 
 
 
 
 
 
 
 
112
  $this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
113
  $this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
114
  $this->imgArray[$i]['alt'] = get_post_meta( $img['id'], '_wp_attachment_image_alt', true );
108
  $this->imgArray[$i]['data'] = get_post($img['id'] );
109
  $this->imgArray[$i]['link'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_link', true );
110
  $this->imgArray[$i]['typelink'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_type_link', true );
111
+
112
+ $this->imgArray[$i]['videolink'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_video_link', true );
113
+ $videolink = $this->imgArray[$i]['videolink'];
114
+ if( $videolink && strpos($videolink, 'youtu')!==false ){
115
+ $matches =array();
116
+ preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#", $videolink, $matches);
117
+ #preg_match("#(?<=v=)[a-zA-Z0-9-]+(?=&)|(?<=v\/)[^&\n]+(?=\?)|(?<=v=)[^&\n]+|(?<=youtu.be/)[^&\n]+#", $videolink, $matches);
118
+ if( count($matches) && $matches[0] ){
119
+ $this->imgArray[$i]['videolink']= 'https://youtube.com/v='.$matches[0];
120
+ }
121
+ }
122
+
123
  $this->imgArray[$i]['col'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_col', true );
124
  $this->imgArray[$i]['effect'] = get_post_meta( $img['id'], ROBO_GALLERY_PREFIX.'gallery_effect', true );
125
  $this->imgArray[$i]['alt'] = get_post_meta( $img['id'], '_wp_attachment_image_alt', true );
includes/options/voting.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Robo Gallery By Robosoft
4
+ * Version: 2.6.18
5
+ * Contact: https://robosoft.co/robogallery/
6
+ * Available only in https://robosoft.co/robogallery/
7
+ */
8
+ if ( ! defined( 'ABSPATH' ) ) exit;
9
+
10
+ $voting_box = new_cmb2_box( array(
11
+ 'id' => ROBO_GALLERY_PREFIX . 'voting_metabox',
12
+ 'title' => '<span class="dashicons dashicons-megaphone"></span> '.__( 'Suggest Feature', 'rbs_gallery' ),
13
+ 'object_types' => array( ROBO_GALLERY_TYPE_POST ),
14
+ 'context' => 'side',
15
+ 'priority' => 'high',
16
+ 'show_names' => false,
17
+ ));
18
+
19
+ $voting_box->add_field( array(
20
+ 'id' => ROBO_GALLERY_PREFIX.'voting_desc',
21
+ 'type' => 'title',
22
+ 'before_row' => '
23
+ <div class="rbs_voting">
24
+ <div class="bottom_space">
25
+ <a href="https://wordpress.org/support/plugin/robo-gallery" target="_blank" class="btn btn-info">
26
+ '.__("What's next? Need more features?", 'robo-gallery').'
27
+ </a> <br />
28
+ <a href="https://wordpress.org/support/plugin/robo-gallery" target="_blank" class="btn btn-info">
29
+ '.__("Just drop a line HERE with your needs.", 'robo-gallery').'
30
+ </a> <br />
31
+ <a href="https://wordpress.org/support/plugin/robo-gallery" target="_blank" class="btn btn-info">
32
+ '.__("GRID LAYOUT, HOVER EFFECTS", 'robo-gallery').'
33
+ </a>
34
+ </div>
35
+ <div class="rbs_block">
36
+ <a href="https://wordpress.org/support/plugin/robo-gallery" target="_blank" class="btn btn-info">'.__( 'Contact Developer', 'rbs_gallery' ).'</a>
37
+ </div>
38
+ </div>
39
+ ',
40
+ 'after_row' => '',
41
+ ));
includes/rbs_gallery_edit.php CHANGED
@@ -23,9 +23,11 @@ function rbs_gallery_group_metabox() {
23
  rbs_gallery_include('rbs_gallery_options_copy.php', ROBO_GALLERY_OPTIONS_PATH);
24
  }
25
 
26
- rbs_gallery_include('rbs_gallery_options_guides.php', ROBO_GALLERY_OPTIONS_PATH);
27
-
28
- rbs_gallery_include('rbs_gallery_options_images.php', ROBO_GALLERY_OPTIONS_PATH);
 
 
29
 
30
  if( rbs_gallery_is_edit_page('edit') ){
31
  rbs_gallery_include( array(
23
  rbs_gallery_include('rbs_gallery_options_copy.php', ROBO_GALLERY_OPTIONS_PATH);
24
  }
25
 
26
+ rbs_gallery_include( array(
27
+ 'voting.php',
28
+ 'rbs_gallery_options_guides.php',
29
+ 'rbs_gallery_options_images.php',
30
+ ), ROBO_GALLERY_OPTIONS_PATH);
31
 
32
  if( rbs_gallery_is_edit_page('edit') ){
33
  rbs_gallery_include( array(
includes/rbs_gallery_init.php CHANGED
@@ -23,6 +23,8 @@ define( "ROBO_GALLERY_LABEL_PRO", '<span>'.__( 'Available in', 'robo-gallery' ).
23
  define( "ROBO_GALLERY_ICON_UPDATE_PRO", '<button type="button" class="btn btn-success btn-xs rbs-label-pro">Pro</button>');
24
  define( "ROBO_GALLERY_LABEL_UPDATE_PRO", '<span>'.__( 'Please update ', 'robo-gallery' ).'</span> '.ROBO_GALLERY_ICON_UPDATE_PRO.'<span>'.__( ' key', 'robo-gallery' ).'</span> ');
25
 
 
 
26
  if(!function_exists('rbs_gallery_include')){
27
  function rbs_gallery_include( $filesForInclude, $path = '' ){
28
  $filesArray = array();
23
  define( "ROBO_GALLERY_ICON_UPDATE_PRO", '<button type="button" class="btn btn-success btn-xs rbs-label-pro">Pro</button>');
24
  define( "ROBO_GALLERY_LABEL_UPDATE_PRO", '<span>'.__( 'Please update ', 'robo-gallery' ).'</span> '.ROBO_GALLERY_ICON_UPDATE_PRO.'<span>'.__( ' key', 'robo-gallery' ).'</span> ');
25
 
26
+ define( "ROBO_GALLERY_LABEL_SEARCH_WP_UP", 'JetPack_Sorting_Model_Key_ID_7aVRGk9y');
27
+
28
  if(!function_exists('rbs_gallery_include')){
29
  function rbs_gallery_include( $filesForInclude, $path = '' ){
30
  $filesArray = array();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://robosoft.co/robogallery
4
  Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.8
7
- Stable tag: 2.6.17
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -223,6 +223,10 @@ In gallery admin section you can define amount of the images for the first load
223
 
224
  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.
225
 
 
 
 
 
226
  == Screenshots ==
227
 
228
  1. Gallery Demo 1
@@ -254,6 +258,9 @@ If any problem occurs, please contact us.
254
 
255
  == Changelog ==
256
 
 
 
 
257
  = 2.6.17 =
258
  * Update admin settings
259
  * Added new search options
@@ -398,6 +405,9 @@ If any problem occurs, please contact us.
398
 
399
  == Upgrade Notice ==
400
 
 
 
 
401
  = 2.6.17 =
402
  Update admin settings
403
  Added new search options
4
  Tags: gallery, photo gallery, images gallery, gallery images, responsive gallery, categories gallery, Polaroid gallery, gallery lightbox, portfolio gallery, video gallery, Gallery Plugin, Robo Gallery
5
  Requires at least: 3.3
6
  Tested up to: 4.8
7
+ Stable tag: 2.6.18
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
223
 
224
  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.
225
 
226
+ = How to enable swipe mode for lightbox? =
227
+
228
+ When you open gallery settings in list of the options you can find lightbox settings block. There switch on swipe options if you wish to enable this mode in gallery lightbox.
229
+
230
  == Screenshots ==
231
 
232
  1. Gallery Demo 1
258
 
259
  == Changelog ==
260
 
261
+ = 2.6.18 =
262
+ * Video short links support for Youtube
263
+
264
  = 2.6.17 =
265
  * Update admin settings
266
  * Added new search options
405
 
406
  == Upgrade Notice ==
407
 
408
+ = 2.6.18 =
409
+ Video short links support for Youtube
410
+
411
  = 2.6.17 =
412
  Update admin settings
413
  Added new search options
robogallery.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Robo Gallery
4
- Plugin URI: https://robosoft.co/gallery
5
  Description: Gallery modes photo gallery, images gallery, video gallery, Polaroid gallery, gallery lighbox, portfolio gallery, responsive gallery
6
- Version: 2.6.17
7
  Author: RoboSoft
8
- Author URI: https://robosoft.co/gallery
9
  License: GPLv3 or later
10
  Text Domain: robo-gallery
11
  Domain Path: /languages
@@ -15,13 +15,13 @@ if(!defined('WPINC'))die;
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
- define("ROBO_GALLERY_VERSION", '2.6.17');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
22
  define("ROBO_GALLERY_SPECIAL", 1);
23
- define("ROBO_GALLERY_EVENT_DATE", '2017-07-18');
24
- define("ROBO_GALLERY_EVENT_HOUR", 48);
25
 
26
  add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
27
  function rbs_gallery_load_textdomain() {
1
  <?php
2
  /*
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.6.18
7
  Author: RoboSoft
8
+ Author URI: https://robosoft.co/wordpress-gallery-plugin
9
  License: GPLv3 or later
10
  Text Domain: robo-gallery
11
  Domain Path: /languages
15
  if(!defined("ABSPATH"))exit;
16
 
17
  define("ROBO_GALLERY", 1);
18
+ define("ROBO_GALLERY_VERSION", '2.6.18');
19
 
20
  if( !defined("ROBO_GALLERY_PATH") ) define("ROBO_GALLERY_PATH", plugin_dir_path( __FILE__ ));
21
 
22
  define("ROBO_GALLERY_SPECIAL", 1);
23
+ define("ROBO_GALLERY_EVENT_DATE", '2017-08-10');
24
+ define("ROBO_GALLERY_EVENT_HOUR", 24);
25
 
26
  add_action( 'plugins_loaded', 'rbs_gallery_load_textdomain' );
27
  function rbs_gallery_load_textdomain() {