options['lang_on'] = array(1,1,0,1,1); // --> it,en,de,fr,ru,es,pt $service->options['lang_on_menu'] = array(1, 1, 1, 1, 1, 1, 1); include('main_config.php'); $base_url = $service ->options['base_url']; include('rw_rules.php'); //array che contiene tutti i pezzi di codice da sostituire nel tmpl $tmpl_contents = array(); include('include/basecode.php'); include('include/header.php'); $tmpl_contents['PAGE_PATH'] = $txtPath; if ($seller_logged==1) { $tmpl_contents['SELLER_LOGGED'] = true; $tmpl_contents['SELLER_USER'] = $service->I_user; //include('include/menu_seller.php'); foreach($service->I_user as $key=>$value) { $tmpl_contents[strtoupper($key)] = $value; } } if ($customer_logged==1) { $tmpl_contents['CUSTOMER_LOGGED'] = true; $tmpl_contents['CUSTOMER_USER'] = $service->I_user; foreach($service->I_user as $key=>$value) { $tmpl_contents[strtoupper($key)] = $value; } //include('include/menu_customer.php'); } include('include/metatag.php'); $tmpl_contents['META_TAG'] = $htmlOutput; include('include/headcontent.php'); $tmpl_contents['HEAD_CONTENT'] = $htmlOutput; include('include/menu_articoli.php'); //$codeZoneMenu = 'OT'; //include('include/menu_pagine.php'); //$tmpl_contents['MENU_TOP'] = $htmlOutput; // //$codeZoneMenu = 'T'; //include('include/menu_pagine.php'); //$tmpl_contents['MENU_HEAD'] = $htmlOutput; // //$codeZoneMenu = 'B'; //include('include/menu_pagine.php'); //$tmpl_contents['MENU_FOOTER'] = $htmlOutput; // //$codeZoneMenu = 'R'; //include('include/menu_pagine.php'); //$tmpl_contents['MENU_RIGHT'] = $htmlOutput; // //$codeZoneMenu = 'L'; //include('include/menu_pagine.php'); //$tmpl_contents['MENU_LEFT'] = $htmlOutput; //include('include/menu_prodotti.php'); //$tmpl_contents['MENU_LEFT'] = $htmlOutput; $tmpl_contents['URLPAGE'] = $base_url.$_SERVER['REQUEST_URI']; $tmpl_contents['URLPAGE_ENCODED'] = urlencode($base_url.$_SERVER['REQUEST_URI']); if ($nologgato) { include('pagelogin.php'); } else { $pagina = $service->param('file'); $tmpl_contents['TMPL_PAGE'] = $pagina; $tmpl_contents['THIS_'.strtoupper($pagina)] = 1; if ($pagina) { if (file_exists($service->document_root."/include/".$pagina.".php")) { include('include/'.$pagina.'.php'); } else if(file_exists($service->options['tmpl_path']."/".$pagina.".tmpl.php")) { } else { $tmpl_contents['TMPL_PAGE'] = 'error'; } } else { if (!$datiPagina) { include('include/homepage.php'); $tmpl_contents['TMPL_PAGE'] = 'homepage'; $tmpl_contents['THIS_HOME'] = 1; } else { include('include/home.php'); $tmpl_contents['TMPL_PAGE'] = 'home'; $tmpl_contents['THIS_HOME'] = 1; } } } //includo qui il carrello, mi serve per il minicart $fileinc='index'; //include('include/cart.php'); include('include/hp_news.php'); include('include/footer.php'); $tmpl_contents['FOOTER'] = $htmlOutput; include('include/box_search.php'); $tmpl_contents['BOX_SEARCH'] = $htmlOutput; include('include/bottom_content.php'); $tmpl_contents['BOTTOM_CONTENT'] = $htmlOutput; include('langmenu.php'); $tmpl_contents['DEF_LANG'] = $lang; //*******************alcuni dati e variabili costanti***************************// $tmpl_contents['DATE_STRING'] = ''.date('l F d, Y').' Time in Italy now: '.date('h:i a').""; $tmpl_contents['TIME_STRING'] = date('h:i a'); $tmpl_contents['META_TITLE'] = $metaTitle; $tmpl_contents['META_KEYWORDS'] = $metaKeywords; $tmpl_contents['META_DESCRIPTION'] = $metaDescription; include('tpl_init.php'); //print_r($_TPL); if ($service->param('pop')) { include ($service->options['tmpl_path']."/pop.tmpl.php"); } else if ($service->param('inline')) { include ($service->options['tmpl_path']."/".$service->param('file').".tmpl.php"); } else { include ($service->options['tmpl_path']."/index.tmpl.php"); } exit; ?>