Plugin Directory

Changeset 2761812


Ignore:
Timestamp:
07/26/2022 01:05:47 PM (4 years ago)
Author:
undefinedfr
Message:

Updating trunk

Location:
linky/trunk
Files:
4 edited

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  
    1212  Description: Create & manage link’s hub for your
    1313social profile directly in your websites
    14   Version: 1.3.8
     14  Version: 1.3.9
    1515  Author Name: Nicolas RIVIERE (hello@undefined.fr)
    1616  Author: Nicolas RIVIERE (Undefined)
  • linky/trunk/readme.txt

    r2761678 r2761812  
    55Requires at least: 4.0
    66Tested up to: 6.0
    7 Stable tag: 1.3.8
     7Stable tag: 1.3.9
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    194194* jQuery conflict (bis)
    195195
     196=1.3.9=
     197* Support EWWW Image Optimizer lazyload
     198
    196199== Upgrade Notice ==
    197200
  • linky/trunk/src/Linky.php

    r2716180 r2761812  
    208208
    209209        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')] );
    210211
    211212        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.