&$item) { $item['image'] = preg_match("/^\/assets\/addons/", $item['image']) ? $url . $item['image'] : cdnurl($item['image'], true); $item['selectedImage'] = preg_match("/^\/assets\/addons/", $item['selectedImage']) ? $url . $item['selectedImage'] : cdnurl($item['selectedImage'], true); } } return $config; } public static function getConfigFile() { return ADDON_PATH . 'shop' . DS . 'data' . DS . 'theme.json'; } }