Пример #1
0
 /**
  * get all systems
  */
 public static function &getSystems()
 {
     if (!isset($GLOBALS['bx_dol_site_maps_systems'])) {
         $GLOBALS['bx_dol_site_maps_systems'] = BxDolSiteMapsQuery::getAllActiveSystemsFromCache();
     }
     return $GLOBALS['bx_dol_site_maps_systems'];
 }
Пример #2
0
function PageCodeSitemap()
{
    global $aPages;
    $oForm = new BxDolAdmFormSitemap();
    $aList = BxDolSiteMapsQuery::getAllActiveSystemsFromCache();
    $aListForTemplate = array();
    foreach ($aList as $i => $a) {
        $aListForTemplate[] = array('title_translated' => _t($a['title']));
    }
    $s = $GLOBALS['oAdmTemplate']->parseHtmlByName('sitemap.html', array('form' => $oForm->getCode(), 'desc' => _t('_sys_sitemap_desc', BxDolSiteMaps::getSiteMapIndexUrl()), 'bx_repeat:list' => $aListForTemplate));
    return DesignBoxAdmin($GLOBALS['sPageTitle'], $s);
}