Version Description
- Fixed: jQuery re-registering has been removed. Wordpress version of jQuery now used.
- Added: Notification for forthcoming major update.
Download this release
Release Info
Developer | MatthewRuddy |
Plugin | Easing Slider |
Version | 1.2.1 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.2.1
- easingslider.php +34 -11
- readme.txt +9 -5
easingslider.php
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
/*
|
3 |
Plugin Name: Easing Slider
|
4 |
Plugin URI: http://easingslider.matthewruddy.com
|
5 |
-
Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly.
|
6 |
-
Version: 1.2
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://rivaslider.com/
|
9 |
License: This plugin is licensed under the GNU General Public License.
|
@@ -25,6 +25,15 @@ add_action('admin_print_scripts', 'my_admin_scripts');
|
|
25 |
add_action('admin_print_styles', 'my_admin_styles');
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
function easing_head() {
|
29 |
$width = get_option('width');
|
30 |
$interval = get_option('interval');
|
@@ -80,16 +89,16 @@ function add_scripts() {
|
|
80 |
$scripturl = WP_PLUGIN_URL .'/easing-slider/js/';
|
81 |
|
82 |
if(get_option('jquery') == 'true') {
|
83 |
-
if ( !is_admin() ) {
|
84 |
-
wp_deregister_script('jquery');
|
85 |
-
wp_register_script('jquery', $scripturl.'jquery.js', '', '1.4.2');
|
86 |
-
wp_enqueue_script('jquery');
|
87 |
-
}
|
88 |
}
|
89 |
|
90 |
wp_register_script('easing', $scripturl.'jquery.easing.js', '', '1.3');
|
91 |
wp_enqueue_script('easing');
|
92 |
-
wp_register_script('script', $scripturl.'script.js', '', '1.2');
|
93 |
wp_enqueue_script('script');
|
94 |
|
95 |
}
|
@@ -97,7 +106,7 @@ wp_enqueue_script('script');
|
|
97 |
function add_styles() {
|
98 |
$sliderstyle = WP_PLUGIN_URL .'/easing-slider/css/slider.css';
|
99 |
|
100 |
-
wp_register_style('slider', $sliderstyle, '', '1.2');
|
101 |
wp_enqueue_style('slider');
|
102 |
|
103 |
}
|
@@ -329,6 +338,8 @@ return $output_string;
|
|
329 |
add_shortcode('easingslider', 'easing_slider_short');
|
330 |
|
331 |
function set_easing_options() {
|
|
|
|
|
332 |
add_option('sImg1','','');
|
333 |
add_option('sImg2','','');
|
334 |
add_option('sImg3','','');
|
@@ -382,6 +393,8 @@ function set_easing_options() {
|
|
382 |
}
|
383 |
|
384 |
function unset_easing_options() {
|
|
|
|
|
385 |
delete_option('sImg1');
|
386 |
delete_option('sImg2');
|
387 |
delete_option('sImg3');
|
@@ -490,7 +503,7 @@ function admin_easing() {
|
|
490 |
$permalink = get_option('permalink');
|
491 |
$jquery = get_option('jquery');
|
492 |
|
493 |
-
if ('process' == $_POST['options']) {
|
494 |
update_option('sImg1',$_REQUEST['sImg1']);
|
495 |
update_option('sImg2',$_REQUEST['sImg2']);
|
496 |
update_option('sImg3',$_REQUEST['sImg3']);
|
@@ -598,7 +611,17 @@ if ('process' == $_POST['options']) {
|
|
598 |
|
599 |
<a href="http://rivaslider.com/"><img src="<?php echo WP_PLUGIN_URL.'/easing-slider/images/advert.jpg'; ?>"/></a>
|
600 |
|
601 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
602 |
|
603 |
|
604 |
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>&updated=true">
|
2 |
/*
|
3 |
Plugin Name: Easing Slider
|
4 |
Plugin URI: http://easingslider.matthewruddy.com
|
5 |
+
Description: Easing Slider is an image slider which uses the jQuery Easing Plugin. It comes with many different transition and styling settings so you'll never have to edit any of the CSS files directly. <strong>Some major updates are coming to Easing Slider very soon. Please read <a href="http://www.easingslider.matthewruddy.com/update-information">this page</a> before upgrading to 2.0+.</strong>
|
6 |
+
Version: 1.2.1
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://rivaslider.com/
|
9 |
License: This plugin is licensed under the GNU General Public License.
|
25 |
add_action('admin_print_styles', 'my_admin_styles');
|
26 |
}
|
27 |
|
28 |
+
// Adds new version options
|
29 |
+
function easing_init() {
|
30 |
+
if ( !get_option('easingslider_version') ) {
|
31 |
+
add_option('easingslider_version', '1.2.1');
|
32 |
+
add_option('easingslider_upgrade_message', 'true');
|
33 |
+
}
|
34 |
+
}
|
35 |
+
add_action( 'admin_init', 'easing_init' );
|
36 |
+
|
37 |
function easing_head() {
|
38 |
$width = get_option('width');
|
39 |
$interval = get_option('interval');
|
89 |
$scripturl = WP_PLUGIN_URL .'/easing-slider/js/';
|
90 |
|
91 |
if(get_option('jquery') == 'true') {
|
92 |
+
if ( !is_admin() ) {
|
93 |
+
//wp_deregister_script('jquery');
|
94 |
+
//wp_register_script('jquery', $scripturl.'jquery.js', '', '1.4.2');
|
95 |
+
wp_enqueue_script('jquery');
|
96 |
+
}
|
97 |
}
|
98 |
|
99 |
wp_register_script('easing', $scripturl.'jquery.easing.js', '', '1.3');
|
100 |
wp_enqueue_script('easing');
|
101 |
+
wp_register_script('script', $scripturl.'script.js', '', '1.2.1');
|
102 |
wp_enqueue_script('script');
|
103 |
|
104 |
}
|
106 |
function add_styles() {
|
107 |
$sliderstyle = WP_PLUGIN_URL .'/easing-slider/css/slider.css';
|
108 |
|
109 |
+
wp_register_style('slider', $sliderstyle, '', '1.2.1');
|
110 |
wp_enqueue_style('slider');
|
111 |
|
112 |
}
|
338 |
add_shortcode('easingslider', 'easing_slider_short');
|
339 |
|
340 |
function set_easing_options() {
|
341 |
+
add_option('easingslider_version', '1.2.1');
|
342 |
+
add_option('easingslider_upgrade_message', 'true');
|
343 |
add_option('sImg1','','');
|
344 |
add_option('sImg2','','');
|
345 |
add_option('sImg3','','');
|
393 |
}
|
394 |
|
395 |
function unset_easing_options() {
|
396 |
+
delete_option('easingslider_version');
|
397 |
+
delete_option('easingslider_upgrade_message');
|
398 |
delete_option('sImg1');
|
399 |
delete_option('sImg2');
|
400 |
delete_option('sImg3');
|
503 |
$permalink = get_option('permalink');
|
504 |
$jquery = get_option('jquery');
|
505 |
|
506 |
+
if ( isset( $_POST['options'] ) && 'process' == $_POST['options']) {
|
507 |
update_option('sImg1',$_REQUEST['sImg1']);
|
508 |
update_option('sImg2',$_REQUEST['sImg2']);
|
509 |
update_option('sImg3',$_REQUEST['sImg3']);
|
611 |
|
612 |
<a href="http://rivaslider.com/"><img src="<?php echo WP_PLUGIN_URL.'/easing-slider/images/advert.jpg'; ?>"/></a>
|
613 |
|
614 |
+
<?php
|
615 |
+
// Delete upgrade notice when 'Dismiss' is pressed.
|
616 |
+
if ( isset( $_GET['dismiss'] ) && $_GET['dismiss'] )
|
617 |
+
delete_option( 'easingslider_upgrade_message' );
|
618 |
+
?>
|
619 |
+
|
620 |
+
<?php if ( get_option( 'easingslider_upgrade_message' ) ) { ?>
|
621 |
+
<div class="message updated" style="width: 860px;"><p><b>NOTE:</b> A major plugin update is on the way, coming very soon. <a href="http://www.easingslider.matthewruddy.com/update-information">Please read this post</a> before upgrading! Thank you. <a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>&dismiss=true" class="button-secondary" style="float: right; margin-top: -3px;">Dismiss</a></p></div>
|
622 |
+
<?php } ?>
|
623 |
+
|
624 |
+
<?php if ( isset( $_REQUEST['submit'] ) && $_REQUEST['submit'] ) echo '<div id="message" class="updated" style="width:750px;"><p><strong>Slider Options Updated.</strong></p></div>'; ?>
|
625 |
|
626 |
|
627 |
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>&updated=true">
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Easing Slider ===
|
2 |
Homepage: http://easingslider.matthewruddy.com
|
3 |
Contributors: MatthewRuddy
|
4 |
-
Tags: slider, slideshows, easing, plugin, jquery, content, featured, images
|
5 |
Requires at least: 2.9.2
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.2
|
8 |
|
9 |
The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
|
10 |
|
@@ -14,8 +14,6 @@ The Easing Slider is an image slider plugin for WordPress which uses the jQuery
|
|
14 |
|
15 |
The Easing Slider comes with various options that allow you to choose different sources to get the images from and also multiple styling options so that you"ll never have to edit any files directly & with ease. Create your own unique elegant slider.
|
16 |
|
17 |
-
<a href="http://easingslider.matthewruddy.com">Live Demo</a>
|
18 |
-
|
19 |
<h4>Choose between images sourced from:</h4>
|
20 |
- Custom fields from a particular category
|
21 |
- Custom fields from all categories
|
@@ -30,6 +28,8 @@ The Easing Slider comes with various options that allow you to choose different
|
|
30 |
- Padding & border settings
|
31 |
- And much more.
|
32 |
|
|
|
|
|
33 |
|
34 |
== Installation ==
|
35 |
|
@@ -101,6 +101,10 @@ This (most likely) is due to one of two potential problems:
|
|
101 |
|
102 |
== Changelog ==
|
103 |
|
|
|
|
|
|
|
|
|
104 |
= 1.2 =
|
105 |
* Changed: Adverts from Premium Slider to Riva Slider Pro.
|
106 |
* Changed: When activated, plugin will now default to 'Custom Images'
|
1 |
=== Easing Slider ===
|
2 |
Homepage: http://easingslider.matthewruddy.com
|
3 |
Contributors: MatthewRuddy
|
4 |
+
Tags: slider, slides, slideshow, slideshows, easing, plugin, jquery, content, featured, images
|
5 |
Requires at least: 2.9.2
|
6 |
+
Tested up to: 3.4.2
|
7 |
+
Stable tag: 1.2.1
|
8 |
|
9 |
The Easing Slider is an image slider plugin for WordPress which uses the jQuery Easing plugin.
|
10 |
|
14 |
|
15 |
The Easing Slider comes with various options that allow you to choose different sources to get the images from and also multiple styling options so that you"ll never have to edit any files directly & with ease. Create your own unique elegant slider.
|
16 |
|
|
|
|
|
17 |
<h4>Choose between images sourced from:</h4>
|
18 |
- Custom fields from a particular category
|
19 |
- Custom fields from all categories
|
28 |
- Padding & border settings
|
29 |
- And much more.
|
30 |
|
31 |
+
<a href="http://easingslider.matthewruddy.com">Check out our website for more information.</a>
|
32 |
+
|
33 |
|
34 |
== Installation ==
|
35 |
|
101 |
|
102 |
== Changelog ==
|
103 |
|
104 |
+
= 1.2.1 =
|
105 |
+
* Fixed: jQuery re-registering has been removed. Wordpress version of jQuery now used.
|
106 |
+
* Added: Notification for forthcoming major update.
|
107 |
+
|
108 |
= 1.2 =
|
109 |
* Changed: Adverts from Premium Slider to Riva Slider Pro.
|
110 |
* Changed: When activated, plugin will now default to 'Custom Images'
|