Changeset 351 for trunk/about.php


Ignore:
Timestamp:
Feb 7, 2004, 12:50:26 PM (16 years ago)
Author:
gweltas
Message:

Template modification
Split of the french language file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r345 r351  
    2828include('include/page_header.php');
    2929
    30 $handle = $vtp->Open( './template/'.$user['template'].'/about.vtp' );
     30$template->set_filenames(array('about'=>'about.tpl'));
    3131initialize_template();
    3232
    33 $tpl = array('about_title','about_message','about_return');
    34 templatize_array( $tpl, 'lang', $handle );
    35 $vtp->setVar( $handle, 'user_template', $user['template'] );
     33$template->assign_vars(array(
     34        'PAGE_TITLE' => $title,
     35        'L_ABOUT' => $lang['about_message'],
     36        'L_RETURN' =>  $lang['about_return'],
     37        'U_RETURN' => add_session_id('./category.php?'.$_SERVER['QUERY_STRING'])
     38        )
     39        );
    3640
    37 $url = './category.php?'.$_SERVER['QUERY_STRING'];
    38 $vtp->setVar( $handle, 'back_url', add_session_id( $url ) );
    39 //----------------------------------------------------------- html code display
    40 $code = $vtp->Display( $handle, 0 );
    41 echo $code;
     41$template->pparse('about');
    4242include('include/page_tail.php');
    4343?>
Note: See TracChangeset for help on using the changeset viewer.