PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/mailpoet/lib/Settings/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/mailpoet/lib/Settings/TrackingConfig.php |
<?php declare(strict_types = 1); namespace MailPoet\Settings; if (!defined('ABSPATH')) exit; class TrackingConfig { const LEVEL_FULL = 'full'; const LEVEL_PARTIAL = 'partial'; const LEVEL_BASIC = 'basic'; /** @var SettingsController */ private $settings; public function __construct( SettingsController $settings ) { $this->settings = $settings; } public function isEmailTrackingEnabled(string $level = null): bool { $level = $level ?? $this->settings->get('tracking.level', self::LEVEL_FULL); return in_array($level, [self::LEVEL_PARTIAL, self::LEVEL_FULL], true); } public function isCookieTrackingEnabled(string $level = null): bool { $level = $level ?? $this->settings->get('tracking.level', self::LEVEL_FULL); return $level === self::LEVEL_FULL; } public function getConfig(): array { return [ 'level' => $this->settings->get('tracking.level', self::LEVEL_FULL), 'emailTrackingEnabled' => $this->isEmailTrackingEnabled(), 'cookieTrackingEnabled' => $this->isCookieTrackingEnabled(), ]; } }