Plugin Directory

Changeset 2183723


Ignore:
Timestamp:
10/31/2019 09:32:24 AM (6 years ago)
Author:
cloudimageio
Message:

Release of 2.1.5 - Enable progressive loading if blurhash is disabled

Location:
cloudimage
Files:
84 added
4 edited

Legend:

Unmodified
Added
Removed
  • cloudimage/trunk/README.txt

    r2183683 r2183723  
    66Tested up to: 5.2.4
    77Requires PHP: 5.6
    8 Stable tag: 2.1.4
     8Stable tag: 2.1.5
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    140140* Bug fixes for unused variables, planned for version 3.0
    141141
     142= 2.1.5 =
     143* Insert different JavaScript responsive library if blurhash is used. Save progressive loading.
     144
     145
    142146== Upgrade Notice ==
    143147
  • cloudimage/trunk/cloudimage.php

    r2183683 r2183723  
    1212 * Plugin Name:       Cloudimage - Responsive Images as a Service
    1313 * Description:       The easiest way to <strong>deliver lightning fast images</strong> to your users.
    14  * Version:           2.1.4
     14 * Version:           2.1.5
    1515 * Author:            Cloudimage
    1616 * Author URI:        https://cloudimage.io
     
    3131 * Rename this for your plugin and update it as you release new versions.
    3232 */
    33 define( 'CLOUDIMAGE_VERSION', '2.1.4' );
     33define( 'CLOUDIMAGE_VERSION', '2.1.5' );
    3434
    3535/**
  • cloudimage/trunk/includes/class-cloudimage.php

    r2183683 r2183723  
    8383            $this->version = CLOUDIMAGE_VERSION;
    8484        } else {
    85             $this->version = '2.1.4';
     85            $this->version = '2.1.5';
    8686        }
    8787        $this->plugin_name = 'cloudimage';
  • cloudimage/trunk/public/class-cloudimage-public.php

    r2183707 r2183723  
    167167        $use_responsive_js = $this->cloudimage_use_responsive_js;
    168168        $use_lazy_loading = $this->cloudimage_use_lazy_loading;
     169        $use_blurhash = $this->cloudimage_use_blurhash;
    169170
    170171        if (isset($cloudimage_domain) && $use_responsive_js) {
    171172            //Initialize only JavaScipt repsonsive scripts
    172             wp_enqueue_script('js-cloudimage-responsive', 'https://cdn.scaleflex.it/plugins/js-cloudimage-responsive/3.1.0/blur-hash/js-cloudimage-responsive.min.js', $use_lazy_loading ? ['lazysizes'] : [], 3, true);
     173
     174            //If we use blurhash - there is different JavaScript file for handling ci-blur-hash, otherwise we use standart JS Cloudimage Responsive
     175            if($use_blurhash){
     176                wp_enqueue_script('js-cloudimage-responsive', 'https://cdn.scaleflex.it/plugins/js-cloudimage-responsive/3.1.0/blur-hash/js-cloudimage-responsive.min.js', $use_lazy_loading ? ['lazysizes'] : [], 3, true);
     177            } else {
     178                wp_enqueue_script('js-cloudimage-responsive', 'https://cdn.scaleflex.it/plugins/js-cloudimage-responsive/3.1.0/js-cloudimage-responsive.min.js', $use_lazy_loading ? ['lazysizes'] : [], 3, true);
     179            }
     180
    173181            wp_add_inline_script('js-cloudimage-responsive', $this->initializeResponsivePlugin());
    174182
Note: See TracChangeset for help on using the changeset viewer.