Dynamic "To Top" Plugin - Version 3.1.6

Version Description

  • Added 3 new languages (Spanish, Bulgarian and Arabic).
  • Prefixed functions as better practice.
Download this release

Release Info

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

Code changes from version 3.1.5 to 3.1.6

css/dynamic-to-top-css.php CHANGED
@@ -12,7 +12,7 @@ header ("content-type: text/css; charset: UTF-8");
12
  // require WordPress
13
  require_once('../../../../wp-load.php');
14
 
15
- if(!defined('DYNAMIC_TO_TOP_VERSION'))
16
  die();
17
 
18
  global $OBJ_dynamic_to_top;
12
  // require WordPress
13
  require_once('../../../../wp-load.php');
14
 
15
+ if(!defined('MV_DYNAMIC_TO_TOP_VERSION'))
16
  die();
17
 
18
  global $OBJ_dynamic_to_top;
dynamic-to-top.php CHANGED
@@ -1,14 +1,27 @@
1
  <?php
2
  /*
3
  Plugin Name: Dynamic To Top
4
- Version: 3.1.5
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
8
  Author URI: http://www.mattvarone.com
9
 
10
- Dual licensed under the MIT or GPL Version 2 licenses.
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  */
13
 
14
  /**
@@ -24,12 +37,12 @@ Dual licensed under the MIT or GPL Version 2 licenses.
24
  |--------------------------------------------------------------------------
25
  */
26
 
27
- define('DYNAMIC_TO_TOP_BASENAME', plugin_basename(__FILE__));
28
- define('DYNAMIC_TO_TOP_URL', plugins_url('',__FILE__));
29
- define('DYNAMIC_TO_TOP_PATH', plugin_dir_path(__FILE__));
30
- define('DYNAMIC_TO_TOP_VERSION', '3.1.5');
31
- define('DYNAMIC_TO_TOP_FOLDER', basename(dirname(__FILE__)));
32
- define('DYNAMIC_TO_TOP_DOMAIN', 'dynamic-to-top');
33
 
34
  /*
35
  |--------------------------------------------------------------------------
@@ -37,7 +50,7 @@ define('DYNAMIC_TO_TOP_DOMAIN', 'dynamic-to-top');
37
  |--------------------------------------------------------------------------
38
  */
39
 
40
- load_plugin_textdomain( DYNAMIC_TO_TOP_DOMAIN, false, '/'.DYNAMIC_TO_TOP_FOLDER.'/lan' );
41
 
42
  /*
43
  |--------------------------------------------------------------------------
@@ -46,9 +59,9 @@ load_plugin_textdomain( DYNAMIC_TO_TOP_DOMAIN, false, '/'.DYNAMIC_TO_TOP_FOLDER.
46
  */
47
 
48
  if (is_admin())
49
- require_once(DYNAMIC_TO_TOP_PATH.'inc/dynamic-to-top-options.php');
50
  else
51
- require_once(DYNAMIC_TO_TOP_PATH.'inc/dynamic-to-top-class.php');
52
 
53
  /*
54
  |--------------------------------------------------------------------------
@@ -56,7 +69,7 @@ else
56
  |--------------------------------------------------------------------------
57
  */
58
 
59
- if ( !function_exists('dynamic_to_top_activation') )
60
  {
61
 
62
  /**
@@ -67,7 +80,7 @@ if ( !function_exists('dynamic_to_top_activation') )
67
  *
68
  */
69
 
70
- function dynamic_to_top_activation()
71
  {
72
  // check compatibility
73
  if ( version_compare( get_bloginfo('version' ),'3.0') >= 0 )
@@ -77,5 +90,5 @@ if ( !function_exists('dynamic_to_top_activation') )
77
  delete_transient('dynamic_to_top_transient_css');
78
  }
79
 
80
- register_activation_hook( __FILE__, 'dynamic_to_top_activation' );
81
  }
1
  <?php
2
  /*
3
  Plugin Name: Dynamic To Top
4
+ Version: 3.1.6
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
14
+ the Free Software Foundation; either version 2 of the License, or
15
+ (at your option) any later version.
16
+
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
+
22
+ You should have received a copy of the GNU General Public License
23
+ along with this program; if not, write to the Free Software
24
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
  */
26
 
27
  /**
37
  |--------------------------------------------------------------------------
38
  */
39
 
40
+ define('MV_DYNAMIC_TO_TOP_BASENAME', plugin_basename(__FILE__));
41
+ define('MV_DYNAMIC_TO_TOP_URL', plugins_url('',__FILE__));
42
+ define('MV_DYNAMIC_TO_TOP_PATH', plugin_dir_path(__FILE__));
43
+ define('MV_DYNAMIC_TO_TOP_VERSION', '3.1.6');
44
+ define('MV_DYNAMIC_TO_TOP_FOLDER', basename(dirname(__FILE__)));
45
+ define('MV_DYNAMIC_TO_TOP_DOMAIN', 'dynamic-to-top');
46
 
47
  /*
48
  |--------------------------------------------------------------------------
50
  |--------------------------------------------------------------------------
51
  */
52
 
53
+ load_plugin_textdomain( MV_DYNAMIC_TO_TOP_DOMAIN, false, '/'.MV_DYNAMIC_TO_TOP_FOLDER.'/lan' );
54
 
55
  /*
56
  |--------------------------------------------------------------------------
59
  */
60
 
61
  if (is_admin())
62
+ require_once(MV_DYNAMIC_TO_TOP_PATH.'inc/dynamic-to-top-options.php');
63
  else
64
+ require_once(MV_DYNAMIC_TO_TOP_PATH.'inc/dynamic-to-top-class.php');
65
 
66
  /*
67
  |--------------------------------------------------------------------------
69
  |--------------------------------------------------------------------------
70
  */
71
 
72
+ if ( !function_exists('mv_dynamic_to_top_activation') )
73
  {
74
 
75
  /**
80
  *
81
  */
82
 
83
+ function mv_dynamic_to_top_activation()
84
  {
85
  // check compatibility
86
  if ( version_compare( get_bloginfo('version' ),'3.0') >= 0 )
90
  delete_transient('dynamic_to_top_transient_css');
91
  }
92
 
93
+ register_activation_hook( __FILE__, 'mv_dynamic_to_top_activation' );
94
  }
inc/dynamic-to-top-class.php CHANGED
@@ -6,10 +6,10 @@
6
  * @author Matt Varone
7
  */
8
 
9
- if ( !class_exists('Dynamic_To_Top'))
10
  {
11
 
12
- class Dynamic_To_Top
13
  {
14
  public $options;
15
  private $defaults = array(
@@ -46,9 +46,9 @@ if ( !class_exists('Dynamic_To_Top'))
46
  *
47
  */
48
 
49
- function Dynamic_To_Top()
50
- {
51
- // Get options.
52
  $this->get_options();
53
 
54
  // Enqueue CSS and JS.
@@ -103,7 +103,7 @@ if ( !class_exists('Dynamic_To_Top'))
103
 
104
  function enqueue_style()
105
  {
106
- wp_enqueue_style('dynamic-to-top', DYNAMIC_TO_TOP_URL . '/css/dynamic-to-top-css.php', false, DYNAMIC_TO_TOP_VERSION,'all');
107
  }
108
 
109
  /**
@@ -116,8 +116,8 @@ if ( !class_exists('Dynamic_To_Top'))
116
 
117
  function enqueue_script()
118
  {
119
- wp_register_script('jquery-easing',DYNAMIC_TO_TOP_URL . '/js/libs/jquery.easing.js', array('jquery'),'1.3', true);
120
- wp_enqueue_script('dynamic-to-top', DYNAMIC_TO_TOP_URL . '/js/dynamic.to.top.js', array('jquery-easing'), DYNAMIC_TO_TOP_VERSION, true);
121
 
122
  $params = array(
123
  'text' => $this->options['text'],
@@ -171,7 +171,7 @@ if ( !class_exists('Dynamic_To_Top'))
171
  function generate_custom_css($css="")
172
  {
173
 
174
- $css .= "/* Dynamic To Top Plugin ver. ".DYNAMIC_TO_TOP_VERSION." - http://www.mattvarone.com */\n\n";
175
 
176
  $css .= "body {position:relative}
177
 
@@ -273,7 +273,7 @@ if ( !class_exists('Dynamic_To_Top'))
273
  overflow:hidden;
274
  width:14px;
275
  height:12px;
276
- background:url(".DYNAMIC_TO_TOP_URL."/css/images/up.png) no-repeat center center;
277
  }";
278
 
279
  return $css;
@@ -506,7 +506,7 @@ if ( !class_exists('Dynamic_To_Top'))
506
  |--------------------------------------------------------------------------
507
  */
508
 
509
- if (!function_exists('dynamic_to_top_init'))
510
  {
511
 
512
  /**
@@ -517,12 +517,12 @@ if ( !class_exists('Dynamic_To_Top'))
517
  *
518
  */
519
 
520
- function dynamic_to_top_init()
521
  {
522
  global $OBJ_dynamic_to_top;
523
- $OBJ_dynamic_to_top = new Dynamic_To_Top();
524
  }
525
 
526
- add_action('init', 'dynamic_to_top_init');
527
  }
528
  }
6
  * @author Matt Varone
7
  */
8
 
9
+ if ( !class_exists('MV_Dynamic_To_Top'))
10
  {
11
 
12
+ class MV_Dynamic_To_Top
13
  {
14
  public $options;
15
  private $defaults = array(
46
  *
47
  */
48
 
49
+ function __construct()
50
+ {
51
+ // Get options.
52
  $this->get_options();
53
 
54
  // Enqueue CSS and JS.
103
 
104
  function enqueue_style()
105
  {
106
+ wp_enqueue_style('dynamic-to-top', MV_DYNAMIC_TO_TOP_URL . '/css/dynamic-to-top-css.php', false, MV_DYNAMIC_TO_TOP_VERSION,'all');
107
  }
108
 
109
  /**
116
 
117
  function enqueue_script()
118
  {
119
+ wp_register_script('jquery-easing',MV_DYNAMIC_TO_TOP_URL . '/js/libs/jquery.easing.js', array('jquery'),'1.3', true);
120
+ wp_enqueue_script('dynamic-to-top', MV_DYNAMIC_TO_TOP_URL . '/js/dynamic.to.top.js', array('jquery-easing'), MV_DYNAMIC_TO_TOP_VERSION, true);
121
 
122
  $params = array(
123
  'text' => $this->options['text'],
171
  function generate_custom_css($css="")
172
  {
173
 
174
+ $css .= "/* Dynamic To Top Plugin ver. ".MV_DYNAMIC_TO_TOP_VERSION." - http://www.mattvarone.com */\n\n";
175
 
176
  $css .= "body {position:relative}
177
 
273
  overflow:hidden;
274
  width:14px;
275
  height:12px;
276
+ background:url(".MV_DYNAMIC_TO_TOP_URL."/css/images/up.png) no-repeat center center;
277
  }";
278
 
279
  return $css;
506
  |--------------------------------------------------------------------------
507
  */
508
 
509
+ if (!function_exists('mv_dynamic_to_top_init'))
510
  {
511
 
512
  /**
517
  *
518
  */
519
 
520
+ function mv_dynamic_to_top_init()
521
  {
522
  global $OBJ_dynamic_to_top;
523
+ $OBJ_dynamic_to_top = new MV_Dynamic_To_Top();
524
  }
525
 
526
+ add_action('init', 'mv_dynamic_to_top_init');
527
  }
528
  }
inc/dynamic-to-top-options.php CHANGED
@@ -7,10 +7,10 @@
7
  * @author Matt Varone
8
  */
9
 
10
- add_action('admin_menu', 'dynamic_to_top_create_options_page');
11
- add_action('admin_init', 'dynamic_to_top_register_and_build_fields');
12
 
13
- if ( !function_exists('dynamic_to_top_create_options_page') )
14
  {
15
 
16
  /**
@@ -22,14 +22,14 @@ if ( !function_exists('dynamic_to_top_create_options_page') )
22
  *
23
  */
24
 
25
- function dynamic_to_top_create_options_page()
26
  {
27
  // Create Options Page
28
- add_options_page('Dynamic To Top Options','Dynamic To Top', 'manage_options', __FILE__, 'dynamic_to_top_options_page');
29
  }
30
  }
31
 
32
- if ( !function_exists('dynamic_to_top_register_and_build_fields') )
33
  {
34
 
35
  /**
@@ -43,34 +43,34 @@ if ( !function_exists('dynamic_to_top_register_and_build_fields') )
43
  *
44
  */
45
 
46
- function dynamic_to_top_register_and_build_fields()
47
  {
48
- register_setting('dynamic_to_top', 'dynamic_to_top','dynamic_to_top_save_settings');
49
 
50
- add_settings_section('settings_section', __('Behavior', DYNAMIC_TO_TOP_DOMAIN),'__return_true',__FILE__);
51
- add_settings_section('appearance_section', __('Appearance', DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_appearance_section',__FILE__);
52
 
53
- add_settings_field('speed',__('Scroll time',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_scroll_time',__FILE__,'settings_section');
54
- add_settings_field('distance',__('Fade-in distance',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_distance',__FILE__,'settings_section');
55
- add_settings_field('easing',__('Easing',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_easing',__FILE__,'settings_section');
56
- add_settings_field('position',__('Position',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_position',__FILE__,'settings_section');
57
- add_settings_field('prevent_on_mobile',__('Prevent on mobile',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_prevent_on_mobile',__FILE__,'settings_section');
58
 
59
- add_settings_field('text_version',__('Text version',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_text_version',__FILE__,'appearance_section');
60
- add_settings_field('text',__('Button text',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_text',__FILE__,'appearance_section');
61
- add_settings_field('padding_top_bottom',__('Top/bottom padding',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_padding_top_bottom',__FILE__,'appearance_section');
62
- add_settings_field('padding_left_right',__('Sides padding',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_padding_left_right',__FILE__,'appearance_section');
63
- add_settings_field('font_size',__('Font size',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_font_size',__FILE__,'appearance_section');
64
- add_settings_field('text_color',__('Text color',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_text_color',__FILE__,'appearance_section');
65
- add_settings_field('bold',__('Bold Text',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_bold',__FILE__,'appearance_section');
66
- add_settings_field('text_shadow',__('Text shadow',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_text_shadow',__FILE__,'appearance_section');
67
- add_settings_field('shadow_color',__('Text shadow color',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_text_shadow_color',__FILE__,'appearance_section');
68
- add_settings_field('background_color',__('Background color',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_background_color',__FILE__,'appearance_section');
69
- add_settings_field('border_color',__('Border color',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_border_color',__FILE__,'appearance_section');
70
- add_settings_field('border_width',__('Border width',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_border_width',__FILE__,'appearance_section');
71
- add_settings_field('radius',__('Border radius',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_border_radius',__FILE__,'appearance_section');
72
- add_settings_field('inset',__('Inset highlighting',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_inset',__FILE__,'appearance_section');
73
- add_settings_field('shadow',__('Shadow',DYNAMIC_TO_TOP_DOMAIN),'dynamic_to_top_field_shadow',__FILE__,'appearance_section');
74
 
75
  }
76
  }
@@ -81,7 +81,7 @@ if ( !function_exists('dynamic_to_top_register_and_build_fields') )
81
  |--------------------------------------------------------------------------
82
  */
83
 
84
- if ( !function_exists('dynamic_to_top_options_page') )
85
  {
86
  /**
87
  * Options Page
@@ -94,15 +94,15 @@ if ( !function_exists('dynamic_to_top_options_page') )
94
  *
95
  */
96
 
97
- function dynamic_to_top_options_page()
98
  {
99
 
100
  ?>
101
  <div class="wrap">
102
  <?php screen_icon(); ?>
103
- <h2><?php _e('Dynamic To Top Options', DYNAMIC_TO_TOP_DOMAIN); ?></h2>
104
 
105
- <p><?php _e('Welcome to the <strong>Dynamic To Top</strong> plugin settings. Click <a href="http://www.mattvarone.com/wordpress/dynamic-to-top-wordpress-plugin/" target="_blank">here</a> to learn more about this plugin.',DYNAMIC_TO_TOP_DOMAIN); ?></p>
106
 
107
 
108
  <form method="post" action="options.php" enctype="multipart/form-data">
@@ -110,10 +110,10 @@ if ( !function_exists('dynamic_to_top_options_page') )
110
  <?php do_settings_sections(__FILE__); ?>
111
 
112
  <p class="submit">
113
- <input name="Submit" type="submit" class="button-primary" value="<?php _e('Save Changes', DYNAMIC_TO_TOP_DOMAIN); ?>" />
114
  </p>
115
 
116
- <p><small><?php _e('<strong>Dynamic To Top</strong> plugin brought to you by',DYNAMIC_TO_TOP_DOMAIN); ?> <a href="http://www.mattvarone.com" title="Matt Varone" target="_blank"><strong>Matt Varone</strong></a>.</small></p>
117
 
118
  </form>
119
  </div>
@@ -122,18 +122,18 @@ if ( !function_exists('dynamic_to_top_options_page') )
122
 
123
  }
124
 
125
- if ( !function_exists('dynamic_to_top_appearance_section') )
126
  {
127
- function dynamic_to_top_appearance_section()
128
  {
129
  echo '<div id="dynamic-to-top-preview"><div id="dynamic-to-top-button"><span id="dtt-text"></span><span id="dtt-image"></span></div></div>';
130
- echo '<p class="ddt-bg-colors"><small>'.__('Preview over',DYNAMIC_TO_TOP_DOMAIN).' <a href="#" title="black">'.__('black',DYNAMIC_TO_TOP_DOMAIN).'</a>, <a href="#" title="lightgrey">'.__('grey',DYNAMIC_TO_TOP_DOMAIN).'</a> or <a href="#" title="white">'.__('white',DYNAMIC_TO_TOP_DOMAIN).'</a>.</small></p>';
131
  }
132
  }
133
 
134
- if ( !function_exists('dynamic_to_top_save_settings') )
135
  {
136
- function dynamic_to_top_save_settings($options)
137
  {
138
  delete_transient('dynamic_to_top_transient_css');
139
  delete_transient('dynamic_to_top_transient_js');
@@ -148,7 +148,7 @@ if ( !function_exists('dynamic_to_top_save_settings') )
148
  |--------------------------------------------------------------------------
149
  */
150
 
151
- if ( !function_exists('dynamic_to_top_styles') )
152
  {
153
  /**
154
  * Options page enqueue style.
@@ -159,19 +159,19 @@ if ( !function_exists('dynamic_to_top_styles') )
159
  *
160
  */
161
 
162
- function dynamic_to_top_styles()
163
  {
164
- if (dynamic_to_top_is_page_options()) {
165
  wp_enqueue_style('farbtastic');
166
- wp_enqueue_style('dynamic-to-top-jquery-ui', DYNAMIC_TO_TOP_URL.'/css/dynamic-to-top-jquery-ui.css',array(),'1.8.13');
167
- wp_enqueue_style('dynamic-to-top-admin', DYNAMIC_TO_TOP_URL.'/css/dynamic-to-top-admin.css',array('dynamic-to-top-jquery-ui'),DYNAMIC_TO_TOP_VERSION);
168
  }
169
  }
170
 
171
- add_action( 'admin_print_styles', 'dynamic_to_top_styles' );
172
  }
173
 
174
- if ( !function_exists('dynamic_to_top_scripts') )
175
  {
176
 
177
  /**
@@ -183,21 +183,21 @@ if ( !function_exists('dynamic_to_top_scripts') )
183
  *
184
  */
185
 
186
- function dynamic_to_top_scripts()
187
  {
188
- if (dynamic_to_top_is_page_options())
189
  {
190
- wp_enqueue_script('jquery-ui-widget', DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.widget.js', array('jquery-ui-core'),'1.8.14');
191
- wp_enqueue_script('jquery-ui-mouse', DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.mouse.js', array('jquery-ui-widget'),'1.8.14');
192
- wp_enqueue_script('jquery-ui-slider', DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.slider.js', array('jquery-ui-mouse'),'1.8.14');
193
- wp_enqueue_script('dynamic-to-top-settings',DYNAMIC_TO_TOP_URL.'/js/dynamic.to.top.settings.js',array('jquery-ui-slider','farbtastic'),'1.0',true);
194
  }
195
  }
196
 
197
- add_action( 'admin_print_scripts', 'dynamic_to_top_scripts' );
198
  }
199
 
200
- if ( !function_exists('dynamic_to_top_is_page_options') )
201
  {
202
 
203
  /**
@@ -210,7 +210,7 @@ if ( !function_exists('dynamic_to_top_is_page_options') )
210
  *
211
  */
212
 
213
- function dynamic_to_top_is_page_options()
214
  {
215
  global $pagenow;
216
 
@@ -218,7 +218,7 @@ if ( !function_exists('dynamic_to_top_is_page_options') )
218
  {
219
  $screen = get_current_screen();
220
 
221
- if ( isset($screen->base) && $screen->base == 'settings_page_'.DYNAMIC_TO_TOP_FOLDER.'/inc/dynamic-to-top-options')
222
  return true;
223
  else
224
  return false;
@@ -227,7 +227,7 @@ if ( !function_exists('dynamic_to_top_is_page_options') )
227
  {
228
  $pages = array('options-general.php');
229
 
230
- if (in_array($pagenow, $pages) && isset($_GET['page']) && $_GET['page'] == DYNAMIC_TO_TOP_FOLDER.'/inc/dynamic-to-top-options.php')
231
  return true;
232
  }
233
 
@@ -243,7 +243,7 @@ if ( !function_exists('dynamic_to_top_is_page_options') )
243
 
244
  // COLOR PICKERS /////////////////////////
245
 
246
- if ( !function_exists('dynamic_to_top_field_border_color') )
247
  {
248
 
249
  /**
@@ -253,13 +253,13 @@ if ( !function_exists('dynamic_to_top_field_border_color') )
253
  *
254
  */
255
 
256
- function dynamic_to_top_field_border_color()
257
  {
258
- echo dynamic_to_top_do_textfield_color('border_color','#000',__('Color for the button border.',DYNAMIC_TO_TOP_DOMAIN));
259
  }
260
  }
261
 
262
- if ( !function_exists('dynamic_to_top_field_background_color') )
263
  {
264
 
265
  /**
@@ -269,13 +269,13 @@ if ( !function_exists('dynamic_to_top_field_background_color') )
269
  *
270
  */
271
 
272
- function dynamic_to_top_field_background_color()
273
  {
274
- echo dynamic_to_top_do_textfield_color('background_color','#111',__('Background color for the button.',DYNAMIC_TO_TOP_DOMAIN));
275
  }
276
  }
277
 
278
- if ( !function_exists('dynamic_to_top_field_text_color') )
279
  {
280
 
281
  /**
@@ -285,13 +285,13 @@ if ( !function_exists('dynamic_to_top_field_text_color') )
285
  *
286
  */
287
 
288
- function dynamic_to_top_field_text_color()
289
  {
290
- echo dynamic_to_top_do_textfield_color('text_color','#fff',__('Button text color.',DYNAMIC_TO_TOP_DOMAIN));
291
  }
292
  }
293
 
294
- if ( !function_exists('dynamic_to_top_field_text_shadow_color') )
295
  {
296
 
297
  /**
@@ -301,13 +301,13 @@ if ( !function_exists('dynamic_to_top_field_text_shadow_color') )
301
  *
302
  */
303
 
304
- function dynamic_to_top_field_text_shadow_color()
305
  {
306
- echo dynamic_to_top_do_textfield_color('shadow_color','#333',__('Text shadow color.',DYNAMIC_TO_TOP_DOMAIN));
307
  }
308
  }
309
 
310
- if ( !function_exists('dynamic_to_top_field_box_shadow_color') )
311
  {
312
 
313
  /**
@@ -317,15 +317,15 @@ if ( !function_exists('dynamic_to_top_field_box_shadow_color') )
317
  *
318
  */
319
 
320
- function dynamic_to_top_field_box_shadow_color()
321
  {
322
- echo dynamic_to_top_do_textfield_color('box_shadow_color','#333',__('Text shadow color.',DYNAMIC_TO_TOP_DOMAIN));
323
  }
324
  }
325
 
326
  // SELECT BOX /////////////////////////
327
 
328
- if ( !function_exists('dynamic_to_top_field_easing') )
329
  {
330
 
331
  /**
@@ -335,15 +335,15 @@ if ( !function_exists('dynamic_to_top_field_easing') )
335
  *
336
  */
337
 
338
- function dynamic_to_top_field_easing()
339
  {
340
  $options = array( 'Linear', 'In','Out','In Out','Bounce','Elastic');
341
 
342
- echo dynamic_to_top_do_select('easing',$options,'In',__('<a href="http://gsgd.co.uk/sandbox/jquery/easing" title="Easing type">Easing type</a> used to scroll the page up.',DYNAMIC_TO_TOP_DOMAIN));
343
  }
344
  }
345
 
346
- if ( !function_exists('dynamic_to_top_field_position') )
347
  {
348
 
349
  /**
@@ -353,17 +353,17 @@ if ( !function_exists('dynamic_to_top_field_position') )
353
  *
354
  */
355
 
356
- function dynamic_to_top_field_position()
357
  {
358
  $options = array( 'Top Left', 'Top Right', 'Bottom Left', 'Bottom Right');
359
 
360
- echo dynamic_to_top_do_select('position',$options,'Bottom Right',__('Button position.',DYNAMIC_TO_TOP_DOMAIN));
361
  }
362
  }
363
 
364
  // SLIDER UI /////////////////////////
365
 
366
- if ( !function_exists('dynamic_to_top_field_scroll_time') )
367
  {
368
 
369
  /**
@@ -373,13 +373,13 @@ if ( !function_exists('dynamic_to_top_field_scroll_time') )
373
  *
374
  */
375
 
376
- function dynamic_to_top_field_scroll_time()
377
  {
378
- echo dynamic_to_top_do_slider('speed',1100,__('Time it takes for the page to scroll up. Less for faster. ( <span id="speed-val"></span> Milliseconds )',DYNAMIC_TO_TOP_DOMAIN));
379
  }
380
  }
381
 
382
- if ( !function_exists('dynamic_to_top_field_font_size') )
383
  {
384
 
385
  /**
@@ -389,13 +389,13 @@ if ( !function_exists('dynamic_to_top_field_font_size') )
389
  *
390
  */
391
 
392
- function dynamic_to_top_field_font_size()
393
  {
394
- echo dynamic_to_top_do_slider('font_size',1,__('Button text size. ( <span id="font-size-val"></span> Em/s )',DYNAMIC_TO_TOP_DOMAIN));
395
  }
396
  }
397
 
398
- if ( !function_exists('dynamic_to_top_field_padding_top_bottom') )
399
  {
400
 
401
  /**
@@ -405,13 +405,13 @@ if ( !function_exists('dynamic_to_top_field_padding_top_bottom') )
405
  *
406
  */
407
 
408
- function dynamic_to_top_field_padding_top_bottom()
409
  {
410
- echo 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_DOMAIN));
411
  }
412
  }
413
 
414
- if ( !function_exists('dynamic_to_top_field_padding_left_right') )
415
  {
416
 
417
  /**
@@ -421,13 +421,13 @@ if ( !function_exists('dynamic_to_top_field_padding_left_right') )
421
  *
422
  */
423
 
424
- function dynamic_to_top_field_padding_left_right()
425
  {
426
- echo 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_DOMAIN));
427
  }
428
  }
429
 
430
- if ( !function_exists('dynamic_to_top_field_border_width') )
431
  {
432
 
433
  /**
@@ -437,13 +437,13 @@ if ( !function_exists('dynamic_to_top_field_border_width') )
437
  *
438
  */
439
 
440
- function dynamic_to_top_field_border_width()
441
  {
442
- echo dynamic_to_top_do_slider('border_width','1',__('Button border width',DYNAMIC_TO_TOP_DOMAIN).' <span id="border-val"></span>px.');
443
  }
444
  }
445
 
446
- if ( !function_exists('dynamic_to_top_field_border_radius') )
447
  {
448
 
449
  /**
@@ -453,15 +453,15 @@ if ( !function_exists('dynamic_to_top_field_border_radius') )
453
  *
454
  */
455
 
456
- function dynamic_to_top_field_border_radius()
457
  {
458
- echo dynamic_to_top_do_slider('radius','9',__('Button border radius',DYNAMIC_TO_TOP_DOMAIN).' <span id="radius-val"></span>px.');
459
  }
460
  }
461
 
462
  // TEXTFIELDS /////////////////////////
463
 
464
- if ( !function_exists('dynamic_to_top_field_distance') )
465
  {
466
 
467
  /**
@@ -471,13 +471,13 @@ if ( !function_exists('dynamic_to_top_field_distance') )
471
  *
472
  */
473
 
474
- function dynamic_to_top_field_distance()
475
  {
476
- echo dynamic_to_top_do_textfield('distance',300,__('Distance from top to show the button. ( Pixels )',DYNAMIC_TO_TOP_DOMAIN));
477
  }
478
  }
479
 
480
- if ( !function_exists('dynamic_to_top_field_text') )
481
  {
482
 
483
  /**
@@ -487,15 +487,15 @@ if ( !function_exists('dynamic_to_top_field_text') )
487
  *
488
  */
489
 
490
- function dynamic_to_top_field_text()
491
  {
492
- echo dynamic_to_top_do_textfield('text',__('To Top',DYNAMIC_TO_TOP_DOMAIN),__('Text displayed on the button.',DYNAMIC_TO_TOP_DOMAIN),'regular-text');
493
  }
494
  }
495
 
496
  // CHECKBOXES /////////////////////////
497
 
498
- if ( !function_exists('dynamic_to_top_field_prevent_on_mobile') )
499
  {
500
 
501
  /**
@@ -505,13 +505,13 @@ if ( !function_exists('dynamic_to_top_field_prevent_on_mobile') )
505
  *
506
  */
507
 
508
- function dynamic_to_top_field_prevent_on_mobile()
509
  {
510
- echo dynamic_to_top_do_checkbox('prevent_on_mobile',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',false,__('Disable the button on mobile browsers.',DYNAMIC_TO_TOP_DOMAIN));
511
  }
512
  }
513
 
514
- if ( !function_exists('dynamic_to_top_field_text_version') )
515
  {
516
 
517
  /**
@@ -521,13 +521,13 @@ if ( !function_exists('dynamic_to_top_field_text_version') )
521
  *
522
  */
523
 
524
- function dynamic_to_top_field_text_version()
525
  {
526
- echo dynamic_to_top_do_checkbox('text_version',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',false,__('Show a text version instead of the arrow up icon.',DYNAMIC_TO_TOP_DOMAIN));
527
  }
528
  }
529
 
530
- if ( !function_exists('dynamic_to_top_field_inset') )
531
  {
532
 
533
  /**
@@ -537,13 +537,13 @@ if ( !function_exists('dynamic_to_top_field_inset') )
537
  *
538
  */
539
 
540
- function dynamic_to_top_field_inset()
541
  {
542
- echo dynamic_to_top_do_checkbox('inset',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add CSS3 inset-highlight.',DYNAMIC_TO_TOP_DOMAIN));
543
  }
544
  }
545
 
546
- if ( !function_exists('dynamic_to_top_field_shadow') )
547
  {
548
 
549
  /**
@@ -553,13 +553,13 @@ if ( !function_exists('dynamic_to_top_field_shadow') )
553
  *
554
  */
555
 
556
- function dynamic_to_top_field_shadow()
557
  {
558
- echo dynamic_to_top_do_checkbox('shadow',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add CSS3 shadow.',DYNAMIC_TO_TOP_DOMAIN));
559
  }
560
  }
561
 
562
- if ( !function_exists('dynamic_to_top_field_weight') )
563
  {
564
 
565
  /**
@@ -569,13 +569,13 @@ if ( !function_exists('dynamic_to_top_field_weight') )
569
  *
570
  */
571
 
572
- function dynamic_to_top_field_bold()
573
  {
574
- echo dynamic_to_top_do_checkbox('bold',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Make the text bold.',DYNAMIC_TO_TOP_DOMAIN));
575
  }
576
  }
577
 
578
- if ( !function_exists('dynamic_to_top_field_text_shadow') )
579
  {
580
 
581
  /**
@@ -585,9 +585,9 @@ if ( !function_exists('dynamic_to_top_field_text_shadow') )
585
  *
586
  */
587
 
588
- function dynamic_to_top_field_text_shadow()
589
  {
590
- echo dynamic_to_top_do_checkbox('text_shadow',__('Yes',DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add a subtle text shadow.',DYNAMIC_TO_TOP_DOMAIN));
591
  }
592
  }
593
  /*
@@ -596,7 +596,7 @@ if ( !function_exists('dynamic_to_top_field_text_shadow') )
596
  |--------------------------------------------------------------------------
597
  */
598
 
599
- if ( !function_exists('dynamic_to_top_do_checkbox') )
600
  {
601
 
602
  /**
@@ -610,7 +610,7 @@ if ( !function_exists('dynamic_to_top_do_checkbox') )
610
  *
611
  */
612
 
613
- function dynamic_to_top_do_checkbox($meta,$label="Yes",$value='yes',$checked=false,$desc="")
614
  {
615
 
616
  $options_db = get_option('dynamic_to_top');
@@ -630,7 +630,7 @@ if ( !function_exists('dynamic_to_top_do_checkbox') )
630
  }
631
  }
632
 
633
- if ( !function_exists('dynamic_to_top_do_textfield') )
634
  {
635
 
636
  /**
@@ -644,7 +644,7 @@ if ( !function_exists('dynamic_to_top_do_textfield') )
644
  *
645
  */
646
 
647
- function dynamic_to_top_do_textfield($meta,$value="",$desc="",$class="")
648
  {
649
 
650
  $options_db = get_option('dynamic_to_top');
@@ -664,7 +664,7 @@ if ( !function_exists('dynamic_to_top_do_textfield') )
664
  }
665
  }
666
 
667
- if ( !function_exists('dynamic_to_top_do_select') )
668
  {
669
 
670
  /**
@@ -678,7 +678,7 @@ if ( !function_exists('dynamic_to_top_do_select') )
678
  *
679
  */
680
 
681
- function dynamic_to_top_do_select($meta,$options=array(),$value="",$desc="")
682
  {
683
 
684
  $options_out = "";
@@ -711,7 +711,7 @@ if ( !function_exists('dynamic_to_top_do_select') )
711
  }
712
  }
713
 
714
- if ( !function_exists('dynamic_to_top_do_textfield_color') )
715
  {
716
 
717
  /**
@@ -725,7 +725,7 @@ if ( !function_exists('dynamic_to_top_do_textfield_color') )
725
  *
726
  */
727
 
728
- function dynamic_to_top_do_textfield_color($meta,$value="",$desc="",$class="")
729
  {
730
 
731
  $options_db = get_option('dynamic_to_top');
@@ -744,7 +744,7 @@ if ( !function_exists('dynamic_to_top_do_textfield_color') )
744
  $sanitized_meta_title = str_replace('_','-',sanitize_title($meta));
745
 
746
  $out = '<input type="text" name="dynamic_to_top['.$meta.']" id="farbtastic-'.$sanitized_meta_title.'" '.$class.' value="'.$value.'" />';
747
- $out .= '<a class="picker hide-if-no-js" href="#" data-closed="'.__('close',DYNAMIC_TO_TOP_DOMAIN).'" data-open="'.__('select a color',DYNAMIC_TO_TOP_DOMAIN).'">'.__('select a color',DYNAMIC_TO_TOP_DOMAIN).'</a>';
748
  $out .= '<div id="farbtastic-picker-'.$sanitized_meta_title.'" class="dtt-farbtastic"></div>';
749
  $out .= $desc;
750
 
@@ -752,7 +752,7 @@ if ( !function_exists('dynamic_to_top_do_textfield_color') )
752
  }
753
  }
754
 
755
- if ( !function_exists('dynamic_to_top_do_slider') )
756
  {
757
 
758
  /**
@@ -766,7 +766,7 @@ if ( !function_exists('dynamic_to_top_do_slider') )
766
  *
767
  */
768
 
769
- function dynamic_to_top_do_slider($meta,$value="",$desc="",$class="")
770
  {
771
 
772
  $options_db = get_option('dynamic_to_top');
7
  * @author Matt Varone
8
  */
9
 
10
+ add_action('admin_menu', 'mv_dynamic_to_top_create_options_page');
11
+ add_action('admin_init', 'mv_dynamic_to_top_register_and_build_fields');
12
 
13
+ if ( !function_exists('mv_dynamic_to_top_create_options_page') )
14
  {
15
 
16
  /**
22
  *
23
  */
24
 
25
+ function mv_dynamic_to_top_create_options_page()
26
  {
27
  // Create Options Page
28
+ add_options_page('Dynamic To Top Options','Dynamic To Top', 'manage_options', __FILE__, 'mv_dynamic_to_top_options_page');
29
  }
30
  }
31
 
32
+ if ( !function_exists('mv_dynamic_to_top_register_and_build_fields') )
33
  {
34
 
35
  /**
43
  *
44
  */
45
 
46
+ function mv_dynamic_to_top_register_and_build_fields()
47
  {
48
+ register_setting('dynamic_to_top', 'dynamic_to_top','mv_dynamic_to_top_save_settings');
49
 
50
+ add_settings_section('settings_section', __('Behavior', MV_DYNAMIC_TO_TOP_DOMAIN),'__return_true',__FILE__);
51
+ add_settings_section('appearance_section', __('Appearance', MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_appearance_section',__FILE__);
52
 
53
+ add_settings_field('speed',__('Scroll time',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_scroll_time',__FILE__,'settings_section');
54
+ add_settings_field('distance',__('Fade-in distance',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_distance',__FILE__,'settings_section');
55
+ add_settings_field('easing',__('Easing',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_easing',__FILE__,'settings_section');
56
+ add_settings_field('position',__('Position',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_position',__FILE__,'settings_section');
57
+ add_settings_field('prevent_on_mobile',__('Prevent on mobile',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_prevent_on_mobile',__FILE__,'settings_section');
58
 
59
+ add_settings_field('text_version',__('Text version',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_text_version',__FILE__,'appearance_section');
60
+ add_settings_field('text',__('Button text',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_text',__FILE__,'appearance_section');
61
+ add_settings_field('padding_top_bottom',__('Top/bottom padding',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_padding_top_bottom',__FILE__,'appearance_section');
62
+ add_settings_field('padding_left_right',__('Sides padding',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_padding_left_right',__FILE__,'appearance_section');
63
+ add_settings_field('font_size',__('Font size',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_font_size',__FILE__,'appearance_section');
64
+ add_settings_field('text_color',__('Text color',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_text_color',__FILE__,'appearance_section');
65
+ add_settings_field('bold',__('Bold Text',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_bold',__FILE__,'appearance_section');
66
+ add_settings_field('text_shadow',__('Text shadow',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_text_shadow',__FILE__,'appearance_section');
67
+ add_settings_field('shadow_color',__('Text shadow color',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_text_shadow_color',__FILE__,'appearance_section');
68
+ add_settings_field('background_color',__('Background color',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_background_color',__FILE__,'appearance_section');
69
+ add_settings_field('border_color',__('Border color',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_border_color',__FILE__,'appearance_section');
70
+ add_settings_field('border_width',__('Border width',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_border_width',__FILE__,'appearance_section');
71
+ add_settings_field('radius',__('Border radius',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_border_radius',__FILE__,'appearance_section');
72
+ add_settings_field('inset',__('Inset highlighting',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_inset',__FILE__,'appearance_section');
73
+ add_settings_field('shadow',__('Shadow',MV_DYNAMIC_TO_TOP_DOMAIN),'mv_dynamic_to_top_field_shadow',__FILE__,'appearance_section');
74
 
75
  }
76
  }
81
  |--------------------------------------------------------------------------
82
  */
83
 
84
+ if ( !function_exists('mv_dynamic_to_top_options_page') )
85
  {
86
  /**
87
  * Options Page
94
  *
95
  */
96
 
97
+ function mv_dynamic_to_top_options_page()
98
  {
99
 
100
  ?>
101
  <div class="wrap">
102
  <?php screen_icon(); ?>
103
+ <h2><?php _e('Dynamic To Top Options', MV_DYNAMIC_TO_TOP_DOMAIN); ?></h2>
104
 
105
+ <p><?php _e('Welcome to the <strong>Dynamic To Top</strong> plugin settings. Click <a href="http://www.mattvarone.com/featured-content/dynamic-to-top/" target="_blank">here</a> to learn more about this plugin.',MV_DYNAMIC_TO_TOP_DOMAIN); ?></p>
106
 
107
 
108
  <form method="post" action="options.php" enctype="multipart/form-data">
110
  <?php do_settings_sections(__FILE__); ?>
111
 
112
  <p class="submit">
113
+ <input name="Submit" type="submit" class="button-primary" value="<?php _e('Save Changes', MV_DYNAMIC_TO_TOP_DOMAIN); ?>" />
114
  </p>
115
 
116
+ <p><small><?php _e('<strong>Dynamic To Top</strong> plugin brought to you by',MV_DYNAMIC_TO_TOP_DOMAIN); ?> <a href="http://www.mattvarone.com" title="Matt Varone" target="_blank"><strong>Matt Varone</strong></a>.</small></p>
117
 
118
  </form>
119
  </div>
122
 
123
  }
124
 
125
+ if ( !function_exists('mv_dynamic_to_top_appearance_section') )
126
  {
127
+ function mv_dynamic_to_top_appearance_section()
128
  {
129
  echo '<div id="dynamic-to-top-preview"><div id="dynamic-to-top-button"><span id="dtt-text"></span><span id="dtt-image"></span></div></div>';
130
+ echo '<p class="ddt-bg-colors"><small>'.__('Preview over',MV_DYNAMIC_TO_TOP_DOMAIN).' <a href="#" title="black">'.__('black',MV_DYNAMIC_TO_TOP_DOMAIN).'</a>, <a href="#" title="lightgrey">'.__('grey',MV_DYNAMIC_TO_TOP_DOMAIN).'</a> or <a href="#" title="white">'.__('white',MV_DYNAMIC_TO_TOP_DOMAIN).'</a>.</small></p>';
131
  }
132
  }
133
 
134
+ if ( !function_exists('mv_dynamic_to_top_save_settings') )
135
  {
136
+ function mv_dynamic_to_top_save_settings($options)
137
  {
138
  delete_transient('dynamic_to_top_transient_css');
139
  delete_transient('dynamic_to_top_transient_js');
148
  |--------------------------------------------------------------------------
149
  */
150
 
151
+ if ( !function_exists('mv_dynamic_to_top_styles') )
152
  {
153
  /**
154
  * Options page enqueue style.
159
  *
160
  */
161
 
162
+ function mv_dynamic_to_top_styles()
163
  {
164
+ if (mv_dynamic_to_top_is_page_options()) {
165
  wp_enqueue_style('farbtastic');
166
+ wp_enqueue_style('dynamic-to-top-jquery-ui', MV_DYNAMIC_TO_TOP_URL.'/css/dynamic-to-top-jquery-ui.css',array(),'1.8.13');
167
+ wp_enqueue_style('dynamic-to-top-admin', MV_DYNAMIC_TO_TOP_URL.'/css/dynamic-to-top-admin.css',array('dynamic-to-top-jquery-ui'),MV_DYNAMIC_TO_TOP_VERSION);
168
  }
169
  }
170
 
171
+ add_action( 'admin_print_styles', 'mv_dynamic_to_top_styles' );
172
  }
173
 
174
+ if ( !function_exists('mv_dynamic_to_top_scripts') )
175
  {
176
 
177
  /**
183
  *
184
  */
185
 
186
+ function mv_dynamic_to_top_scripts()
187
  {
188
+ if (mv_dynamic_to_top_is_page_options())
189
  {
190
+ wp_enqueue_script('jquery-ui-widget', MV_DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.widget.js', array('jquery-ui-core'),'1.8.14');
191
+ wp_enqueue_script('jquery-ui-mouse', MV_DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.mouse.js', array('jquery-ui-widget'),'1.8.14');
192
+ wp_enqueue_script('jquery-ui-slider', MV_DYNAMIC_TO_TOP_URL.'/js/libs/jquery.ui.slider.js', array('jquery-ui-mouse'),'1.8.14');
193
+ wp_enqueue_script('dynamic-to-top-settings',MV_DYNAMIC_TO_TOP_URL.'/js/dynamic.to.top.settings.js',array('jquery-ui-slider','farbtastic'),'1.0',true);
194
  }
195
  }
196
 
197
+ add_action( 'admin_print_scripts', 'mv_dynamic_to_top_scripts' );
198
  }
199
 
200
+ if ( !function_exists('mv_dynamic_to_top_is_page_options') )
201
  {
202
 
203
  /**
210
  *
211
  */
212
 
213
+ function mv_dynamic_to_top_is_page_options()
214
  {
215
  global $pagenow;
216
 
218
  {
219
  $screen = get_current_screen();
220
 
221
+ if ( isset($screen->base) && $screen->base == 'settings_page_'.MV_DYNAMIC_TO_TOP_FOLDER.'/inc/dynamic-to-top-options')
222
  return true;
223
  else
224
  return false;
227
  {
228
  $pages = array('options-general.php');
229
 
230
+ if (in_array($pagenow, $pages) && isset($_GET['page']) && $_GET['page'] == MV_DYNAMIC_TO_TOP_FOLDER.'/inc/dynamic-to-top-options.php')
231
  return true;
232
  }
233
 
243
 
244
  // COLOR PICKERS /////////////////////////
245
 
246
+ if ( !function_exists('mv_dynamic_to_top_field_border_color') )
247
  {
248
 
249
  /**
253
  *
254
  */
255
 
256
+ function mv_dynamic_to_top_field_border_color()
257
  {
258
+ echo mv_dynamic_to_top_do_textfield_color('border_color','#000',__('Color for the button border.',MV_DYNAMIC_TO_TOP_DOMAIN));
259
  }
260
  }
261
 
262
+ if ( !function_exists('mv_dynamic_to_top_field_background_color') )
263
  {
264
 
265
  /**
269
  *
270
  */
271
 
272
+ function mv_dynamic_to_top_field_background_color()
273
  {
274
+ echo mv_dynamic_to_top_do_textfield_color('background_color','#111',__('Background color for the button.',MV_DYNAMIC_TO_TOP_DOMAIN));
275
  }
276
  }
277
 
278
+ if ( !function_exists('mv_dynamic_to_top_field_text_color') )
279
  {
280
 
281
  /**
285
  *
286
  */
287
 
288
+ function mv_dynamic_to_top_field_text_color()
289
  {
290
+ echo mv_dynamic_to_top_do_textfield_color('text_color','#fff',__('Button text color.',MV_DYNAMIC_TO_TOP_DOMAIN));
291
  }
292
  }
293
 
294
+ if ( !function_exists('mv_dynamic_to_top_field_text_shadow_color') )
295
  {
296
 
297
  /**
301
  *
302
  */
303
 
304
+ function mv_dynamic_to_top_field_text_shadow_color()
305
  {
306
+ echo mv_dynamic_to_top_do_textfield_color('shadow_color','#333',__('Text shadow color.',MV_DYNAMIC_TO_TOP_DOMAIN));
307
  }
308
  }
309
 
310
+ if ( !function_exists('mv_dynamic_to_top_field_box_shadow_color') )
311
  {
312
 
313
  /**
317
  *
318
  */
319
 
320
+ function mv_dynamic_to_top_field_box_shadow_color()
321
  {
322
+ echo mv_dynamic_to_top_do_textfield_color('box_shadow_color','#333',__('Text shadow color.',MV_DYNAMIC_TO_TOP_DOMAIN));
323
  }
324
  }
325
 
326
  // SELECT BOX /////////////////////////
327
 
328
+ if ( !function_exists('mv_dynamic_to_top_field_easing') )
329
  {
330
 
331
  /**
335
  *
336
  */
337
 
338
+ function mv_dynamic_to_top_field_easing()
339
  {
340
  $options = array( 'Linear', 'In','Out','In Out','Bounce','Elastic');
341
 
342
+ echo mv_dynamic_to_top_do_select('easing',$options,'In',__('<a href="http://gsgd.co.uk/sandbox/jquery/easing" title="Easing type">Easing type</a> used to scroll the page up.',MV_DYNAMIC_TO_TOP_DOMAIN));
343
  }
344
  }
345
 
346
+ if ( !function_exists('mv_dynamic_to_top_field_position') )
347
  {
348
 
349
  /**
353
  *
354
  */
355
 
356
+ function mv_dynamic_to_top_field_position()
357
  {
358
  $options = array( 'Top Left', 'Top Right', 'Bottom Left', 'Bottom Right');
359
 
360
+ echo mv_dynamic_to_top_do_select('position',$options,'Bottom Right',__('Button position.',MV_DYNAMIC_TO_TOP_DOMAIN));
361
  }
362
  }
363
 
364
  // SLIDER UI /////////////////////////
365
 
366
+ if ( !function_exists('mv_dynamic_to_top_field_scroll_time') )
367
  {
368
 
369
  /**
373
  *
374
  */
375
 
376
+ function mv_dynamic_to_top_field_scroll_time()
377
  {
378
+ echo mv_dynamic_to_top_do_slider('speed',1100,__('Time it takes for the page to scroll up. Less for faster. ( <span id="speed-val"></span> Milliseconds )',MV_DYNAMIC_TO_TOP_DOMAIN));
379
  }
380
  }
381
 
382
+ if ( !function_exists('mv_dynamic_to_top_field_font_size') )
383
  {
384
 
385
  /**
389
  *
390
  */
391
 
392
+ function mv_dynamic_to_top_field_font_size()
393
  {
394
+ echo mv_dynamic_to_top_do_slider('font_size',1,__('Button text size. ( <span id="font-size-val"></span> Em/s )',MV_DYNAMIC_TO_TOP_DOMAIN));
395
  }
396
  }
397
 
398
+ if ( !function_exists('mv_dynamic_to_top_field_padding_top_bottom') )
399
  {
400
 
401
  /**
405
  *
406
  */
407
 
408
+ function mv_dynamic_to_top_field_padding_top_bottom()
409
  {
410
+ echo mv_dynamic_to_top_do_slider('padding_top_bottom',21,__('Spacing on Top and Bottom. ( <span id="padding-top-bottom-val"></span>px )',MV_DYNAMIC_TO_TOP_DOMAIN));
411
  }
412
  }
413
 
414
+ if ( !function_exists('mv_dynamic_to_top_field_padding_left_right') )
415
  {
416
 
417
  /**
421
  *
422
  */
423
 
424
+ function mv_dynamic_to_top_field_padding_left_right()
425
  {
426
+ echo mv_dynamic_to_top_do_slider('padding_left_right',19,__('Spacing on Left and Right. ( <span id="padding-left-right-val"></span>px )',MV_DYNAMIC_TO_TOP_DOMAIN));
427
  }
428
  }
429
 
430
+ if ( !function_exists('mv_dynamic_to_top_field_border_width') )
431
  {
432
 
433
  /**
437
  *
438
  */
439
 
440
+ function mv_dynamic_to_top_field_border_width()
441
  {
442
+ echo mv_dynamic_to_top_do_slider('border_width','1',__('Button border width',MV_DYNAMIC_TO_TOP_DOMAIN).' <span id="border-val"></span>px.');
443
  }
444
  }
445
 
446
+ if ( !function_exists('mv_dynamic_to_top_field_border_radius') )
447
  {
448
 
449
  /**
453
  *
454
  */
455
 
456
+ function mv_dynamic_to_top_field_border_radius()
457
  {
458
+ echo mv_dynamic_to_top_do_slider('radius','9',__('Button border radius',MV_DYNAMIC_TO_TOP_DOMAIN).' <span id="radius-val"></span>px.');
459
  }
460
  }
461
 
462
  // TEXTFIELDS /////////////////////////
463
 
464
+ if ( !function_exists('mv_dynamic_to_top_field_distance') )
465
  {
466
 
467
  /**
471
  *
472
  */
473
 
474
+ function mv_dynamic_to_top_field_distance()
475
  {
476
+ echo mv_dynamic_to_top_do_textfield('distance',300,__('Distance from top to show the button. ( Pixels )',MV_DYNAMIC_TO_TOP_DOMAIN));
477
  }
478
  }
479
 
480
+ if ( !function_exists('mv_dynamic_to_top_field_text') )
481
  {
482
 
483
  /**
487
  *
488
  */
489
 
490
+ function mv_dynamic_to_top_field_text()
491
  {
492
+ echo mv_dynamic_to_top_do_textfield('text',__('To Top',MV_DYNAMIC_TO_TOP_DOMAIN),__('Text displayed on the button.',MV_DYNAMIC_TO_TOP_DOMAIN),'regular-text');
493
  }
494
  }
495
 
496
  // CHECKBOXES /////////////////////////
497
 
498
+ if ( !function_exists('mv_dynamic_to_top_field_prevent_on_mobile') )
499
  {
500
 
501
  /**
505
  *
506
  */
507
 
508
+ function mv_dynamic_to_top_field_prevent_on_mobile()
509
  {
510
+ echo mv_dynamic_to_top_do_checkbox('prevent_on_mobile',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',false,__('Disable the button on mobile browsers.',MV_DYNAMIC_TO_TOP_DOMAIN));
511
  }
512
  }
513
 
514
+ if ( !function_exists('mv_dynamic_to_top_field_text_version') )
515
  {
516
 
517
  /**
521
  *
522
  */
523
 
524
+ function mv_dynamic_to_top_field_text_version()
525
  {
526
+ echo mv_dynamic_to_top_do_checkbox('text_version',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',false,__('Show a text version instead of the arrow up icon.',MV_DYNAMIC_TO_TOP_DOMAIN));
527
  }
528
  }
529
 
530
+ if ( !function_exists('mv_dynamic_to_top_field_inset') )
531
  {
532
 
533
  /**
537
  *
538
  */
539
 
540
+ function mv_dynamic_to_top_field_inset()
541
  {
542
+ echo mv_dynamic_to_top_do_checkbox('inset',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add CSS3 inset-highlight.',MV_DYNAMIC_TO_TOP_DOMAIN));
543
  }
544
  }
545
 
546
+ if ( !function_exists('mv_dynamic_to_top_field_shadow') )
547
  {
548
 
549
  /**
553
  *
554
  */
555
 
556
+ function mv_dynamic_to_top_field_shadow()
557
  {
558
+ echo mv_dynamic_to_top_do_checkbox('shadow',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add CSS3 shadow.',MV_DYNAMIC_TO_TOP_DOMAIN));
559
  }
560
  }
561
 
562
+ if ( !function_exists('mv_dynamic_to_top_field_weight') )
563
  {
564
 
565
  /**
569
  *
570
  */
571
 
572
+ function mv_dynamic_to_top_field_bold()
573
  {
574
+ echo mv_dynamic_to_top_do_checkbox('bold',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Make the text bold.',MV_DYNAMIC_TO_TOP_DOMAIN));
575
  }
576
  }
577
 
578
+ if ( !function_exists('mv_dynamic_to_top_field_text_shadow') )
579
  {
580
 
581
  /**
585
  *
586
  */
587
 
588
+ function mv_dynamic_to_top_field_text_shadow()
589
  {
590
+ echo mv_dynamic_to_top_do_checkbox('text_shadow',__('Yes',MV_DYNAMIC_TO_TOP_DOMAIN),'yes',true,__('Add a subtle text shadow.',MV_DYNAMIC_TO_TOP_DOMAIN));
591
  }
592
  }
593
  /*
596
  |--------------------------------------------------------------------------
597
  */
598
 
599
+ if ( !function_exists('mv_dynamic_to_top_do_checkbox') )
600
  {
601
 
602
  /**
610
  *
611
  */
612
 
613
+ function mv_dynamic_to_top_do_checkbox($meta,$label="Yes",$value='yes',$checked=false,$desc="")
614
  {
615
 
616
  $options_db = get_option('dynamic_to_top');
630
  }
631
  }
632
 
633
+ if ( !function_exists('mv_dynamic_to_top_do_textfield') )
634
  {
635
 
636
  /**
644
  *
645
  */
646
 
647
+ function mv_dynamic_to_top_do_textfield($meta,$value="",$desc="",$class="")
648
  {
649
 
650
  $options_db = get_option('dynamic_to_top');
664
  }
665
  }
666
 
667
+ if ( !function_exists('mv_dynamic_to_top_do_select') )
668
  {
669
 
670
  /**
678
  *
679
  */
680
 
681
+ function mv_dynamic_to_top_do_select($meta,$options=array(),$value="",$desc="")
682
  {
683
 
684
  $options_out = "";
711
  }
712
  }
713
 
714
+ if ( !function_exists('mv_dynamic_to_top_do_textfield_color') )
715
  {
716
 
717
  /**
725
  *
726
  */
727
 
728
+ function mv_dynamic_to_top_do_textfield_color($meta,$value="",$desc="",$class="")
729
  {
730
 
731
  $options_db = get_option('dynamic_to_top');
744
  $sanitized_meta_title = str_replace('_','-',sanitize_title($meta));
745
 
746
  $out = '<input type="text" name="dynamic_to_top['.$meta.']" id="farbtastic-'.$sanitized_meta_title.'" '.$class.' value="'.$value.'" />';
747
+ $out .= '<a class="picker hide-if-no-js" href="#" data-closed="'.__('close',MV_DYNAMIC_TO_TOP_DOMAIN).'" data-open="'.__('select a color',MV_DYNAMIC_TO_TOP_DOMAIN).'">'.__('select a color',MV_DYNAMIC_TO_TOP_DOMAIN).'</a>';
748
  $out .= '<div id="farbtastic-picker-'.$sanitized_meta_title.'" class="dtt-farbtastic"></div>';
749
  $out .= $desc;
750
 
752
  }
753
  }
754
 
755
+ if ( !function_exists('mv_dynamic_to_top_do_slider') )
756
  {
757
 
758
  /**
766
  *
767
  */
768
 
769
+ function mv_dynamic_to_top_do_slider($meta,$value="",$desc="",$class="")
770
  {
771
 
772
  $options_db = get_option('dynamic_to_top');
lan/dynamic-to-top-Ar.mo ADDED
Binary file
lan/dynamic-to-top-Ar.po ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: dynamic-to-top\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-07-14 08:05+0300\n"
6
+ "PO-Revision-Date: 2011-07-16 18:30+0300\n"
7
+ "Last-Translator: Osama Alshami <Demor17@gmail.com>\n"
8
+ "Language-Team: Osama Alshami <Demor17@gmail.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-Language: Arabic\n"
15
+ "X-Poedit-Country: Yemen\n"
16
+ "X-Poedit-SearchPath-0: inc\n"
17
+
18
+ #: inc/dynamic-to-top-options.php:50
19
+ msgid "Behavior"
20
+ msgstr "طريقة العمل"
21
+
22
+ #: inc/dynamic-to-top-options.php:51
23
+ msgid "Appearance"
24
+ msgstr "الظهور"
25
+
26
+ #: inc/dynamic-to-top-options.php:53
27
+ msgid "Scroll time"
28
+ msgstr "زمن الإرتفاع"
29
+
30
+ #: inc/dynamic-to-top-options.php:54
31
+ msgid "Fade-in distance"
32
+ msgstr "مسافة التلاشي"
33
+
34
+ #: inc/dynamic-to-top-options.php:55
35
+ msgid "Easing"
36
+ msgstr "السكونة"
37
+
38
+ #: inc/dynamic-to-top-options.php:56
39
+ msgid "Position"
40
+ msgstr "الموضع"
41
+
42
+ #: inc/dynamic-to-top-options.php:57
43
+ msgid "Prevent on mobile"
44
+ msgstr "ايقاف في الموبايل"
45
+
46
+ #: inc/dynamic-to-top-options.php:59
47
+ msgid "Text version"
48
+ msgstr "استخدام نص"
49
+
50
+ #: inc/dynamic-to-top-options.php:60
51
+ msgid "Button text"
52
+ msgstr "نص الزر"
53
+
54
+ #: inc/dynamic-to-top-options.php:61
55
+ msgid "Top/bottom padding"
56
+ msgstr "المسافة الداخلية من الأعلى والأسفل "
57
+
58
+ #: inc/dynamic-to-top-options.php:62
59
+ msgid "Sides padding"
60
+ msgstr "المسافة الداخلية من الجوانب"
61
+
62
+ #: inc/dynamic-to-top-options.php:63
63
+ msgid "Font size"
64
+ msgstr "حجم الخط"
65
+
66
+ #: inc/dynamic-to-top-options.php:64
67
+ msgid "Text color"
68
+ msgstr "لون النص"
69
+
70
+ #: inc/dynamic-to-top-options.php:65
71
+ msgid "Bold Text"
72
+ msgstr "نص غليظ"
73
+
74
+ #: inc/dynamic-to-top-options.php:66
75
+ msgid "Text shadow"
76
+ msgstr "ظل النص"
77
+
78
+ #: inc/dynamic-to-top-options.php:67
79
+ msgid "Text shadow color"
80
+ msgstr "لون ظل النص"
81
+
82
+ #: inc/dynamic-to-top-options.php:68
83
+ msgid "Background color"
84
+ msgstr "لون الخلفية"
85
+
86
+ #: inc/dynamic-to-top-options.php:69
87
+ msgid "Border color"
88
+ msgstr "لون الإطار"
89
+
90
+ #: inc/dynamic-to-top-options.php:70
91
+ msgid "Border width"
92
+ msgstr "عرض الإطار"
93
+
94
+ #: inc/dynamic-to-top-options.php:71
95
+ msgid "Border radius"
96
+ msgstr "قطر دوران الإطار"
97
+
98
+ #: inc/dynamic-to-top-options.php:72
99
+ msgid "Inset highlighting"
100
+ msgstr "تدرج عند الوقوف على الزر"
101
+
102
+ #: inc/dynamic-to-top-options.php:73
103
+ msgid "Shadow"
104
+ msgstr "الظل"
105
+
106
+ #: inc/dynamic-to-top-options.php:103
107
+ msgid "Dynamic To Top Options"
108
+ msgstr "خيارات إلى الأعلى بشكل آلي"
109
+
110
+ #: inc/dynamic-to-top-options.php:105
111
+ msgid "Welcome to the <strong>Dynamic To Top</strong> plugin settings. Click <a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">here</a> to learn more about this plugin."
112
+ msgstr "مرحبا بكم في إعدادات إضافة (<strong>إلى الأعلى بشكل آلي</strong>). أنقر (<a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">هنا</a>) لمعرفة المزيد من المعلومات حول هذه الإضافة."
113
+
114
+ #: inc/dynamic-to-top-options.php:113
115
+ msgid "Save Changes"
116
+ msgstr "أحفظ التغييرات"
117
+
118
+ #: inc/dynamic-to-top-options.php:116
119
+ msgid "<strong>Dynamic To Top</strong> plugin brought to you by"
120
+ msgstr "قدم لكم إضافة <strong>إلى الأعلى بشكل آلي</strong> المبرمج "
121
+
122
+ #: inc/dynamic-to-top-options.php:130
123
+ msgid "Preview over"
124
+ msgstr "المشاهدة المباشرة بخلفية "
125
+
126
+ #: inc/dynamic-to-top-options.php:130
127
+ msgid "black"
128
+ msgstr "سوداء"
129
+
130
+ #: inc/dynamic-to-top-options.php:130
131
+ msgid "grey"
132
+ msgstr "رمادية"
133
+
134
+ #: inc/dynamic-to-top-options.php:130
135
+ msgid "white"
136
+ msgstr "بيضاء"
137
+
138
+ #: inc/dynamic-to-top-options.php:258
139
+ msgid "Color for the button border."
140
+ msgstr "اللون لإطار الزر."
141
+
142
+ #: inc/dynamic-to-top-options.php:274
143
+ msgid "Background color for the button."
144
+ msgstr "لون الخلفية للزر."
145
+
146
+ #: inc/dynamic-to-top-options.php:290
147
+ msgid "Button text color."
148
+ msgstr "لون نص الزر."
149
+
150
+ #: inc/dynamic-to-top-options.php:306
151
+ #: inc/dynamic-to-top-options.php:322
152
+ msgid "Text shadow color."
153
+ msgstr "لون ظل النص."
154
+
155
+ #: inc/dynamic-to-top-options.php:342
156
+ msgid "<a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">Easing type</a> used to scroll the page up."
157
+ msgstr "<a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">انواع السكونة</a> المستخدمة للإنتقال إلى أعلى الصفحة.وهي تمثل حركة الوقوف عند الإنتقال إلى اعلى الصفحة."
158
+
159
+ #: inc/dynamic-to-top-options.php:360
160
+ msgid "Button position."
161
+ msgstr "موضع الزر."
162
+
163
+ #: inc/dynamic-to-top-options.php:378
164
+ msgid "Time it takes for the page to scroll up. Less for faster. ( <span id=\"speed-val\"></span> Milliseconds )"
165
+ msgstr "الوقت الذي سوف تأخذه الصفحة للإنتقال إلى الأعلى . كلما قل الرقم زادت السرعة . ( <span id=\"speed-val\"></span> مللي لكل ثانية )"
166
+
167
+ #: inc/dynamic-to-top-options.php:394
168
+ msgid "Button text size. ( <span id=\"font-size-val\"></span> Em/s )"
169
+ msgstr "حجم النص الظاهر على الزر. ( <span id=\"font-size-val\"></span> Em/s )"
170
+
171
+ #: inc/dynamic-to-top-options.php:410
172
+ msgid "Spacing on Top and Bottom. ( <span id=\"padding-top-bottom-val\"></span>px )"
173
+ msgstr "المسافة من الأعلى والأسفل. ( <span id=\"padding-top-bottom-val\"></span> بيكسل )"
174
+
175
+ #: inc/dynamic-to-top-options.php:426
176
+ msgid "Spacing on Left and Right. ( <span id=\"padding-left-right-val\"></span>px )"
177
+ msgstr "المسافة من اليمين واليسار. ( <span id=\"padding-left-right-val\"></span>بيكسل )"
178
+
179
+ #: inc/dynamic-to-top-options.php:442
180
+ msgid "Button border width"
181
+ msgstr "عرض إطار الزر"
182
+
183
+ #: inc/dynamic-to-top-options.php:458
184
+ msgid "Button border radius"
185
+ msgstr "قطر إطار الزر"
186
+
187
+ #: inc/dynamic-to-top-options.php:476
188
+ msgid "Distance from top to show the button. ( Pixels )"
189
+ msgstr "مقدار المسافة من الأعلى لكي يظهر الزر .(مقدرة بالبيكسل)"
190
+
191
+ #: inc/dynamic-to-top-options.php:492
192
+ msgid "To Top"
193
+ msgstr "إلى الأعلى"
194
+
195
+ #: inc/dynamic-to-top-options.php:492
196
+ msgid "Text displayed on the button."
197
+ msgstr "النص الذي سوف يظهر بدل صورة السهم المشير إلى الأعلى."
198
+
199
+ #: inc/dynamic-to-top-options.php:510
200
+ #: inc/dynamic-to-top-options.php:526
201
+ #: inc/dynamic-to-top-options.php:542
202
+ #: inc/dynamic-to-top-options.php:558
203
+ #: inc/dynamic-to-top-options.php:574
204
+ #: inc/dynamic-to-top-options.php:590
205
+ msgid "Yes"
206
+ msgstr "نعم"
207
+
208
+ #: inc/dynamic-to-top-options.php:510
209
+ msgid "Disable the button on mobile browsers."
210
+ msgstr "أخفي الزر في متصفحات الهواتف المحمولة."
211
+
212
+ #: inc/dynamic-to-top-options.php:526
213
+ msgid "Show a text version instead of the arrow up icon."
214
+ msgstr "تقوم بعرض نص انت تكتبه بدل السهم الذي يشير إلى الأعلى."
215
+
216
+ #: inc/dynamic-to-top-options.php:542
217
+ msgid "Add CSS3 inset-highlight."
218
+ msgstr "اضف تحديد متدرج بتنسيق CSS3."
219
+
220
+ #: inc/dynamic-to-top-options.php:558
221
+ msgid "Add CSS3 shadow."
222
+ msgstr "أضف ظل بتنسيق CSS3."
223
+
224
+ #: inc/dynamic-to-top-options.php:574
225
+ msgid "Make the text bold."
226
+ msgstr "اجعل النص غليظ."
227
+
228
+ #: inc/dynamic-to-top-options.php:590
229
+ msgid "Add a subtle text shadow."
230
+ msgstr "أضف لون النص البارز."
231
+
232
+ #: inc/dynamic-to-top-options.php:747
233
+ msgid "close"
234
+ msgstr "اغلق"
235
+
236
+ #: inc/dynamic-to-top-options.php:747
237
+ msgid "select a color"
238
+ msgstr "أختار اللون"
239
+
lan/dynamic-to-top-bg_BG.mo ADDED
Binary file
lan/dynamic-to-top-bg_BG.po ADDED
@@ -0,0 +1,177 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress site into a full featured multilingual content management system.
3
+ # http://wpml.org
4
+ msgid ""
5
+ msgstr ""
6
+ "Content-Type: text/plain; charset=utf-8\n"
7
+ "Content-Transfer-Encoding: 8bit\n"
8
+ "Project-Id-Version: Dynamic to top превод\n"
9
+ "POT-Creation-Date: \n"
10
+ "PO-Revision-Date: \n"
11
+ "Last-Translator: \n"
12
+ "Language-Team: fatlamer <fatlam3r@gmail.com>\n"
13
+ "MIME-Version: 1.0\n"
14
+ "X-Poedit-Language: Bulgarian\n"
15
+
16
+ msgid "Behavior"
17
+ msgstr "Поведение"
18
+
19
+ msgid "Appearance"
20
+ msgstr "Външен вид"
21
+
22
+ msgid "Scroll time"
23
+ msgstr "Време за анимиране"
24
+
25
+ msgid "Fade-in distance"
26
+ msgstr "Дистанция на избледняването"
27
+
28
+ msgid "Easing"
29
+ msgstr "Облекчение"
30
+
31
+ msgid "Position"
32
+ msgstr "Позиция"
33
+
34
+ msgid "Prevent on mobile"
35
+ msgstr "Забрани на мобилни браузъри"
36
+
37
+ msgid "Text version"
38
+ msgstr "Текстова версия"
39
+
40
+ msgid "Button text"
41
+ msgstr "Текст на бутона"
42
+
43
+ msgid "Top/bottom padding"
44
+ msgstr "Подлагане отгоре/отдолу"
45
+
46
+ msgid "Sides padding"
47
+ msgstr "Подложка на страните"
48
+
49
+ msgid "Font size"
50
+ msgstr "Големина на шрифта"
51
+
52
+ msgid "Text color"
53
+ msgstr "Цвят на текста"
54
+
55
+ msgid "Bold Text"
56
+ msgstr "Удебелен текст"
57
+
58
+ msgid "Text shadow"
59
+ msgstr "Сянка на текста"
60
+
61
+ msgid "Text shadow color"
62
+ msgstr "Цвят на сянката на текста"
63
+
64
+ msgid "Background color"
65
+ msgstr "Фоново изображение"
66
+
67
+ msgid "Border color"
68
+ msgstr "Цват на ръба"
69
+
70
+ msgid "Border width"
71
+ msgstr "Ширина на ръба"
72
+
73
+ msgid "Border radius"
74
+ msgstr "Радиус на ръна"
75
+
76
+ msgid "Inset highlighting"
77
+ msgstr "Добавяне на осветяване"
78
+
79
+ msgid "Shadow"
80
+ msgstr "Сянка"
81
+
82
+ msgid "Preview over"
83
+ msgstr "Предварителен преглед"
84
+
85
+ msgid "black"
86
+ msgstr "черно"
87
+
88
+ msgid "grey"
89
+ msgstr "сиво"
90
+
91
+ msgid "white"
92
+ msgstr "бяло"
93
+
94
+ msgid "Color for the button border."
95
+ msgstr "Цвят на ръба на бутона"
96
+
97
+ msgid "Background color for the button."
98
+ msgstr "Фоново изображение на бутона"
99
+
100
+ msgid "Button text color."
101
+ msgstr "Цвят на текста в бутона"
102
+
103
+ msgid "Text shadow color."
104
+ msgstr "Цвят на сянката на текста"
105
+
106
+ msgid "<a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">Easing type</a> used to scroll the page up."
107
+ msgstr "<a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">Easing type</a> used to scroll the page up."
108
+
109
+ msgid "Button position."
110
+ msgstr "Позиция на бутона"
111
+
112
+ msgid "Time it takes for the page to scroll up. Less for faster. ( <span id=\"speed-val\"></span> Milliseconds )"
113
+ msgstr "Колко време е необходимо на страницата за да достигне най-отгоре. По-малко е по-добре. ( <span id=\"speed-val\"></span> Milliseconds )"
114
+
115
+ msgid "Button text size. ( <span id=\"font-size-val\"></span> Em/s )"
116
+ msgstr "Големина на шрифта на текста в бутона. ( <span id=\"font-size-val\"></span> Em/s )"
117
+
118
+ msgid "Spacing on Top and Bottom. ( <span id=\"padding-top-bottom-val\"></span>px )"
119
+ msgstr "Разстояние отгоре и отдолу. ( <span id=\"padding-top-bottom-val\"></span>px )"
120
+
121
+ msgid "Spacing on Left and Right. ( <span id=\"padding-left-right-val\"></span>px )"
122
+ msgstr "Разстояние отляво и отдясно. ( <span id=\"padding-left-right-val\"></span>px )"
123
+
124
+ msgid "Button border width"
125
+ msgstr "Ширина на ръба на бутона"
126
+
127
+ msgid "Button border radius"
128
+ msgstr "Радиус на ръба на бутона"
129
+
130
+ msgid "Distance from top to show the button. ( Pixels )"
131
+ msgstr "Разстояние от горната част, след което да се показва бутона. (в пиксели)"
132
+
133
+ msgid "To Top"
134
+ msgstr "Върнете се в началото"
135
+
136
+ msgid "Text displayed on the button."
137
+ msgstr "Текст върху бутона."
138
+
139
+ msgid "Yes"
140
+ msgstr "Да"
141
+
142
+ msgid "Disable the button on mobile browsers."
143
+ msgstr "Изключи бутона в мобилните браузъри."
144
+
145
+ msgid "Show a text version instead of the arrow up icon."
146
+ msgstr "Покажи текстовата версия вместо иконата със стрелка."
147
+
148
+ msgid "Add CSS3 inset-highlight."
149
+ msgstr "Добави CSS3 добавено подчертаване."
150
+
151
+ msgid "Add CSS3 shadow."
152
+ msgstr "Добави CSS3 сенки."
153
+
154
+ msgid "Make the text bold."
155
+ msgstr "Направи шрифта удебелен."
156
+
157
+ msgid "Add a subtle text shadow."
158
+ msgstr "Направи текста на сянката изтънчен."
159
+
160
+ msgid "close"
161
+ msgstr "затвори"
162
+
163
+ msgid "select a color"
164
+ msgstr "Избери цвят"
165
+
166
+ msgid "Dynamic To Top Options"
167
+ msgstr "Опции на \"Dynamic To Top\""
168
+
169
+ msgid "Welcome to the <strong>Dynamic To Top</strong> plugin settings. Click <a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">here</a> to learn more about this plugin."
170
+ msgstr "Добре дошли в секцията <strong>Dynamic To Top</strong> с опции на добавката.Натиснете <a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">ТУК</a>за да научите повече за тази добавка."
171
+
172
+ msgid "Save Changes"
173
+ msgstr "Запази промените"
174
+
175
+ msgid "<strong>Dynamic To Top</strong> plugin brought to you by"
176
+ msgstr "<strong>Dynamic To Top</strong> добавката достига до Вас благодарение на"
177
+
lan/dynamic-to-top-es_ES.mo ADDED
Binary file
lan/dynamic-to-top-es_ES.po ADDED
@@ -0,0 +1,239 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Dynamic To Top\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2011-07-31 17:40-0300\n"
6
+ "PO-Revision-Date: 2011-07-31 18:52-0300\n"
7
+ "Last-Translator: Matt Varone <plugins@mattvarone.com>\n"
8
+ "Language-Team: Matt Varone\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;__e;_e\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "X-Poedit-Language: Spanish\n"
15
+ "X-Poedit-Country: ARGENTINA\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #: inc/dynamic-to-top-options.php:50
19
+ msgid "Behavior"
20
+ msgstr "Comportamiento"
21
+
22
+ #: inc/dynamic-to-top-options.php:51
23
+ msgid "Appearance"
24
+ msgstr "Apariencia"
25
+
26
+ #: inc/dynamic-to-top-options.php:53
27
+ msgid "Scroll time"
28
+ msgstr "Duraci&oacute;n del desplazamiento"
29
+
30
+ #: inc/dynamic-to-top-options.php:54
31
+ msgid "Fade-in distance"
32
+ msgstr "Distancia de fundido"
33
+
34
+ #: inc/dynamic-to-top-options.php:55
35
+ msgid "Easing"
36
+ msgstr "Easing"
37
+
38
+ #: inc/dynamic-to-top-options.php:56
39
+ msgid "Position"
40
+ msgstr "Posici&oacute;n"
41
+
42
+ #: inc/dynamic-to-top-options.php:57
43
+ msgid "Prevent on mobile"
44
+ msgstr "Prevenir en m&oacute;viles"
45
+
46
+ #: inc/dynamic-to-top-options.php:59
47
+ msgid "Text version"
48
+ msgstr "Versi&oacute;n de texto"
49
+
50
+ #: inc/dynamic-to-top-options.php:60
51
+ msgid "Button text"
52
+ msgstr "Texto del bot&oacute;n"
53
+
54
+ #: inc/dynamic-to-top-options.php:61
55
+ msgid "Top/bottom padding"
56
+ msgstr "Padding superior/inferior"
57
+
58
+ #: inc/dynamic-to-top-options.php:62
59
+ msgid "Sides padding"
60
+ msgstr "Padding laterales"
61
+
62
+ #: inc/dynamic-to-top-options.php:63
63
+ msgid "Font size"
64
+ msgstr "Tamaño fuente"
65
+
66
+ #: inc/dynamic-to-top-options.php:64
67
+ msgid "Text color"
68
+ msgstr "Color de texto"
69
+
70
+ #: inc/dynamic-to-top-options.php:65
71
+ msgid "Bold Text"
72
+ msgstr "Texto en negrita"
73
+
74
+ #: inc/dynamic-to-top-options.php:66
75
+ msgid "Text shadow"
76
+ msgstr "Sombra del texto"
77
+
78
+ #: inc/dynamic-to-top-options.php:67
79
+ msgid "Text shadow color"
80
+ msgstr "Color de la sombra de texto"
81
+
82
+ #: inc/dynamic-to-top-options.php:68
83
+ msgid "Background color"
84
+ msgstr "Color del fondo"
85
+
86
+ #: inc/dynamic-to-top-options.php:69
87
+ msgid "Border color"
88
+ msgstr "Color del borde"
89
+
90
+ #: inc/dynamic-to-top-options.php:70
91
+ msgid "Border width"
92
+ msgstr "Ancho del borde"
93
+
94
+ #: inc/dynamic-to-top-options.php:71
95
+ msgid "Border radius"
96
+ msgstr "Radio del borde"
97
+
98
+ #: inc/dynamic-to-top-options.php:72
99
+ msgid "Inset highlighting"
100
+ msgstr "Insertar Resaltado"
101
+
102
+ #: inc/dynamic-to-top-options.php:73
103
+ msgid "Shadow"
104
+ msgstr "Sombra"
105
+
106
+ #: inc/dynamic-to-top-options.php:103
107
+ msgid "Dynamic To Top Options"
108
+ msgstr "Opciones de Dynamic To Top"
109
+
110
+ #: inc/dynamic-to-top-options.php:105
111
+ msgid "Welcome to the <strong>Dynamic To Top</strong> plugin settings. Click <a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">here</a> to learn more about this plugin."
112
+ msgstr "Bienvenido a la configuraci&oacute;n de <strong>Dynamic To Top</strong>. Para aprender mas de este plugin visite <a href=\"http://www.mattvarone.com/featured-content/dynamic-to-top/\" target=\"_blank\">esta p&aacute;gina</a>."
113
+
114
+ #: inc/dynamic-to-top-options.php:113
115
+ msgid "Save Changes"
116
+ msgstr "Guardar Cambios"
117
+
118
+ #: inc/dynamic-to-top-options.php:116
119
+ msgid "<strong>Dynamic To Top</strong> plugin brought to you by"
120
+ msgstr "<strong>Dynamic To Top</strong> plugin por "
121
+
122
+ #: inc/dynamic-to-top-options.php:130
123
+ msgid "Preview over"
124
+ msgstr "Previsualizar sobre"
125
+
126
+ #: inc/dynamic-to-top-options.php:130
127
+ msgid "black"
128
+ msgstr "negro"
129
+
130
+ #: inc/dynamic-to-top-options.php:130
131
+ msgid "grey"
132
+ msgstr "gris"
133
+
134
+ #: inc/dynamic-to-top-options.php:130
135
+ msgid "white"
136
+ msgstr "blanco"
137
+
138
+ #: inc/dynamic-to-top-options.php:258
139
+ msgid "Color for the button border."
140
+ msgstr "Color para el borde del bot&oacute;n."
141
+
142
+ #: inc/dynamic-to-top-options.php:274
143
+ msgid "Background color for the button."
144
+ msgstr "Color para el fondo del bot&oacute;n."
145
+
146
+ #: inc/dynamic-to-top-options.php:290
147
+ msgid "Button text color."
148
+ msgstr "Color del texto del bot&oacute;n."
149
+
150
+ #: inc/dynamic-to-top-options.php:306
151
+ #: inc/dynamic-to-top-options.php:322
152
+ msgid "Text shadow color."
153
+ msgstr "Color de la sombra del texto."
154
+
155
+ #: inc/dynamic-to-top-options.php:342
156
+ msgid "<a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">Easing type</a> used to scroll the page up."
157
+ msgstr "Tipo de <a href=\"http://gsgd.co.uk/sandbox/jquery/easing\" title=\"Easing type\">Easing</a> usado para desplazar la p&aacute;gina."
158
+
159
+ #: inc/dynamic-to-top-options.php:360
160
+ msgid "Button position."
161
+ msgstr "Posici&oacute;n del bot&oacute;n."
162
+
163
+ #: inc/dynamic-to-top-options.php:378
164
+ msgid "Time it takes for the page to scroll up. Less for faster. ( <span id=\"speed-val\"></span> Milliseconds )"
165
+ msgstr "Tiempo que le lleva a la p&aacute;gina desplazarse. Menos para mas r&aacute;pido. ( <span id=\"speed-val\"></span> Milisegundos )"
166
+
167
+ #: inc/dynamic-to-top-options.php:394
168
+ msgid "Button text size. ( <span id=\"font-size-val\"></span> Em/s )"
169
+ msgstr "Tamaño del texto. ( <span id=\"font-size-val\"></span> Em/s )"
170
+
171
+ #: inc/dynamic-to-top-options.php:410
172
+ msgid "Spacing on Top and Bottom. ( <span id=\"padding-top-bottom-val\"></span>px )"
173
+ msgstr "Espaciado hacia arriba y abajo. ( <span id=\"padding-top-bottom-val\"></span>px )"
174
+
175
+ #: inc/dynamic-to-top-options.php:426
176
+ msgid "Spacing on Left and Right. ( <span id=\"padding-left-right-val\"></span>px )"
177
+ msgstr "Espaciado a los laterales. ( <span id=\"padding-left-right-val\"></span>px )"
178
+
179
+ #: inc/dynamic-to-top-options.php:442
180
+ msgid "Button border width"
181
+ msgstr "Ancho del borde del bot&oacute;n"
182
+
183
+ #: inc/dynamic-to-top-options.php:458
184
+ msgid "Button border radius"
185
+ msgstr "Radio del borde del bot&oacute;n"
186
+
187
+ #: inc/dynamic-to-top-options.php:476
188
+ msgid "Distance from top to show the button. ( Pixels )"
189
+ msgstr "Distancia a partir de la cual se debe mostrar el bot&oacute;n. ( Pixeles )"
190
+
191
+ #: inc/dynamic-to-top-options.php:492
192
+ msgid "To Top"
193
+ msgstr "Ir Arriba"
194
+
195
+ #: inc/dynamic-to-top-options.php:492
196
+ msgid "Text displayed on the button."
197
+ msgstr "Texto del bot&oacute;n."
198
+
199
+ #: inc/dynamic-to-top-options.php:510
200
+ #: inc/dynamic-to-top-options.php:526
201
+ #: inc/dynamic-to-top-options.php:542
202
+ #: inc/dynamic-to-top-options.php:558
203
+ #: inc/dynamic-to-top-options.php:574
204
+ #: inc/dynamic-to-top-options.php:590
205
+ msgid "Yes"
206
+ msgstr "Si"
207
+
208
+ #: inc/dynamic-to-top-options.php:510
209
+ msgid "Disable the button on mobile browsers."
210
+ msgstr "Deshabilitar el bot&oacute;n en celulares y m&oacute;viles."
211
+
212
+ #: inc/dynamic-to-top-options.php:526
213
+ msgid "Show a text version instead of the arrow up icon."
214
+ msgstr "Usar versi&oacute;n de texto."
215
+
216
+ #: inc/dynamic-to-top-options.php:542
217
+ msgid "Add CSS3 inset-highlight."
218
+ msgstr "Usar CSS3 inset-highlight."
219
+
220
+ #: inc/dynamic-to-top-options.php:558
221
+ msgid "Add CSS3 shadow."
222
+ msgstr "Usar sombras CSS3."
223
+
224
+ #: inc/dynamic-to-top-options.php:574
225
+ msgid "Make the text bold."
226
+ msgstr "Hace el texto negrita."
227
+
228
+ #: inc/dynamic-to-top-options.php:590
229
+ msgid "Add a subtle text shadow."
230
+ msgstr "Agrega una sombra sutil al texto."
231
+
232
+ #: inc/dynamic-to-top-options.php:747
233
+ msgid "close"
234
+ msgstr "cerrar"
235
+
236
+ #: inc/dynamic-to-top-options.php:747
237
+ msgid "select a color"
238
+ msgstr "seleccionar un color"
239
+
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Dynamic "To Top" Plugin ===
2
  Contributors: sksmatt
3
- Donate link: http://www.mattvarone.com
4
  Tags: Dynamic, UI, Scroll, To top, Automatic, Enhance, UX
5
  Requires at least: 3.0
6
- Tested up to: 3.1.4
7
- Stable tag: 3.1.5
8
 
9
  Adds an automatic and dynamic "To Top" button to easily scroll long pages back to the top.
10
 
@@ -21,6 +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
 
25
  == Installation ==
26
 
@@ -39,6 +40,10 @@ It features an intuitive control panel to style and adjust to each website's nee
39
 
40
  == Change log ==
41
 
 
 
 
 
42
  = 3.1.5 =
43
  * JS performance improved with wp_localize_script();
44
  * CSS performance improved.
1
  === Dynamic "To Top" Plugin ===
2
  Contributors: sksmatt
3
+ Donate link: http://www.mattvarone.com/donate/
4
  Tags: Dynamic, UI, Scroll, To top, Automatic, Enhance, UX
5
  Requires at least: 3.0
6
+ Tested up to: 3.2.1
7
+ Stable tag: 3.1.6
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, Bulgarian and Arabic translations.
25
 
26
  == Installation ==
27
 
40
 
41
  == Change log ==
42
 
43
+ = 3.1.6 =
44
+ * Added 3 new languages (Spanish, Bulgarian and Arabic).
45
+ * Prefixed functions as better practice.
46
+
47
  = 3.1.5 =
48
  * JS performance improved with wp_localize_script();
49
  * CSS performance improved.