Changeset 5446 for trunk/about.php


Ignore:
Timestamp:
03/29/10 15:30:02 (10 years ago)
Author:
patdenice
Message:

feature 1502: Allow to have configuration page for each theme.css.
About string for theme has to be saved in language theme directory (about.html)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r5208 r5446  
    3939include(PHPWG_ROOT_PATH.'include/page_header.php'); 
    4040 
    41 /** 
    42  * set in ./local/language/en_UK.lang.php (maybe to create) 
    43  * for example for clear theme: 
    44   $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '. 
    45   ' A standard template/theme of PhpWebgallery.'; 
    46  * 
    47  * Don't forget php tags !!! 
    48  * 
    49  * Another way is to code it thru the theme itself in ./themeconf.inc.php 
    50  */ 
    51 @include(PHPWG_ROOT_PATH.'template/'.$user['template']. 
    52   '/theme/'.$user['theme'].'/themeconf.inc.php'); 
    53  
    54 $template->set_filenames( 
    55   array( 
    56     'about'=>'about.tpl', 
    57     ) 
    58   ); 
    59 if ( isset($lang['Theme: '.$user['theme']]) ) 
    60 { 
    61   $template->assign( 
    62     'THEME_ABOUT',l10n('Theme: '.$user['theme']) 
    63     ); 
    64 } 
     41$template->set_filename('about', 'about.tpl'); 
    6542 
    6643$template->assign('ABOUT_MESSAGE', load_language('about.html','', array('return'=>true)) ); 
     44 
     45$theme_about = load_language('about.html', PHPWG_THEMES_PATH.$user['theme'].'/', array('return' => true)); 
     46if ( $theme_about !== false ) 
     47{ 
     48  $template->assign('THEME_ABOUT', $theme_about); 
     49} 
    6750 
    6851$template->pparse('about'); 
Note: See TracChangeset for help on using the changeset viewer.