From 65753539220ba870b738866c425c89d73753c727 Mon Sep 17 00:00:00 2001 From: gweltas Date: Sat, 7 Feb 2004 11:50:26 +0000 Subject: Template modification Split of the french language file git-svn-id: http://piwigo.org/svn/trunk@351 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/page_tail.php | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'include/page_tail.php') diff --git a/include/page_tail.php b/include/page_tail.php index d4548f170..e960ab983 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -1,19 +1,26 @@ Open( './template/'.$user['template'].'/footer.vtp' ); +$template->set_filenames(array('tail'=>'footer.tpl')); //------------------------------------------------------------- generation time + $time = get_elapsed_time( $t2, get_moment() ); -$vtp->setGlobalVar( $handle, 'time', $time ); -$vtp->setGlobalVar( $handle, 'generation_time', $lang['generation_time'] ); -$vtp->setGlobalVar( $handle, 'version', $conf['version'] ); -$vtp->setGlobalVar( $handle, 'site_url', $conf['site_url'] ); -$vtp->setVarF( $handle, 'footer', './template/'.$user['template'].'/footer.htm' ); +$template->assign_vars(array( + 'L_GEN_TIME' => $lang['generation_time'], + 'S_TIME' => $time, + 'S_VERSION' => $conf['version'], + 'U_SITE' => add_session_id( $conf['site_url'] ) + ) + ); + +if (DEBUG) +{ + $template->assign_block_vars('debug', array()); +} // // Generate the page // -$code = $vtp->Display( $handle, 0 ); -echo $code; +$template->pparse('tail'); ?> \ No newline at end of file -- cgit v1.2.3