本文整理汇总了PHP中Template::set_filenames方法的典型用法代码示例。如果您正苦于以下问题:PHP Template::set_filenames方法的具体用法?PHP Template::set_filenames怎么用?PHP Template::set_filenames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Template
的用法示例。
在下文中一共展示了Template::set_filenames方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: afficher
function afficher()
{
$html = '';
if ($this->existe()) {
$t = new Template('modules/archi/templates/');
$t->set_filenames(array('afficherErreurs' => 'listeErreurs.tpl'));
foreach ($this->array_erreurs as $message) {
$t->assign_block_vars('erreur', array('message' => $message));
}
ob_start();
$t->pparse('afficherErreurs');
$html = ob_get_contents();
ob_get_clean();
}
return $html;
}
示例2: getDiv
public function getDiv($params = array())
{
$t = new Template($this->cheminTemplates);
$t->set_filenames(array('popup' => 'popupGeneric.tpl'));
$width = 500;
if (isset($params['width']) && $params['width'] != '') {
$width = $params['width'];
}
$height = 500;
if (isset($params['height']) && $params['height'] != '') {
$height = $params['height'];
}
$left = 100;
if (isset($params['left']) && $params['left'] != '') {
$left = $params['left'];
}
$top = 50;
if (isset($params['top']) && $params['top'] != '') {
$top = $params['top'];
}
$titrePopup = "";
if (isset($params['titre']) && $params['titre'] != '') {
$titrePopup = $params['titre'];
}
$codeJsFermer = "";
if (isset($params['codeJsFermerButton']) && $params['codeJsFermerButton'] != '') {
$codeJsFermer = $params['codeJsFermerButton'];
}
$hiddenFields = "";
if (isset($params['hiddenFields'])) {
foreach ($params['hiddenFields'] as $indice => $value) {
$hiddenFields .= "<input type='hidden' id='" . $indice . "' name='" . $indice . "' value='" . $value . "'>";
}
}
$t->assign_vars(array('width' => $width, 'height' => $height, 'left' => $left, 'top' => $top, 'hiddenFields' => $hiddenFields, 'divIdPopup' => 'div' . $this->idPopup, 'tdIdPopup' => 'td' . $this->idPopup, 'iFrameIdPopup' => 'iFrame' . $this->idPopup, 'lienSrcIFrame' => $params['lienSrcIFrame'], 'titrePopup' => $titrePopup, 'codeJsFermer' => $codeJsFermer));
ob_start();
$t->pparse('popup');
$html = ob_get_contents();
ob_end_clean();
return $html;
}
示例3: message_die
//.........这里部分代码省略.........
case GENERAL_MESSAGE:
if ( $msg_title == '' )
{
$msg_title = $lang['Information'];
}
break;
case CRITICAL_MESSAGE:
if ( $msg_title == '' )
{
$msg_title = $lang['Critical_Information'];
}
break;
case GENERAL_ERROR:
if ( $msg_text == '' )
{
$msg_text = $lang['An_error_occured'];
}
if ( $msg_title == '' )
{
$msg_title = $lang['General_Error'];
}
break;
case CRITICAL_ERROR:
//
// Critical errors mean we cannot rely on _ANY_ DB information being
// available so we're going to dump out a simple echo'd statement
//
include($phpbb_root_path . 'language/lang_english/lang_main.php');
if ( $msg_text == '' )
{
$msg_text = $lang['A_critical_error'];
}
if ( $msg_title == '' )
{
$msg_title = 'phpBB : <b>' . $lang['Critical_Error'] . '</b>';
}
break;
}
//
// Add on DEBUG info if we've enabled debug mode and this is an error. This
// prevents debug info being output for general messages should DEBUG be
// set TRUE by accident (preventing confusion for the end user!)
//
if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) )
{
if ( $debug_text != '' )
{
$msg_text = $msg_text . '<br /><br /><b><u>DEBUG MODE</u></b>' . $debug_text;
}
}
if ( $msg_code != CRITICAL_ERROR )
{
if ( !empty($lang[$msg_text]) )
{
$msg_text = $lang[$msg_text];
}
if ( !defined('IN_ADMIN') )
{
$template->set_filenames(array(
'message_body' => 'message_body.tpl')
);
}
else
{
$template->set_filenames(array(
'message_body' => 'admin/admin_message_body.tpl')
);
}
$template->assign_vars(array(
'MESSAGE_TITLE' => $msg_title,
'MESSAGE_TEXT' => $msg_text)
);
$template->pparse('message_body');
if ( !defined('IN_ADMIN') )
{
include($phpbb_root_path . 'includes/page_tail.php');
}
else
{
include($phpbb_root_path . 'admin/page_footer_admin.php');
}
}
else
{
echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>";
}
exit;
}
示例4: basename
$banco->desfazerTransacao();
array_push($msg_erro,$e->getMessage());
#exit;
}
}
##############################################################################
############## INDEXA O TEMPLATE ##############
##############################################################################
$_nome_programa = basename($_SERVER['PHP_SELF'],'.php');
$theme = ".";
$model = new Template($theme);
$model->set_filenames(array($_nome_programa => $_nome_programa.'.htm'));
$model->assign_vars(array('_NOME_PROGRAMA' => $_nome_programa.".php"));
/* PROFESSOR */
$usuario_id = "";
$usuario_nome = "";
$usuario_email = "";
try {
if (strlen($_login_professor)>0){
$professor = $sessionFacade->recuperarProfessor($_login_professor);
$pesquisa = $sessionFacade->recuperarPesquisaTodos($professor);
$fazer_pesquisa = $sessionFacade->recuperarFazerPesquisa($professor);
if (count($pesquisa)>0 AND $fazer_pesquisa == 0){
header("Location: ../logout.php?pesquisa=n");
示例5: redirect_html
/**
* Redirects to the given URL (HTML method).
* once this function called, the execution doesn't go further
* (presence of an exit() instruction.
*
* @param string $url
* @param string $msg
* @param integer $refresh_time
* @return void
*/
function redirect_html($url, $msg = '', $refresh_time = 0)
{
global $user, $template, $lang_info, $conf, $lang, $t2, $page, $debug;
if (!isset($lang_info) || !isset($template)) {
$user = build_user($conf['guest_id'], true);
load_language('common.lang');
trigger_notify('loading_lang');
load_language('lang', PHPWG_ROOT_PATH . PWG_LOCAL_DIR, array('no_fallback' => true, 'local' => true));
$template = new Template(PHPWG_ROOT_PATH . 'themes', get_default_theme());
} elseif (defined('IN_ADMIN') and IN_ADMIN) {
$template = new Template(PHPWG_ROOT_PATH . 'themes', get_default_theme());
}
if (empty($msg)) {
$msg = nl2br(l10n('Redirection...'));
}
$refresh = $refresh_time;
$url_link = $url;
$title = 'redirection';
$template->set_filenames(array('redirect' => 'redirect.tpl'));
include PHPWG_ROOT_PATH . 'include/page_header.php';
$template->set_filenames(array('redirect' => 'redirect.tpl'));
$template->assign('REDIRECT_MSG', $msg);
$template->parse('redirect');
include PHPWG_ROOT_PATH . 'include/page_tail.php';
exit;
}
示例6: Template
<?php
/**
* Charge le template de l'en-tête
*
* PHP Version 5.3.3
*
* @category General
* @package ArchiWiki
* @author Pierre Rudloff <contact@rudloff.pro>
* @license GNU GPL v3 https://www.gnu.org/licenses/gpl.html
* @link http://archi-wiki.org/
*
* */
$t = new Template('modules/header/templates/');
$t->set_filenames(array('header' => 'header.tpl'));
$authentification = new archiAuthentification();
$recherche = new archiRecherche();
$config = new ArchiConfig();
$adresse = new archiAdresse();
$evenement = new archiEvenement();
$image = new archiImage();
$ajax = new ajaxObject();
$calque = new calqueObject();
$string = new stringObject();
$utilisateur = new archiUtilisateur();
$session = new objetSession();
$i = new imageObject();
if (!isset($jsHeader)) {
// variables récupérée de chaque fonction des classes du site permettant de mettre du javascript recupéré , dans le header , plutot qu'en plein milieu de la page ou dans le bas de page s'il faut qu'il soit executé a la fin
$jsHeader = "";
示例7: get_url_compatible
define('APP_TEST_BRANCH', FALSE);
}
// optimization for search engines: hostname/key1~val1[/key2~val2[/key3~val3 ...]] -> $key1=val1...
if (isset($_GET['a'])) {
foreach (explode('/', $_GET['a']) as $a) {
$a = explode('~', $a);
if ($a[0]) {
$_GET[$a[0]] = urldecode($a[1]);
}
}
}
include_once 'class.template.inc';
include_once 'app.inc';
$template = new Template(ME_WWWROOT);
$app = new App();
$template->set_filenames(array('page' => 'tpl/me.tpl'));
$options = $app->fetchAll('SELECT * FROM `options`');
foreach ($options as $key => $option) {
${$option}['name'] = $option['value'];
}
$products_per_page = (int) $products_per_page < 1 ? 15 : $products_per_page;
$template->assign_vars(array('copyright' => $copyright, 'currency_exchange_rate' => $currency_exchange_rate, 'short_name' => $name, 'full_name' => $long_name, 'address' => $address, 'email_address' => $shop_mail, 'webadmin_email_address' => $web_admin_mail, 'page_bottom_info' => $page_bottom_info, 'test_branch_min' => APP_TEST_BRANCH ? '' : '.min'));
function get_url_compatible($text)
{
return urlencode(preg_replace('/\\s{1,}/', ' ', trim(preg_replace('/\\([^\\)]*?\\)/', '', $text))));
}
$html = '';
$menu = array();
// for menu tree
$categories = $app->fetchAll("SELECT `id`, `name`, `parent` FROM `categories` WHERE `hidden` = 0 ORDER BY `name`");
// sections of top level
示例8: unset
function get_home_page()
{
global $Sql, $User, $Template, $Cache, $Bread_crumb, $_WIKI_CONFIG, $_WIKI_CATS, $LANG;
load_module_lang('wiki');
include_once '../wiki/wiki_functions.php';
$bread_crumb_key = 'wiki';
require_once '../wiki/wiki_bread_crumb.php';
unset($Template);
$Template = new Template();
$Template->set_filenames(array('wiki' => 'wiki/wiki.tpl', 'index' => 'wiki/index.tpl'));
$Template->assign_vars(array('WIKI_PATH' => $Template->get_module_data_path('wiki')));
if ($_WIKI_CONFIG['last_articles'] > 1) {
$result = $Sql->query_while("SELECT a.title, a.encoded_title, a.id\n\t\t\tFROM " . PREFIX . "wiki_articles a\n\t\t\tLEFT JOIN " . PREFIX . "wiki_contents c ON c.id_contents = a.id_contents\n\t\t\tWHERE a.redirect = 0\n\t\t\tORDER BY c.timestamp DESC\n\t\t\tLIMIT 0, " . $_WIKI_CONFIG['last_articles'], __LINE__, __FILE__);
$articles_number = $Sql->num_rows($result, "SELECT COUNT(*) FROM " . PREFIX . "wiki_articles WHERE encoded_title = '" . $encoded_title . "'", __LINE__, __FILE__);
$Template->assign_block_vars('last_articles', array('L_ARTICLES' => $LANG['wiki_last_articles_list'], 'RSS' => $articles_number > 0 ? '<a href="{PATH_TO_ROOT}/syndication.php?m=wiki"><img src="../templates/' . get_utheme() . '/images/rss.png" alt="RSS" /></a>' : ''));
$i = 0;
while ($row = $Sql->fetch_assoc($result)) {
$Template->assign_block_vars('last_articles.list', array('ARTICLE' => $row['title'], 'TR' => $i > 0 && $i % 2 == 0 ? '</tr><tr>' : '', 'U_ARTICLE' => url('wiki.php?title=' . $row['encoded_title'], $row['encoded_title'])));
$i++;
}
if ($articles_number == 0) {
$Template->assign_vars(array('L_NO_ARTICLE' => '<td style="text-align:center;" class="row2">' . $LANG['wiki_no_article'] . '</td>'));
}
}
if ($_WIKI_CONFIG['display_cats'] != 0) {
$Template->assign_block_vars('cat_list', array('L_CATS' => $LANG['wiki_cats_list']));
$i = 0;
foreach ($_WIKI_CATS as $id => $infos) {
if ($infos['id_parent'] == 0) {
$Template->assign_block_vars('cat_list.list', array('CAT' => $infos['name'], 'U_CAT' => url('wiki.php?title=' . url_encode_rewrite($infos['name']), url_encode_rewrite($infos['name']))));
$i++;
}
}
if ($i == 0) {
$Template->assign_vars(array('L_NO_CAT' => $LANG['wiki_no_cat']));
}
}
$Template->assign_vars(array('TITLE' => !empty($_WIKI_CONFIG['wiki_name']) ? $_WIKI_CONFIG['wiki_name'] : $LANG['wiki'], 'INDEX_TEXT' => !empty($_WIKI_CONFIG['index_text']) ? second_parse(wiki_no_rewrite($_WIKI_CONFIG['index_text'])) : $LANG['wiki_empty_index'], 'L_EXPLORER' => $LANG['wiki_explorer'], 'U_EXPLORER' => url('explorer.php'), 'WIKI_PATH' => $Template->get_module_data_path('wiki')));
$page_type = 'index';
include '../wiki/wiki_tools.php';
$tmp = $Template->pparse('wiki', TRUE);
return $tmp;
}
示例9: Template
<?php
// deuxième page
include 'include_dao.php';
session_start();
// on precise le repertoire où se trouve les fichiers templates et le répértoire où on met les fichiers compilés (cache)
$template = new Template('template', 'cache');
// on precise la variable langage
$template->set_language_var($lang);
page_header('Supprimer une note', 'Supprimer une note', 'SUPPRIMERNOTE');
page_footer();
$template->set_filenames(array('body' => 'supprimernote.html'));
$submit = isset($_POST['submit']);
$id = $_GET['idLigne'];
$template->assign_var('IDLIGNE', $id);
if ($submit) {
$frais = new LignefraisMySqlDAO();
$fraisQuery = $frais->delete($id);
header('Location: gererbordereau.php');
}
$template->display('body');
示例10: Template
<?php
// deuxième page
include 'include_dao.php';
session_start();
// on precise le repertoire où se trouve les fichiers templates et le répértoire où on met les fichiers compilés (cache)
$template = new Template('template', 'cache');
$template->assign_var('LOG', FALSE);
$template->assign_var('ONUPDATE', FALSE);
$template->assign_var('UPDATESUCCES', FALSE);
$template->assign_var('UPDATEFAIL', FALSE);
// on precise la variable langage
$template->set_language_var($lang);
page_header('Mon profil', 'Mon profil', 'PROFIL');
page_footer();
$template->set_filenames(array('body' => 'profil.html'));
$submitRequest = isset($_POST['request']);
$submit = isset($_POST['submit']);
if ($submit) {
$nom = $_POST['nom'];
$prenom = $_POST['prenom'];
$sexe = $_POST['sexe'];
$date = $_POST['ddn'];
$type = $_POST['type'];
$adresse = $_POST['adresse'];
$cp = $_POST['cp'];
$ville = $_POST['ville'];
$nmdp = $_POST['npwd'];
$mdp = $_POST['pwd'];
$demandeur = new DemandeurMySqlDAO();
$demandeurQuery = $demandeur->queryByNom($nom);
示例11: adr_update_general_config
function adr_update_general_config()
{
global $db, $lang, $phpEx, $userdata, $phpbb_root_path, $table_prefix;
$template = new Template($phpbb_root_path);
include_once $phpbb_root_path . 'adr/includes/adr_constants.' . $phpEx;
$template->set_filenames(array('cache' => 'adr/cache/cache_tpls/cache_config_def.tpls'));
$sql = "SELECT * FROM " . ADR_GENERAL_TABLE . "\n\t\t\tORDER BY config_name ASC";
if (!($result = $db->sql_query($sql))) {
message_die(GENERAL_ERROR, 'Unable to query config infos (updating cache)', '', __LINE__, __FILE__, $sql);
}
while ($row = $db->sql_fetchrow($result)) {
$id = $row['config_name'];
$cell_res = $row['config_value'];
$template->assign_block_vars('cache_row', array('ID' => sprintf("'%s'", str_replace("'", "\\'", $id)), 'CELLS' => sprintf("'%s'", str_replace("'", "\\'", $cell_res))));
}
$template->assign_var_from_handle('cache', 'cache');
$res = "<?php\n" . $template->_tpldata['.'][0]['cache'] . "\n?>";
$fname = $phpbb_root_path . './adr/cache/cache_config' . '.' . $phpEx;
@chmod($fname, 0666);
$handle = @fopen($fname, 'w');
@fwrite($handle, $res);
@fclose($handle);
}
示例12: message_die
//.........这里部分代码省略.........
if (empty($lang)) {
if (!empty($board_config['default_lang'])) {
include $phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx;
} else {
include $phpbb_root_path . 'language/lang_english/lang_main.' . $phpEx;
}
//-- mod : language settings -----------------------------------------------------------------------
//-- add
include $phpbb_root_path . './includes/lang_extend_mac.' . $phpEx;
//-- fin mod : language settings -------------------------------------------------------------------
}
if (empty($template)) {
$template = new Template($phpbb_root_path . 'templates/' . $board_config['board_template']);
}
if (empty($theme)) {
$theme = setup_styles($board_config['default_style']);
}
//
// Load the Page Header
//
if (!defined('IN_ADMIN')) {
include $phpbb_root_path . 'includes/page_header.' . $phpEx;
} else {
include $phpbb_root_path . 'admin/page_header_admin.' . $phpEx;
}
}
switch ($msg_code) {
case GENERAL_MESSAGE:
if ($msg_title == '') {
$msg_title = $lang['Information'];
}
break;
case CRITICAL_MESSAGE:
if ($msg_title == '') {
$msg_title = $lang['Critical_Information'];
}
break;
case GENERAL_ERROR:
if ($msg_text == '') {
$msg_text = $lang['An_error_occured'];
}
if ($msg_title == '') {
$msg_title = $lang['General_Error'];
}
break;
case CRITICAL_ERROR:
//
// Critical errors mean we cannot rely on _ANY_ DB information being
// available so we're going to dump out a simple echo'd statement
//
include $phpbb_root_path . 'language/lang_english/lang_main.' . $phpEx;
if ($msg_text == '') {
$msg_text = $lang['A_critical_error'];
}
if ($msg_title == '') {
$msg_title = 'Minerva : <b>' . $lang['Critical_Error'] . '</b>';
}
break;
}
//
// Add on DEBUG info if we've enabled debug mode and this is an error. This
// prevents debug info being output for general messages should DEBUG be
// set TRUE by accident (preventing confusion for the end user!)
//
if (DEBUG && ($msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR)) {
if ($debug_text != '') {
$msg_text = $msg_text . '<br /><br /><b><u>DEBUG MODE</u></b>' . $debug_text;
}
}
if ($msg_code != CRITICAL_ERROR) {
if (!empty($lang[$msg_text])) {
$msg_text = $lang[$msg_text];
}
if (!defined('IN_ADMIN')) {
$template->set_filenames(array('message_body' => 'message_body.tpl'));
} else {
$template->set_filenames(array('message_body' => 'admin_message_body.tpl'));
}
$template->assign_vars(array('MESSAGE_TITLE' => $msg_title, 'MESSAGE_TEXT' => $msg_text));
//--------------------------------------------------------------------------------
// Prillian - Begin Code Addition
//
if ($gen_simple_header) {
$template->assign_vars(array('U_INDEX' => '', 'L_INDEX' => ''));
}
//
// Prillian - End Code Addition
//--------------------------------------------------------------------------------
$template->pparse('message_body');
if (!defined('IN_ADMIN')) {
include $phpbb_root_path . 'includes/page_tail.' . $phpEx;
} else {
include $phpbb_root_path . 'admin/page_footer_admin.' . $phpEx;
}
} else {
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><title>' . strip_tags($msg_title) . '</title>' . "\n";
echo '<body><h1 style="font-family:Verdana,serif;font-size:18pt;font-weight:bold">' . $msg_title . '</h1><hr style="height:2px;border-style:dashed;color:black" /><p style="font-family:Verdana,serif;font-size:10pt">' . $msg_text . '</p><hr style="height:2px;border-style:dashed;color:black" /><p style="font-family:Verdana,serif;font-size:10pt">Contact the site administrator to report this failure</p></body></html>';
}
exit;
}
示例13: Template
<?php
// deuxième page
include 'include_dao.php';
session_start();
// on precise le repertoire où se trouve les fichiers templates et le répértoire où on met les fichiers compilés (cache)
$template = new Template('template', 'cache');
$template->assign_var('UPDATESUCCES', FALSE);
// on precise la variable langage
$template->set_language_var($lang);
page_header('Modifier une note', 'Modifier une note', 'MODIFIERNOTE');
page_footer();
$template->set_filenames(array('body' => 'modifiernote.html'));
$submit = isset($_POST['submit']);
$id = $_GET['idLigne'];
$template->assign_var('IDLIGNE', $id);
if ($submit) {
$date = $_POST['date'];
$annee = $_POST['annee'];
$motif = $_POST['idmotif'];
$trajet = $_POST['trajet'];
$kms = $_POST['kms'];
$cpeages = $_POST['cpeages'];
$crepas = $_POST['crepas'];
$chebergement = $_POST['chebergement'];
$indemnites = new IndemniteMySqlDAO();
$indemniteQuery = $indemnites->queryByAnnee($annee);
$ligne = new LignefraisMySqlDAO();
$FraisInsert = new Lignefrai();
$FraisInsert->idLigne = $id;
$FraisInsert->date = $date;
示例14: time
email : jonasge@gmx.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* any later version. *
* *
***************************************************************************/
session_start();
session_destroy();
setcookie("ck_userid", "", time() - 172800000);
setcookie("ck_passwd", "", time() - 172800000);
include "./includes/conf.inc.php";
include "./language/" . $config['language'] . ".inc.php";
include "./includes/functions.php";
include "./includes/template.php";
$dataB->sql_connect($sql["host"], $sql["dbuser"], $sql["dbpasswd"], $sql["db"]);
$result = $dataB->sql_query("SELECT conf,value FROM config WHERE conf='default_template'");
$daten = $dataB->sql_fetch_assoc($result);
$dataB->sql_close();
$L_template = $daten[value];
$template = new Template("./templates/" . $L_template);
$template->set_filenames(array('overall_body' => 'templates/' . $L_template . '/logout.tpl'));
$template->assign_vars(array('L_LOGOUT' => $textdata['logoff']));
$template->assign_vars(array('L_MSG_FORWARD' => $textdata['msg_logoff_forward']));
$template->pparse('overall_body');
?>
示例15: displaySingleEvent
/**
* Display a single event with event data in input
*
* @param unknown $evenement
* @return string
*/
public function displaySingleEvent($evenement)
{
$t = new Template('modules/archi/templates/');
$t->set_filenames(array('evenement' => 'evenement/singleEvent.tpl'));
//Filling the template with the infos
$t->assign_block_vars('evenement', $evenement['evenementData']);
//Menu (ajouter image/event, modifier image/event etc..)
if (isset($evenement['menuArray'])) {
foreach ($evenement['menuArray'] as $menuElt) {
$t->assign_block_vars($menuElt[0], $menuElt[1]);
}
}
//Personnes
if (isset($evenement['arrayPersonne'])) {
foreach ($evenement['arrayPersonne'] as $personne) {
$t->assign_block_vars($personne[0], $personne[1]);
}
}
//Formulaire pour les modifications d'images
if (isset($evenement['arrayFormEvent'])) {
$t->assign_block_vars($personne[0], $personne[1]);
}
//Courant architectural
if (isset($evenement['arrayCourantArchi'])) {
foreach ($evenement['arrayCourantArchi'] as $courantArchi) {
$t->assign_block_vars($courantArchi[0], $courantArchi[1]);
}
}
ob_start();
$t->pparse('evenement');
$html .= ob_get_contents();
ob_end_clean();
return $html;
}