Jump to content

Onglet google sitemap


Recommended Posts

aprés avoir chercher des heures j'ai trouvé ce bout de code a mettre dans un fichier php et a uploader dans admin/tabs/

<?php
include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php');
include_once(_PS_MODULE_DIR_.'/gsitemap/gsitemap.php');

class AdminGsitemap extends AdminTab
{
 private $module = 'Gsitemap';

 public function __construct()
 {
   global $cookie, $_LANGADM;
   $langFile = _PS_MODULE_DIR_.$this->module.'/'.Language::getIsoById(intval($cookie->id_lang)).'.php';
   if(file_exists($langFile))
   {
     require_once $langFile;
     foreach($_MODULE as $key=>$value)
       if(substr(strip_tags($key), 0, 5) == 'Admin')
         $_LANGADM[str_replace('_', '', strip_tags($key))] = $value;
   }
   parent::__construct();
 }

 public function display()
 {
   $module = new Gsitemap;
   echo $module->getContent();
 }
}
?> 



Mais mon soucis reste le meme quelqu'un pourrais me donner un coup de main svp?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...