HEX
Server: LiteSpeed
System: Linux server240.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User: creaqbdc (8964)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/creaqbdc/public_html/wp-content/plugins/gtm-kit/src/Common/Conditionals/BricksConditional.php
<?php
/**
 * GTM Kit plugin file.
 *
 * @package GTM Kit
 */

namespace TLA_Media\GTM_Kit\Common\Conditionals;

/**
 * Conditional that is only met when the Bricks theme is active.
 */
class BricksConditional implements Conditional {

	/**
	 * Returns `true` when the Bricks theme is installed and activated.
	 *
	 * @return bool `true` when the Bricks theme is installed and activated.
	 */
	public function is_met(): bool {
		return ( \wp_get_theme()->get( 'Name' ) === 'Bricks' || wp_get_theme()->get( 'Template' ) === 'bricks' );
	}
}