Version Description
- Code improvements
- Fixes Options problem
Download this release
Release Info
Developer | sksmatt |
Plugin | Dynamic "To Top" Plugin |
Version | 3.1.3 |
Comparing to | |
See all releases |
Code changes from version 3.1.2 to 3.1.3
- dynamic-to-top.php +2 -2
- inc/dynamic-to-top-class.php +5 -4
- inc/dynamic-to-top-options.php +4 -3
- readme.txt +5 -1
dynamic-to-top.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dynamic To Top
|
4 |
-
Version: 3.1.
|
5 |
Plugin URI: http://www.mattvarone.com/wordpress/dynamic-to-top-wordpress-plugin
|
6 |
Description: Adds an automatic and dynamic "To Top" button to scroll long pages back to the top.
|
7 |
Author: Matt Varone
|
@@ -24,7 +24,7 @@ Author URI: http://www.mattvarone.com
|
|
24 |
define('DYNAMIC_TO_TOP_BASENAME', plugin_basename(__FILE__));
|
25 |
define('DYNAMIC_TO_TOP_URL', plugins_url('',__FILE__));
|
26 |
define('DYNAMIC_TO_TOP_PATH', plugin_dir_path(__FILE__));
|
27 |
-
define('DYNAMIC_TO_TOP_VERSION', '3.1.
|
28 |
define('DYNAMIC_TO_TOP_FOLDER', '/'.basename(dirname(__FILE__)));
|
29 |
define('DYNAMIC_TO_TOP_DOMAIN', 'dynamic-to-top');
|
30 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Dynamic To Top
|
4 |
+
Version: 3.1.3
|
5 |
Plugin URI: http://www.mattvarone.com/wordpress/dynamic-to-top-wordpress-plugin
|
6 |
Description: Adds an automatic and dynamic "To Top" button to scroll long pages back to the top.
|
7 |
Author: Matt Varone
|
24 |
define('DYNAMIC_TO_TOP_BASENAME', plugin_basename(__FILE__));
|
25 |
define('DYNAMIC_TO_TOP_URL', plugins_url('',__FILE__));
|
26 |
define('DYNAMIC_TO_TOP_PATH', plugin_dir_path(__FILE__));
|
27 |
+
define('DYNAMIC_TO_TOP_VERSION', '3.1.3');
|
28 |
define('DYNAMIC_TO_TOP_FOLDER', '/'.basename(dirname(__FILE__)));
|
29 |
define('DYNAMIC_TO_TOP_DOMAIN', 'dynamic-to-top');
|
30 |
|
inc/dynamic-to-top-class.php
CHANGED
@@ -318,12 +318,13 @@ if ( !class_exists('Dynamic_To_Top'))
|
|
318 |
|
319 |
$css .= "/* Dynamic To Top Plugin ver. ".DYNAMIC_TO_TOP_VERSION." - http://www.mattvarone.com */\n\n";
|
320 |
|
321 |
-
$css .= "
|
322 |
-
|
|
|
323 |
display:none;
|
324 |
overflow:hidden;
|
325 |
width:auto;
|
326 |
-
|
327 |
position:fixed;
|
328 |
".$this->get_position()."
|
329 |
|
@@ -472,7 +473,7 @@ if ( !class_exists('Dynamic_To_Top'))
|
|
472 |
if(typeof document.body.style.maxHeight === \"undefined\") {
|
473 |
jQuery(containerIDhash).css({
|
474 |
'position': 'absolute',
|
475 |
-
'top': jQuery(window).scrollTop() + jQuery(window).height() -
|
476 |
});
|
477 |
}
|
478 |
if ( sd > settings.min )
|
318 |
|
319 |
$css .= "/* Dynamic To Top Plugin ver. ".DYNAMIC_TO_TOP_VERSION." - http://www.mattvarone.com */\n\n";
|
320 |
|
321 |
+
$css .= "body { position:relative}
|
322 |
+
|
323 |
+
#dynamic-to-top {
|
324 |
display:none;
|
325 |
overflow:hidden;
|
326 |
width:auto;
|
327 |
+
z-index:90;
|
328 |
position:fixed;
|
329 |
".$this->get_position()."
|
330 |
|
473 |
if(typeof document.body.style.maxHeight === \"undefined\") {
|
474 |
jQuery(containerIDhash).css({
|
475 |
'position': 'absolute',
|
476 |
+
'top': jQuery(window).scrollTop() + jQuery(window).height() - ".$this->options['margin']."
|
477 |
});
|
478 |
}
|
479 |
if ( sd > settings.min )
|
inc/dynamic-to-top-options.php
CHANGED
@@ -611,10 +611,11 @@ if ( !function_exists('dynamic_to_top_do_checkbox') )
|
|
611 |
|
612 |
$options_db = get_option('dynamic_to_top');
|
613 |
|
614 |
-
if (
|
615 |
$c = 'checked="checked"';
|
616 |
-
else
|
617 |
-
$c
|
|
|
618 |
|
619 |
if ( $desc != "")
|
620 |
$desc = '<div class="desc">'.$desc.'</div>';
|
611 |
|
612 |
$options_db = get_option('dynamic_to_top');
|
613 |
|
614 |
+
if (isset($options_db[$meta]) && $options_db[$meta] == $value)
|
615 |
$c = 'checked="checked"';
|
616 |
+
else
|
617 |
+
$c="";
|
618 |
+
|
619 |
|
620 |
if ( $desc != "")
|
621 |
$desc = '<div class="desc">'.$desc.'</div>';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.mattvarone.com
|
|
4 |
Tags: Dynamic, UI, Scroll, To top, Automatic, Enhance, UX
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 3.1.
|
8 |
|
9 |
Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
|
10 |
|
@@ -39,6 +39,10 @@ It features an intuitive control panel to style and adjust to each website's nee
|
|
39 |
|
40 |
== Changelog ==
|
41 |
|
|
|
|
|
|
|
|
|
42 |
= 3.1.2 =
|
43 |
* Fixed default settings
|
44 |
* Code improvements
|
4 |
Tags: Dynamic, UI, Scroll, To top, Automatic, Enhance, UX
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 3.1.2
|
7 |
+
Stable tag: 3.1.3
|
8 |
|
9 |
Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
|
10 |
|
39 |
|
40 |
== Changelog ==
|
41 |
|
42 |
+
= 3.1.3 =
|
43 |
+
* Code improvements
|
44 |
+
* Fixes Options problem
|
45 |
+
|
46 |
= 3.1.2 =
|
47 |
* Fixed default settings
|
48 |
* Code improvements
|