__load_dynamic_components(); } return self::$instance; } private function __load_dynamic_components() { $dynamic_folder = makefilelist(DYNAMICS.'includes/', '.|..|.htaccess|index.php|._DS_Store|.tmp', TRUE, 'files'); if (!empty($dynamic_folder)) { foreach ($dynamic_folder as $folder) { require_once DYNAMICS."includes/".$folder; } } if (!defined("SELECT2")) { define("SELECT2", TRUE); \PHPFusion\OutputHandler::addToFooter(""); \PHPFusion\OutputHandler::addToHead(""); $select2_locale = fusion_get_locale("select2"); $select2_locale_path = DYNAMICS."assets/select2/select2_locale_".$select2_locale.".js"; if (file_exists($select2_locale_path)) { \PHPFusion\OutputHandler::addToFooter(""); } } } }