Version Description
- Fixed shortcode bugs, positioning of slideshow and loop within loop.
Download this release
Release Info
Developer | jleuze |
Plugin | Meteor Slides |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
- meteor-slides-plugin.php +14 -2
- meteor-slideshow.php +3 -1
- readme.txt +4 -1
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.0.
|
10 |
*/
|
11 |
|
12 |
/* Copyright 2010 Josh Leuze (email : mail@jleuze.com)
|
@@ -374,7 +374,19 @@
|
|
374 |
|
375 |
// Adds shortcode to load slideshow in content
|
376 |
|
377 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
378 |
|
379 |
/* To load the slideshow, add this line to your page or post:
|
380 |
|
6 |
Author: Josh Leuze
|
7 |
Author URI: http://www.jleuze.com/
|
8 |
License: GPL2
|
9 |
+
Version: 1.0.2
|
10 |
*/
|
11 |
|
12 |
/* Copyright 2010 Josh Leuze (email : mail@jleuze.com)
|
374 |
|
375 |
// Adds shortcode to load slideshow in content
|
376 |
|
377 |
+
function meteor_slideshow_shortcode() {
|
378 |
+
|
379 |
+
ob_start();
|
380 |
+
|
381 |
+
include( 'meteor-slideshow.php' );
|
382 |
+
|
383 |
+
$meteor_slideshow_content = ob_get_clean();
|
384 |
+
|
385 |
+
return $meteor_slideshow_content;
|
386 |
+
|
387 |
+
}
|
388 |
+
|
389 |
+
add_shortcode( 'meteor_slideshow', 'meteor_slideshow_shortcode' );
|
390 |
|
391 |
/* To load the slideshow, add this line to your page or post:
|
392 |
|
meteor-slideshow.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
$loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => $options['slideshow_quantity'] ) ); ?>
|
6 |
|
7 |
-
<div class="meteor-slideshow" style="height:<?php echo $options['slide_height'] ?>px; width:<?php echo $options['slide_width'] ?>px; overflow:hidden">
|
8 |
|
9 |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
|
10 |
|
@@ -23,5 +23,7 @@
|
|
23 |
</div><!-- .slide -->
|
24 |
|
25 |
<?php endwhile; ?>
|
|
|
|
|
26 |
|
27 |
</div><!-- .meteor-slideshow -->
|
4 |
|
5 |
$loop = new WP_Query( array( 'post_type' => 'slide', 'posts_per_page' => $options['slideshow_quantity'] ) ); ?>
|
6 |
|
7 |
+
<div class="meteor-slideshow" style="height:<?php echo $options['slide_height'] ?>px; width:<?php echo $options['slide_width'] ?>px; overflow:hidden;">
|
8 |
|
9 |
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
|
10 |
|
23 |
</div><!-- .slide -->
|
24 |
|
25 |
<?php endwhile; ?>
|
26 |
+
|
27 |
+
<?php wp_reset_query(); ?>
|
28 |
|
29 |
</div><!-- .meteor-slideshow -->
|
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.0.
|
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,6 +45,9 @@ Before adding any slides, go to the Meteor Slides Settings page and set the slid
|
|
45 |
|
46 |
== Changelog ==
|
47 |
|
|
|
|
|
|
|
48 |
= 1.0.1 =
|
49 |
* Removed "menu_position" to prevent conflicts with other plugins.
|
50 |
|
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.0.2
|
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 |
== Changelog ==
|
47 |
|
48 |
+
= 1.0.2 =
|
49 |
+
* Fixed shortcode bugs, positioning of slideshow and loop within loop.
|
50 |
+
|
51 |
= 1.0.1 =
|
52 |
* Removed "menu_position" to prevent conflicts with other plugins.
|
53 |
|