/** * The singleton method. * * @return Muut_Escaped_Fragments The instance. * @author Paul Hughes * @since 3.0.1 */ public static function instance() { if (!is_a(self::$instance, __CLASS__)) { self::$instance = new self(); } return self::$instance; }
/** * Initializes the Muut Escaped Fragments class. * * @return void * @author Paul Hughes * @since 3.0 */ public function initEscapedFragments() { $class = 'Muut_Escaped_Fragments'; if (!in_array($class, $this->alreadyInit)) { require_once muut()->getPluginPath() . 'lib/escaped-fragments.class.php'; if (class_exists($class)) { Muut_Escaped_Fragments::instance(); } $this->alreadyInit[] = $class; } }