public static function isSPAHideColorSquares() { if (self::$pm_spa_hide_color_squares === null) { self::$pm_spa_hide_color_squares = false; if (self::isSPAModuleActive()) { $module = Module::getInstanceByName('pm_productsbyattributes'); self::$pm_spa_hide_color_squares = $module->getHideColorSquaresConf(); } } return self::$pm_spa_hide_color_squares; }