Changeset 797


Ignore:
Timestamp:
Jun 25, 2005, 7:09:01 PM (19 years ago)
Author:
plg
Message:
  • new feature : ability to add links on the main page (see include/config_default.inc.php)
Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/category.php

    r764 r797  
    176176  )
    177177);
     178//-------------------------------------------------------------- external links
     179if (count($conf['links']) > 0)
     180{
     181  $template->assign_block_vars('links', array());
     182
     183  foreach ($conf['links'] as $url => $label)
     184  {
     185    $template->assign_block_vars(
     186      'links.link',
     187      array(
     188        'URL' => $url,
     189        'LABEL' => $label
     190        ));
     191  }
     192}
    178193//---------------------------------------------------------- special categories
    179194// favorites categories
  • trunk/doc/ChangeLog

    r796 r797  
     12005-06-25 Pierrick LE GALL
     2
     3        * new feature : ability to add links on the main page (see
     4        include/config_default.inc.php)
     5       
    162005-06-21 Pierrick LE GALL
    27
  • trunk/include/config_default.inc.php

    r770 r797  
    200200// bottom of each page ?
    201201$conf['show_version'] = true;
     202
     203// links : list of external links to add in the menu. An example is the best
     204// than a long explanation :
     205//
     206// $conf['links'] = array(
     207//   'http://phpwebgallery.net' => 'PWG website',
     208//   'http://forum.phpwebgallery.net' => 'PWG forum',
     209//   'http://phpwebgallery.net/doc' => 'PWG wiki'
     210//   );
     211//
     212// If the array is empty, the "Links" box won't be displayed on the main
     213// page.
     214$conf['links'] = array();
    202215?>
  • trunk/language/en_UK.iso-8859-1/common.lang.php

    r796 r797  
    327327$lang['return to homepage'] = 'return to homepage';
    328328$lang['Filter and display'] = 'Filter and display';
     329$lang['Links'] = 'Links';
    329330?>
  • trunk/language/fr_FR.iso-8859-1/common.lang.php

    r796 r797  
    330330$lang['return to homepage'] = 'retourner à la page d\'accueil';
    331331$lang['Filter and display'] = 'Filtrer et afficher';
     332$lang['Links'] = 'Liens';
    332333?>
  • trunk/template/default/category.tpl

    r760 r797  
    44    <td valign="top" style="padding:0px 10px 0px 10px;width:1%;">
    55      <div class="table1">
     6        <!-- BEGIN links -->
     7        <div class="titreMenu">{lang:Links}</div>
     8        <div class="menu">
     9          <ul class="menu">
     10            <!-- BEGIN link -->
     11            <li><a href="{links.link.URL}">{links.link.LABEL}</a></li>
     12            <!-- END link -->
     13          </ul>
     14        </div>
     15        <!-- END links -->
    616        <div class="titreMenu">
    717          <a href="{U_HOME}">{L_CATEGORIES}</a>
Note: See TracChangeset for help on using the changeset viewer.