Meteor Slides - Version 1.1.1

Version Description

  • Fixed featured image array conflict with some themes, hide slides from revealing on load, added unique id to each slide.
Download this release

Release Info

Developer jleuze
Plugin Icon 128x128 Meteor Slides
Version 1.1.1
Comparing to
See all releases

Code changes from version 1.1 to 1.1.1

css/meteor-slides.css CHANGED
@@ -4,13 +4,24 @@
4
 
5
  */
6
 
7
- #meteor-slideshow {
8
  margin: 0;
9
  padding: 0;
 
10
  z-index: 1;
11
  overflow: hidden;
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
14
  #meteor-slideshow .slide a img {
15
  margin: 0;
16
  padding: 0;
4
 
5
  */
6
 
7
+ #meteor-slideshow, .meteor-slides {
8
  margin: 0;
9
  padding: 0;
10
+ position: relative;
11
  z-index: 1;
12
  overflow: hidden;
13
  }
14
 
15
+ #meteor-slideshow .slide {
16
+ margin: 0;
17
+ padding: 0;
18
+ display: none;
19
+ }
20
+
21
+ #meteor-slideshow #slide-1 {
22
+ display: block;
23
+ }
24
+
25
  #meteor-slideshow .slide a img {
26
  margin: 0;
27
  padding: 0;
js/slideshow.js CHANGED
@@ -9,7 +9,7 @@ var $slidetimeout = parseInt( meteorslidessettings.meteorslideshowduration );
9
  var $slidetransition = meteorslidessettings.meteorslideshowtransition;
10
 
11
  $j(document).ready(function() {
12
- $j('#meteor-slideshow').cycle({
13
  fx: $slidetransition,
14
  speed: $slidespeed,
15
  timeout: $slidetimeout,
9
  var $slidetransition = meteorslidessettings.meteorslideshowtransition;
10
 
11
  $j(document).ready(function() {
12
+ $j('.meteor-slides').cycle({
13
  fx: $slidetransition,
14
  speed: $slidespeed,
15
  timeout: $slidetimeout,
meteor-slides-plugin.php CHANGED
@@ -6,7 +6,7 @@
6
  Author: Josh Leuze
7
  Author URI: http://www.jleuze.com/
8
  License: GPL2
9
- Version: 1.1
10
  */
11
 
12
  /* Copyright 2010 Josh Leuze (email : mail@jleuze.com)
@@ -25,19 +25,45 @@
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
- // Adds featured image functionality
29
 
30
  add_action( 'plugins_loaded', 'meteorslides_featured_image' );
31
-
32
- function meteorslides_featured_image() {
33
 
34
- add_theme_support( 'post-thumbnails', array( 'slide' ) );
35
 
36
  $options = get_option( 'meteorslides_options' );
37
 
38
  add_image_size( 'featured-slide', $options['slide_width'], $options['slide_height'], true );
39
 
40
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  // Adds custom post type
43
 
6
  Author: Josh Leuze
7
  Author URI: http://www.jleuze.com/
8
  License: GPL2
9
+ Version: 1.1.1
10
  */
11
 
12
  /* Copyright 2010 Josh Leuze (email : mail@jleuze.com)
25
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26
  */
27
 
28
+ // Adds featured image size for slides
29
 
30
  add_action( 'plugins_loaded', 'meteorslides_featured_image' );
 
 
31
 
32
+ function meteorslides_featured_image() {
33
 
34
  $options = get_option( 'meteorslides_options' );
35
 
36
  add_image_size( 'featured-slide', $options['slide_width'], $options['slide_height'], true );
37
 
38
  }
39
+
40
+ // Adds featured image functionality for slides
41
+
42
+ add_action( 'after_setup_theme', 'meteorslides_featured_image_array', '9999' );
43
+
44
+ function meteorslides_featured_image_array() {
45
+
46
+ global $_wp_theme_features;
47
+
48
+ if( !isset( $_wp_theme_features['post-thumbnails'] ) ) {
49
+
50
+ $_wp_theme_features['post-thumbnails'] = array( array( 'slide' ) );
51
+
52
+ }
53
+
54
+ elseif ( true === $_wp_theme_features['post-thumbnails'] ) {
55
+
56
+ $_wp_theme_features['post-thumbnails'] = array( array( 'post','page', 'slide' ) );
57
+
58
+ }
59
+
60
+ elseif ( is_array( $_wp_theme_features['post-thumbnails'] ) ) {
61
+
62
+ $_wp_theme_features['post-thumbnails'][0][] = 'slide';
63
+
64
+ }
65
+
66
+ }
67
 
68
  // Adds custom post type
69
 
meteor-slideshow.php CHANGED
@@ -1,14 +1,16 @@
1
  <?php global $post;
2
 
3
  $options = get_option( 'meteorslides_options' );
 
 
4
 
5
  $loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => $options['slideshow_quantity'] ) ); ?>
6
 
7
- <div id="meteor-slideshow">
8
 
9
  <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
10
 
11
- <div class="slide">
12
 
13
  <?php if(get_post_meta($post->ID, "slide_url_value", $single = true) != ""): ?>
14
 
@@ -22,6 +24,8 @@
22
 
23
  </div><!-- .slide -->
24
 
 
 
25
  <?php endwhile; ?>
26
 
27
  <?php wp_reset_query(); ?>
1
  <?php global $post;
2
 
3
  $options = get_option( 'meteorslides_options' );
4
+
5
+ $i = 1;
6
 
7
  $loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => $options['slideshow_quantity'] ) ); ?>
8
 
9
+ <div id="meteor-slideshow" class="meteor-slides">
10
 
11
  <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
12
 
13
+ <div id="slide-<?php echo $i; ?>" class="slide">
14
 
15
  <?php if(get_post_meta($post->ID, "slide_url_value", $single = true) != ""): ?>
16
 
24
 
25
  </div><!-- .slide -->
26
 
27
+ <?php $i++; ?>
28
+
29
  <?php endwhile; ?>
30
 
31
  <?php wp_reset_query(); ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: JLeuze
3
  Tags: slide, slider, slideshow, custom post types, jquery
4
  Requires at least: 3.0
5
  Tested up to: 3.0
6
- Stable tag: 1.1
7
 
8
  Adds a custom post type for slides to WordPress. Use Meteor Slides to create a quick little slideshow for your site.
9
 
@@ -45,13 +45,17 @@ This short screencast explains how to set up Meteor Slides, create new slides, a
45
 
46
  == Frequently Asked Questions ==
47
 
 
 
 
 
48
  = I added an image to my post, why isn't it showing up in the slide? =
49
 
50
- Make sure to click "Use as featured image" after uploading your image.
51
 
52
  = Why is the slideshow covering up my dropdown menus? =
53
 
54
- The `z-index` on the slideshow is higher than the dropdowns, cause them to be layered below the slides. Lower the `z-index` of `#meteor-slideshow` until the dropdowns are above the slideshow.
55
 
56
  = How do I customize the slideshow's CSS stylesheet? =
57
 
@@ -66,6 +70,9 @@ Copy `meteor-slides.css` from `/meteor-slides/css/` to your theme's directory to
66
 
67
  == Changelog ==
68
 
 
 
 
69
  = 1.1 =
70
  * Added slideshow widget, added stylesheet, updated JQuery Cycle to 2.88.
71
 
@@ -80,5 +87,8 @@ Copy `meteor-slides.css` from `/meteor-slides/css/` to your theme's directory to
80
 
81
  == Upgrade Notice ==
82
 
 
 
 
83
  = 1.1 =
84
  This version of Meteor Slides adds a stylesheet for the slideshow which aids theme compatability.
3
  Tags: slide, slider, slideshow, custom post types, jquery
4
  Requires at least: 3.0
5
  Tested up to: 3.0
6
+ Stable tag: 1.1.1
7
 
8
  Adds a custom post type for slides to WordPress. Use Meteor Slides to create a quick little slideshow for your site.
9
 
45
 
46
  == Frequently Asked Questions ==
47
 
48
+ = I add a slide, save or publish it, and then it's missing or not found, what gives? =
49
+
50
+ Every post needs a title, make sure to give your slide a title where is says "Enter title here". This title is mostly used just to label them in the backend, but it will also be used as the title of your link if you add a link.
51
+
52
  = I added an image to my post, why isn't it showing up in the slide? =
53
 
54
+ Make sure to click "Use as featured image" after uploading your image. If the image is added correctly to the slide, you could see a thumbnail of that image in the Slide Image metabox.
55
 
56
  = Why is the slideshow covering up my dropdown menus? =
57
 
58
+ The `z-index` on the slideshow is higher than the dropdowns, causing them to be layered below the slides. Lower the `z-index` of `#meteor-slideshow` until the dropdowns are above the slideshow.
59
 
60
  = How do I customize the slideshow's CSS stylesheet? =
61
 
70
 
71
  == Changelog ==
72
 
73
+ = 1.1.1 =
74
+ * Fixed featured image array conflict with some themes, hide slides from revealing on load, added unique id to each slide.
75
+
76
  = 1.1 =
77
  * Added slideshow widget, added stylesheet, updated JQuery Cycle to 2.88.
78
 
87
 
88
  == Upgrade Notice ==
89
 
90
+ = 1.1.1 =
91
+ This version of Meteor Slides fixes a bug that was causing some themes to disable the featured images.
92
+
93
  = 1.1 =
94
  This version of Meteor Slides adds a stylesheet for the slideshow which aids theme compatability.