Plugin Directory

Changeset 2248622 for loftloader


Ignore:
Timestamp:
02/22/2020 07:16:02 AM (6 years ago)
Author:
loftocean
Message:

updated

Location:
loftloader
Files:
71 added
17 edited

Legend:

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

    r2193852 r2248622  
    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.1.12
     9 * Version: 2.2.0
    1010*/
    1111@import url(https://fonts.googleapis.com/css?family=Lato:400,600);
  • loftloader/trunk/assets/css/loftloader.css

    r2193852 r2248622  
    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.1.12
     9 * Version: 2.2.0
    1010*/
    1111@-webkit-keyframes spinReturn {
  • loftloader/trunk/assets/js/customize.js

    r2087328 r2248622  
    66(function(api, $){
    77    $('head').append($('<style>', {'id': 'loftloader-hide-site-title', 'text': '.site-title { opacity:  0; }'}));
    8     // Main Switch section 
     8    // Main Switch section
    99    api.LoftLoaderSwitchSection = api.Section.extend({
    1010        initialize: function () {
    1111            return api.Section.prototype.initialize.apply( this, arguments );
    1212        },
    13         ready: function(){ 
     13        ready: function(){
    1414            var checked = this.container.find('input[name=loftloader-main-switch]').attr('checked') ? true : false;
    1515            checked ? '' : $('#customize-theme-controls').addClass('loftloader-settings-disabled');
     
    6666                $container.children('.placeholder').css('display', 'none').after($image).remove();
    6767            }
    68         }   
     68        }
    6969
    7070        $('body')
     
    154154                'loftloader_show_close_timer': {},
    155155                'loftloader_show_close_tip': {},
     156                'loftloader_max_load_time': {},
    156157                'loftloader_inline_js': {}
    157158            };
     
    168169                    case 'loftloader_bg_animation':
    169170                        loop = [];
     171                        break;
     172                    case 'loftloader_max_load_time':
     173                        if ( ! type_value ) {
     174                            type_value = 0;
     175                        }
    170176                        break;
    171177                    default:
  • loftloader/trunk/assets/js/customize.min.js

    r2087328 r2248622  
    1 !function(n,r){function l(e){var t,o=n.get(),a=!!o[e]&&o[e];return"string"==typeof a&&(a=a.trim()),!0===(t=a)?"on":t}r("head").append(r("<style>",{id:"loftloader-hide-site-title",text:".site-title { opacity:  0; }"})),n.LoftLoaderSwitchSection=n.Section.extend({initialize:function(){return n.Section.prototype.initialize.apply(this,arguments)},ready:function(){!!!this.container.find("input[name=loftloader-main-switch]").attr("checked")&&r("#customize-theme-controls").addClass("loftloader-settings-disabled"),r("#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=!!r(this).attr("checked"),o=l.find("#customize-control-loftloader_main_switch input[type=checkbox]"),a=r("#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")})}}),r.extend(n.sectionConstructor,{loftloader_switch:n.LoftLoaderSwitchSection}),n.controlConstructor.slider=n.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")}})}}),n.bind("ready",function(e){loftloader_lite_i18n&&r(".site-title").text(loftloader_lite_i18n.name),r("#loftloader-hide-site-title").remove();var t=n.get(),o=r("#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=r("<div>",{class:"thumbnail thumbnail-image"}).append(r("<img>",{class:"attachment-thumb",src:a}));l.children(".placeholder").css("display","none").after(i).remove()}}r("body").on("change","input[type=number]",function(e){var t=parseInt(r(this).val()),o=r(this).attr("min")?parseInt(r(this).attr("min")):1;t<o&&r(this).val(o).trigger("change")}).on("change","input.loftlader-checkbox",function(e){var t=!!r(this).attr("checked"),o=r(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=r(this),o=r(this).siblings(".customize-control-description");o.length&&(t.hasClass("expanded")?o.slideUp("slow"):o.slideDown("slow",function(){r(this).css("display","block")}),t.toggleClass("expanded"))}).on("click",".loftloader-any-page-generate",function(e){e.preventDefault();var t=n.loftloader_generate_parameters();r(this).siblings(".loftloader-any-page-shortcode").val("[loftloader "+t+"]").select()})}),n.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_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;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(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);
  • loftloader/trunk/assets/js/loftloader.js

    r2087328 r2248622  
    44    }
    55    if ( $( '#loftloader-wrapper' ).length ) {
    6         $(window).load( function(){
    7             loftloader_finished(); 
     6        $( window ).load( function() {
     7            loftloader_finished();
    88        } );
    99
    1010        $( document ).ready( function() {
    11             var $loader_wrapper = $( '#loftloader-wrapper' ),
    12                 show_close_time = '';
     11            var $loader_wrapper = $( '#loftloader-wrapper' ), show_close_time = '', max_load_time = false;
    1312            if ( $loader_wrapper.data( 'show-close-time' ) ) {
    14                 show_close_time = parseInt( $loader_wrapper.data( 'show-close-time' ) );
     13                show_close_time = parseInt( $loader_wrapper.data( 'show-close-time' ), 10 );
    1514                if( show_close_time ) {
    16                     setTimeout( function(){ 
    17                         $loader_wrapper.find( '.loader-close-button' ).css('display', '' ); 
     15                    setTimeout( function(){
     16                        $loader_wrapper.find( '.loader-close-button' ).css('display', '' );
    1817                    }, show_close_time );
    1918                    $( '.loader-close-button' ).on( 'click', function() {
     
    2221                }
    2322            }
     23            if ( $loader_wrapper.data( 'max-load-time' ) ) {
     24                max_load_time = parseInt( $loader_wrapper.data( 'max-load-time' ), 10 );
     25                if( max_load_time ) {
     26                    setTimeout( function() {
     27                        loftloader_finished();
     28                    }, max_load_time );
     29                }
     30            }
    2431        } );
    2532    }
  • loftloader/trunk/assets/js/loftloader.min.js

    r1860272 r2248622  
    1 !function(o){function t(){o("body").addClass("loaded")}o("#loftloader-wrapper").length&&(o(window).load(function(){t()}),o(document).ready(function(){var e=o("#loftloader-wrapper"),n="";e.data("show-close-time")&&(n=parseInt(e.data("show-close-time")))&&(setTimeout(function(){e.find(".loader-close-button").css("display","")},n),o(".loader-close-button").on("click",function(){t()}))}))}(jQuery);
     1!function(e){function n(){e("body").addClass("loaded")}e("#loftloader-wrapper").length&&(e(window).load(function(){n()}),e(document).ready(function(){var o=e("#loftloader-wrapper"),t="",a=!1;o.data("show-close-time")&&(t=parseInt(o.data("show-close-time"),10))&&(setTimeout(function(){o.find(".loader-close-button").css("display","")},t),e(".loader-close-button").on("click",function(){n()})),o.data("max-load-time")&&(a=parseInt(o.data("max-load-time"),10))&&setTimeout(function(){n()},a)}))}(jQuery);
  • loftloader/trunk/assets/scss/loftloader-settings.scss

    r2193852 r2248622  
    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.1.12
     9 * Version: 2.2.0
    1010*/
    1111
     
    5353            font-weight: bold;
    5454            color: $text-color;
    55            
     55
    5656            .rtl & {
    5757                float: left;
     
    7171                color: $text-color;
    7272                text-align: right;
    73                
     73
    7474                .rtl & {
    7575                    text-align: left;
     
    147147        width: 100%;
    148148        text-align: left;
    149        
     149
    150150        .rtl & {
    151151            text-align: right;
     
    167167        box-shadow: none;
    168168        font-size: 0;
    169        
     169
    170170        .rtl & {
    171171            float: left;
     
    225225            & + div {
    226226                float: right;
    227                
     227
    228228                .rtl & {
    229229                    float: left;
     
    313313            margin-top: -2px;
    314314            width: auto;
    315            
     315
    316316            .rtl & {
    317317                margin-left: 15px;
     
    425425            border-radius: 50%;
    426426            border: none;
    427            
     427
    428428            .rtl & {
    429429                float: left;
     
    470470                padding: 0;
    471471                @include animations(8);
    472                
     472
    473473                .rtl & {
    474474                    float: right;
     
    523523            box-shadow: none;
    524524            font-size: 0;
    525            
     525
    526526            .rtl & {
    527527                float: left;
     
    578578                letter-spacing: 0.05em;
    579579                color: $text-color;
    580                
     580
    581581                .rtl & {
    582582                    float: left;
     
    585585                input[type="number"] {
    586586                    margin-right: 5px;
    587                    
     587
    588588                    .rtl & {
    589589                        margin-right: 0;
  • loftloader/trunk/assets/scss/loftloader.scss

    r2193852 r2248622  
    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.1.12
     9 * Version: 2.2.0
    1010*/
    1111
  • loftloader/trunk/inc/any-page/class-any-page-filter.php

    r1977136 r2248622  
    22if ( ! class_exists('LoftLoader_Any_Page_Filter' ) ) {
    33    class LoftLoader_Any_Page_Filter{
    4         private $defaults = array(); 
     4        private $defaults = array();
    55        private $page_settings = array();
    66        private $page_enabled = false;
     
    1414        * @description get the plugin settings
    1515        */
    16         public function loader_settings(){
     16        public function loader_settings() {
    1717            global $wp_customize, $loftloader_default_settings;
    18             $this->is_customize = isset($wp_customize) ? true : false;
    19             if(((is_front_page() || is_home()) && (get_option('show_on_front', false) == 'page')) || is_page()){
    20                 $page = get_queried_object();
    21                 if(($atts = $this->get_loader_attributes($page->ID)) !== false){
    22                     if( isset( $atts['loftloader_show_close_tip'] ) ) {
     18            $this->is_customize = isset( $wp_customize ) ? true : false;
     19            if ( $this->is_any_page_extension_enabled() ) {
     20                $page = $this->get_queried_object();
     21                if ( ( $atts = $this->get_loader_attributes( $page->ID ) ) !== false ) {
     22                    if ( isset( $atts['loftloader_show_close_tip'] ) ) {
    2323                        $atts['loftloader_show_close_tip'] = base64_decode( $atts['loftloader_show_close_tip'] );
    2424                    }
     
    5353            return ($this->page_enabled && !$this->is_customize && isset($this->page_settings[$setting_id])) ? $this->page_settings[$setting_id] : $setting_value;
    5454        }
     55
     56        /**
     57        * Help function to test if any page extension enabled on current page
     58        */
     59        protected function is_any_page_extension_enabled() {
     60            $is_fromt_home_page = ( is_front_page() || is_home() ) && ( get_option('show_on_front', false ) == 'page' );
     61            $is_shop_page = $this->is_woocommerce_shop();
     62            return $is_fromt_home_page || $is_shop_page || is_page();
     63        }
     64        /**
     65        * Get queried page object
     66        */
     67        protected function get_queried_object() {
     68            if ( $this->is_woocommerce_shop() ) {
     69                $page_id = wc_get_page_id( 'shop' );
     70                return get_page( $page_id );
     71            } else {
     72                return get_queried_object();
     73            }
     74        }
     75        /**
     76        * Condition function test if is woocommerce shop page
     77        */
     78        protected function is_woocommerce_shop() {
     79            if ( function_exists( 'is_shop' ) ) {
     80                $page_id = wc_get_page_id( 'shop' );
     81                return ! empty( $page_id ) && ( $page_id !== -1 ) && is_shop();
     82            }
     83            return false;
     84        }
    5585    }
    5686}
  • loftloader/trunk/inc/class-loftloader-customize.php

    r2186616 r2248622  
    138138    class LoftLoader_Customize_Control extends WP_Customize_Control {
    139139        public $filter = false;
     140        public $text = '';
    140141        public $parent_setting_id = '';
    141142        public $show_filter = array();
    142143        public $img = '';
    143144        public $href = '';
     145        public $note_below = '';
    144146        public function active_callback() {
    145147            if ( $this->filter && ( $this->manager->get_setting($this->parent_setting_id ) instanceof WP_Customize_Setting ) && ! empty( $this->show_filter ) ) {
     
    191193                default:
    192194                    parent::render_content();
     195                    if ( ! empty( $this->text ) ) {
     196                        echo esc_html( $this->text ) . '<br/>';
     197                    }
     198                    if ( ! empty( $this->note_below ) ) : ?>
     199                        <span class="description"><?php echo esc_html( $this->note_below ); ?></span><?php
     200                    endif;
    193201            }
    194202        }
     
    348356        }
    349357    }
     358
     359    if ( ! function_exists( 'loftloader_sanitize_number' ) ) {
     360        /**
     361        * Check the value is float with 1 decimal
     362        *
     363        * @param string the value from user
     364        * @param object customize setting object
     365        * @return string the value from user or the default setting value
     366        */
     367
     368        function loftloader_sanitize_number( $value) {
     369            if ( ! empty( $value ) ) {
     370                $value = floatval( $value );
     371                return number_format( $value, 1, '.', '' );
     372            }
     373            return 0;
     374        }
     375    }
    350376}
  • loftloader/trunk/inc/class-loftloader-front.php

    r2186616 r2248622  
    234234            $show_close_time = number_format( $show_close_time, 0, '.', '' );
    235235            $attrs .= sprintf( ' data-show-close-time="%s"', esc_js( esc_attr( $show_close_time * 1000 ) ) );
     236
     237            $max_load_time = $this->get_loader_setting( 'loftloader_max_load_time' );
     238            $max_load_time = number_format( $max_load_time, 1, '.', '' );
     239            if ( ! empty( $max_load_time ) ) {
     240                $attrs .= sprintf( ' data-max-load-time="%s"', esc_js( esc_attr( $max_load_time * 1000 ) ) );
     241            }
     242
    236243            return apply_filters( 'loftloader_loader_attributes', $attrs );
    237244        }
  • loftloader/trunk/inc/configs/customize-advanced.php

    r2087328 r2248622  
    66*/
    77add_action( 'customize_register', 'loftloader_customize_advanced', 50 );
    8 function loftloader_customize_advanced( $wp_customize ) {   
     8function loftloader_customize_advanced( $wp_customize ) {
    99    global $loftloader_default_settings;
    1010
     
    3131        'title'       => esc_html__( 'Advanced', 'loftloader' ),
    3232        'description' => '',
    33         'priority'    => 50
     33        'priority'    => 55
    3434    ) ) );
    3535
     
    3838        'label'         => esc_html__( 'How to Load LoftLoader\'s JavaScript', 'loftloader' ),
    3939        'description'   => '',
    40         'choices'       => array( 
     40        'choices'       => array(
    4141            '' => esc_html__( 'External JavaScript', 'loftloader' ),
    4242            'inline' => esc_html__( 'Inline JavaScript', 'loftloader' )
  • loftloader/trunk/inc/configs/customize-more.php

    r2087328 r2248622  
    66*/
    77add_action( 'customize_register', 'loftloader_customize_more', 45 );
    8 function loftloader_customize_more( $wp_customize ) {   
     8function loftloader_customize_more( $wp_customize ) {
    99    global $loftloader_default_settings;
    1010
    11     $wp_customize->add_section( new LoftLoader_Customize_Section( $wp_customize, 'loftloader_section_more', array(
     11    $wp_customize->add_panel( new WP_Customize_Panel ( $wp_customize, 'loftloader_panel_more', array(
    1212        'title'       => esc_html__( 'More', 'loftloader' ),
    13         'description' => '',
    14         'priority'    => 50
     13        'priority'    => 52
    1514    ) ) );
    1615
     16    $wp_customize->add_section( new LoftLoader_Customize_Section( $wp_customize, 'loftloader_section_max_load_time', array(
     17        'title' => esc_html__( 'Maximum Load Time', 'loftloader' ),
     18        'panel' => 'loftloader_panel_more'
     19    ) ) );
     20    $wp_customize->add_section( new LoftLoader_Customize_Section( $wp_customize, 'loftloader_section_close_button', array(
     21        'title' => esc_html__( 'Close Button', 'loftloader' ),
     22        'panel' => 'loftloader_panel_more'
     23    ) ) );
     24
     25    $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_max_load_time', array(
     26        'default'           => $loftloader_default_settings['loftloader_max_load_time'],
     27        'transport'         => 'postMessage',
     28        'type'              => 'option',
     29        'sanitize_callback' => 'loftloader_sanitize_number'
     30    ) ) );
    1731    $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_show_close_timer', array(
    1832        'default'           => $loftloader_default_settings['loftloader_show_close_timer'],
     
    2842    ) ) );
    2943
     44    $wp_customize->add_control( new LoftLoader_Customize_Control( $wp_customize, 'loftloader_max_load_time', array(
     45        'type'          => 'number',
     46        'label'         => esc_html__( 'Maximum Load Time', 'loftloader' ),
     47        'note_below'    => esc_html__( 'Please enter any number greater than 0 to enable this feature.', 'loftloader' ),
     48        'section'       => 'loftloader_section_max_load_time',
     49        'input_attrs'   => array( 'min' => '0' ),
     50        'text'          => esc_html__( ' second(s)', 'loftloader' ),
     51        'settings'      => 'loftloader_max_load_time'
     52    ) ) );
    3053    $wp_customize->add_control( new LoftLoader_Customize_Slider_Control( $wp_customize, 'loftloader_show_close_timer', array(
    3154        'type'          => 'slider',
     
    3962        ),
    4063        'input_class'   => 'loftloader-show-close-timer',
    41         'section'       => 'loftloader_section_more',
     64        'section'       => 'loftloader_section_close_button',
    4265        'settings'      => 'loftloader_show_close_timer'
    4366    ) ) );
     
    4568        'type'          => 'text',
    4669        'label'         => esc_html__( 'Description for Close Button', 'loftloader' ),
    47         'section'       => 'loftloader_section_more',
     70        'section'       => 'loftloader_section_close_button',
    4871        'settings'      => 'loftloader_show_close_tip'
    4972    ) ) );
  • loftloader/trunk/inc/configs/default-settings.php

    r2087328 r2248622  
    2424    'loftloader_show_close_tip'     => '',
    2525
     26    'loftloader_max_load_time'      => 0,
     27
    2628    'loftloader_inline_js'          => '',
    2729    'loftloader_enable_any_page'    => ''
  • loftloader/trunk/languages/loftloader.pot

    r2193852 r2248622  
    1 # Copyright (C) 2019 LoftLoader
    2 # This file is distributed under the same license as the LoftLoader package.
     1# Copyright (C) 2020 Loft Ocean
     2# This file is distributed under the same license as the LoftLoader plugin.
    33#, fuzzy
    44msgid ""
    55msgstr ""
    6 "Project-Id-Version: LoftLoader 2.1.12\n"
    7 "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/loftloader\n"
    8 "POT-Creation-Date: 2019-11-15 23:09+0800\n"
     6"Project-Id-Version: LoftLoader 2.2.0\n"
     7"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/loftloader\n"
     8"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     9"Language-Team: LANGUAGE <LL@li.org>\n"
    910"MIME-Version: 1.0\n"
    1011"Content-Type: text/plain; charset=UTF-8\n"
    1112"Content-Transfer-Encoding: 8bit\n"
    12 "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
    13 "Last-Translator: Suihai <cain@loftocean.com>\n"
    14 "Language-Team: Loft Ocean <cain@loftocean.com>\n"
     13"POT-Creation-Date: 2020-02-22 14:51+0800\n"
     14"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1515"X-Generator: Poedit 2.2.4\n"
     16"X-Domain: loftloader\n"
     17
     18#. Plugin Name of the plugin
     19msgid "LoftLoader"
     20msgstr ""
     21
     22#. Plugin URI of the plugin
     23#. Author URI of the plugin
     24msgid "http://www.loftocean.com/"
     25msgstr ""
     26
     27#. Description of the plugin
     28msgid "An easy to use plugin to add an animated preloader to your website with fully customisations."
     29msgstr ""
     30
     31#. Author of the plugin
     32msgid "Loft Ocean"
     33msgstr ""
    1634
    1735#: inc/any-page/class-loftloader-any-page.php:24
     
    3553msgstr ""
    3654
    37 #: inc/class-loftloader-customize.php:175 inc/configs/customize-advanced.php:24
     55#: inc/class-loftloader-customize.php:177 inc/configs/customize-advanced.php:24
    3856msgid "Generate"
    3957msgstr ""
    4058
    41 #: inc/class-loftloader-customize.php:259
     59#: inc/class-loftloader-customize.php:267
    4260msgid "More info"
    43 msgstr ""
    44 
    45 #: inc/class-loftloader-front.php:180
    46 msgid "loader image"
    4761msgstr ""
    4862
     
    167181msgstr ""
    168182
    169 #: inc/configs/customize-more.php:32
     183#: inc/configs/customize-more.php:17 inc/configs/customize-more.php:46
     184msgid "Maximum Load Time"
     185msgstr ""
     186
     187#: inc/configs/customize-more.php:21
     188msgid "Close Button"
     189msgstr ""
     190
     191#: inc/configs/customize-more.php:47
     192msgid "Please enter any number greater than 0 to enable this feature."
     193msgstr ""
     194
     195#: inc/configs/customize-more.php:50
     196msgid " second(s)"
     197msgstr ""
     198
     199#: inc/configs/customize-more.php:55
    170200msgid "Show Close Button after"
    171201msgstr ""
    172202
    173 #: inc/configs/customize-more.php:46
     203#: inc/configs/customize-more.php:69
    174204msgid "Description for Close Button"
    175205msgstr ""
     
    202232msgid "Settings"
    203233msgstr ""
    204 
    205 #. Plugin Name of the plugin/theme
    206 msgid "LoftLoader"
    207 msgstr ""
    208 
    209 #. Plugin URI of the plugin/theme
    210 #. Author URI of the plugin/theme
    211 msgid "http://www.loftocean.com/"
    212 msgstr ""
    213 
    214 #. Description of the plugin/theme
    215 msgid ""
    216 "An easy to use plugin to add an animated preloader to your website with "
    217 "fully customisations."
    218 msgstr ""
    219 
    220 #. Author of the plugin/theme
    221 msgid "Loft Ocean"
    222 msgstr ""
  • loftloader/trunk/loftloader.php

    r2193852 r2248622  
    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.1.12
     6Version: 2.2.0
    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', '2019111501' );
     35    define( 'LOFTLOADER_ASSET_VERSION', '2020022204' );
    3636
    3737    class LoftLoader {
  • loftloader/trunk/readme.txt

    r2193852 r2248622  
    55Requires at least: 4.7
    66Tested up to: 5.3
    7 Stable tag: 2.1.12
     7Stable tag: 2.2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797
    9898== Changelog ==
     99= 2.2.0
     100* New: Option to set a Maximum Load Time
     101* Improved: Rearranged options in More section
     102* Fixed: Any Page Extension - shortcode did not work on WooCommerce Shop Page
     103
    99104= 2.1.12
    100105* Fixed: Minor style issues in LoftLoader Settings panel for WordPress 5.3
Note: See TracChangeset for help on using the changeset viewer.