assign('leve_menu', $leve_menu); } // ------------------------------------------------------------------------- // PRAVE MENU if (empty($prave_menu) == false){ $fullLangFilePath = INCLUDE_DIR . $prave_menu . $GLOBALS['gActiveLangFileExt']. '.php'; $fullDefaultFilePath = INCLUDE_DIR . $prave_menu . '.php'; $incFilePath = check_file($fullLangFilePath) ? $fullLangFilePath : (check_file($fullLangFilePath) ? $fullDefaultFilePath : null); if (empty($incFilePath) == false){ ob_start(); require_once($incFilePath); $prave_menu = ob_get_contents(); ob_end_clean(); } $page->assign('prave_menu', $prave_menu); } // ------------------------------------------------------------------------- // STRED if (empty($stredni_cast) == false){ $fullLangFilePath = INCLUDE_DIR . $stredni_cast . $GLOBALS['gActiveLangFileExt']. '.php'; $fullDefaultFilePath = INCLUDE_DIR . $stredni_cast . '.php'; $incFilePath = check_file($fullLangFilePath) ? $fullLangFilePath : (check_file($fullLangFilePath) ? $fullDefaultFilePath : null); if (empty($incFilePath) == false){ ob_start(); require_once($incFilePath); $page->display('contentWrap.tpl'); $stredni_cast = ob_get_contents(); ob_end_clean(); } $page->assign('stredni_cast', $stredni_cast); } // ------------------------------------------------------------------------- // PATKA if (empty($patka) == false){ $fullLangFilePath = INCLUDE_DIR . $patka . $GLOBALS['gActiveLangFileExt']. '.php'; $fullDefaultFilePath = INCLUDE_DIR . $patka . '.php'; $incFilePath = check_file($fullLangFilePath) ? $fullLangFilePath : (check_file($fullLangFilePath) ? $fullDefaultFilePath : null); if (empty($incFilePath) == false){ ob_start(); require_once($incFilePath); $patka = ob_get_contents(); ob_end_clean(); } $page->assign('patka', $patka); } // ------------------------------------------------------------------------- // ZAHLAVI if (empty($zahlavi) == false){ $fullLangFilePath = INCLUDE_DIR . $zahlavi . $GLOBALS['gActiveLangFileExt']. '.php'; $fullDefaultFilePath = INCLUDE_DIR . $zahlavi . '.php'; $incFilePath = check_file($fullLangFilePath) ? $fullLangFilePath : (check_file($fullLangFilePath) ? $fullDefaultFilePath : null); if (empty($incFilePath) == false){ ob_start(); require_once($incFilePath); $zahlavi = ob_get_contents(); ob_end_clean(); } $page->assign('zahlavi', $zahlavi); } // zobraz obsah stranky $page->display('xhtml-page.tpl'); //getIpSave(); // upgrd10022 // zrusim GA merici kod eshop transakce jinak by mohlo dojit k duplicite unset($_SESSION['objednanoShowData']['gaTransactionCode']); } catch(Exception $e) { echo '

Message: ' .$e->getMessage().'

'; if (isLocalhost()) { echo '

'.$e->getTraceAsString().'

'; } } ?>