To Top - Version 1.2

Version Description

  • Changed: http to https in links
  • Bug Fixed: Sanitize callback, saving only changed value and other to null.
Download this release

Release Info

Developer catchthemes
Plugin Icon 128x128 To Top
Version 1.2
Comparing to
See all releases

Code changes from version 1.1 to 1.2

README.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: catchthemes
3
  Donate link: https://catchthemes.com/wp-plugins/to-top/
4
  Tags: to-top, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
5
  Requires at least: 4.2
6
- Tested up to: 4.4.1
7
- Stable tag: 1.1
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
@@ -57,6 +57,10 @@ You'll then see To Top dashboard from which you can enable or disable the button
57
 
58
  == Changelog ==
59
 
 
 
 
 
60
  = 1.1 =
61
  * Added Genericons Support
62
  * Added Font Awesome Support
3
  Donate link: https://catchthemes.com/wp-plugins/to-top/
4
  Tags: to-top, arrow, button, icon, link to top, scroll, back to top, scroll to top, scroll top, scroll up, simple scroll to top, simple back to top, smooth scroll
5
  Requires at least: 4.2
6
+ Tested up to: 4.5
7
+ Stable tag: 1.2
8
  License: GNU General Public License, version 3 (GPLv3)
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.txt
10
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.2 =
61
+ * Changed: http to https in links
62
+ * Bug Fixed: Sanitize callback, saving only changed value and other to null.
63
+
64
  = 1.1 =
65
  * Added Genericons Support
66
  * Added Font Awesome Support
admin/class-to-top-admin.php CHANGED
@@ -183,31 +183,84 @@ class To_Top_Admin {
183
  }
184
 
185
  //Basic Settings
186
- $input['scroll_offset'] = absint( $input['scroll_offset'] );
187
- $input['icon_opacity'] = absint( $input['icon_opacity'] );
188
- $input['style'] = sanitize_key( $input['style'] );
 
 
 
 
 
 
 
 
189
 
190
  //Icon Settings
191
- $input['icon_type'] = sanitize_key( $input['icon_type'] );
192
- $input['icon_color'] = (empty( $input['icon_color']) || !preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $input['icon_color'])) ? '' : $input['icon_color'];
193
- $input['icon_bg_color'] = (empty( $input['icon_bg_color']) || !preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $input['icon_bg_color'])) ? '' : $input['icon_bg_color'];
194
- $input['icon_size'] = absint( $input['icon_size'] );
195
- $input['border_radius'] = absint( $input['border_radius'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
196
 
197
  //Image Settings
198
- $input['image'] = esc_url_raw( $input['image'] );
199
- $input['image_width'] = absint( $input['image_width'] );
200
- $input['image_alt'] = sanitize_text_field( $input['image_alt'] );
 
 
 
 
 
 
 
 
201
 
202
  //Advanced Settings
203
- $input['location'] = sanitize_key( $input['location'] );
204
- $input['margin_x'] = absint( $input['margin_x'] );
205
- $input['margin_y'] = absint( $input['margin_y'] );
206
- $input['show_on_admin'] = ( ( isset( $input['show_on_admin'] ) && true == $input['show_on_admin'] ) ? true : false );
207
- $input['enable_autohide'] = ( ( isset( $input['enable_autohide'] ) && true == $input['enable_autohide'] ) ? true : false );
208
- $input['autohide_time'] = absint( $input['autohide_time'] );
209
- $input['enable_hide_small_device']= ( ( isset( $input['enable_hide_small_device'] ) && true == $input['enable_hide_small_device'] ) ? true : false );
210
- $input['small_device_max_width'] = absint( $input['small_device_max_width'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
 
212
  return $input;
213
  }
183
  }
184
 
185
  //Basic Settings
186
+ if( isset( $input['status'] ) ){
187
+ $input['status'] = absint( $input['status'] );
188
+ }
189
+
190
+ if( isset( $input['scroll_offset'] ) ){
191
+ $input['scroll_offset'] = absint( $input['scroll_offset'] );
192
+ }
193
+
194
+ if( isset( $input['style'] ) ){
195
+ $input['style'] = sanitize_key( $input['style'] );
196
+ }
197
 
198
  //Icon Settings
199
+ if( isset( $input['icon_opacity'] ) ){
200
+ $input['icon_opacity'] = absint( $input['icon_opacity'] );
201
+ }
202
+
203
+ if( isset( $input['icon_color'] ) ){
204
+ $input['icon_color'] = (empty( $input['icon_color']) || !preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $input['icon_color'])) ? '' : $input['icon_color'];
205
+ }
206
+
207
+ if( isset( $input['icon_bg_color'] ) ){
208
+ $input['icon_bg_color'] = (empty( $input['icon_bg_color']) || !preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $input['icon_bg_color'])) ? '' : $input['icon_bg_color'];
209
+ }
210
+
211
+ if( isset( $input['icon_size'] ) ){
212
+ $input['icon_size'] = absint( $input['icon_size'] );
213
+ }
214
+
215
+ if( isset( $input['border_radius'] ) ){
216
+ $input['border_radius'] = absint( $input['border_radius'] );
217
+ }
218
 
219
  //Image Settings
220
+ if( isset( $input['image'] ) ){
221
+ $input['image'] = esc_url_raw( $input['image'] );
222
+ }
223
+
224
+ if( isset( $input['image_width'] ) ){
225
+ $input['image_width'] = absint( $input['image_width'] );
226
+ }
227
+
228
+ if( isset( $input['image_alt'] ) ){
229
+ $input['image_alt'] = sanitize_text_field( $input['image_alt'] );
230
+ }
231
 
232
  //Advanced Settings
233
+ if( isset( $input['location'] ) ){
234
+ $input['location'] = sanitize_key( $input['location'] );
235
+ }
236
+
237
+ if( isset( $input['margin_x'] ) ){
238
+ $input['margin_x'] = absint( $input['margin_x'] );
239
+ }
240
+
241
+ if( isset( $input['margin_y'] ) ){
242
+ $input['margin_y'] = absint( $input['margin_y'] );
243
+ }
244
+
245
+ if( isset( $input['show_on_admin'] ) ){
246
+ $input['show_on_admin'] = ( ( isset( $input['show_on_admin'] ) && true == $input['show_on_admin'] ) ? true : false );
247
+ }
248
+
249
+ if( isset( $input['enable_autohide'] ) ){
250
+ $input['enable_autohide'] = ( ( isset( $input['enable_autohide'] ) && true == $input['enable_autohide'] ) ? true : false );
251
+ }
252
+
253
+ if( isset( $input['autohide_time'] ) ){
254
+ $input['autohide_time'] = absint( $input['autohide_time'] );
255
+ }
256
+
257
+ if( isset( $input['enable_hide_small_device'] ) ){
258
+ $input['enable_hide_small_device']= ( ( isset( $input['enable_hide_small_device'] ) && true == $input['enable_hide_small_device'] ) ? true : false );
259
+ }
260
+
261
+ if( isset( $input['small_device_max_width'] ) ){
262
+ $input['small_device_max_width'] = absint( $input['small_device_max_width'] );
263
+ }
264
 
265
  return $input;
266
  }
admin/partials/to-top-admin-display.php CHANGED
@@ -28,7 +28,7 @@
28
  <div id="plugin-social">
29
  <ul>
30
  <li class="widget-fb">
31
- <div data-show-faces="false" data-width="80" data-layout="button_count" data-send="false" data-href="<?php echo esc_url( 'http://facebook.com/catchthemes' ); ?>" class="fb-like"></div>
32
  </li>
33
 
34
  <li class="widget-tw">
@@ -39,9 +39,9 @@
39
 
40
  <div id="plugin-option-title">
41
  <h2 class="logo">
42
- <a href="<?php echo esc_url( __( 'http://catchthemes.com/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Catch Themes', 'to-top' ); ?>" target="_blank">
43
 
44
- <img src="http://catchthemes.com/wp-content/themes/catchthemes/images/logo.png" alt="<?php esc_html_e( 'Catch Themes', 'to-top' ); ?>" />
45
  </a>
46
  </h2>
47
  </div><!-- #plugin-option-title -->
@@ -49,10 +49,10 @@
49
  <div id="plugin-support">
50
  <ul>
51
  <li>
52
- <a class="button" href="<?php echo esc_url( __('http://catchthemes.com/forum/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Support Forum', 'to-top' ); ?>" target="_blank"><?php printf(__('Support Forum', 'to-top' )); ?></a>
53
  </li>
54
  <li>
55
- <a class="button" href="<?php echo esc_url( __('http://catchthemes.com/wp-plugins/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Plugin Details', 'to-top' ); ?>" target="_blank"><?php printf(__('Plugin Details', 'to-top' ) ); ?></a>
56
  </li>
57
  <li>
58
  <a class="button" href="<?php echo esc_url( __('https://www.facebook.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Like Catch Themes on Facebook', 'to-top' ); ?>" target="_blank"><?php printf(__('Facebook', 'to-top' )); ?></a>
@@ -61,7 +61,7 @@
61
  <a class="button" href="<?php echo esc_url( __('https://twitter.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Follow Catch Themes on Twitter', 'to-top' ); ?>" target="_blank"><?php printf( __('Twitter', 'to-top' ) ); ?></a>
62
  </li>
63
  <li>
64
- <a class="button" href="<?php echo esc_url( __('http://wordpress.org/support/view/plugin-reviews/to-top', 'to-top' ) ); ?>" title="<?php esc_attr_e('Rate us 5 Star on WordPress', 'to-top' ); ?>" target="_blank"><?php printf( __('5 Star Rating', 'to-top' ) ); ?></a>
65
  </li>
66
  </ul>
67
  </div><!-- #plugin-support -->
28
  <div id="plugin-social">
29
  <ul>
30
  <li class="widget-fb">
31
+ <div data-show-faces="false" data-width="80" data-layout="button_count" data-send="false" data-href="<?php echo esc_url( 'https://facebook.com/catchthemes' ); ?>" class="fb-like"></div>
32
  </li>
33
 
34
  <li class="widget-tw">
39
 
40
  <div id="plugin-option-title">
41
  <h2 class="logo">
42
+ <a href="<?php echo esc_url( __( 'https://catchthemes.com/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Catch Themes', 'to-top' ); ?>" target="_blank">
43
 
44
+ <img src="https://catchthemes.com/wp-content/themes/catchthemes/images/logo.png" alt="<?php esc_html_e( 'Catch Themes', 'to-top' ); ?>" />
45
  </a>
46
  </h2>
47
  </div><!-- #plugin-option-title -->
49
  <div id="plugin-support">
50
  <ul>
51
  <li>
52
+ <a class="button" href="<?php echo esc_url( __('https://catchthemes.com/forum/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Support Forum', 'to-top' ); ?>" target="_blank"><?php printf(__('Support Forum', 'to-top' )); ?></a>
53
  </li>
54
  <li>
55
+ <a class="button" href="<?php echo esc_url( __('https://catchthemes.com/wp-plugins/to-top/', 'to-top' )); ?>" title="<?php esc_attr_e('Plugin Details', 'to-top' ); ?>" target="_blank"><?php printf(__('Plugin Details', 'to-top' ) ); ?></a>
56
  </li>
57
  <li>
58
  <a class="button" href="<?php echo esc_url( __('https://www.facebook.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Like Catch Themes on Facebook', 'to-top' ); ?>" target="_blank"><?php printf(__('Facebook', 'to-top' )); ?></a>
61
  <a class="button" href="<?php echo esc_url( __('https://twitter.com/catchthemes/', 'to-top' ) ); ?>" title="<?php esc_attr_e( 'Follow Catch Themes on Twitter', 'to-top' ); ?>" target="_blank"><?php printf( __('Twitter', 'to-top' ) ); ?></a>
62
  </li>
63
  <li>
64
+ <a class="button" href="<?php echo esc_url( __('https://wordpress.org/support/view/plugin-reviews/to-top', 'to-top' ) ); ?>" title="<?php esc_attr_e('Rate us 5 Star on WordPress', 'to-top' ); ?>" target="_blank"><?php printf( __('5 Star Rating', 'to-top' ) ); ?></a>
65
  </li>
66
  </ul>
67
  </div><!-- #plugin-support -->
languages/to-top.pot CHANGED
@@ -3,9 +3,9 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: To Top\n"
6
- "Report-Msgid-Bugs-To: http://wordpress.org/tags/_s\n"
7
- "POT-Creation-Date: 2016-02-08 19:51+0545\n"
8
- "PO-Revision-Date: 2016-02-08 19:51+0545\n"
9
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
10
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
11
  "Language: en_US\n"
@@ -13,7 +13,7 @@ msgstr ""
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
- "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
18
  "esc_html__;esc_html_e\n"
19
  "X-Poedit-Basepath: .\n"
@@ -33,189 +33,189 @@ msgstr ""
33
  msgid "You do not have sufficient permissions to access this page."
34
  msgstr ""
35
 
36
- #: ../admin/class-to-top-admin.php:230
37
  msgid "To Top Options"
38
  msgstr ""
39
 
40
- #: ../admin/class-to-top-admin.php:237
41
  #: ../admin/partials/to-top-admin-display.php:88
42
  msgid "Basic Settings"
43
  msgstr ""
44
 
45
- #: ../admin/class-to-top-admin.php:248
46
  #: ../admin/partials/to-top-admin-display.php:93
47
  msgid "Scroll Offset (px)"
48
  msgstr ""
49
 
50
- #: ../admin/class-to-top-admin.php:249
51
  #: ../admin/partials/to-top-admin-display.php:98
52
  msgid "Number of pixels to be scrolled before the button appears"
53
  msgstr ""
54
 
55
- #: ../admin/class-to-top-admin.php:269
56
  #: ../admin/partials/to-top-admin-display.php:104
57
  msgid "Icon Opacity (%)"
58
  msgstr ""
59
 
60
- #: ../admin/class-to-top-admin.php:289
61
  #: ../admin/partials/to-top-admin-display.php:113
62
  msgid "Style"
63
  msgstr ""
64
 
65
- #: ../admin/class-to-top-admin.php:294
66
  #: ../admin/partials/to-top-admin-display.php:118
67
  msgid "Icon Using Dashicons"
68
  msgstr ""
69
 
70
- #: ../admin/class-to-top-admin.php:295
71
  #: ../admin/partials/to-top-admin-display.php:119
72
  msgid "Icon Using Genericons"
73
  msgstr ""
74
 
75
- #: ../admin/class-to-top-admin.php:296
76
  #: ../admin/partials/to-top-admin-display.php:120
77
  msgid "Icon Using Font Awesome Icons"
78
  msgstr ""
79
 
80
- #: ../admin/class-to-top-admin.php:297 ../admin/class-to-top-admin.php:396
81
  #: ../admin/partials/to-top-admin-display.php:121
82
  #: ../admin/partials/to-top-admin-display.php:205
83
  msgid "Image"
84
  msgstr ""
85
 
86
- #: ../admin/class-to-top-admin.php:309
87
  #: ../admin/partials/to-top-admin-display.php:138
88
  msgid "Select Icon Type"
89
  msgstr ""
90
 
91
- #: ../admin/class-to-top-admin.php:324
92
  #: ../admin/partials/to-top-admin-display.php:155
93
  msgid "Icon Color"
94
  msgstr ""
95
 
96
- #: ../admin/class-to-top-admin.php:339
97
  #: ../admin/partials/to-top-admin-display.php:165
98
  msgid "Icon Background Color"
99
  msgstr ""
100
 
101
- #: ../admin/class-to-top-admin.php:354
102
  #: ../admin/partials/to-top-admin-display.php:175
103
  msgid "Icon Size (px)"
104
  msgstr ""
105
 
106
- #: ../admin/class-to-top-admin.php:374
107
  #: ../admin/partials/to-top-admin-display.php:184
108
  msgid "Border Radius (%)"
109
  msgstr ""
110
 
111
- #: ../admin/class-to-top-admin.php:375
112
  #: ../admin/partials/to-top-admin-display.php:189
113
  msgid "0 will make the icon background square, 50 will make it a circle"
114
  msgstr ""
115
 
116
- #: ../admin/class-to-top-admin.php:412
117
  #: ../admin/partials/to-top-admin-display.php:213
118
  msgid "Image Width (px)"
119
  msgstr ""
120
 
121
- #: ../admin/class-to-top-admin.php:433
122
  #: ../admin/partials/to-top-admin-display.php:222
123
  msgid "Image Alt"
124
  msgstr ""
125
 
126
- #: ../admin/class-to-top-admin.php:448
127
  #: ../admin/partials/to-top-admin-display.php:235
128
  msgid "Advanced Settings"
129
  msgstr ""
130
 
131
- #: ../admin/class-to-top-admin.php:459
132
  #: ../admin/partials/to-top-admin-display.php:240
133
  msgid "Location"
134
  msgstr ""
135
 
136
- #: ../admin/class-to-top-admin.php:465
137
  #: ../admin/partials/to-top-admin-display.php:245
138
  msgid "Bottom Right"
139
  msgstr ""
140
 
141
- #: ../admin/class-to-top-admin.php:466
142
  #: ../admin/partials/to-top-admin-display.php:246
143
  msgid "Bottom Left"
144
  msgstr ""
145
 
146
- #: ../admin/class-to-top-admin.php:467
147
  #: ../admin/partials/to-top-admin-display.php:247
148
  msgid "Top Right"
149
  msgstr ""
150
 
151
- #: ../admin/class-to-top-admin.php:468
152
  #: ../admin/partials/to-top-admin-display.php:248
153
  msgid "Top Left"
154
  msgstr ""
155
 
156
- #: ../admin/class-to-top-admin.php:480
157
  #: ../admin/partials/to-top-admin-display.php:255
158
  msgid "Margin X (px)"
159
  msgstr ""
160
 
161
- #: ../admin/class-to-top-admin.php:500
162
  #: ../admin/partials/to-top-admin-display.php:264
163
  msgid "Margin Y (px)"
164
  msgstr ""
165
 
166
- #: ../admin/class-to-top-admin.php:520
167
  msgid "Check to show on WP-ADMIN"
168
  msgstr ""
169
 
170
- #: ../admin/class-to-top-admin.php:521
171
  #: ../admin/partials/to-top-admin-display.php:278
172
  msgid "Button will be shown on admin section"
173
  msgstr ""
174
 
175
- #: ../admin/class-to-top-admin.php:535
176
  msgid "Check to Enable Auto Hide"
177
  msgstr ""
178
 
179
- #: ../admin/class-to-top-admin.php:550
180
  #: ../admin/partials/to-top-admin-display.php:294
181
  msgid "Auto Hide Time (secs)"
182
  msgstr ""
183
 
184
- #: ../admin/class-to-top-admin.php:551
185
  #: ../admin/partials/to-top-admin-display.php:299
186
  msgid "Button will be auto hidden after this duration in seconds, if enabled"
187
  msgstr ""
188
 
189
- #: ../admin/class-to-top-admin.php:571
190
  msgid "Check to Hide on Small Devices"
191
  msgstr ""
192
 
193
- #: ../admin/class-to-top-admin.php:572
194
  #: ../admin/partials/to-top-admin-display.php:310
195
  msgid "Button will be hidden on small devices when the width below matches"
196
  msgstr ""
197
 
198
- #: ../admin/class-to-top-admin.php:586
199
  #: ../admin/partials/to-top-admin-display.php:316
200
  msgid "Small Device Max Width (px)"
201
  msgstr ""
202
 
203
- #: ../admin/class-to-top-admin.php:587
204
  #: ../admin/partials/to-top-admin-display.php:321
205
  msgid "Button will be hidden on devices with lesser or equal width"
206
  msgstr ""
207
 
208
- #: ../admin/class-to-top-admin.php:606
209
  #: ../admin/partials/to-top-admin-display.php:331
210
  msgid "Reset Settings"
211
  msgstr ""
212
 
213
- #: ../admin/class-to-top-admin.php:617
214
  #: ../admin/partials/to-top-admin-display.php:340
215
  msgid "Check to Reset All Settings"
216
  msgstr ""
217
 
218
- #: ../admin/class-to-top-admin.php:618
219
  msgid ""
220
  "Caution: All data will be lost. Refresh the page after save to view full "
221
  "effects."
@@ -230,7 +230,7 @@ msgid "Follow @catchthemes"
230
  msgstr ""
231
 
232
  #: ../admin/partials/to-top-admin-display.php:42
233
- msgid "http://catchthemes.com/"
234
  msgstr ""
235
 
236
  #: ../admin/partials/to-top-admin-display.php:42
@@ -239,7 +239,7 @@ msgid "Catch Themes"
239
  msgstr ""
240
 
241
  #: ../admin/partials/to-top-admin-display.php:52
242
- msgid "http://catchthemes.com/forum/to-top/"
243
  msgstr ""
244
 
245
  #: ../admin/partials/to-top-admin-display.php:52
@@ -247,7 +247,7 @@ msgid "Support Forum"
247
  msgstr ""
248
 
249
  #: ../admin/partials/to-top-admin-display.php:55
250
- msgid "http://catchthemes.com/wp-plugins/to-top/"
251
  msgstr ""
252
 
253
  #: ../admin/partials/to-top-admin-display.php:55
@@ -279,7 +279,7 @@ msgid "Twitter"
279
  msgstr ""
280
 
281
  #: ../admin/partials/to-top-admin-display.php:64
282
- msgid "http://wordpress.org/support/view/plugin-reviews/to-top"
283
  msgstr ""
284
 
285
  #: ../admin/partials/to-top-admin-display.php:64
@@ -348,8 +348,7 @@ msgstr ""
348
  msgid "Caution: All data will be lost"
349
  msgstr ""
350
 
351
- #: ../public/class-to-top-public.php:136
352
- #: ../public/class-to-top-public.php:149
353
  #: ../public/class-to-top-public.php:162
354
  msgid "Scroll Up"
355
  msgstr ""
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: To Top\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
7
+ "POT-Creation-Date: 2016-04-11 14:54+0545\n"
8
+ "PO-Revision-Date: 2016-04-11 14:54+0545\n"
9
  "Last-Translator: Sakin Shrestha <info@catchthemes.com>\n"
10
  "Language-Team: Catch Themes <info@catchthemes.com>\n"
11
  "Language: en_US\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
+ "X-Generator: Poedit 1.6.10\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
18
  "esc_html__;esc_html_e\n"
19
  "X-Poedit-Basepath: .\n"
33
  msgid "You do not have sufficient permissions to access this page."
34
  msgstr ""
35
 
36
+ #: ../admin/class-to-top-admin.php:283
37
  msgid "To Top Options"
38
  msgstr ""
39
 
40
+ #: ../admin/class-to-top-admin.php:290
41
  #: ../admin/partials/to-top-admin-display.php:88
42
  msgid "Basic Settings"
43
  msgstr ""
44
 
45
+ #: ../admin/class-to-top-admin.php:301
46
  #: ../admin/partials/to-top-admin-display.php:93
47
  msgid "Scroll Offset (px)"
48
  msgstr ""
49
 
50
+ #: ../admin/class-to-top-admin.php:302
51
  #: ../admin/partials/to-top-admin-display.php:98
52
  msgid "Number of pixels to be scrolled before the button appears"
53
  msgstr ""
54
 
55
+ #: ../admin/class-to-top-admin.php:322
56
  #: ../admin/partials/to-top-admin-display.php:104
57
  msgid "Icon Opacity (%)"
58
  msgstr ""
59
 
60
+ #: ../admin/class-to-top-admin.php:342
61
  #: ../admin/partials/to-top-admin-display.php:113
62
  msgid "Style"
63
  msgstr ""
64
 
65
+ #: ../admin/class-to-top-admin.php:347
66
  #: ../admin/partials/to-top-admin-display.php:118
67
  msgid "Icon Using Dashicons"
68
  msgstr ""
69
 
70
+ #: ../admin/class-to-top-admin.php:348
71
  #: ../admin/partials/to-top-admin-display.php:119
72
  msgid "Icon Using Genericons"
73
  msgstr ""
74
 
75
+ #: ../admin/class-to-top-admin.php:349
76
  #: ../admin/partials/to-top-admin-display.php:120
77
  msgid "Icon Using Font Awesome Icons"
78
  msgstr ""
79
 
80
+ #: ../admin/class-to-top-admin.php:350 ../admin/class-to-top-admin.php:449
81
  #: ../admin/partials/to-top-admin-display.php:121
82
  #: ../admin/partials/to-top-admin-display.php:205
83
  msgid "Image"
84
  msgstr ""
85
 
86
+ #: ../admin/class-to-top-admin.php:362
87
  #: ../admin/partials/to-top-admin-display.php:138
88
  msgid "Select Icon Type"
89
  msgstr ""
90
 
91
+ #: ../admin/class-to-top-admin.php:377
92
  #: ../admin/partials/to-top-admin-display.php:155
93
  msgid "Icon Color"
94
  msgstr ""
95
 
96
+ #: ../admin/class-to-top-admin.php:392
97
  #: ../admin/partials/to-top-admin-display.php:165
98
  msgid "Icon Background Color"
99
  msgstr ""
100
 
101
+ #: ../admin/class-to-top-admin.php:407
102
  #: ../admin/partials/to-top-admin-display.php:175
103
  msgid "Icon Size (px)"
104
  msgstr ""
105
 
106
+ #: ../admin/class-to-top-admin.php:427
107
  #: ../admin/partials/to-top-admin-display.php:184
108
  msgid "Border Radius (%)"
109
  msgstr ""
110
 
111
+ #: ../admin/class-to-top-admin.php:428
112
  #: ../admin/partials/to-top-admin-display.php:189
113
  msgid "0 will make the icon background square, 50 will make it a circle"
114
  msgstr ""
115
 
116
+ #: ../admin/class-to-top-admin.php:465
117
  #: ../admin/partials/to-top-admin-display.php:213
118
  msgid "Image Width (px)"
119
  msgstr ""
120
 
121
+ #: ../admin/class-to-top-admin.php:486
122
  #: ../admin/partials/to-top-admin-display.php:222
123
  msgid "Image Alt"
124
  msgstr ""
125
 
126
+ #: ../admin/class-to-top-admin.php:501
127
  #: ../admin/partials/to-top-admin-display.php:235
128
  msgid "Advanced Settings"
129
  msgstr ""
130
 
131
+ #: ../admin/class-to-top-admin.php:512
132
  #: ../admin/partials/to-top-admin-display.php:240
133
  msgid "Location"
134
  msgstr ""
135
 
136
+ #: ../admin/class-to-top-admin.php:518
137
  #: ../admin/partials/to-top-admin-display.php:245
138
  msgid "Bottom Right"
139
  msgstr ""
140
 
141
+ #: ../admin/class-to-top-admin.php:519
142
  #: ../admin/partials/to-top-admin-display.php:246
143
  msgid "Bottom Left"
144
  msgstr ""
145
 
146
+ #: ../admin/class-to-top-admin.php:520
147
  #: ../admin/partials/to-top-admin-display.php:247
148
  msgid "Top Right"
149
  msgstr ""
150
 
151
+ #: ../admin/class-to-top-admin.php:521
152
  #: ../admin/partials/to-top-admin-display.php:248
153
  msgid "Top Left"
154
  msgstr ""
155
 
156
+ #: ../admin/class-to-top-admin.php:533
157
  #: ../admin/partials/to-top-admin-display.php:255
158
  msgid "Margin X (px)"
159
  msgstr ""
160
 
161
+ #: ../admin/class-to-top-admin.php:553
162
  #: ../admin/partials/to-top-admin-display.php:264
163
  msgid "Margin Y (px)"
164
  msgstr ""
165
 
166
+ #: ../admin/class-to-top-admin.php:573
167
  msgid "Check to show on WP-ADMIN"
168
  msgstr ""
169
 
170
+ #: ../admin/class-to-top-admin.php:574
171
  #: ../admin/partials/to-top-admin-display.php:278
172
  msgid "Button will be shown on admin section"
173
  msgstr ""
174
 
175
+ #: ../admin/class-to-top-admin.php:588
176
  msgid "Check to Enable Auto Hide"
177
  msgstr ""
178
 
179
+ #: ../admin/class-to-top-admin.php:603
180
  #: ../admin/partials/to-top-admin-display.php:294
181
  msgid "Auto Hide Time (secs)"
182
  msgstr ""
183
 
184
+ #: ../admin/class-to-top-admin.php:604
185
  #: ../admin/partials/to-top-admin-display.php:299
186
  msgid "Button will be auto hidden after this duration in seconds, if enabled"
187
  msgstr ""
188
 
189
+ #: ../admin/class-to-top-admin.php:624
190
  msgid "Check to Hide on Small Devices"
191
  msgstr ""
192
 
193
+ #: ../admin/class-to-top-admin.php:625
194
  #: ../admin/partials/to-top-admin-display.php:310
195
  msgid "Button will be hidden on small devices when the width below matches"
196
  msgstr ""
197
 
198
+ #: ../admin/class-to-top-admin.php:639
199
  #: ../admin/partials/to-top-admin-display.php:316
200
  msgid "Small Device Max Width (px)"
201
  msgstr ""
202
 
203
+ #: ../admin/class-to-top-admin.php:640
204
  #: ../admin/partials/to-top-admin-display.php:321
205
  msgid "Button will be hidden on devices with lesser or equal width"
206
  msgstr ""
207
 
208
+ #: ../admin/class-to-top-admin.php:659
209
  #: ../admin/partials/to-top-admin-display.php:331
210
  msgid "Reset Settings"
211
  msgstr ""
212
 
213
+ #: ../admin/class-to-top-admin.php:670
214
  #: ../admin/partials/to-top-admin-display.php:340
215
  msgid "Check to Reset All Settings"
216
  msgstr ""
217
 
218
+ #: ../admin/class-to-top-admin.php:671
219
  msgid ""
220
  "Caution: All data will be lost. Refresh the page after save to view full "
221
  "effects."
230
  msgstr ""
231
 
232
  #: ../admin/partials/to-top-admin-display.php:42
233
+ msgid "https://catchthemes.com/"
234
  msgstr ""
235
 
236
  #: ../admin/partials/to-top-admin-display.php:42
239
  msgstr ""
240
 
241
  #: ../admin/partials/to-top-admin-display.php:52
242
+ msgid "https://catchthemes.com/forum/to-top/"
243
  msgstr ""
244
 
245
  #: ../admin/partials/to-top-admin-display.php:52
247
  msgstr ""
248
 
249
  #: ../admin/partials/to-top-admin-display.php:55
250
+ msgid "https://catchthemes.com/wp-plugins/to-top/"
251
  msgstr ""
252
 
253
  #: ../admin/partials/to-top-admin-display.php:55
279
  msgstr ""
280
 
281
  #: ../admin/partials/to-top-admin-display.php:64
282
+ msgid "https://wordpress.org/support/view/plugin-reviews/to-top"
283
  msgstr ""
284
 
285
  #: ../admin/partials/to-top-admin-display.php:64
348
  msgid "Caution: All data will be lost"
349
  msgstr ""
350
 
351
+ #: ../public/class-to-top-public.php:136 ../public/class-to-top-public.php:149
 
352
  #: ../public/class-to-top-public.php:162
353
  msgid "Scroll Up"
354
  msgstr ""
to-top.php CHANGED
@@ -5,32 +5,32 @@
5
  * Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
6
  * Author: Catch Themes
7
  * Author URI: https://catchthemes.com
8
- * Version: 1.1
9
  * License: GNU General Public License, version 3 (GPLv3)
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
  * Text Domain: to-top
12
  * Domain Path: languages
13
- *
14
  * Copyright (C) 2012-2016 Catch Themes, (info@catchthemes.com)
15
  *
16
  * To Top Plugin is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 3 of the License, or
19
  * (at your option) any later version.
20
- *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
  * GNU General Public License for more details.
25
- *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
28
  *
29
  * @package To_Top
30
  * @link catchthemes.com
31
  * @author Catch Themes
32
- * @version 1.1
33
- */
34
 
35
  // If this file is called directly, abort.
36
  if ( ! defined( 'WPINC' ) ) {
5
  * Description: To Top plugin allows the visitor as well as admin to easily scroll back to the top of the page, with fully customizable options and ability to use image.
6
  * Author: Catch Themes
7
  * Author URI: https://catchthemes.com
8
+ * Version: 1.2
9
  * License: GNU General Public License, version 3 (GPLv3)
10
  * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
11
  * Text Domain: to-top
12
  * Domain Path: languages
13
+ *
14
  * Copyright (C) 2012-2016 Catch Themes, (info@catchthemes.com)
15
  *
16
  * To Top Plugin is free software; you can redistribute it and/or modify
17
  * it under the terms of the GNU General Public License as published by
18
  * the Free Software Foundation; either version 3 of the License, or
19
  * (at your option) any later version.
20
+ *
21
  * This program is distributed in the hope that it will be useful,
22
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
  * GNU General Public License for more details.
25
+ *
26
  * You should have received a copy of the GNU General Public License
27
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
28
  *
29
  * @package To_Top
30
  * @link catchthemes.com
31
  * @author Catch Themes
32
+ * @version 1.2
33
+ */
34
 
35
  // If this file is called directly, abort.
36
  if ( ! defined( 'WPINC' ) ) {