diff options
-rw-r--r-- | category.php | 1 | ||||
-rw-r--r-- | template/default/category.vtp | 4 |
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=">" /></a><!--/VTP_bullet_w_link--><!--VTP_bullet_wo_link--><img src="{#bullet_url}" style="border:none;" alt=">" /><!--/VTP_bullet_wo_link--> <a href="{#link_url}"><span title="{#hint_category}" style="{#name_style}">{#link_name}</span> <span class="menuInfoCat">[ <!--VTP_subcat--><span title="{#nb_subcats} {#sub-cat}">{#nb_subcats}</span> - <!--/VTP_subcat--><span title="{#total_cat} {#images_available}">{#total_cat}</span> ]</span></a>{#cat_icon}<br /> <!--/VTP_category--> |