To Top - Version 2.5.1

Version Description

(Released: September 20, 2022) = * Update: Depreciated JS code

Download this release

Release Info

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

Code changes from version 2.5 to 2.5.1

README.txt CHANGED
@@ -57,6 +57,9 @@ You'll then see To Top dashboard from which you can enable or disable the button
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 2.5 (Released: June 16, 2022) =
61
  * Compatibility check up to version 6.0
62
 
57
 
58
  == Changelog ==
59
 
60
+ = 2.5.1 (Released: September 20, 2022) =
61
+ * Update: Depreciated JS code
62
+
63
  = 2.5 (Released: June 16, 2022) =
64
  * Compatibility check up to version 6.0
65
 
languages/to-top-fr_FR.mo CHANGED
Binary file
languages/to-top-fr_FR.po CHANGED
@@ -4,8 +4,8 @@ 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: 2022-06-16 14:23-0700\n"
8
- "PO-Revision-Date: 2022-06-16 14:23-0700\n"
9
  "Last-Translator: Hubert Desrues <hubert.desrues@gmail.com>\n"
10
  "Language-Team: Français\n"
11
  "Language: fr_FR\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 3.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"
4
  msgstr ""
5
  "Project-Id-Version: To Top\n"
6
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
7
+ "POT-Creation-Date: 2022-09-20 00:20-0700\n"
8
+ "PO-Revision-Date: 2022-09-20 00:20-0700\n"
9
  "Last-Translator: Hubert Desrues <hubert.desrues@gmail.com>\n"
10
  "Language-Team: Français\n"
11
  "Language: fr_FR\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 3.1.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"
languages/to-top.pot CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: To Top\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
- "POT-Creation-Date: 2022-06-16 14:23-0700\n"
9
  "PO-Revision-Date: 2016-12-07 23:04-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
- "X-Generator: Poedit 3.1\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
19
  "esc_html__;esc_html_e\n"
20
  "X-Poedit-Basepath: .\n"
5
  msgstr ""
6
  "Project-Id-Version: To Top\n"
7
  "Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n"
8
+ "POT-Creation-Date: 2022-09-20 00:20-0700\n"
9
  "PO-Revision-Date: 2016-12-07 23:04-0500\n"
10
  "Last-Translator: Sakin Shrestha <info@catchplugins.com>\n"
11
  "Language-Team: Catch Plugins <info@catchplugins.com>\n"
14
  "Content-Type: text/plain; charset=UTF-8\n"
15
  "Content-Transfer-Encoding: 8bit\n"
16
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
17
+ "X-Generator: Poedit 3.1.1\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;esc_attr_e;esc_attr__;_nx;"
19
  "esc_html__;esc_html_e\n"
20
  "X-Poedit-Basepath: .\n"
public/js/to-top-public.js CHANGED
@@ -49,16 +49,15 @@
49
 
50
  if ("undefined" != typeof to_top_options.enable_hide_small_device && "1" == to_top_options.enable_hide_small_device) {
51
  if ($(window).width() > to_top_options.small_device_max_width) {
52
- $(window).scroll(fnScroll);
53
- $(document).scroll(fnScroll);
54
  }
55
  }else{
56
- $(window).scroll(fnScroll);
57
- $(document).scroll(fnScroll);
58
  }
59
 
60
- container
61
- .hover(function() {
62
  clearTimeout(hideEventID);
63
  mouse_over = true;
64
  $(this).css("opacity", 1);
@@ -67,11 +66,11 @@
67
  mouse_over = false;
68
  fnHideEvent();
69
  })
70
- .click(function() {
71
  $("html, body").animate({
72
  scrollTop: 0
73
  }, 400);
74
  return false;
75
  });
76
  });
77
- })(jQuery);
49
 
50
  if ("undefined" != typeof to_top_options.enable_hide_small_device && "1" == to_top_options.enable_hide_small_device) {
51
  if ($(window).width() > to_top_options.small_device_max_width) {
52
+ $(window).on( "scroll", fnScroll);
53
+ $(document).on( "scroll", fnScroll);
54
  }
55
  }else{
56
+ $(window).on( "scroll", fnScroll);
57
+ $(document).on( "scroll", fnScroll);
58
  }
59
 
60
+ container.on( "hover", function() {
 
61
  clearTimeout(hideEventID);
62
  mouse_over = true;
63
  $(this).css("opacity", 1);
66
  mouse_over = false;
67
  fnHideEvent();
68
  })
69
+ .on( "click", function() {
70
  $("html, body").animate({
71
  scrollTop: 0
72
  }, 400);
73
  return false;
74
  });
75
  });
76
+ })(jQuery);
to-top.php CHANGED
@@ -5,7 +5,7 @@
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 Plugins
7
  * Author URI: https://catchplugins.com/
8
- * Version: 2.5
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
@@ -29,7 +29,7 @@
29
  * @package To_Top
30
  * @link catchplugins.com
31
  * @author Catch Plugins
32
- * @version 1.5
33
  */
34
 
35
  // If this file is called directly, abort.
@@ -38,7 +38,7 @@ if ( ! defined( 'WPINC' ) ) {
38
  }
39
 
40
  // Define Version
41
- define( 'TOTOP_VERSION', '2.5' );
42
 
43
  // The URL of the directory that contains the plugin
44
  if ( ! defined( 'TOTOP_URL' ) ) {
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 Plugins
7
  * Author URI: https://catchplugins.com/
8
+ * Version: 2.5.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
29
  * @package To_Top
30
  * @link catchplugins.com
31
  * @author Catch Plugins
32
+ * @version 2.5.1
33
  */
34
 
35
  // If this file is called directly, abort.
38
  }
39
 
40
  // Define Version
41
+ define( 'TOTOP_VERSION', '2.5.1' );
42
 
43
  // The URL of the directory that contains the plugin
44
  if ( ! defined( 'TOTOP_URL' ) ) {