<% /* Category display module */ require_once $_SERVER['DOCUMENT_ROOT']."/utils/common.php3"; $DocumentTitle = $SITE_TEXT_NAME; require_once "$LIBRARY_ROOT/Member.php3"; require_once "$LIBRARY_ROOT/Templates.php3"; require_once "$DOCUMENT_ROOT/cmt2/TheArticleClass.php3"; require_once "$DOCUMENT_ROOT/cmt2/EchoArticle.php3"; require_once "$LIBRARY_ROOT/AIV_CATEGORY_utils.php3"; require_once "$LIBRARY_ROOT/ToolsCategory.php3"; require_once "$LIBRARY_ROOT/MainMenuGenerator.php3"; require_once "$DOCUMENT_ROOT/poll/displaypoll.php3"; require_once "$LIBRARY_ROOT/ToolsCounters.php3"; require_once "$LIBRARY_ROOT/newsAPI.php3"; require_once "$LIBRARY_ROOT/MainPageNewsGenerator.php3"; // Lang constants /* define(CD_TXT_ , ""); */ if( $SLANG == "Ru" ){ define(SITEMAP_TXT_TITLE, "Карта сайта"); }else{ define(SITEMAP_TXT_TITLE, "The site map"); } // Lang constants /* Прототип основных страниц, полный */ $T_SITE_DEFAULT_PAGE = new TheTemplate(); $T_SITE_DEFAULT_PAGE->LoadTemplateID(DEFAULT_SEARCHPAGE_TEMPLATE_ID); // predefined: #FILEMOD $HASH_SITE_DEFAULT_PAGE["DocumentTitle"] = $Category["CATEGORY_NAME"]; $HASH_SITE_DEFAULT_PAGE["EXTRA_ITEMS"] = ""; $HASH_SITE_DEFAULT_PAGE["HEADEXTRA"] = ""; $HASH_SITE_DEFAULT_PAGE["KEYWORDS"] = $SITE_KEYWORDS; $HASH_SITE_DEFAULT_PAGE["PAGE_AUTHOR"] = ""; $HASH_SITE_DEFAULT_PAGE["PAGE_SECTION_LIST"] = ""; $HASH_SITE_DEFAULT_PAGE["Description"] = SITEMAP_TXT_TITLE; $HASH_SITE_DEFAULT_PAGE["_SiteDesign_"] = DEFAULT_SITE_DESIGN; // site news $HASH_SITE_DEFAULT_PAGE["PAGE_NEWS_LIST"] = ($LoggedInUser->UserProperties['ShowNews'] == 'N') ? "" : MainPageNewsGenerator2(); $HASH_SITE_DEFAULT_PAGE["ShowSiteHeader"] = ($LoggedInUser->UserProperties['ShowSiteHeader'] == 'N') ? "N" : "Y"; $HASH_SITE_DEFAULT_PAGE["RANDOM_HOT_NEWS"] = HotNewsGenerator(); $HASH_SITE_DEFAULT_PAGE["SITE_VMENU_ITEMS"] = MainMenuGenerator($currentnode=SITE_INDEX_SITEMAP); $HASH_SITE_DEFAULT_PAGE["SITE_HMENU_ITEMS"] = MenuGenerateHMenu($currentnode, $IsEmpty); $BotMainMenuBlock = MainMenuGenerator($currentnode, 0, 1); $HASH_SITE_DEFAULT_PAGE["SITE_botHMENU_ITEMS"] = $BotMainMenuBlock; $HASH_SITE_DEFAULT_PAGE["CSS_FILE_NAME"] = "/style.css"; unset($T_MENU_ARROW_WRAPPER); unset($HASH_MENU_ARROW_WRAPPER); // Load sectioon templates... /* Page section template */ $T_PAGE_SECTION = new TheTemplate(); $T_PAGE_SECTION->LoadTemplate("PAGE_SECTION"); /* Page section separator template */ $T_PAGE_SECTION_SEPARATOR = new TheTemplate(); $T_PAGE_SECTION_SEPARATOR->LoadTemplate("PAGE_SECTION_SEPARATOR"); $PageData = ""; $HASH_SITE_DEFAULT_PAGE["KEYWORDS"] = $HASH_SITE_DEFAULT_PAGE["KEYWORDS"]; $HASH_SITE_DEFAULT_PAGE["PAGE_AUTHOR"] = ""; $HASH_SITE_DEFAULT_PAGE["DocumentTitle"] = SITEMAP_TXT_TITLE; // Category is under construction section $HASH_PAGE_SECTION_SEPARATOR["SectionTitle"] = LangLink() . "" ; // SITEMAP_TXT_TITLE; $PageData .= $T_PAGE_SECTION_SEPARATOR->PrepareTemplate($HASH_PAGE_SECTION_SEPARATOR, $Evaluatecode=0, $UsePrecompiled=1); // $HASH_PAGE_SECTION["Page_Section_Text"] = CategoryTree(0, ""); $HASH_PAGE_SECTION["Page_Section_Text"] = CategoryTreeDocuments($node=0, $LinkStyle = "class=\"text\"", $LinkPath=_CD_URL_PATH); $PageData .= $T_PAGE_SECTION->PrepareTemplate($HASH_PAGE_SECTION, $Evaluatecode=0, $UsePrecompiled=1); // Global navigation bar section DrawThePath($currentnode, $PathWithHLinks, $TARGETURL=_CD_URL_PATH, $Node1Index, $BoldHiddenCategories=0, $LinkStyle = "", $FirstCall=1, $ReverseOrder=0); $HASH_SITE_DEFAULT_PAGE["THE_NAVIGATION_PATH"] = $PathWithHLinks; $HASH_SITE_DEFAULT_PAGE["PAGE_SECTION_LIST"] = $PageData; $HASH_SITE_DEFAULT_PAGE["EXTRA_ITEMS"] = $EXTRA; //Now we can prepare it. With evaluate option coz... echo $T_SITE_DEFAULT_PAGE->PrepareTemplate($HASH_SITE_DEFAULT_PAGE, $Evaluatecode=1, $UsePrecompiled=1); unset($T_SITE_DEFAULT_PAGE); unset($HASH_SITE_DEFAULT_PAGE); %>