Slideshow Gallery - Version 1.4.8

Version Description

  • ADD: WordPress 4.0 compatibility
  • FIX: Post/page images slideshow order broken
  • FIX: Hide information bar on mobile checkbox resets to on
Download this release

Release Info

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

Code changes from version 1.4.7 to 1.4.8

images/about/feature-1.jpg DELETED
Binary file
images/about/feature-1.png ADDED
Binary file
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === Slideshow Gallery ===
2
  Contributors: contrid
3
  Donate link: http://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: 3.9.2
7
- Stable tag: 1.4.7
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
@@ -24,6 +24,14 @@ Here are several ways to display a slideshow:
24
 
25
  To embed a slideshow with all slides under **Slideshow > Manage Slides** in the plugin, simply insert `[tribulant_slideshow]` into the content of a post/page.
26
 
 
 
 
 
 
 
 
 
27
  = Shortcode for a gallery's slides =
28
 
29
  To embed a slideshow with slides from a specific gallery under **Slideshow > Manage Galleries** in the plugin, simply insert `[tribulant_slideshow gallery_id="X"]` (where X is the ID value of the gallery) into the content of a post/page.
@@ -126,6 +134,11 @@ There is an "Images Tester" utility under Slideshow > Configuration on the right
126
 
127
  == Changelog ==
128
 
 
 
 
 
 
129
  = 1.4.7 =
130
  * ADD: Recommended plugin under configuration
131
  * IMPROVE: TimThumb absolute URLs to prevent permission problems
1
+ === Tribulant Slideshow Gallery ===
2
  Contributors: contrid
3
  Donate link: http://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: 4.0
7
+ Stable tag: 1.4.8
8
 
9
  Feature content in a JavaScript powered slideshow gallery showcase on your WordPress website
10
 
24
 
25
  To embed a slideshow with all slides under **Slideshow > Manage Slides** in the plugin, simply insert `[tribulant_slideshow]` into the content of a post/page.
26
 
27
+ = Shortcode for featured posts =
28
+
29
+ You can create a slideshow from featured posts, each post being a slide and it's featured image used as the slide image. The link of the slide will be the link of the post so clicking on the slide will take users to that post.
30
+
31
+ Here is a sample shortcode that you can use for this:
32
+
33
+ `[tribulant_slideshow featured="true" featurednumber="10" featuredtype="post"]`
34
+
35
  = Shortcode for a gallery's slides =
36
 
37
  To embed a slideshow with slides from a specific gallery under **Slideshow > Manage Galleries** in the plugin, simply insert `[tribulant_slideshow gallery_id="X"]` (where X is the ID value of the gallery) into the content of a post/page.
134
 
135
  == Changelog ==
136
 
137
+ = 1.4.8 =
138
+ * ADD: WordPress 4.0 compatibility
139
+ * FIX: Post/page images slideshow order broken
140
+ * FIX: Hide information bar on mobile checkbox resets to on
141
+
142
  = 1.4.7 =
143
  * ADD: Recommended plugin under configuration
144
  * IMPROVE: TimThumb absolute URLs to prevent permission problems
slideshow-gallery-plugin.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GalleryPlugin {
4
 
5
- var $version = '1.4.7';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
@@ -24,7 +24,7 @@ class GalleryPlugin {
24
  $this -> plugin_base = rtrim(dirname($base), DS);
25
  $this -> sections = (object) $this -> sections;
26
  $this -> initialize_classes();
27
- $this -> initialize_options();
28
 
29
  global $wpdb;
30
  $debugging = get_option('tridebugging');
@@ -139,13 +139,13 @@ class GalleryPlugin {
139
  $version = $this -> version;
140
 
141
  if (version_compare($this -> version, $cur_version) === 1) {
142
- if (version_compare($cur_version, "1.4.7") < 0) {
143
  $this -> initialize_options();
144
 
145
  $query = "ALTER TABLE `" . $this -> Slide -> table . "` CHANGE `image` `image` TEXT NOT NULL;";
146
  $wpdb -> query($query);
147
 
148
- $version = "1.4.7";
149
  }
150
 
151
  //the current version is older.
@@ -173,7 +173,6 @@ class GalleryPlugin {
173
  );
174
 
175
  $this -> add_option('resizeimagescrop', "Y");
176
- //$this -> add_option('imagespath', $this -> Html -> uploads_path() . DS . 'slideshow-gallery' . DS);
177
  $this -> update_option('imagespath', $this -> Html -> uploads_url() . '/slideshow-gallery/');
178
  $this -> add_option('styles', $styles);
179
  $this -> add_option('fadespeed', 10);
2
 
3
  class GalleryPlugin {
4
 
5
+ var $version = '1.4.8';
6
  var $plugin_name;
7
  var $plugin_base;
8
  var $pre = 'Gallery';
24
  $this -> plugin_base = rtrim(dirname($base), DS);
25
  $this -> sections = (object) $this -> sections;
26
  $this -> initialize_classes();
27
+ //$this -> initialize_options();
28
 
29
  global $wpdb;
30
  $debugging = get_option('tridebugging');
139
  $version = $this -> version;
140
 
141
  if (version_compare($this -> version, $cur_version) === 1) {
142
+ if (version_compare($cur_version, "1.4.8") < 0) {
143
  $this -> initialize_options();
144
 
145
  $query = "ALTER TABLE `" . $this -> Slide -> table . "` CHANGE `image` `image` TEXT NOT NULL;";
146
  $wpdb -> query($query);
147
 
148
+ $version = "1.4.8";
149
  }
150
 
151
  //the current version is older.
173
  );
174
 
175
  $this -> add_option('resizeimagescrop', "Y");
 
176
  $this -> update_option('imagespath', $this -> Html -> uploads_url() . '/slideshow-gallery/');
177
  $this -> add_option('styles', $styles);
178
  $this -> add_option('fadespeed', 10);
slideshow-gallery.php CHANGED
@@ -6,7 +6,7 @@ Plugin URI: http://wpgallery.tribulant.net
6
  Author: Tribulant Software
7
  Author URI: http://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. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
- Version: 1.4.7
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
@@ -307,7 +307,18 @@ if (!class_exists('Gallery')) {
307
  $pid = (empty($post_id)) ? $post -> ID : $post_id;
308
 
309
  if (!empty($pid) && $post = get_post($pid)) {
310
- if ($attachments = get_children("post_parent=" . $post -> ID . "&post_type=attachment&post_mime_type=image&orderby=" . ((!empty($orderby) && $orderby == "random") ? "rand" : "menu_order ASC, ID ASC"))) {
 
 
 
 
 
 
 
 
 
 
 
311
  if (!empty($exclude)) {
312
  $exclude = array_map('trim', explode(',', $exclude));
313
 
@@ -509,7 +520,7 @@ if (!class_exists('Gallery')) {
509
  }
510
 
511
  function admin_settings() {
512
- $this -> initialize_options();
513
 
514
  switch ($_GET['method']) {
515
  case 'dismiss' :
@@ -540,7 +551,7 @@ if (!class_exists('Gallery')) {
540
  default :
541
  if (!empty($_POST)) {
542
  delete_option('tridebugging');
543
- delete_option('Galleryinfohideonmobile');
544
  $this -> delete_option('autoheight');
545
 
546
  foreach ($_POST as $pkey => $pval) {
@@ -575,7 +586,7 @@ if (!class_exists('Gallery')) {
575
 
576
  $this -> update_option('permissions', $permissions);
577
  break;
578
- default :
579
  $this -> update_option($pkey, $pval);
580
  break;
581
  }
6
  Author: Tribulant Software
7
  Author URI: http://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. To embed into a post/page, simply insert <code>[tribulant_slideshow]</code> into its content with an optional <code>post_id</code> parameter. To hardcode into any PHP file of your WordPress theme, simply use <code>&lt;?php if (function_exists('slideshow')) { slideshow($output = true, $post_id = false, $gallery_id = false, $params = array()); } ?&gt;</code>.
9
+ Version: 1.4.8
10
  License: GNU General Public License v2 or later
11
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
  Tags: slideshow gallery, slideshow, gallery, slider, jquery, bfithumb, galleries, photos, images
307
  $pid = (empty($post_id)) ? $post -> ID : $post_id;
308
 
309
  if (!empty($pid) && $post = get_post($pid)) {
310
+ $children_attributes = array(
311
+ 'numberposts' => false,
312
+ 'post_parent' => $post -> ID,
313
+ 'post_type' => "attachment",
314
+ 'post_status' => "any",
315
+ 'post_mime_type' => "image",
316
+ 'orderby' => "menu_order",
317
+ 'order' => "ASC",
318
+ );
319
+
320
+ if ($attachments = get_children($children_attributes)) {
321
+ //if ($attachments = get_children("post_parent=" . $post -> ID . "&post_type=attachment&post_mime_type=image&orderby=" . ((!empty($orderby) && $orderby == "random") ? "rand" : "menu_order ASC, ID ASC"))) {
322
  if (!empty($exclude)) {
323
  $exclude = array_map('trim', explode(',', $exclude));
324
 
520
  }
521
 
522
  function admin_settings() {
523
+ //$this -> initialize_options();
524
 
525
  switch ($_GET['method']) {
526
  case 'dismiss' :
551
  default :
552
  if (!empty($_POST)) {
553
  delete_option('tridebugging');
554
+ $this -> delete_option('infohideonmobile');
555
  $this -> delete_option('autoheight');
556
 
557
  foreach ($_POST as $pkey => $pval) {
586
 
587
  $this -> update_option('permissions', $permissions);
588
  break;
589
+ default :
590
  $this -> update_option($pkey, $pval);
591
  break;
592
  }
views/admin/about.php CHANGED
@@ -21,16 +21,14 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
21
  <h3><?php _e( 'What\'s new in this release', $this -> plugin_name); ?></h3>
22
  <div class="feature-section col three-col">
23
  <div class="col-1">
24
- <img src="<?php echo $this -> url(); ?>/images/about/feature-1.jpg">
25
- <h4><?php _e('WordPress 3.9 Compatibility', $this -> plugin_name); ?></h4>
26
  <p><?php _e('This version is 100% compatible with the latest WordPress version. It will fit nicely into your WordPress dashboard and maximizes the WordPress capabilities for speed, functionality and reliability.', $this -> plugin_name); ?></p>
27
  </div>
28
  <div class="col-2">
29
  <img src="<?php echo $this -> url(); ?>/images/about/feature-2.jpg">
30
  <h4><?php _e('Multilingual', $this -> plugin_name); ?></h4>
31
  <p><?php _e('This version of the Slideshow Gallery plugin is fully integrated with (m)qTranslate. It now supports internationalization and multilanguage through (m)qTranslate.', $this -> plugin_name); ?></p>
32
- <?php /* _e('Easier Editing Tools', $this -> plugin_name); ?></h4>
33
- <p><?php _e('Improved visual editing of themes and several other areas throughout the plugin to help you see better what the end-product will look like without having to necessarily go into code.', $this -> plugin_name); */?></p>
34
  </div>
35
  <div class="col-3 last-feature">
36
  <img src="<?php echo $this -> url(); ?>/images/about/feature-3.jpg">
@@ -46,9 +44,7 @@ require_once( ABSPATH . 'wp-admin/admin-header.php' );
46
  <div class="col-1">
47
  <img src="<?php echo $this -> url(); ?>/images/about/feature-4.jpg">
48
  <h4><?php _e('Compatibility with Thickbox', $this -> plugin_name); ?></h4>
49
- <p><?php _e(' Slideshows in this version is compatibile with Thickbox/Lightbox to show slide images in an overlay.', $this -> plugin_name); ?>
50
- <?php /* _e('Spam Score', $this -> plugin_name); ?></h4>
51
- <p><?php _e('Prevent your emails from ending up in spam/junk folder unnecessarily. The spam score utility will show on each newsletter you create to give the newsletter a score, taking all it\'s aspects and factors in consideration.', $this -> plugin_name); */?></p>
52
  </div>
53
  <div class="col-2 last-feature">
54
  <img src="<?php echo $this -> url(); ?>/images/about/feature-5.jpg">
21
  <h3><?php _e( 'What\'s new in this release', $this -> plugin_name); ?></h3>
22
  <div class="feature-section col three-col">
23
  <div class="col-1">
24
+ <img src="<?php echo $this -> url(); ?>/images/about/feature-1.png">
25
+ <h4><?php _e('WordPress 4.0 Compatibility', $this -> plugin_name); ?></h4>
26
  <p><?php _e('This version is 100% compatible with the latest WordPress version. It will fit nicely into your WordPress dashboard and maximizes the WordPress capabilities for speed, functionality and reliability.', $this -> plugin_name); ?></p>
27
  </div>
28
  <div class="col-2">
29
  <img src="<?php echo $this -> url(); ?>/images/about/feature-2.jpg">
30
  <h4><?php _e('Multilingual', $this -> plugin_name); ?></h4>
31
  <p><?php _e('This version of the Slideshow Gallery plugin is fully integrated with (m)qTranslate. It now supports internationalization and multilanguage through (m)qTranslate.', $this -> plugin_name); ?></p>
 
 
32
  </div>
33
  <div class="col-3 last-feature">
34
  <img src="<?php echo $this -> url(); ?>/images/about/feature-3.jpg">
44
  <div class="col-1">
45
  <img src="<?php echo $this -> url(); ?>/images/about/feature-4.jpg">
46
  <h4><?php _e('Compatibility with Thickbox', $this -> plugin_name); ?></h4>
47
+ <p><?php _e(' Slideshows in this version is compatibile with Thickbox/Lightbox to show slide images in an overlay.', $this -> plugin_name); ?></p>
 
 
48
  </div>
49
  <div class="col-2 last-feature">
50
  <img src="<?php echo $this -> url(); ?>/images/about/feature-5.jpg">