Plugin Directory

Changeset 2358188 for loftloader


Ignore:
Timestamp:
08/12/2020 05:29:07 AM (6 years ago)
Author:
loftocean
Message:

update to version 2.3.1

Location:
loftloader
Files:
71 added
10 edited

Legend:

Unmodified
Added
Removed
  • loftloader/trunk/assets/css/loftloader-settings.css

    r2343460 r2358188  
    77 * Author URI: http://www.loftocean.com
    88 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
    9  * Version: 2.3.0
     9 * Version: 2.3.1
    1010*/
    1111@import url(https://fonts.googleapis.com/css?family=Lato:400,600);
  • loftloader/trunk/assets/css/loftloader.css

    r2343460 r2358188  
    77 * Author URI: http://www.loftocean.com
    88 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
    9  * Version: 2.3.0
     9 * Version: 2.3.1
    1010*/
    1111@-webkit-keyframes spinReturn {
  • loftloader/trunk/assets/js/customize.js

    r2248622 r2358188  
    5454        loftloader_lite_i18n ? $('.site-title').text(loftloader_lite_i18n.name) : '';
    5555        $('#loftloader-hide-site-title').remove();
     56
     57        var current_url = document.createElement( 'a' ), current_search;
     58        current_url.href = api.previewer.previewUrl();
     59        current_search = api.utils.parseQueryString( current_url.search.substr( 1 ) );
     60        api.previewer.unbind( 'url' ).bind( 'url', function( url ) {
     61            var previewer = this, onUrlChange, urlChanged = false, urlParser;
     62            urlParser = document.createElement( 'a' );
     63            urlParser.href = url;
     64            urlParser.search = $.param( { 'plugin': 'loftloader-lite' } );
     65            url = urlParser.href;
     66            previewer.scroll = 0;
     67            onUrlChange = function() {
     68                urlChanged = true;
     69            };
     70            previewer.previewUrl.bind( onUrlChange );
     71            previewer.previewUrl.set( url );
     72            previewer.previewUrl.unbind( onUrlChange );
     73            if ( ! urlChanged ) {
     74                previewer.refresh();
     75            }
     76        } );
     77        if ( ! current_search['plugin'] ) {
     78            current_search['plugin'] = 'loftloader-lite';
     79            current_url.search = $.param( current_search );
     80            api.previewer.previewUrl.set( current_url.href );
     81        }
     82
    5683
    5784        // Init for loader 2.0 customizer, when sync from lower version
  • loftloader/trunk/assets/js/customize.min.js

    r2248622 r2358188  
    1 !function(r,n){function l(e){var t,o=r.get(),a=!!o[e]&&o[e];return"string"==typeof a&&(a=a.trim()),!0===(t=a)?"on":t}n("head").append(n("<style>",{id:"loftloader-hide-site-title",text:".site-title { opacity:  0; }"})),r.LoftLoaderSwitchSection=r.Section.extend({initialize:function(){return r.Section.prototype.initialize.apply(this,arguments)},ready:function(){this.container.find("input[name=loftloader-main-switch]").attr("checked")||n("#customize-theme-controls").addClass("loftloader-settings-disabled"),n("#customize-theme-controls").addClass("loftloader-controls-wrapper")},attachEvents:function(){var l=this.container;l.on("change","input[name=loftloader-main-switch]",function(e){var t=!!n(this).attr("checked"),o=l.find("#customize-control-loftloader_main_switch input[type=checkbox]"),a=n("#customize-theme-controls");t?o.attr("checked","checked"):o.removeAttr("checked"),o.trigger("change"),t?a.removeClass("loftloader-settings-disabled"):a.addClass("loftloader-settings-disabled")})}}),n.extend(r.sectionConstructor,{loftloader_switch:r.LoftLoaderSwitchSection}),r.controlConstructor.slider=r.Control.extend({ready:function(){var e=this.container.find(".loader-ui-slider"),o=this.container.find("input[data-customize-setting-link]");e.slider({range:"min",min:e.data("min"),max:e.data("max"),value:e.data("value"),step:e.data("step"),slide:function(e,t){o.val(t.value).trigger("change")}})}}),r.bind("ready",function(e){loftloader_lite_i18n&&n(".site-title").text(loftloader_lite_i18n.name),n("#loftloader-hide-site-title").remove();var t=r.get(),o=n("#customize-control-loftloader_custom_img");if(o.length&&!o.find(".attachment-thumb").length&&t&&t.loftloader_custom_img){var a=t.loftloader_custom_img;if(a){var l=o.find(".attachment-media-view").addClass("attachment-media-view-image"),i=n("<div>",{class:"thumbnail thumbnail-image"}).append(n("<img>",{class:"attachment-thumb",src:a}));l.children(".placeholder").css("display","none").after(i).remove()}}n("body").on("change","input[type=number]",function(e){var t=parseInt(n(this).val()),o=n(this).attr("min")?parseInt(n(this).attr("min")):1;t<o&&n(this).val(o).trigger("change")}).on("change","input.loftlader-checkbox",function(e){var t=!!n(this).attr("checked"),o=n(this).siblings("input");o.length&&(t?o.attr("checked","checked"):o.removeAttr("checked"),o.trigger("change"))}).on("click",".customize-more-toggle",function(e){e.preventDefault();var t=n(this),o=n(this).siblings(".customize-control-description");o.length&&(t.hasClass("expanded")?o.slideUp("slow"):o.slideDown("slow",function(){n(this).css("display","block")}),t.toggleClass("expanded"))}).on("click",".loftloader-any-page-generate",function(e){e.preventDefault();var t=r.loftloader_generate_parameters();n(this).siblings(".loftloader-any-page-shortcode").val("[loftloader "+t+"]").select()})}),r.loftloader_generate_parameters=function(){var e={loftloader_bg_color:{},loftloader_bg_opacity:{},loftloader_bg_animation:{},loftloader_loader_type:{sun:["loftloader_loader_color"],circles:["loftloader_loader_color"],wave:["loftloader_loader_color"],square:["loftloader_loader_color"],beating:["loftloader_loader_color"],frame:["loftloader_loader_color","loftloader_custom_img"],imgloading:["loftloader_custom_img","loftloader_img_width"]},loftloader_show_close_timer:{},loftloader_show_close_tip:{},loftloader_max_load_time:{},loftloader_inline_js:{}},t=type_value=loop="";if("on"===l("loftloader_main_switch"))for(var o in t="loftloader_main_switch=on loftloader_show_range=sitewide",e){switch(type_value=l(o),o){case"loftloader_show_close_tip":type_value=type_value?'"'+btoa(unescape(encodeURIComponent(type_value)))+'"':'""';case"loftloader_bg_color":case"loftloader_bg_opacity":case"loftloader_bg_animation":loop=[];break;case"loftloader_max_load_time":type_value=type_value||0;break;default:loop=e[o][type_value]?e[o][type_value]:[]}if(t+=" "+o+"="+type_value,loop)for(var a in loop)t+=" "+loop[a]+"="+l(loop[a])}else t="loftloader_main_switch=false";return t}}(wp.customize,jQuery);
     1!function(s,c){function l(e){var t,o=s.get(),a=!!o[e]&&o[e];return"string"==typeof a&&(a=a.trim()),!0===(t=a)?"on":t}c("head").append(c("<style>",{id:"loftloader-hide-site-title",text:".site-title { opacity:  0; }"})),s.LoftLoaderSwitchSection=s.Section.extend({initialize:function(){return s.Section.prototype.initialize.apply(this,arguments)},ready:function(){this.container.find("input[name=loftloader-main-switch]").attr("checked")||c("#customize-theme-controls").addClass("loftloader-settings-disabled"),c("#customize-theme-controls").addClass("loftloader-controls-wrapper")},attachEvents:function(){var l=this.container;l.on("change","input[name=loftloader-main-switch]",function(e){var t=!!c(this).attr("checked"),o=l.find("#customize-control-loftloader_main_switch input[type=checkbox]"),a=c("#customize-theme-controls");t?o.attr("checked","checked"):o.removeAttr("checked"),o.trigger("change"),t?a.removeClass("loftloader-settings-disabled"):a.addClass("loftloader-settings-disabled")})}}),c.extend(s.sectionConstructor,{loftloader_switch:s.LoftLoaderSwitchSection}),s.controlConstructor.slider=s.Control.extend({ready:function(){var e=this.container.find(".loader-ui-slider"),o=this.container.find("input[data-customize-setting-link]");e.slider({range:"min",min:e.data("min"),max:e.data("max"),value:e.data("value"),step:e.data("step"),slide:function(e,t){o.val(t.value).trigger("change")}})}}),s.bind("ready",function(e){loftloader_lite_i18n&&c(".site-title").text(loftloader_lite_i18n.name),c("#loftloader-hide-site-title").remove();var t,o=document.createElement("a");o.href=s.previewer.previewUrl(),t=s.utils.parseQueryString(o.search.substr(1)),s.previewer.unbind("url").bind("url",function(e){var t,o=this,a=!1,l=document.createElement("a");l.href=e,l.search=c.param({plugin:"loftloader-lite"}),e=l.href,o.scroll=0,t=function(){a=!0},o.previewUrl.bind(t),o.previewUrl.set(e),o.previewUrl.unbind(t),a||o.refresh()}),t.plugin||(t.plugin="loftloader-lite",o.search=c.param(t),s.previewer.previewUrl.set(o.href));var a,l,i,r=s.get(),n=c("#customize-control-loftloader_custom_img");n.length&&!n.find(".attachment-thumb").length&&r&&r.loftloader_custom_img&&((a=r.loftloader_custom_img)&&(l=n.find(".attachment-media-view").addClass("attachment-media-view-image"),i=c("<div>",{class:"thumbnail thumbnail-image"}).append(c("<img>",{class:"attachment-thumb",src:a})),l.children(".placeholder").css("display","none").after(i).remove())),c("body").on("change","input[type=number]",function(e){var t=parseInt(c(this).val()),o=c(this).attr("min")?parseInt(c(this).attr("min")):1;t<o&&c(this).val(o).trigger("change")}).on("change","input.loftlader-checkbox",function(e){var t=!!c(this).attr("checked"),o=c(this).siblings("input");o.length&&(t?o.attr("checked","checked"):o.removeAttr("checked"),o.trigger("change"))}).on("click",".customize-more-toggle",function(e){e.preventDefault();var t=c(this),o=c(this).siblings(".customize-control-description");o.length&&(t.hasClass("expanded")?o.slideUp("slow"):o.slideDown("slow",function(){c(this).css("display","block")}),t.toggleClass("expanded"))}).on("click",".loftloader-any-page-generate",function(e){e.preventDefault();var t=s.loftloader_generate_parameters();c(this).siblings(".loftloader-any-page-shortcode").val("[loftloader "+t+"]").select()})}),s.loftloader_generate_parameters=function(){var e={loftloader_bg_color:{},loftloader_bg_opacity:{},loftloader_bg_animation:{},loftloader_loader_type:{sun:["loftloader_loader_color"],circles:["loftloader_loader_color"],wave:["loftloader_loader_color"],square:["loftloader_loader_color"],beating:["loftloader_loader_color"],frame:["loftloader_loader_color","loftloader_custom_img"],imgloading:["loftloader_custom_img","loftloader_img_width"]},loftloader_show_close_timer:{},loftloader_show_close_tip:{},loftloader_max_load_time:{},loftloader_inline_js:{}},t=type_value=loop="";if("on"===l("loftloader_main_switch"))for(var o in t="loftloader_main_switch=on loftloader_show_range=sitewide",e){switch(type_value=l(o),o){case"loftloader_show_close_tip":type_value=type_value?'"'+btoa(unescape(encodeURIComponent(type_value)))+'"':'""';case"loftloader_bg_color":case"loftloader_bg_opacity":case"loftloader_bg_animation":loop=[];break;case"loftloader_max_load_time":type_value=type_value||0;break;default:loop=e[o][type_value]?e[o][type_value]:[]}if(t+=" "+o+"="+type_value,loop)for(var a in loop)t+=" "+loop[a]+"="+l(loop[a])}else t="loftloader_main_switch=false";return t}}(wp.customize,jQuery);
  • loftloader/trunk/assets/scss/loftloader-settings.scss

    r2343460 r2358188  
    77 * Author URI: http://www.loftocean.com
    88 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
    9  * Version: 2.3.0
     9 * Version: 2.3.1
    1010*/
    1111
     
    144144        @include roundedcorner;
    145145    }
    146    
     146
    147147    input[type="text"],
    148148    input[type="number"],
  • loftloader/trunk/assets/scss/loftloader.scss

    r2343460 r2358188  
    77 * Author URI: http://www.loftocean.com
    88 * Description: LoftLoader (Lite Version) is a plugin for adding beautiful and smooth preload animation to your WordPress website. With setting options, you can choose from preset animations, add custom logo image, choose colours to match your branding, and amuse and impress your visitors while loading site content.
    9  * Version: 2.3.0
     9 * Version: 2.3.1
    1010*/
    1111
  • loftloader/trunk/inc/class-loftloader-front.php

    r2343460 r2358188  
    302302        }
    303303        /**
    304         * Not show loader in builder and theme customizer 
     304        * Not show loader in builder and theme customizer
    305305        */
    306306        protected function test_builder() {
  • loftloader/trunk/languages/loftloader.pot

    r2343460 r2358188  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: LoftLoader 2.3\n"
     5"Project-Id-Version: LoftLoader 2.3.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/loftloader\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2020-07-20T13:13:54+00:00\n"
     12"POT-Creation-Date: 2020-08-12T02:52:10+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
  • loftloader/trunk/loftloader.php

    r2343460 r2358188  
    44Plugin URI: http://www.loftocean.com/
    55Description: An easy to use plugin to add an animated preloader to your website with fully customisations.
    6 Version: 2.3
     6Version: 2.3.1
    77Author: Loft.Ocean
    88Author URI: http://www.loftocean.com/
     
    3333    define( 'LOFTLOADER_NAME', plugin_basename( __FILE__  ) );
    3434    define( 'LOFTLOADER_URI',  plugin_dir_url( __FILE__ ) );
    35     define( 'LOFTLOADER_ASSET_VERSION', '2020072001' );
     35    define( 'LOFTLOADER_ASSET_VERSION', '2020081203' );
    3636
    3737    class LoftLoader {
  • loftloader/trunk/readme.txt

    r2343460 r2358188  
    55Requires at least: 4.7
    66Tested up to: 5.4
    7 Stable tag: 2.3
     7Stable tag: 2.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797
    9898== Changelog ==
     99= 2.3.1 =
     100* Fixed: The preview area is not displayed when setting the loader
     101
    99102= 2.3 =
    100103* Improved: Hide loader when opening theme customizer
Note: See TracChangeset for help on using the changeset viewer.