Slideshow Gallery - Version 1.7.3

Version Description

  • Removing Update Checker
Download this release

Release Info

Developer contrid
Plugin Icon 128x128 Slideshow Gallery
Version 1.7.3
Comparing to
See all releases

Code changes from version 1.7.2 to 1.7.3

includes/checkinit.php CHANGED
@@ -46,8 +46,8 @@ if (!class_exists('GalleryCheckinit')) {
46
  $this -> add_filter('default_hidden_columns', 'default_hidden_columns', 10, 2);
47
  $this -> add_filter('set-screen-option', 'set_screen_option', 10, 3);
48
  $this -> add_filter('removable_query_args', 'removable_query_args', 10, 1);
49
- $this -> add_filter('transient_update_plugins', 'check_update', 10, 1);
50
- $this -> add_filter('site_transient_update_plugins', 'check_update', 10, 1);
51
 
52
  // SSL stuff
53
  add_filter('upload_dir', array($this, 'replace_https'));
@@ -66,7 +66,7 @@ if (!class_exists('GalleryCheckinit')) {
66
  }
67
 
68
  function ci_get_serial() {
69
- return true;
70
 
71
  if ($serial = $this -> get_option('serialkey')) {
72
  return $serial;
@@ -76,7 +76,7 @@ if (!class_exists('GalleryCheckinit')) {
76
  }
77
 
78
  function ci_serial_valid() {
79
- return true;
80
 
81
  $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost';
82
  $port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80;
46
  $this -> add_filter('default_hidden_columns', 'default_hidden_columns', 10, 2);
47
  $this -> add_filter('set-screen-option', 'set_screen_option', 10, 3);
48
  $this -> add_filter('removable_query_args', 'removable_query_args', 10, 1);
49
+ //$this -> add_filter('transient_update_plugins', 'check_update', 10, 1);
50
+ //$this -> add_filter('site_transient_update_plugins', 'check_update', 10, 1);
51
 
52
  // SSL stuff
53
  add_filter('upload_dir', array($this, 'replace_https'));
66
  }
67
 
68
  function ci_get_serial() {
69
+ //return true;
70
 
71
  if ($serial = $this -> get_option('serialkey')) {
72
  return $serial;
76
  }
77
 
78
  function ci_serial_valid() {
79
+ //return true;
80
 
81
  $host = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost';
82
  $port = isset($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : 80;
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: contrid
3
  Donate link: https://tribulant.com/
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 3.1
6
- Tested up to: 5.6.2
7
- Stable tag: 1.7.2
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -175,6 +175,9 @@ There is an "Images Tester" utility under Slideshow > Settings on the right-hand
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 1.7.2 =
179
  * Removing serial key management for this free version
180
 
3
  Donate link: https://tribulant.com/
4
  Tags: wordpress plugins, wordpress slideshow gallery, slides, slideshow, image gallery, images, gallery, featured content, content gallery, javascript, javascript slideshow, slideshow gallery
5
  Requires at least: 3.1
6
+ Tested up to: 5.7.2
7
+ Stable tag: 1.7.3
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
175
 
176
  == Changelog ==
177
 
178
+ = 1.7.3 =
179
+ * Removing Update Checker
180
+
181
  = 1.7.2 =
182
  * Removing serial key management for this free version
183
 
slideshow-gallery-plugin.php CHANGED
@@ -4,7 +4,7 @@ if (!defined('ABSPATH')) exit; // Exit if accessed directly
4
 
5
  class GalleryPlugin extends GalleryCheckinit {
6
 
7
- var $version = '1.7.2';
8
  var $plugin_name;
9
  var $plugin_base;
10
  var $pre = 'Gallery';
@@ -114,11 +114,12 @@ class GalleryPlugin extends GalleryCheckinit {
114
  function after_plugin_row($plugin_name = null) {
115
  $key = $this -> get_option('serialkey');
116
  $update = $this -> vendor('update');
117
- $version_info = $update -> get_version_info();
118
  $hidemessage_upgradetopro = $this -> get_option('hidemessage_upgradetopro');
119
 
120
  if (empty($hidemessage_upgradetopro)) {
121
- if (!$this -> ci_serial_valid() && !empty($version_info) && $version_info['is_valid_key'] == "0") {
 
122
  echo '<tr id="slideshow-plugin-update-tr" class="plugin-update-tr">';
123
  echo '<td colspan="3" class="plugin-update">';
124
  echo '<div class="update-message">';
@@ -165,7 +166,7 @@ class GalleryPlugin extends GalleryCheckinit {
165
  return version_compare($this -> version, $version_info["version"], '<');
166
  }
167
 
168
- function check_update($option, $cache = true) {
169
  if ($update = $this -> vendor('update')) {
170
  $version_info = $update -> get_version_info($cache);
171
 
@@ -189,7 +190,7 @@ class GalleryPlugin extends GalleryCheckinit {
189
  }
190
 
191
  return $option;
192
- }
193
 
194
  function ajax_serialkey() {
195
  check_ajax_referer('serialkey', 'security');
@@ -387,6 +388,12 @@ class GalleryPlugin extends GalleryCheckinit {
387
  $version = "1.7.2";
388
  }
389
 
 
 
 
 
 
 
390
  //the current version is older.
391
  //lets update the database
392
  $this -> update_option('version', $version);
4
 
5
  class GalleryPlugin extends GalleryCheckinit {
6
 
7
+ var $version = '1.7.3';
8
  var $plugin_name;
9
  var $plugin_base;
10
  var $pre = 'Gallery';
114
  function after_plugin_row($plugin_name = null) {
115
  $key = $this -> get_option('serialkey');
116
  $update = $this -> vendor('update');
117
+ //$version_info = $update -> get_version_info();
118
  $hidemessage_upgradetopro = $this -> get_option('hidemessage_upgradetopro');
119
 
120
  if (empty($hidemessage_upgradetopro)) {
121
+ //if (!$this -> ci_serial_valid() && !empty($version_info) && $version_info['is_valid_key'] == "0") {
122
+ if (!$this -> ci_serial_valid()) {
123
  echo '<tr id="slideshow-plugin-update-tr" class="plugin-update-tr">';
124
  echo '<td colspan="3" class="plugin-update">';
125
  echo '<div class="update-message">';
166
  return version_compare($this -> version, $version_info["version"], '<');
167
  }
168
 
169
+ /*function check_update($option, $cache = true) {
170
  if ($update = $this -> vendor('update')) {
171
  $version_info = $update -> get_version_info($cache);
172
 
190
  }
191
 
192
  return $option;
193
+ }*/
194
 
195
  function ajax_serialkey() {
196
  check_ajax_referer('serialkey', 'security');
388
  $version = "1.7.2";
389
  }
390
 
391
+ if (version_compare($cur_version, "1.7.3") < 0) {
392
+ $this -> initialize_options();
393
+
394
+ $version = "1.7.3";
395
+ }
396
+
397
  //the current version is older.
398
  //lets update the database
399
  $this -> update_option('version', $version);
slideshow-gallery.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: https://tribulant.com/plugins/view/13/wordpress-slideshow-gallery
6
  Author: Tribulant
7
  Author URI: https://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. See the <a href="https://tribulant.com/docs/wordpress-slideshow-gallery/1758/wordpress-slideshow-gallery-plugin/" target="_blank">online documentation</a> for instructions on using and embedding slideshow galleries.
9
- Version: 1.7.2
10
  License: GNU General Public License v2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
@@ -104,12 +104,12 @@ if (!class_exists('SlideshowGallery')) {
104
  //$actions[] = '<a href="" onclick="jQuery.colorbox({href:ajaxurl + \'?action=slideshow_serialkey&security=' . wp_create_nonce('serialkey') . '\'}); return false;" id="slideshow_submitseriallink"><i class="fa fa-key fa-fw"></i> ' . __('Serial Key', 'slideshow-gallery') . '</a>';
105
  $actions[] = '<a href="' . admin_url('admin.php?page=' . $this -> sections -> settings) . '"><i class="fa fa-cog fa-fw"></i> ' . __('Settings', 'slideshow-gallery') . '</a>';
106
 
107
- if ($update = $this -> vendor('update')) {
108
  $version_info = $update -> get_version_info();
109
  if (!empty($version_info['dtype']) && $version_info['dtype'] == "single") {
110
  $actions[] = '<a href="https://tribulant.com/items/upgrade/' . $version_info['item_id'] . '" target="_blank"><i class="fa fa-level-up fa-fw"></i> ' . __('Upgrade', 'slideshow-gallery') . '</a>';
111
  }
112
- }
113
  }
114
 
115
  return $actions;
@@ -187,14 +187,15 @@ if (!class_exists('SlideshowGallery')) {
187
  }
188
 
189
  function admin_menu() {
190
- $update_icon = ($this -> has_update()) ? ' <span class="update-plugins count-1"><span class="update-count">1</span></span>' : '';
 
191
  $this -> check_roles();
192
 
193
  add_menu_page(__('Slideshow', 'slideshow-gallery'), __('Slideshow', 'slideshow-gallery') . $update_icon, 'slideshow_slides', $this -> sections -> slides, array($this, 'admin_slides'), false, "26.113");
194
  $this -> menus['slideshow-slides'] = add_submenu_page($this -> sections -> slides, __('Manage Slides', 'slideshow-gallery'), __('Manage Slides', 'slideshow-gallery'), 'slideshow_slides', $this -> sections -> slides, array($this, 'admin_slides'));
195
  $this -> menus['slideshow-galleries'] = add_submenu_page($this -> sections -> slides, __('Manage Galleries', 'slideshow-gallery'), __('Manage Galleries', 'slideshow-gallery'), 'slideshow_galleries', $this -> sections -> galleries, array($this, 'admin_galleries'));
196
  $this -> menus['slideshow-settings'] = add_submenu_page($this -> sections -> slides, __('Settings', 'slideshow-gallery'), __('Settings', 'slideshow-gallery'), 'slideshow_settings', $this -> sections -> settings, array($this, 'admin_settings'));
197
- $this -> menus['slideshow-settings-updates'] = add_submenu_page($this -> sections -> slides, __('Updates', 'slideshow-gallery'), __('Updates', 'slideshow-gallery') . $update_icon, 'slideshow_settings_updates', $this -> sections -> settings_updates, array($this, 'admin_settings_updates'));
198
 
199
  if (!$this -> ci_serial_valid()) {
200
  //$this -> menus['slideshow-submitserial'] = add_submenu_page($this -> sections -> slides, __('Submit Serial Key', 'slideshow-gallery'), __('Submit Serial Key', 'slideshow-gallery'), 'slideshow_submitserial', $this -> sections -> submitserial, array($this, 'admin_submitserial'));
@@ -393,7 +394,7 @@ if (!class_exists('SlideshowGallery')) {
393
  }
394
 
395
  // Is an Update Available?
396
- if (!empty($page) && in_array($page, (array) $this -> sections)) {
397
  if (apply_filters('slideshow_updates', true)) {
398
  if (current_user_can('edit_plugins') && $this -> has_update() && (empty($page) || (!empty($page) && $page != $this -> sections -> settings_updates))) {
399
  $hideupdate = $this -> get_option('hideupdate');
@@ -404,7 +405,7 @@ if (!class_exists('SlideshowGallery')) {
404
  }
405
  }
406
  }
407
- }
408
  }
409
 
410
  }
6
  Author: Tribulant
7
  Author URI: https://tribulant.com
8
  Description: Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website. The slideshow is flexible and all aspects can easily be configured. Embedding or hardcoding the slideshow gallery is a breeze. See the <a href="https://tribulant.com/docs/wordpress-slideshow-gallery/1758/wordpress-slideshow-gallery-plugin/" target="_blank">online documentation</a> for instructions on using and embedding slideshow galleries.
9
+ Version: 1.7.3
10
  License: GNU General Public License v2 or later
11
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
104
  //$actions[] = '<a href="" onclick="jQuery.colorbox({href:ajaxurl + \'?action=slideshow_serialkey&security=' . wp_create_nonce('serialkey') . '\'}); return false;" id="slideshow_submitseriallink"><i class="fa fa-key fa-fw"></i> ' . __('Serial Key', 'slideshow-gallery') . '</a>';
105
  $actions[] = '<a href="' . admin_url('admin.php?page=' . $this -> sections -> settings) . '"><i class="fa fa-cog fa-fw"></i> ' . __('Settings', 'slideshow-gallery') . '</a>';
106
 
107
+ /*if ($update = $this -> vendor('update')) {
108
  $version_info = $update -> get_version_info();
109
  if (!empty($version_info['dtype']) && $version_info['dtype'] == "single") {
110
  $actions[] = '<a href="https://tribulant.com/items/upgrade/' . $version_info['item_id'] . '" target="_blank"><i class="fa fa-level-up fa-fw"></i> ' . __('Upgrade', 'slideshow-gallery') . '</a>';
111
  }
112
+ }*/
113
  }
114
 
115
  return $actions;
187
  }
188
 
189
  function admin_menu() {
190
+ //$update_icon = ($this -> has_update()) ? ' <span class="update-plugins count-1"><span class="update-count">1</span></span>' : '';
191
+ $update_icon = '';
192
  $this -> check_roles();
193
 
194
  add_menu_page(__('Slideshow', 'slideshow-gallery'), __('Slideshow', 'slideshow-gallery') . $update_icon, 'slideshow_slides', $this -> sections -> slides, array($this, 'admin_slides'), false, "26.113");
195
  $this -> menus['slideshow-slides'] = add_submenu_page($this -> sections -> slides, __('Manage Slides', 'slideshow-gallery'), __('Manage Slides', 'slideshow-gallery'), 'slideshow_slides', $this -> sections -> slides, array($this, 'admin_slides'));
196
  $this -> menus['slideshow-galleries'] = add_submenu_page($this -> sections -> slides, __('Manage Galleries', 'slideshow-gallery'), __('Manage Galleries', 'slideshow-gallery'), 'slideshow_galleries', $this -> sections -> galleries, array($this, 'admin_galleries'));
197
  $this -> menus['slideshow-settings'] = add_submenu_page($this -> sections -> slides, __('Settings', 'slideshow-gallery'), __('Settings', 'slideshow-gallery'), 'slideshow_settings', $this -> sections -> settings, array($this, 'admin_settings'));
198
+ //$this -> menus['slideshow-settings-updates'] = add_submenu_page($this -> sections -> slides, __('Updates', 'slideshow-gallery'), __('Updates', 'slideshow-gallery') . $update_icon, 'slideshow_settings_updates', $this -> sections -> settings_updates, array($this, 'admin_settings_updates'));
199
 
200
  if (!$this -> ci_serial_valid()) {
201
  //$this -> menus['slideshow-submitserial'] = add_submenu_page($this -> sections -> slides, __('Submit Serial Key', 'slideshow-gallery'), __('Submit Serial Key', 'slideshow-gallery'), 'slideshow_submitserial', $this -> sections -> submitserial, array($this, 'admin_submitserial'));
394
  }
395
 
396
  // Is an Update Available?
397
+ /*if (!empty($page) && in_array($page, (array) $this -> sections)) {
398
  if (apply_filters('slideshow_updates', true)) {
399
  if (current_user_can('edit_plugins') && $this -> has_update() && (empty($page) || (!empty($page) && $page != $this -> sections -> settings_updates))) {
400
  $hideupdate = $this -> get_option('hideupdate');
405
  }
406
  }
407
  }
408
+ }*/
409
  }
410
 
411
  }
views/admin/lite-upgrade.php CHANGED
@@ -41,7 +41,7 @@ $plugin_link = "https://tribulant.com/plugins/view/13/wordpress-slideshow-galler
41
  <div class="col column">
42
  <h4>Upgrade to PRO</h4>
43
  <p>Upgrading to Slideshow Gallery PRO is quick and easy by clicking the button below:</p>
44
- <p><a href="<?php echo $plugin_link; ?>" class="button button-primary button-hero" target="_blank"><i class="fa fa-mouse-pointer"></i> Buy PRO Now (only $19.99)</a></p>
45
  <p><?php _e('Once you have purchased a serial key, simply submit it to activate Slideshow Gallery PRO:', 'slideshow-gallery'); ?></p>
46
  <p><a class="button button-secondary button-large" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> submitserial); ?>" onclick="jQuery.colorbox({href:ajaxurl + '?action=slideshow_serialkey&security=<?php echo wp_create_nonce('serialkey'); ?>'}); return false;"><i class="fa fa-key"></i> <?php _e('Submit Serial', 'slideshow-gallery'); ?></a></p>
47
  </div>
41
  <div class="col column">
42
  <h4>Upgrade to PRO</h4>
43
  <p>Upgrading to Slideshow Gallery PRO is quick and easy by clicking the button below:</p>
44
+ <p><a href="<?php echo $plugin_link; ?>" class="button button-primary button-hero" target="_blank"><i class="fa fa-mouse-pointer"></i> Buy PRO Now (only $24.00)</a></p>
45
  <p><?php _e('Once you have purchased a serial key, simply submit it to activate Slideshow Gallery PRO:', 'slideshow-gallery'); ?></p>
46
  <p><a class="button button-secondary button-large" href="<?php echo admin_url('admin.php?page=' . $this -> sections -> submitserial); ?>" onclick="jQuery.colorbox({href:ajaxurl + '?action=slideshow_serialkey&security=<?php echo wp_create_nonce('serialkey'); ?>'}); return false;"><i class="fa fa-key"></i> <?php _e('Submit Serial', 'slideshow-gallery'); ?></a></p>
47
  </div>
views/admin/settings-updates.php CHANGED
@@ -1,9 +1,9 @@
1
- <div class="wrap slideshow <?php echo $this -> pre; ?>">
2
  <h2><?php _e('Check for Updates', 'slideshow-gallery'); ?></h2>
3
 
4
  <?php
5
 
6
- $update = $this -> vendor('update');
7
  $update_info = $update -> get_version_info();
8
 
9
  if (version_compare($this -> version, $update_info['version']) < 0) {
@@ -31,7 +31,7 @@
31
  <?php endif; ?>
32
 
33
  <?php
34
- }
35
 
36
  ?>
37
- </div>
1
+ <!--<div class="wrap slideshow <?php echo $this -> pre; ?>">
2
  <h2><?php _e('Check for Updates', 'slideshow-gallery'); ?></h2>
3
 
4
  <?php
5
 
6
+ /*$update = $this -> vendor('update');
7
  $update_info = $update -> get_version_info();
8
 
9
  if (version_compare($this -> version, $update_info['version']) < 0) {
31
  <?php endif; ?>
32
 
33
  <?php
34
+ }*/
35
 
36
  ?>
37
+ </div>-->