Exemple #1
0
// end include class.secure.php
// TEMPLATE CODE STARTS BELOW
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo defined('DEFAULT_CHARSET') ? DEFAULT_CHARSET : 'utf-8';
?>
" />
	<meta name="description" content="<?php 
page_description();
?>
" />
	<meta name="keywords" content="<?php 
page_keywords();
?>
" />
	<?php 
get_page_headers();
?>
	<link rel="stylesheet" type="text/css" href="<?php 
echo TEMPLATE_DIR;
?>
/template.css" media="screen,projection" />
	<title><?php 
page_title('', '[WEBSITE_TITLE]');
?>
</title>
</head>
<body>
Exemple #2
0
 */
if (!defined("LOGIN_URL")) {
    define("LOGIN_URL", "");
}
if (!defined("LOGOUT_URL")) {
    define("LOGOUT_URL", "");
}
if (!defined("FORGOT_URL")) {
    define("FORGOT_URL", "");
}
if (!defined("PREFERENCES_URL")) {
    define("PREFERENCES_URL", "");
}
require_once __DIR__ . "/info.php";
/**	*******************************
 *	Initialize Twig template engine
 */
global $parser, $loader;
if (!isset($parser)) {
    require_once LEPTON_PATH . "/modules/lib_twig/library.php";
}
// prependpath to make sure, Twig is looking in this module template folder first
$loader->prependPath(dirname(__FILE__) . "/templates/");
// Load additional classes
require_once LEPTON_PATH . "/modules/lib_twig/classes/class.twig_utilities.php";
$twig_util = new twig_utilities($parser, $loader);
/**
 *	Collecting the pagedata
 */
$page_content = array('LEPTON_URL' => LEPTON_URL, 'DEFAULT_CHARSET' => DEFAULT_CHARSET, 'WEBSITE_TITLE' => WEBSITE_TITLE, 'page_title' => PAGE_TITLE, 'TEMPLATE_DIR' => TEMPLATE_DIR, 'PAGE_EXTENSION' => PAGE_EXTENSION, 'LOGIN_URL' => LOGIN_URL, 'LOGIN_URL' => LOGIN_URL, 'FORGOT_URL' => FORGOT_URL, 'FRONTEND_SIGNUP' => is_numeric(FRONTEND_SIGNUP) ? 1 : 0, 'FRONTEND_LOGIN_ADMIN_0' => (FRONTEND_LOGIN and !$admin->is_authenticated()) ? 1 : 0, 'FRONTEND_LOGIN_ADMIN_1' => (FRONTEND_LOGIN and $admin->is_authenticated()) ? 1 : 0, 'LOGOUT_URL' => LOGOUT_URL, 'PREFERENCES_URL' => PREFERENCES_URL, 'admin_display_name' => $admin->get_display_name(), 'module_files' => $twig_util->capture_echo("get_page_headers();"), 'SHOW_SEARCH' => defined('SHOW_SEARCH') ? 1 : 0, 'TEXT_SEARCH' => $TEXT['SEARCH'], 'template_version' => $template_version, 'main_menu_1' => show_menu2(1, SM2_ROOT, SM2_ROOT + 1, SM2_TRIM | SM2_PRETTY | SM2_XHTML_STRICT | SM2_NO_TITLE | SM2_BUFFER), 'page_content' => $twig_util->capture_echo("page_content();"), 'TEXT' => $TEXT, 'MENU' => $MENU, 'page_description' => page_description(true), 'page_keywords' => page_keywords(true), 'WEBSITE_FOOTER' => WEBSITE_FOOTER);
echo $parser->render('page.lte', $page_content);