Plugin Directory

Changeset 2684833


Ignore:
Timestamp:
02/25/2022 08:43:00 AM (4 years ago)
Author:
loftocean
Message:

relesae version 2.3.8

Location:
loftloader
Files:
71 added
10 edited

Legend:

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

    r2616962 r2684833  
    77 * Author URI: https://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.7
     9 * Version: 2.3.8
    1010*/
    1111@import url(https://fonts.googleapis.com/css?family=Lato:400,600);
  • loftloader/trunk/assets/css/loftloader.css

    r2616962 r2684833  
    77 * Author URI: https://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.7
     9 * Version: 2.3.8
    1010*/
    1111@-webkit-keyframes spinReturn {
  • loftloader/trunk/assets/scss/loftloader.scss

    r2616962 r2684833  
    77 * Author URI: https://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.7
     9 * Version: 2.3.8
    1010*/
    1111
  • loftloader/trunk/inc/class-loftloader-customize.php

    r2248622 r2684833  
    184184                        if ( ! empty( $this->label ) ) : ?>
    185185                            <span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> <?php
    186                         endif;
    187                         if ( ! empty( $this->description ) ) : ?>
    188                             <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> <?php
    189186                        endif; ?>
    190187                            <input class="loftlader-checkbox" type="checkbox" value="on" name="<?php echo esc_attr( $this->id ); ?>" <?php checked( 'on', $this->value() ); ?> />
    191188                            <input style="display:none;" type="checkbox" value="on" <?php $this->link(); ?> <?php checked( 'on', $this->value() ); ?> />
    192                     </label> <?php break;
     189                    </label> <?php
     190                    if ( ! empty( $this->description ) ) : ?>
     191                        <span class="description customize-control-description"><?php echo wp_kses_post( $this->description ); ?></span> <?php
     192                    endif;
     193                    break;
    193194                default:
    194195                    parent::render_content();
  • loftloader/trunk/inc/class-loftloader-upgrade.php

    r2133870 r2684833  
    22if ( ! class_exists( 'LoftLoader_Upgrade' ) ) {
    33    class LoftLoader_Upgrade {
    4         private $version ='2.1.9';
     4        private $version ='2.3.8';
    55        function __construct(){
    66            $old_version = get_option('loftloader_lite_version', '1.0');
  • loftloader/trunk/inc/configs/customize-more.php

    r2248622 r2684833  
    2222        'panel' => 'loftloader_panel_more'
    2323    ) ) );
     24    $wp_customize->add_section( new LoftLoader_Customize_Section( $wp_customize, 'loftloader_section_remove_settings', array(
     25        'title' => esc_html__( 'Plugin Data', 'loftloader' ),
     26        'panel' => 'loftloader_panel_more'
     27    ) ) );
    2428
    2529    $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_max_load_time', array(
     
    4044        'type'              => 'option',
    4145        'sanitize_callback' => 'sanitize_text_field'
     46    ) ) );
     47
     48    $wp_customize->add_setting( new WP_Customize_Setting( $wp_customize, 'loftloader_remove_settings', array(
     49        'default'           => $loftloader_default_settings['loftloader_remove_settings'],
     50        'transport'         => 'postMessage',
     51        'type'              => 'option',
     52        'sanitize_callback' => 'loftloader_sanitize_checkbox'
    4253    ) ) );
    4354
     
    7182        'settings'      => 'loftloader_show_close_tip'
    7283    ) ) );
     84
     85    $wp_customize->add_control( new LoftLoader_Customize_Control( $wp_customize, 'loftloader_remove_settings', array(
     86        'type'          => 'check',
     87        'label'         => esc_html__( 'Remove Plugin Data after Deactivating Plugin', 'loftloader' ),
     88        'description'   => esc_html__( 'If checked, all settings will be removed after deactivating this plugin.', 'loftocean' ),
     89        'choices'       => array( 'on' => '' ),
     90        'section'       => 'loftloader_section_remove_settings',
     91        'settings'      => 'loftloader_remove_settings'
     92    ) ) );
    7393}
  • loftloader/trunk/inc/configs/default-settings.php

    r2248622 r2684833  
    2727
    2828    'loftloader_inline_js'          => '',
    29     'loftloader_enable_any_page'    => ''
     29    'loftloader_enable_any_page'    => '',
     30
     31    'loftloader_remove_settings'    => ''
    3032);
  • loftloader/trunk/languages/loftloader.pot

    r2421952 r2684833  
    1 # Copyright (C) 2020 Loft.Ocean
     1# Copyright (C) 2022 Loft.Ocean
    22# This file is distributed under the same license as the LoftLoader plugin.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: LoftLoader 2.3.4\n"
     5"Project-Id-Version: LoftLoader 2.3.8\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-11-20T00:48:33+00:00\n"
     12"POT-Creation-Date: 2022-02-25T08:37:02+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.4.0\n"
     
    5959msgstr ""
    6060
    61 #: inc/class-loftloader-customize.php:267
     61#: inc/class-loftloader-customize.php:268
    6262msgid "More info"
    6363msgstr ""
    6464
    65 #: inc/class-loftloader-front.php:220
     65#: inc/class-loftloader-front.php:217
    6666msgid "Close"
     67msgstr ""
     68
     69#: inc/class-loftloader-front.php:359
     70msgid "loader image"
    6771msgstr ""
    6872
     
    186190
    187191#: inc/configs/customize-more.php:17
    188 #: inc/configs/customize-more.php:46
     192#: inc/configs/customize-more.php:57
    189193msgid "Maximum Load Time"
    190194msgstr ""
     
    194198msgstr ""
    195199
    196 #: inc/configs/customize-more.php:47
     200#: inc/configs/customize-more.php:25
     201msgid "Plugin Data"
     202msgstr ""
     203
     204#: inc/configs/customize-more.php:58
    197205msgid "Please enter any number greater than 0 to enable this feature."
    198206msgstr ""
    199207
    200 #: inc/configs/customize-more.php:50
     208#: inc/configs/customize-more.php:61
    201209msgid " second(s)"
    202210msgstr ""
    203211
    204 #: inc/configs/customize-more.php:55
     212#: inc/configs/customize-more.php:66
    205213msgid "Show Close Button after"
    206214msgstr ""
    207215
    208 #: inc/configs/customize-more.php:69
     216#: inc/configs/customize-more.php:80
    209217msgid "Description for Close Button"
     218msgstr ""
     219
     220#: inc/configs/customize-more.php:87
     221msgid "Remove Plugin Data after Deactivating Plugin"
    210222msgstr ""
    211223
  • loftloader/trunk/loftloader.php

    r2616962 r2684833  
    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.7
     6Version: 2.3.8
    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', '2021102001' );
     35    define( 'LOFTLOADER_ASSET_VERSION', '2022022501' );
    3636
    3737    class LoftLoader {
     
    140140    }
    141141}
     142
     143/**
     144 * Deletes saved data for the plugin unless setting to preserve
     145 * settings is enabled
     146 *
     147 * @since  2.0 custom tables, custom images, and image directory deleted
     148 * @since  1.0
     149 */
     150function loftloader_plugin_uninstall() {
     151    if ( ! current_user_can( 'activate_plugins' ) ) {
     152        return;
     153    }
     154
     155    if ( 'on' != get_option( 'loftloader_remove_settings', '' ) ) {
     156        return;
     157    }
     158
     159    global $wpdb;
     160    $table_name = esc_sql( $wpdb->prefix . "postmeta" );
     161    $result = $wpdb->query("
     162        DELETE
     163        FROM $table_name
     164        WHERE meta_key = 'loftloader_page_shortcode';"
     165    );
     166
     167    delete_option( 'loftloader_lite_version' );
     168    delete_option( 'loftloader_main_switch' );
     169    delete_option( 'loftloader_show_range'  );
     170    delete_option( 'loftloader_bg_color' );
     171    delete_option( 'loftloader_bg_opacity' );
     172    delete_option( 'loftloader_bg_animation' );
     173    delete_option( 'loftloader_loader_type' );
     174    delete_option( 'loftloader_loader_color' );
     175    delete_option( 'loftloader_custom_img' );
     176    delete_option( 'loftloader_img_width' );
     177    delete_option( 'loftloader_show_close_timer' );
     178    delete_option( 'loftloader_show_close_tip' );
     179    delete_option( 'loftloader_max_load_time' );
     180    delete_option( 'loftloader_inline_js' );
     181    delete_option( 'loftloader_enable_any_page' );
     182    delete_option( 'loftloader_remove_settings' );
     183}
     184
     185register_deactivation_hook( __FILE__, 'loftloader_plugin_uninstall' );
  • loftloader/trunk/readme.txt

    r2616962 r2684833  
    44Donate link:
    55Requires at least: 5.0
    6 Tested up to: 5.8
    7 Stable tag: 2.3.7
     6Tested up to: 5.9
     7Stable tag: 2.3.8
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9797
    9898== Changelog ==
     99= 2.3.8 =
     100* New: Option to remove plugin data after deactivating the plugin
     101* Improved: Compatibility with WordPress 5.9
     102
    99103= 2.3.7 =
    100104* Improved: Compatibility with WordPress 5.8
Note: See TracChangeset for help on using the changeset viewer.