Changeset 1834


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

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

Location:
trunk
Files:
8 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  );
  • trunk/language/en_UK.iso-8859-1/about.html

    r862 r1834  
    1 <ul>
    2 
    31  <li>PhpWebGallery is a web application giving you the possibility to
    42  create an online images gallery easily.</li>
     
    119  its dedicated <a href="http://forum.phpwebgallery.net">forum</a>.</li>
    1210
    13 </ul>
  • trunk/language/fr_FR.iso-8859-1/about.html

    r1099 r1834  
    1 <ul>
    2 
    31  <li>PhpWebGallery est une application web permettant de créer facilement
    42une galerie d'images en ligne.</li>
     
    97  <li>Si vous avez des suggestions ou des commentaires, visitez le <a
    108  href="http://www.phpwebgallery.net">site officiel</a>.</li>
    11 
    12 </ul>
  • trunk/template/yoga/about.tpl

    r1779 r1834  
    1010    <h2>{lang:About}</h2>
    1111  </div>
    12 
     12  <ul>
    1313  {ABOUT_MESSAGE}
    1414  <!-- BEGIN theme -->
    15   <ul>
    1615  <li>{theme.ABOUT}</li>
     16  <!-- END theme -->
    1717  </ul>
    18   <!-- END theme -->
    1918</div>
  • trunk/template/yoga/theme/clear/themeconf.inc.php

    r1779 r1834  
    11<?php
    2 global $themeconf; /* Share $themeconf if About is used */
    32$themeconf = array(
    43  'template' => 'yoga',
     
    98  'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    109  'local_head' => '<!-- no theme specific head content -->',
    11   'About' => '', /* About text to display on About screen */
    1210);
    1311?>
  • trunk/template/yoga/theme/dark/themeconf.inc.php

    r1779 r1834  
    11<?php
    2 global $themeconf; /* Share $themeconf if About is used */
    32$themeconf = array(
    43  'template' => 'yoga',
     
    98  'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    109  'local_head' => '<!-- no theme specific head content -->',
    11   'About' => '', /* About text to display on About screen */
    1210);
    1311?>
  • trunk/template/yoga/theme/p0w0/themeconf.inc.php

    r1779 r1834  
    11<?php
    2 global $themeconf; /* Share $themeconf if About is used */
    32$themeconf = array(
    43  'template' => 'yoga',
     
    98  'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    109  'local_head' => '<!-- no theme specific head content -->',
    11   'About' => '', /* About text to display on About screen */
    1210);
    1311?>
  • trunk/template/yoga/theme/wipi/themeconf.inc.php

    r1779 r1834  
    11<?php
    2 global $themeconf; /* Share $themeconf if About is used */
    32$themeconf = array(
    43  'template' => 'yoga',
     
    98  'mime_icon_dir' => 'template/yoga/icon/mimetypes/',
    109  'local_head' => '<!-- no theme specific head content -->',
    11   'About' => '', /* About text to display on About screen */
    1210);
     11if ( !isset($lang['Theme: wipi']) )
     12{
     13  $lang['Theme: wipi'] = 'The site is displayed with wipi theme based ' .
     14  ' on yoga template, a standard template/theme of PhpWebgallery.';
     15}
    1316?>
Note: See TracChangeset for help on using the changeset viewer.