Version Description
- Code Improvments.
Download this release
Release Info
Developer | sksmatt |
Plugin | Dynamic "To Top" Plugin |
Version | 3.4.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.1 to 3.4.1
- dynamic-to-top.php +10 -5
- inc/dynamic-to-top-class.php +1 -1
- inc/dynamic-to-top-options.php +1 -1
- readme.txt +7 -3
dynamic-to-top.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dynamic To Top
|
4 |
-
Version: 3.
|
5 |
Plugin URI: http://www.mattvarone.com/featured-content/dynamic-to-top/
|
6 |
Description: Adds an automatic and dynamic "To Top" button to scroll long pages back to the top.
|
7 |
Author: Matt Varone
|
@@ -30,7 +30,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
30 |
|--------------------------------------------------------------------------
|
31 |
*/
|
32 |
|
33 |
-
define( 'MV_DYNAMIC_TO_TOP_VERSION', '3.
|
34 |
|
35 |
/*
|
36 |
|--------------------------------------------------------------------------
|
@@ -64,6 +64,11 @@ if ( ! function_exists( 'mv_dynamic_to_top_plugins_loaded' ) ) {
|
|
64 |
}
|
65 |
add_action( 'plugins_loaded', 'mv_dynamic_to_top_plugins_loaded' );
|
66 |
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
/**
|
69 |
* Load Textdomain
|
@@ -82,12 +87,12 @@ function mv_dynamic_to_top_load_textdomain() {
|
|
82 |
|
83 |
/*
|
84 |
|--------------------------------------------------------------------------
|
85 |
-
|
|
86 |
|--------------------------------------------------------------------------
|
87 |
*/
|
88 |
|
89 |
/**
|
90 |
-
*
|
91 |
*
|
92 |
* @package Dynamic To Top
|
93 |
* @since 3.1.5
|
@@ -98,7 +103,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_activation' ) ) {
|
|
98 |
function mv_dynamic_to_top_activation() {
|
99 |
|
100 |
// check compatibility
|
101 |
-
if ( version_compare( get_bloginfo( 'version' ), '3.
|
102 |
deactivate_plugins( basename( __FILE__ ) );
|
103 |
|
104 |
// refresh cache
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dynamic To Top
|
4 |
+
Version: 3.4.1
|
5 |
Plugin URI: http://www.mattvarone.com/featured-content/dynamic-to-top/
|
6 |
Description: Adds an automatic and dynamic "To Top" button to scroll long pages back to the top.
|
7 |
Author: Matt Varone
|
30 |
|--------------------------------------------------------------------------
|
31 |
*/
|
32 |
|
33 |
+
define( 'MV_DYNAMIC_TO_TOP_VERSION', '3.4.1' );
|
34 |
|
35 |
/*
|
36 |
|--------------------------------------------------------------------------
|
64 |
}
|
65 |
add_action( 'plugins_loaded', 'mv_dynamic_to_top_plugins_loaded' );
|
66 |
|
67 |
+
/*
|
68 |
+
|--------------------------------------------------------------------------
|
69 |
+
| INTERNATIONALIZATION
|
70 |
+
|--------------------------------------------------------------------------
|
71 |
+
*/
|
72 |
|
73 |
/**
|
74 |
* Load Textdomain
|
87 |
|
88 |
/*
|
89 |
|--------------------------------------------------------------------------
|
90 |
+
| ON ACTIVATION
|
91 |
|--------------------------------------------------------------------------
|
92 |
*/
|
93 |
|
94 |
/**
|
95 |
+
* Activation
|
96 |
*
|
97 |
* @package Dynamic To Top
|
98 |
* @since 3.1.5
|
103 |
function mv_dynamic_to_top_activation() {
|
104 |
|
105 |
// check compatibility
|
106 |
+
if ( version_compare( get_bloginfo( 'version' ), '3.3' ) >= 0 )
|
107 |
deactivate_plugins( basename( __FILE__ ) );
|
108 |
|
109 |
// refresh cache
|
inc/dynamic-to-top-class.php
CHANGED
@@ -154,7 +154,7 @@ if ( ! class_exists( 'MV_Dynamic_To_Top' ) ) {
|
|
154 |
|
155 |
wp_enqueue_script( 'jquery-easing', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.easing.js', array( 'jquery' ), '1.3', true );
|
156 |
|
157 |
-
$env = ( WP_DEBUG
|
158 |
wp_enqueue_script( 'dynamic-to-top', plugin_dir_url( dirname( __FILE__ ) ) . 'js/dynamic.to.top.' . $env . '.js', array( 'jquery' ), MV_DYNAMIC_TO_TOP_VERSION, true );
|
159 |
|
160 |
$params = array(
|
154 |
|
155 |
wp_enqueue_script( 'jquery-easing', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.easing.js', array( 'jquery' ), '1.3', true );
|
156 |
|
157 |
+
$env = ( WP_DEBUG ) ? 'dev' : 'min';
|
158 |
wp_enqueue_script( 'dynamic-to-top', plugin_dir_url( dirname( __FILE__ ) ) . 'js/dynamic.to.top.' . $env . '.js', array( 'jquery' ), MV_DYNAMIC_TO_TOP_VERSION, true );
|
159 |
|
160 |
$params = array(
|
inc/dynamic-to-top-options.php
CHANGED
@@ -213,7 +213,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_scripts' ) ) {
|
|
213 |
wp_enqueue_script( 'jquery-ui-mouse', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.ui.mouse.js', array( 'jquery-ui-widget' ), '1.8.14' );
|
214 |
wp_enqueue_script( 'jquery-ui-slider', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.ui.slider.js', array( 'jquery-ui-mouse' ), '1.8.14' );
|
215 |
}
|
216 |
-
$env = ( WP_DEBUG
|
217 |
wp_enqueue_script( 'dynamic-to-top-settings', plugin_dir_url( dirname( __FILE__ ) ) . 'js/dynamic.to.top.settings.'.$env.'.js', array( 'jquery-ui-slider', 'farbtastic' ), '1.0', true );
|
218 |
}
|
219 |
}
|
213 |
wp_enqueue_script( 'jquery-ui-mouse', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.ui.mouse.js', array( 'jquery-ui-widget' ), '1.8.14' );
|
214 |
wp_enqueue_script( 'jquery-ui-slider', plugin_dir_url( dirname( __FILE__ ) ) . 'js/libs/jquery.ui.slider.js', array( 'jquery-ui-mouse' ), '1.8.14' );
|
215 |
}
|
216 |
+
$env = ( WP_DEBUG ) ? 'dev' : 'min';
|
217 |
wp_enqueue_script( 'dynamic-to-top-settings', plugin_dir_url( dirname( __FILE__ ) ) . 'js/dynamic.to.top.settings.'.$env.'.js', array( 'jquery-ui-slider', 'farbtastic' ), '1.0', true );
|
218 |
}
|
219 |
}
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: sksmatt
|
3 |
Donate link: http://www.mattvarone.com/donate/
|
4 |
Tags: Scroll, To top, Button, jQuery, Dynamic, UI, Automatic, Enhance, UX
|
5 |
-
Requires at least: 3.
|
6 |
-
Tested up to: 3.4
|
7 |
-
Stable tag: 3.
|
8 |
|
9 |
Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
|
10 |
|
@@ -43,7 +43,11 @@ Would you like to help translate the plugin into more languages? [Contact Matt](
|
|
43 |
|
44 |
== Change log ==
|
45 |
|
|
|
|
|
|
|
46 |
= 3.3.1 =
|
|
|
47 |
* Added Persian language.
|
48 |
* Code fix.
|
49 |
|
2 |
Contributors: sksmatt
|
3 |
Donate link: http://www.mattvarone.com/donate/
|
4 |
Tags: Scroll, To top, Button, jQuery, Dynamic, UI, Automatic, Enhance, UX
|
5 |
+
Requires at least: 3.4
|
6 |
+
Tested up to: 3.4.1
|
7 |
+
Stable tag: 3.4.1
|
8 |
|
9 |
Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
|
10 |
|
43 |
|
44 |
== Change log ==
|
45 |
|
46 |
+
= 3.4.1 =
|
47 |
+
* Code Improvments.
|
48 |
+
|
49 |
= 3.3.1 =
|
50 |
+
* Added 'mv_dynamic_to_top_default_values' to filter default values.
|
51 |
* Added Persian language.
|
52 |
* Code fix.
|
53 |
|