Dynamic "To Top" Plugin - Version 3.3.1

Version Description

  • Added Persian language.
  • Code fix.
Download this release

Release Info

Developer sksmatt
Plugin Icon wp plugin Dynamic "To Top" Plugin
Version 3.3.1
Comparing to
See all releases

Code changes from version 3.3 to 3.3.1

dynamic-to-top.php CHANGED
@@ -1,13 +1,13 @@
1
  <?php
2
  /*
3
  Plugin Name: Dynamic To Top
4
- Version: 3.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
8
  Author URI: http://www.mattvarone.com
9
 
10
- Copyright 2011 ( email: contact@mattvarone.com )
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License as published by
@@ -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.3' );
34
 
35
  /*
36
  |--------------------------------------------------------------------------
1
  <?php
2
  /*
3
  Plugin Name: Dynamic To Top
4
+ Version: 3.3.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
8
  Author URI: http://www.mattvarone.com
9
 
10
+ Copyright 2011-2012 ( email: contact@mattvarone.com )
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License as published by
30
  |--------------------------------------------------------------------------
31
  */
32
 
33
+ define( 'MV_DYNAMIC_TO_TOP_VERSION', '3.3.1' );
34
 
35
  /*
36
  |--------------------------------------------------------------------------
inc/dynamic-to-top-options.php CHANGED
@@ -373,7 +373,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_field_position' ) ) {
373
  'bottom-right' => __( 'Bottom Right', 'dynamic-to-top' ),
374
  );
375
 
376
- echo mv_dynamic_to_top_do_select( 'position', $options, 'bottom-right', __( 'Button position.', 'dynamic-to-top' ) );
377
  }
378
  }
379
 
@@ -417,7 +417,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_field_font_size' ) ) {
417
 
418
  if ( ! function_exists( 'mv_dynamic_to_top_field_padding_top_bottom' ) ) {
419
  function mv_dynamic_to_top_field_padding_top_bottom() {
420
- echo mv_dynamic_to_top_do_slider( 'padding_top_bottom', 21, __( 'Spacing on Top and Bottom. ( <span id="padding-top-bottom-val"></span>px )', 'dynamic-to-top' ) );
421
  }
422
  }
423
 
@@ -431,7 +431,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_field_padding_top_bottom' ) ) {
431
 
432
  if ( ! function_exists( 'mv_dynamic_to_top_field_padding_left_right' ) ) {
433
  function mv_dynamic_to_top_field_padding_left_right() {
434
- echo mv_dynamic_to_top_do_slider( 'padding_left_right', 19, __( 'Spacing on Left and Right. ( <span id="padding-left-right-val"></span>px )', 'dynamic-to-top' ) );
435
  }
436
  }
437
 
@@ -459,7 +459,7 @@ if ( ! function_exists( 'mv_dynamic_to_top_field_border_width' ) ) {
459
 
460
  if ( ! function_exists( 'mv_dynamic_to_top_field_border_radius' ) ) {
461
  function mv_dynamic_to_top_field_border_radius() {
462
- echo mv_dynamic_to_top_do_slider( 'radius', '9', __( 'Button border radius', 'dynamic-to-top' ).' <span id="radius-val"></span>px.' );
463
  }
464
  }
465
 
373
  'bottom-right' => __( 'Bottom Right', 'dynamic-to-top' ),
374
  );
375
 
376
+ echo mv_dynamic_to_top_do_select( 'position', $options, 'top-right', __( 'Button position.', 'dynamic-to-top' ) );
377
  }
378
  }
379
 
417
 
418
  if ( ! function_exists( 'mv_dynamic_to_top_field_padding_top_bottom' ) ) {
419
  function mv_dynamic_to_top_field_padding_top_bottom() {
420
+ echo mv_dynamic_to_top_do_slider( 'padding_top_bottom', 17, __( 'Spacing on Top and Bottom. ( <span id="padding-top-bottom-val"></span>px )', 'dynamic-to-top' ) );
421
  }
422
  }
423
 
431
 
432
  if ( ! function_exists( 'mv_dynamic_to_top_field_padding_left_right' ) ) {
433
  function mv_dynamic_to_top_field_padding_left_right() {
434
+ echo mv_dynamic_to_top_do_slider( 'padding_left_right', 16, __( 'Spacing on Left and Right. ( <span id="padding-left-right-val"></span>px )', 'dynamic-to-top' ) );
435
  }
436
  }
437
 
459
 
460
  if ( ! function_exists( 'mv_dynamic_to_top_field_border_radius' ) ) {
461
  function mv_dynamic_to_top_field_border_radius() {
462
+ echo mv_dynamic_to_top_do_slider( 'radius', '30', __( 'Button border radius', 'dynamic-to-top' ).' <span id="radius-val"></span>px.' );
463
  }
464
  }
465
 
js/dynamic.to.top.dev.js CHANGED
@@ -33,7 +33,7 @@ var mv_dynamic_to_top;
33
  }, settings.speed, settings.easing);
34
  return false;
35
  });
36
- $(window).on( 'scroll', function () {
37
  var sd = jQuery(window).scrollTop();
38
  if (typeof document.body.style.maxHeight === "undefined") {
39
  $toTop.css({
33
  }, settings.speed, settings.easing);
34
  return false;
35
  });
36
+ $(window).scroll(function () {
37
  var sd = jQuery(window).scrollTop();
38
  if (typeof document.body.style.maxHeight === "undefined") {
39
  $toTop.css({
js/dynamic.to.top.min.js CHANGED
@@ -8,5 +8,5 @@
8
  */
9
  var mv_dynamic_to_top;(function($,mv_dynamic_to_top){jQuery.fn.DynamicToTop=function(options){var defaults={text:mv_dynamic_to_top.text,min:parseInt(mv_dynamic_to_top.min,10),fade_in:600,fade_out:400,speed:parseInt(mv_dynamic_to_top.speed,10),easing:mv_dynamic_to_top.easing,version:mv_dynamic_to_top.version,id:'dynamic-to-top'},settings=$.extend(defaults,options);if(settings.version===""||settings.version==='0'){settings.text='<span>&nbsp;</span>';}
10
  if(!$.isFunction(settings.easing)){settings.easing='linear';}
11
- var $toTop=$('<a href=\"#\" id=\"'+settings.id+'\"></a>').html(settings.text);$toTop.hide().appendTo('body').click(function(){$('html, body').stop().animate({scrollTop:0},settings.speed,settings.easing);return false;});$(window).on('scroll',function(){var sd=jQuery(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$toTop.css({'position':'absolute','top':sd+$(window).height()-mv_dynamic_to_top.margin});}
12
  if(sd>settings.min){$toTop.fadeIn(settings.fade_in);}else{$toTop.fadeOut(settings.fade_out);}});};$('body').DynamicToTop();})(jQuery,mv_dynamic_to_top);
8
  */
9
  var mv_dynamic_to_top;(function($,mv_dynamic_to_top){jQuery.fn.DynamicToTop=function(options){var defaults={text:mv_dynamic_to_top.text,min:parseInt(mv_dynamic_to_top.min,10),fade_in:600,fade_out:400,speed:parseInt(mv_dynamic_to_top.speed,10),easing:mv_dynamic_to_top.easing,version:mv_dynamic_to_top.version,id:'dynamic-to-top'},settings=$.extend(defaults,options);if(settings.version===""||settings.version==='0'){settings.text='<span>&nbsp;</span>';}
10
  if(!$.isFunction(settings.easing)){settings.easing='linear';}
11
+ var $toTop=$('<a href=\"#\" id=\"'+settings.id+'\"></a>').html(settings.text);$toTop.hide().appendTo('body').click(function(){$('html, body').stop().animate({scrollTop:0},settings.speed,settings.easing);return false;});$(window).scroll(function(){var sd=jQuery(window).scrollTop();if(typeof document.body.style.maxHeight==="undefined"){$toTop.css({'position':'absolute','top':sd+$(window).height()-mv_dynamic_to_top.margin});}
12
  if(sd>settings.min){$toTop.fadeIn(settings.fade_in);}else{$toTop.fadeOut(settings.fade_out);}});};$('body').DynamicToTop();})(jQuery,mv_dynamic_to_top);
lan/dynamic-to-top-fa_IR.mo ADDED
Binary file
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.mattvarone.com/donate/
4
  Tags: Scroll, To top, Button, jQuery, Dynamic, UI, Automatic, Enhance, UX
5
  Requires at least: 3.3
6
  Tested up to: 3.4
7
- Stable tag: 3.3
8
 
9
  Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
10
 
@@ -21,7 +21,7 @@ It features an intuitive control panel to style and adjust to each website's nee
21
  * Caches and minify CSS for better performance.
22
  * Ready for internationalization.
23
  * Uninstall included.
24
- * Ships with Spanish, French, Arabic and Bulgarian translations.
25
 
26
  Would you like to help translate the plugin into more languages? [Contact Matt](http://www.mattvarone.com/contact/ "Contact Matt").
27
 
@@ -43,6 +43,10 @@ Would you like to help translate the plugin into more languages? [Contact Matt](
43
 
44
  == Change log ==
45
 
 
 
 
 
46
  = 3.3 =
47
  * Internationalization fix.
48
  * Code improvements.
4
  Tags: Scroll, To top, Button, jQuery, Dynamic, UI, Automatic, Enhance, UX
5
  Requires at least: 3.3
6
  Tested up to: 3.4
7
+ Stable tag: 3.3.1
8
 
9
  Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
10
 
21
  * Caches and minify CSS for better performance.
22
  * Ready for internationalization.
23
  * Uninstall included.
24
+ * Ships with Spanish, French, Arabic, Persian and Bulgarian translations.
25
 
26
  Would you like to help translate the plugin into more languages? [Contact Matt](http://www.mattvarone.com/contact/ "Contact Matt").
27
 
43
 
44
  == Change log ==
45
 
46
+ = 3.3.1 =
47
+ * Added Persian language.
48
+ * Code fix.
49
+
50
  = 3.3 =
51
  * Internationalization fix.
52
  * Code improvements.