Version Description
- Moved script and args to the
wp_footer
hook
Download this release
Release Info
Developer | nathanrice |
Plugin | WP-Cycle |
Version | 0.1.9 |
Comparing to | |
See all releases |
Code changes from version 0.1.8 to 0.1.9
- readme.txt +6 -3
- wp-cycle.php +12 -7
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: nathanrice
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: slideshow, images, jquery cycle
|
5 |
Requires at least: 2.9
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 0.1.
|
8 |
|
9 |
This plugin creates an image slideshow in your theme, using the jQuery Cycle plugin. You can upload/delete images via the administration panel, and display the images in your theme by using the <code>wp_cycle();</code> template tag, which will generate all the necessary HTML for outputting the rotating images.
|
10 |
|
@@ -97,4 +97,7 @@ Yes. Here are some things that I want to eventually include:
|
|
97 |
* Upgraded jQuery Cycle plugin from 2.65 to 2.81
|
98 |
|
99 |
= 0.1.8 =
|
100 |
-
* Added `position: relative;` to the slideshow div
|
|
|
|
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5553118
|
4 |
Tags: slideshow, images, jquery cycle
|
5 |
Requires at least: 2.9
|
6 |
+
Tested up to: 3.0.1
|
7 |
+
Stable tag: 0.1.9
|
8 |
|
9 |
This plugin creates an image slideshow in your theme, using the jQuery Cycle plugin. You can upload/delete images via the administration panel, and display the images in your theme by using the <code>wp_cycle();</code> template tag, which will generate all the necessary HTML for outputting the rotating images.
|
10 |
|
97 |
* Upgraded jQuery Cycle plugin from 2.65 to 2.81
|
98 |
|
99 |
= 0.1.8 =
|
100 |
+
* Added `position: relative;` to the slideshow div
|
101 |
+
|
102 |
+
= 0.1.9 =
|
103 |
+
* Moved script and args to the `wp_footer` hook
|
wp-cycle.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: WP-Cycle
|
4 |
Plugin URI: http://www.nathanrice.net/plugins/wp-cycle/
|
5 |
Description: This plugin creates an image slideshow from the images you upload using the jQuery Cycle plugin. You can upload/delete images via the administration panel, and display the images in your theme by using the <code>wp_cycle();</code> template tag, which will generate all the necessary HTML for outputting the rotating images.
|
6 |
-
Version: 0.1.
|
7 |
Author: Nathan Rice
|
8 |
Author URI: http://www.nathanrice.net/
|
9 |
|
@@ -342,7 +342,7 @@ function wp_cycle_settings_admin() { ?>
|
|
342 |
<input type="submit" class="button-primary" value="<?php _e('Save Settings') ?>" />
|
343 |
</form>
|
344 |
|
345 |
-
<!-- The Reset
|
346 |
<form method="post" action="options.php">
|
347 |
<?php settings_fields('wp_cycle_settings'); ?>
|
348 |
<?php global $wp_cycle_defaults; // use the defaults ?>
|
@@ -436,11 +436,11 @@ function wp_cycle_shortcode($atts) {
|
|
436 |
add_action('wp_print_scripts', 'wp_cycle_scripts');
|
437 |
function wp_cycle_scripts() {
|
438 |
if(!is_admin())
|
439 |
-
wp_enqueue_script('cycle',
|
440 |
}
|
441 |
|
442 |
-
add_action('
|
443 |
-
function
|
444 |
global $wp_cycle_settings; ?>
|
445 |
|
446 |
<?php if($wp_cycle_settings['rotate']) : ?>
|
@@ -457,6 +457,11 @@ jQuery(document).ready(function($) {
|
|
457 |
</script>
|
458 |
<?php endif; ?>
|
459 |
|
|
|
|
|
|
|
|
|
|
|
460 |
<style type="text/css" media="screen">
|
461 |
#<?php echo $wp_cycle_settings['div']; ?> {
|
462 |
position: relative;
|
@@ -466,5 +471,5 @@ jQuery(document).ready(function($) {
|
|
466 |
overflow: hidden;
|
467 |
}
|
468 |
</style>
|
469 |
-
|
470 |
-
|
3 |
Plugin Name: WP-Cycle
|
4 |
Plugin URI: http://www.nathanrice.net/plugins/wp-cycle/
|
5 |
Description: This plugin creates an image slideshow from the images you upload using the jQuery Cycle plugin. You can upload/delete images via the administration panel, and display the images in your theme by using the <code>wp_cycle();</code> template tag, which will generate all the necessary HTML for outputting the rotating images.
|
6 |
+
Version: 0.1.9
|
7 |
Author: Nathan Rice
|
8 |
Author URI: http://www.nathanrice.net/
|
9 |
|
342 |
<input type="submit" class="button-primary" value="<?php _e('Save Settings') ?>" />
|
343 |
</form>
|
344 |
|
345 |
+
<!-- The Reset Option -->
|
346 |
<form method="post" action="options.php">
|
347 |
<?php settings_fields('wp_cycle_settings'); ?>
|
348 |
<?php global $wp_cycle_defaults; // use the defaults ?>
|
436 |
add_action('wp_print_scripts', 'wp_cycle_scripts');
|
437 |
function wp_cycle_scripts() {
|
438 |
if(!is_admin())
|
439 |
+
wp_enqueue_script('cycle', WP_CONTENT_URL.'/plugins/wp-cycle/jquery.cycle.all.min.js', array('jquery'), '', true);
|
440 |
}
|
441 |
|
442 |
+
add_action('wp_footer', 'wp_cycle_args', 15);
|
443 |
+
function wp_cycle_args() {
|
444 |
global $wp_cycle_settings; ?>
|
445 |
|
446 |
<?php if($wp_cycle_settings['rotate']) : ?>
|
457 |
</script>
|
458 |
<?php endif; ?>
|
459 |
|
460 |
+
<?php }
|
461 |
+
|
462 |
+
add_action( 'wp_head', 'wp_cycle_style' );
|
463 |
+
function wp_cycle_style() { ?>
|
464 |
+
|
465 |
<style type="text/css" media="screen">
|
466 |
#<?php echo $wp_cycle_settings['div']; ?> {
|
467 |
position: relative;
|
471 |
overflow: hidden;
|
472 |
}
|
473 |
</style>
|
474 |
+
|
475 |
+
<?php }
|