| Server IP : 173.249.148.11 / Your IP : 216.73.216.179 Web Server : Apache/2.4.68 (AlmaLinux) System : Linux developmentwebsite.ca 4.18.0-553.168.1.el8_10.x86_64 #1 SMP Thu Sep 24 18:05:46 UTC 2026 x86_64 User : devinter ( 1006) PHP Version : 8.3.35 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /chroot/home/devinter/public_html/wp-content/plugins/wp-smushit/app/pages/ |
Upload File : |
<?php
/**
* Lazy load page.
*
* @package Smush\App\Pages
*/
namespace Smush\App\Pages;
use Smush\App\Abstract_Summary_Page;
use Smush\App\Interface_Page;
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Class Lazy
*/
class Lazy extends Abstract_Summary_Page implements Interface_Page {
/**
* Register meta boxes.
*/
public function register_meta_boxes() {
parent::register_meta_boxes();
if ( ! $this->settings->get( 'lazy_load' ) ) {
$this->add_meta_box(
'lazyload/disabled',
__( 'Lazy Load', 'wp-smushit' ),
null,
null,
null,
'main',
array(
'box_class' => 'sui-box sui-message sui-no-padding',
)
);
return;
}
$this->add_meta_box(
'lazyload',
__( 'Lazy Load', 'wp-smushit' ),
array( $this, 'lazy_load_meta_box' ),
null,
array( $this, 'common_meta_box_footer' )
);
}
/**
* Common footer meta box.
*
* @since 3.2.0
*/
public function common_meta_box_footer() {
$this->view( 'meta-box-footer', array(), 'common' );
}
/**
* Lazy loading meta box.
*
* @since 3.2.0
*/
public function lazy_load_meta_box() {
$this->view(
'lazyload/meta-box',
array(
'conflicts' => get_transient( 'wp-smush-conflict_check' ),
'settings' => $this->settings->get_setting( 'wp-smush-lazy_load' ),
'cpts' => get_post_types( // custom post types.
array(
'public' => true,
'_builtin' => false,
),
'objects'
),
)
);
}
}