Changeset 2761812
- Timestamp:
- 07/26/2022 01:05:47 PM (4 years ago)
- Location:
- linky/trunk
- Files:
-
- 4 edited
-
assets/dist/linky.js (modified) (1 diff)
-
linky.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
src/Linky.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
linky/trunk/assets/dist/linky.js
r2761678 r2761812 1 "undefined"==typeof $&&"undefined"!=typeof jQuery&&($=jQuery),$(document).ready(function(){$(".js-toggle-menu").click(function(){$(this).closest(".header__burger").toggleClass("is-open"),$(".linky-page").toggleClass("menu-open")})}),$(window).load(function(){$("img").each(function(){var a=$(this),b=a.data(),c=Object.keys(b);if(c.length>0)for(var d=0;d<c.length;d++)c[d].toLowerCase().indexOf("src")>=0&&(a.attr("src",a.data(c[d])),a.addClass("lazyloaded"))}) });1 "undefined"==typeof $&&"undefined"!=typeof jQuery&&($=jQuery),$(document).ready(function(){$(".js-toggle-menu").click(function(){$(this).closest(".header__burger").toggleClass("is-open"),$(".linky-page").toggleClass("menu-open")})}),$(window).load(function(){$("img").each(function(){var a=$(this),b=a.data(),c=Object.keys(b);if(c.length>0)for(var d=0;d<c.length;d++)c[d].toLowerCase().indexOf("src")>=0&&(a.attr("src",a.data(c[d])),a.addClass("lazyloaded"))}),1==linky_args.ewww_lazyload&&$(".lazyload").each(function(){var a=$(this).data("bg");a&&$(this).css("background-image","url("+a+")").removeClass("lazyload")})}); -
linky/trunk/linky.php
r2761678 r2761812 12 12 Description: Create & manage link’s hub for your 13 13 social profile directly in your websites 14 Version: 1.3. 814 Version: 1.3.9 15 15 Author Name: Nicolas RIVIERE (hello@undefined.fr) 16 16 Author: Nicolas RIVIERE (Undefined) -
linky/trunk/readme.txt
r2761678 r2761812 5 5 Requires at least: 4.0 6 6 Tested up to: 6.0 7 Stable tag: 1.3. 87 Stable tag: 1.3.9 8 8 Requires PHP: 5.4 9 9 License: GPLv2 or later … … 194 194 * jQuery conflict (bis) 195 195 196 =1.3.9= 197 * Support EWWW Image Optimizer lazyload 198 196 199 == Upgrade Notice == 197 200 -
linky/trunk/src/Linky.php
r2716180 r2761812 208 208 209 209 wp_enqueue_script( $this->_menuSlug . '-front', UNDFND_WP_LINKY_PLUGIN_URL . '/assets/dist/linky.js', ['jquery'] ); 210 wp_localize_script( $this->_menuSlug . '-front', 'linky_args', ['ewww_lazyload' => (bool) (is_plugin_active('ewww-image-optimizer/ewww-image-optimizer.php')) && get_option('ewww_image_optimizer_lazy_load')] ); 210 211 211 212 wp_enqueue_style($this->_menuSlug . '-kaushan-font', 'https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap', false);
Note: See TracChangeset
for help on using the changeset viewer.