diff --git a/modules/gsitemap/gsitemap.php b/modules/gsitemap/gsitemap.php index 0f0aef15d..e20f19309 100644 --- a/modules/gsitemap/gsitemap.php +++ b/modules/gsitemap/gsitemap.php @@ -353,7 +353,7 @@ XML; if (!$result = Db::getInstance()->executeS($sql)) return ''; - $this->_html .= '

'.$this->l('Sitemap index').$shop['domain'].$shop['uri'].'

'; + $this->_html .= '

'.$this->l('Sitemap index').'

'; $this->_html .= '

'.$this->l('Your Google sitemap file is online at the following address:').'
'.Tools::getShopDomain(true, true).__PS_BASE_URI__.'sitemap.xml


'; @@ -400,7 +400,12 @@ XML; } private function _displayForm() - { + { + if (Tools::usingSecureMode()) + $domain = Tools::getShopDomainSsl(true); + else + $domain = Tools::getShopDomain(true); + $this->_html .= '
@@ -411,7 +416,11 @@ XML;
-
'; +


+

'.$this->l('Use cron job to re-build the sitemap:').'

+

+ '.$domain.Tools::htmlentitiesUTF8(dirname($_SERVER['REQUEST_URI'])).'?controller=adminmodules&configure=gsitemap&token='.Tools::getValue('token').'&btnSubmit&GSITEMAP_ALL_CMS='.((int)Configuration::get('GSITEMAP_ALL_CMS')).'&GSITEMAP_ALL_PRODUCTS='.((int)Configuration::get('GSITEMAP_ALL_PRODUCTS')).' +

'; } public function getContent() diff --git a/modules/gsitemap/translations/fr.php b/modules/gsitemap/translations/fr.php index 34731fdda..afce5b97c 100644 --- a/modules/gsitemap/translations/fr.php +++ b/modules/gsitemap/translations/fr.php @@ -18,6 +18,7 @@ $_MODULE['<{gsitemap}prestashop>gsitemap_b8cb67a25f16d9000d8c974e30441b59'] = 'L $_MODULE['<{gsitemap}prestashop>gsitemap_60ee4e03c30c4827c80eb31bfd27130d'] = 'Le sitemap inclut également les pages CMS qui ne sont pas dans un bloc de CMS'; $_MODULE['<{gsitemap}prestashop>gsitemap_8103220a578f92ec726809c3d47adc6e'] = 'Générer le fichier sitemap'; $_MODULE['<{gsitemap}prestashop>gsitemap_0033cf1fdbd4354facfaa51f6f0de6a4'] = 'Mettre à jour le fichier sitemap'; +$_MODULE['<{gsitemap}prestashop>gsitemap_be35982b0637fe74565dde00768e3534'] = 'Utiliser une tâche cron pour reconstruire le sitemap : '; $_MODULE['<{gsitemap}prestashop>gsitemap_f5a592018c8b55d2c968515ad7c58c91'] = 'Optimisation pour les moteurs de recherche (SEO)'; $_MODULE['<{gsitemap}prestashop>gsitemap_4ff2e716a7d06ce5274b4090b39abad3'] = 'Voir'; $_MODULE['<{gsitemap}prestashop>gsitemap_8334797b9b3383d4f48d98178b8845ea'] = 'cette page';