|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/relaunch-kmu/wp-content/plugins/real-cookie-banner/inc/ |
Upload File : |
<?php
namespace DevOwl\RealCookieBanner;
use DevOwl\RealCookieBanner\base\UtilsProvider;
// @codeCoverageIgnoreStart
\defined('ABSPATH') or die('No script kiddies please!');
// Avoid direct file request
// @codeCoverageIgnoreEnd
/**
* Handle try.devowl.io specific settings, e. g. hide template attributes.
* @internal
*/
class DemoEnvironment
{
use UtilsProvider;
/**
* Singleton instance.
*
* @var DemoEnvironment
*/
private static $me = null;
/**
* C'tor.
*/
private function __construct()
{
// Silence is golden.
}
/**
* Checks if the current running WordPress instance is configured as sandbox
* because then some configurations are not allowed to change.
*/
public function isDemoEnv()
{
return \defined('MATTHIASWEB_DEMO') && \constant('MATTHIASWEB_DEMO');
}
/**
* Get singleton instance.
*
* @codeCoverageIgnore
*/
public static function getInstance()
{
return self::$me === null ? self::$me = new \DevOwl\RealCookieBanner\DemoEnvironment() : self::$me;
}
}