diff options
author | gweltas <gweltas@piwigo.org> | 2004-02-07 11:50:26 +0000 |
---|---|---|
committer | gweltas <gweltas@piwigo.org> | 2004-02-07 11:50:26 +0000 |
commit | 65753539220ba870b738866c425c89d73753c727 (patch) | |
tree | 92e77bf4da8946d051f8d46176fbe1ead900c0d8 /include/page_tail.php | |
parent | 1d9b840cf8421ad06d81035f209149eceb1b357f (diff) |
Template modification
Split of the french language file
git-svn-id: http://piwigo.org/svn/trunk@351 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/page_tail.php | 23 |
1 files changed, 15 insertions, 8 deletions
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 @@ <?php -$handle = $vtp->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 |