Changeset 2111955
- Timestamp:
- 06/25/2019 08:24:28 AM (6 years ago)
- Location:
- lazy-load-optimizer/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
lazy-load-optimizer/trunk/lazy-load-optimizer.php
r2102305 r2111955 8 8 * Plugin URI: https://processby.com/lazy-load-wordpress/ 9 9 * Description: Lazy loading images to speed up sites page load speed. 10 * Version: 1.4. 210 * Version: 1.4.3 11 11 * Author: Processby 12 12 * Author URI: https://processby.com/ -
lazy-load-optimizer/trunk/readme.txt
r2102305 r2111955 5 5 Requires at least: 4.9.8 6 6 Tested up to: 5.2.1 7 Stable tag: 1.4. 27 Stable tag: 1.4.3 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 61 61 == Changelog == 62 62 63 = 1.4.3 = 64 65 Release Date: Jun 25, 2019 66 67 * Improved Lazy Load styles 68 63 69 = 1.4.2 = 64 70 -
lazy-load-optimizer/trunk/src/Admin/Customizer.php
r2102305 r2111955 110 110 $checkboxOptions = array( 111 111 'label' => __('Transparent background', 'lazy-load-optimizer'), 112 'default' => 0,112 'default' => 1, 113 113 ); 114 114 $this->addSetting('transparent_background', 'checkbox', $wp_customize, $checkboxOptions); … … 139 139 switch ($type) { 140 140 case 'text': 141 case 'textarea': 141 142 case 'checkbox': 142 143 $wp_customize->add_setting($name, array( -
lazy-load-optimizer/trunk/src/Frontend/Frontend.php
r2102305 r2111955 219 219 'time_animation' => get_theme_mod('time_animation',300), 220 220 'time_fadein' => get_theme_mod('time_fadein',300), 221 'is_transparent' => get_theme_mod('transparent_background', 0),221 'is_transparent' => get_theme_mod('transparent_background',1), 222 222 'background_color' => get_theme_mod('lla_background_color', '#ffffff') 223 223 ); … … 358 358 if(!empty($image[1]) && !empty($image[2])){ 359 359 $ratio = $image[1]/$image[2]; 360 $attr['width'] = $image[1]; 360 361 }else{ 361 362 $ratio = 2; 362 363 } 364 363 365 $attr['style'] = '--aspect-ratio:'.$ratio.';'; 364 366 if (isset($attr['src'])){ … … 389 391 if ($thumbnail_id) { 390 392 $image = wp_get_attachment_image_src($thumbnail_id, $small_thumbnail_size); 391 if(!empty($image[1]) && !empty($image[2])){ 392 $ratio = $image[1]/$image[2]; 393 394 if(!empty($dimensions['width']) && !empty($dimensions['height'])){ 395 $ratio = $dimensions['width']/$dimensions['height']; 393 396 }else{ 394 397 $ratio = 2; -
lazy-load-optimizer/trunk/src/LazyLoadOptimizerPlugin.php
r2102305 r2111955 15 15 { 16 16 17 const VERSION = '1.4. 2';17 const VERSION = '1.4.3'; 18 18 19 19 const DOMAIN = 'lazy-load-optimizer';
Note: See TracChangeset
for help on using the changeset viewer.