Changeset 1834 for trunk/about.php


Ignore:
Timestamp:
Feb 17, 2007, 7:52:17 PM (13 years ago)
Author:
vdigital
Message:

0000497: (facultative) themeconf.inc.php can build additional about text for PWG about page (see wipi theme).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/about.php

    r1779 r1834  
    4343include(PHPWG_ROOT_PATH.'include/page_header.php');
    4444
     45/**
     46 * set in ./language/en_UK.iso-8859-1/local.lang.php (maybe to create)
     47 * for example for clear theme:
     48  $lang['Theme: clear'] = 'This is the clear theme based on yoga template. '.
     49  ' A standard template/theme of PhpWebgallery.';
     50 *
     51 * Don't forget php tags !!!
     52 *
     53 * Another way is to code it thru the theme itself in ./themeconf.inc.php
     54 */
     55@include(PHPWG_ROOT_PATH.'template/'.$user['template'].
     56  '/theme/'.$user['theme'].'/themeconf.inc.php');
     57
    4558$template->set_filenames(
    4659  array(
     
    4962    )
    5063  );
    51 if ( isset( $themeconf['About']) and $themeconf['About']!=='' )
     64if ( isset($lang['Theme: '.$user['theme']]) )
    5265{
    5366  $template->assign_block_vars(
    5467  'theme',
    5568  array(
    56     'ABOUT' => l10n($themeconf['About']),
     69    'ABOUT' => l10n('Theme: '.$user['theme']),
    5770    )
    5871  );
Note: See TracChangeset for help on using the changeset viewer.