- WordPress 6.9.4 (es_ES) with Kadence theme - Homepage: Hero, La Asociación, Pilares, Beneficios, Eventos, Miembros, Hazte Miembro, Contacto - Brand identity: #13294b navy, #a12932 burgundy, #c69c48 gold - Fonts: Raleway (headings) + Source Sans 3 (body) + Lato (UI) - Plugins: Kadence Blocks, Polylang, Contact Form 7 - Custom CSS with full brand styling and responsive layout - HTTPS enforced via wp-config.php proxy detection
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php declare( strict_types=1 );
|
|
|
|
namespace KadenceWP\KadenceBlocks\Optimizer\Image;
|
|
|
|
use KadenceWP\KadenceBlocks\Optimizer\Image\Processors\Lazy_Load_Processor;
|
|
use KadenceWP\KadenceBlocks\Optimizer\Image\Processors\Sizes_Attribute_Processor;
|
|
use KadenceWP\KadenceBlocks\StellarWP\ProphecyMonorepo\Container\Contracts\Provider as Provider_Contract;
|
|
|
|
final class Provider extends Provider_Contract {
|
|
|
|
public function register(): void {
|
|
$this->container->singleton( Lazy_Load_Processor::class, Lazy_Load_Processor::class );
|
|
$this->container->singleton( Image_Processor::class, Image_Processor::class );
|
|
|
|
$this->container->when( Image_Processor::class )
|
|
->needs( '$processors' )
|
|
->give(
|
|
fn(): array => [
|
|
// Add additional image processors here.
|
|
$this->container->get( Lazy_Load_Processor::class ),
|
|
$this->container->get( Sizes_Attribute_Processor::class ),
|
|
]
|
|
);
|
|
|
|
add_action(
|
|
'template_redirect',
|
|
$this->container->callback( Image_Processor::class, 'start_buffering' ),
|
|
1,
|
|
0
|
|
);
|
|
}
|
|
}
|