/** * Get the currently active Isotope configuration * * @return Config */ public static function getConfig() { if (null === static::$objConfig) { static::initialize(); if (($objCart = static::getCart()) !== null) { static::$objConfig = Config::findByPk($objCart->config_id); } // If cart was null or still did not find a config if (null === static::$objConfig) { global $objPage; static::$objConfig = TL_MODE == 'FE' ? Config::findByRootPageOrFallback($objPage->rootId) : Config::findByFallback(); } // No config at all, create empty model as fallback if (null === static::$objConfig) { static::$objConfig = new Config(); trigger_error($GLOBALS['TL_LANG']['ERR']['noDefaultStoreConfiguration']); } } return static::$objConfig; }