mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-08 09:43:01 +02:00
- new feature : ability to add links on the main page (see
include/config_default.inc.php) git-svn-id: http://piwigo.org/svn/trunk@797 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -175,6 +175,21 @@ $template->assign_vars(array(
|
||||
'U_CADDIE'=>add_session_id(PHPWG_ROOT_PATH.'category.php'.get_query_string_diff(array('caddie')).'&caddie=1')
|
||||
)
|
||||
);
|
||||
//-------------------------------------------------------------- external links
|
||||
if (count($conf['links']) > 0)
|
||||
{
|
||||
$template->assign_block_vars('links', array());
|
||||
|
||||
foreach ($conf['links'] as $url => $label)
|
||||
{
|
||||
$template->assign_block_vars(
|
||||
'links.link',
|
||||
array(
|
||||
'URL' => $url,
|
||||
'LABEL' => $label
|
||||
));
|
||||
}
|
||||
}
|
||||
//---------------------------------------------------------- special categories
|
||||
// favorites categories
|
||||
if ( !$user['is_the_guest'] )
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2005-06-25 Pierrick LE GALL
|
||||
|
||||
* new feature : ability to add links on the main page (see
|
||||
include/config_default.inc.php)
|
||||
|
||||
2005-06-21 Pierrick LE GALL
|
||||
|
||||
* comments page rewritten : comments are displayed one by one,
|
||||
|
||||
@@ -199,4 +199,17 @@ $conf['tn_height'] = 96;
|
||||
// show_version : shall the version of PhpWebGallery be displayed at the
|
||||
// bottom of each page ?
|
||||
$conf['show_version'] = true;
|
||||
|
||||
// links : list of external links to add in the menu. An example is the best
|
||||
// than a long explanation :
|
||||
//
|
||||
// $conf['links'] = array(
|
||||
// 'http://phpwebgallery.net' => 'PWG website',
|
||||
// 'http://forum.phpwebgallery.net' => 'PWG forum',
|
||||
// 'http://phpwebgallery.net/doc' => 'PWG wiki'
|
||||
// );
|
||||
//
|
||||
// If the array is empty, the "Links" box won't be displayed on the main
|
||||
// page.
|
||||
$conf['links'] = array();
|
||||
?>
|
||||
|
||||
@@ -326,4 +326,5 @@ $lang['Sort order'] = 'Sort order';
|
||||
$lang['Number of items'] = 'Number of items';
|
||||
$lang['return to homepage'] = 'return to homepage';
|
||||
$lang['Filter and display'] = 'Filter and display';
|
||||
$lang['Links'] = 'Links';
|
||||
?>
|
||||
@@ -329,4 +329,5 @@ $lang['Sort order'] = 'Ordre';
|
||||
$lang['Number of items'] = 'Nombre d\'éléments';
|
||||
$lang['return to homepage'] = 'retourner à la page d\'accueil';
|
||||
$lang['Filter and display'] = 'Filtrer et afficher';
|
||||
$lang['Links'] = 'Liens';
|
||||
?>
|
||||
@@ -3,6 +3,16 @@
|
||||
<tr>
|
||||
<td valign="top" style="padding:0px 10px 0px 10px;width:1%;">
|
||||
<div class="table1">
|
||||
<!-- BEGIN links -->
|
||||
<div class="titreMenu">{lang:Links}</div>
|
||||
<div class="menu">
|
||||
<ul class="menu">
|
||||
<!-- BEGIN link -->
|
||||
<li><a href="{links.link.URL}">{links.link.LABEL}</a></li>
|
||||
<!-- END link -->
|
||||
</ul>
|
||||
</div>
|
||||
<!-- END links -->
|
||||
<div class="titreMenu">
|
||||
<a href="{U_HOME}">{L_CATEGORIES}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user