/** * @access private * Ecriture dans le sitemapindex */ private function writeIndex() { // Table des langues $lang = new backend_db_block_lang(); // Retourne le code ISO //$db = $lang->s_data_iso($idlang); $db = backend_db_block_lang::s_data_lang(true); $attr_name = parent::s_config_named_data('catalog'); // instance la classe $sitemap = new magixcjquery_xml_sitemap(); foreach ($db as $data) { $sitemap->writeMakeNodeIndex(magixcjquery_html_helpersHtml::getUrl() . '/' . $data['iso'] . '-sitemap-url.xml', $this->lastmod_dateFormat()); if ($attr_name['status'] == 1) { $sitemap->writeMakeNodeIndex(magixcjquery_html_helpersHtml::getUrl() . '/' . $data['iso'] . '-sitemap-images.xml', $this->lastmod_dateFormat()); } } }