aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-01-24 19:00:02 +0000
committerz0rglub <z0rglub@piwigo.org>2004-01-24 19:00:02 +0000
commiteedb9e3d6231f7e7b81baf1cc8d1e85eea4600db (patch)
tree463e593426d081d87e826e09faf2e1aeacd4e52a
parentc2035bc574e89e2129610b4e3757c1a8802bdf68 (diff)
add link to the start page
git-svn-id: http://piwigo.org/svn/branches/release-1_3@314 68402e56-0260-453c-a942-63ccdbb3a9ee
-rw-r--r--category.php1
-rw-r--r--template/default/category.vtp4
2 files changed, 4 insertions, 1 deletions
diff --git a/category.php b/category.php
index 20dfaed9f..e35155c87 100644
--- a/category.php
+++ b/category.php
@@ -135,6 +135,7 @@ $nb_total_pictures = count_user_total_images();
$vtp->setGlobalVar( $handle, 'nb_total_pictures',$nb_total_pictures );
//------------------------------------------------------------- categories menu
+$vtp->setVar( $handle, 'home_url', add_session_id( 'category.php' ) );
// normal categories
foreach ( $page['structure'] as $category ) {
// display category is a function relative to the template
diff --git a/template/default/category.vtp b/template/default/category.vtp
index 64d0d6005..087d80bcd 100644
--- a/template/default/category.vtp
+++ b/template/default/category.vtp
@@ -2,7 +2,9 @@
<tr>
<td valign="top" style="width:1%;padding:10px;">
{#frame_start}100%{#frame_begin}
- <div class="titreMenu">{#categories}</div>
+ <div class="titreMenu">
+ <a href="{#home_url}">{#categories}</a>
+ </div>
<div class="menu">
<!--VTP_category-->{#indent}<!--VTP_bullet_w_link--><a href="{#bullet_link}"><img src="{#bullet_url}" style="border:none;" alt="&gt;" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt="&gt;" /><!--/VTP_bullet_wo_link-->&nbsp;<a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span>&nbsp;<span class="menuInfoCat">[&nbsp;<!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span>&nbsp;-&nbsp;<!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span>&nbsp;]</span></a>{#cat_icon}<br />
<!--/VTP_category-->