overrideCanonicalUrl($canonical_url); $canonical_url = $info['canonical_url']; if (isset($info['params']) && is_array($info['params']) && $info['params']) { $fsau_params = $info['params']; } } parent::canonicalRedirection($canonical_url); if ($fsau_params) { $_GET = array_merge($_GET, $fsau_params); } } /* * module: fsadvancedurl * date: 2019-02-11 05:09:21 * version: 2.1.1 */ protected function updateQueryString(array $extraParams = null) { $uriWithoutParams = explode('?', $_SERVER['REQUEST_URI']); if (isset($uriWithoutParams[0])) { $uriWithoutParams = $uriWithoutParams[0]; } $url = Tools::getCurrentUrlProtocolPrefix().$_SERVER['HTTP_HOST'].$uriWithoutParams; if (Module::isEnabled('fsadvancedurl')) { $fsau = Module::getInstanceByName('fsadvancedurl'); $url = $fsau->overrideUpdateQueryStringBaseUrl($url, $extraParams); } $params = array(); parse_str($_SERVER['QUERY_STRING'], $params); if (null !== $extraParams) { foreach ($extraParams as $key => $value) { if (null === $value) { unset($params[$key]); } else { $params[$key] = $value; } } } ksort($params); if (null !== $extraParams) { foreach ($params as $key => $param) { if (null === $param || '' === $param) { unset($params[$key]); } } } else { $params = array(); } $queryString = str_replace('%2F', '/', http_build_query($params)); return $url.($queryString ? "?$queryString" : ''); } /* * module: pshowlazyimg * date: 2021-12-17 15:01:20 * version: 2.7.0 */ protected function smartyOutputContent($content) { if (Module::isEnabled('pshowlazyimg')) { ob_start(); parent::smartyOutputContent($content); $html = ob_get_clean(); ob_flush(); $module = Module::getInstanceByName('pshowlazyimg'); echo $module->parseOutputContent($html); return; } parent::smartyOutputContent($content); } }