HEX
Server: Apache
System: Linux webm006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/slyfwmm/adspray/wp-content/plugins/lazy-blocks/classes/3rd/class-astra.php
<?php
/**
 * Astra theme.
 *
 * @package @@plugin_name
 */

/**
 * LazyBlocks_3rd_Astra
 */
class LazyBlocks_3rd_Astra {
	/**
	 * LazyBlocks_3rd_Astra constructor.
	 */
	public function __construct() {
		if ( 'astra' !== get_template() ) {
			return;
		}

		add_action( 'enqueue_block_editor_assets', array( $this, 'constructor_enqueue_scripts' ) );
	}

	/**
	 * Enqueue additional styles for Astra theme.
	 */
	public function constructor_enqueue_scripts() {
		if ( 'lazyblocks' === get_post_type() ) {
			LazyBlocks_Assets::enqueue_style( 'lazyblocks-constructor-3rd-astra', 'build/editor-constructor-astra-style' );
			wp_style_add_data( 'lazyblocks-constructor-3rd-astra', 'rtl', 'replace' );

			/**
			 * When we add support for editor-styles, there are a lot of styles looks broken in Constructor.
			 * Here we are trying to fix it.
			 *
			 * @link https://wordpress.org/support/topic/possible-display-bug-in-admin-when-adding-theme-support-for-editor-styles/
			 */
			remove_theme_support( 'editor-styles' );
		}
	}
}

new LazyBlocks_3rd_Astra();