Ignore:
Timestamp:
Jan 18, 2004, 3:13:02 AM (21 years ago)
Author:
gweltas
Message:

Conformity with the XHTML 1.0 transitional standard
Creation of the following files :

  • template/default/header.php and template/default/footer.php to ensure a common standard
  • default.css to be CSS valid

Obsolescence of the following files :

  • template/default/theme/conf.php
  • template/default/style.inc.php

Custom galleries should reflect those changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/category.php

    r286 r290  
    1717 *                                                                         *
    1818 ***************************************************************************/
    19 // determine the initial instant to indicate the generation time of this page
    20 $t1 = explode( ' ', microtime() );
    21 $t2 = explode( '.', $t1[0] );
    22 $t2 = $t1[1].'.'.$t2[1];
    2319//----------------------------------------------------------- personnal include
    2420include_once( './include/init.inc.php' );
     
    10399$page['structure'] = create_user_structure( '' );
    104100$page['structure'] = update_structure( $page['structure'] );
     101
    105102//----------------------------------------------------- template initialization
    106 $vtp = new VTemplate;
     103
     104//
     105// Start output of page
     106//
     107$title = $page['title'];
     108include('include/page_header.php');
     109
    107110$handle = $vtp->Open( './template/'.$user['template'].'/category.vtp' );
    108111initialize_template();
     
    110113  'categories','hint_category','sub-cat','images_available','total',
    111114  'title_menu','nb_image_category','send_mail','title_send_mail',
    112   'generation_time','connected_user','recent_image','days','generation_time',
     115  'connected_user','recent_image','days',
    113116  'favorite_cat_hint','favorite_cat','stats','most_visited_cat_hint',
    114117  'most_visited_cat','recent_cat','recent_cat_hint','upload_picture',
     
    116119templatize_array( $tpl, 'lang', $handle );
    117120
    118 $tpl = array( 'mail_webmaster','webmaster','top_number','version','site_url' );
     121$tpl = array( 'mail_webmaster','webmaster','top_number');
    119122templatize_array( $tpl, 'conf', $handle );
    120123
     
    122125templatize_array( $tpl, 'user', $handle );
    123126
    124 $tpl = array( 'title','navigation_bar','cat_comment','cat_nb_images' );
     127$tpl = array( 'navigation_bar','cat_comment','cat_nb_images' );
    125128templatize_array( $tpl, 'page', $handle );
    126129
     
    405408
    406409    $url_link = './category.php?cat='.$subcat_id;
    407     if ( !in_array( $page['cat'], $page['tab_expand'] ) )
     410    if ( isset($page['cat'])&& !in_array( $page['cat'], $page['tab_expand'] ) )
    408411    {
    409412      array_push( $page['tab_expand'], $page['cat'] );
     
    488491pwg_log( 'category', $page['title'] );
    489492mysql_close();
    490 //------------------------------------------------------------- generation time
    491 $time = get_elapsed_time( $t2, get_moment() );
    492 $vtp->setGlobalVar( $handle, 'time', $time );
    493493//----------------------------------------------------------- html code display
    494494$code = $vtp->Display( $handle, 0 );
    495495echo $code;
     496
     497include('include/page_tail.php');
    496498?>
Note: See TracChangeset for help on using the changeset viewer.