LuckyWP Table of Contents - Version 1.5.1

Version Description

  • Bug fix
Download this release

Release Info

Developer theluckywp
Plugin Icon 128x128 LuckyWP Table of Contents
Version 1.5.1
Comparing to
See all releases

Code changes from version 1.5 to 1.5.1

front/assets/main.min.js CHANGED
@@ -1 +1 @@
1
- !function(n){var t=function(t){t.each(function(){var a=n(this);a.data("smoothScroll")&&a.find(".lwptoc_items").on("click",'A[href^="#"]',function(t){t.preventDefault();var l=this.hash,i=n(l);if(i.length){var o=i.offset().top-a.data("smoothScrollOffset");n(window).animate({scrollTop:o<0?0:o},500,function(){if(l!=location.hash){var t=i.attr("id"),o=n("<a> </a>").attr("id",t).css({position:"absolute",top:n(window).scrollTop(),left:n(window).scrollLeft(),visibility:"hidden"});i.attr("id",""),n("body").prepend(o),location.hash=l,o.remove(),i.attr("id",t)}})}})}),t.find(".lwptoc_toggle_label").click(function(){var t=n(this),o=t.closest(".lwptoc").find(".lwptoc_items"),l=t.data("label");return"none"==o.css("display")?(o.stop(!0).slideDown(300),t.data("label",t.html()).html(l)):o.stop(!0).slideUp(300,function(){t.data("label",t.html()).html(l)}),!1})};n(function(){t(n(".lwptoc"))})}(jQuery);
1
+ !function(n){var t=function(t){t.each(function(){var a=n(this);a.data("smoothScroll")&&a.find(".lwptoc_items").on("click",'A[href^="#"]',function(t){t.preventDefault();var l=this.hash,i=n(l);if(i.length){var o=i.offset().top-a.data("smoothScrollOffset");n("html, body").animate({scrollTop:o<0?0:o},500,function(){if(l!=location.hash){var t=i.attr("id"),o=n("<a> </a>").attr("id",t).css({position:"absolute",top:n(window).scrollTop(),left:n(window).scrollLeft(),visibility:"hidden"});i.attr("id",""),n("body").prepend(o),location.hash=l,o.remove(),i.attr("id",t)}})}})}),t.find(".lwptoc_toggle_label").click(function(){var t=n(this),o=t.closest(".lwptoc").find(".lwptoc_items"),l=t.data("label");return"none"==o.css("display")?(o.stop(!0).slideDown(300),t.data("label",t.html()).html(l)):o.stop(!0).slideUp(300,function(){t.data("label",t.html()).html(l)}),!1})};n(function(){t(n(".lwptoc"))})}(jQuery);
luckywp-table-of-contents.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: LuckyWP Table of Contents
4
  Plugin URI: https://theluckywp.com/product/table-of-contents/
5
  Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
6
- Version: 1.5
7
  Author: LuckyWP
8
  Author URI: https://theluckywp.com/
9
  Text Domain: lwptoc
@@ -29,6 +29,6 @@ $lwptocAutoloader->register();
29
  $lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
30
 
31
  $config = require(__DIR__ . '/config/plugin.php');
32
- (new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.5', __FILE__, 'lwptoc_');
33
 
34
  require_once __DIR__ . '/functions.php';
3
  Plugin Name: LuckyWP Table of Contents
4
  Plugin URI: https://theluckywp.com/product/table-of-contents/
5
  Description: Creates a table of contents for your posts/pages. Works automatically or manually (via shortcode, Gutenberg block or widget).
6
+ Version: 1.5.1
7
  Author: LuckyWP
8
  Author URI: https://theluckywp.com/
9
  Text Domain: lwptoc
29
  $lwptocAutoloader->addNamespace('luckywp\tableOfContents', __DIR__);
30
 
31
  $config = require(__DIR__ . '/config/plugin.php');
32
+ (new \luckywp\tableOfContents\plugin\Plugin($config))->run('1.5.1', __FILE__, 'lwptoc_');
33
 
34
  require_once __DIR__ . '/functions.php';
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://theluckywp.com/product/table-of-contents/
4
  Tags: table of contents, toc, navigation, links, seo
5
  Requires at least: 4.7
6
  Tested up to: 5.2.1
7
- Stable tag: 1.5
8
  Requires PHP: 5.6.20
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -128,6 +128,9 @@ For non-English websites it is recommended to enable the `Intl` PHP extension.
128
 
129
  == Changelog ==
130
 
 
 
 
131
  = 1.5 =
132
  + Enhancements for search engines (Google and other).
133
 
4
  Tags: table of contents, toc, navigation, links, seo
5
  Requires at least: 4.7
6
  Tested up to: 5.2.1
7
+ Stable tag: 1.5.1
8
  Requires PHP: 5.6.20
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
128
 
129
  == Changelog ==
130
 
131
+ = 1.5.1 =
132
+ * Bug fix
133
+
134
  = 1.5 =
135
  + Enhancements for search engines (Google and other).
136