geno/wp-content/plugins/mailpoet/lib/NewsletterTemplates/BrandStyles.php

25 lines
383 B
PHP
Raw Permalink Normal View History

2024-02-01 17:24:18 +05:30
<?php declare(strict_types = 1);
namespace MailPoet\NewsletterTemplates;
if (!defined('ABSPATH')) exit;
use MailPoet\WP\Functions as WPFunctions;
class BrandStyles {
/** @var WPFunctions */
private $wp;
public function __construct(
WPFunctions $wp
) {
$this->wp = $wp;
}
public function isAvailable(): bool {
return $this->wp->wpIsBlockTheme();
}
}