From d700a5917233fb8049589a9e0aef3d94e87fb320 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 6 Apr 2006 02:23:54 +0000 Subject: improvement: urls for tags can contain now only the tag or the id and tag improvement: urls for category can be now id and category names (instead of only id) improvement: added 2 indexes (#image_tag.tag_id and #tags.url_name) improvement: identification, register, search pages automatically set focus on first form input improvement: focus, nofocus css class now valid for all forms fix: category comment is tag stripped in category_subcats.inc.php (otherwise issues with html/scripts inside category comment) git-svn-id: http://piwigo.org/svn/trunk@1131 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'include/functions_html.inc.php') diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 13c3dc206..b217f01d9 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -278,7 +278,14 @@ function get_cat_display_name($cat_informations, elseif ($url == '') { $output.= '$id) ).'">'; + $output.= ' href="' + .make_index_url( + array( + 'category'=>$id, + 'cat_name'=>$name + ) + ) + .'">'; $output.= $name.''; } else @@ -353,7 +360,14 @@ SELECT id,name { $output.= ' '.$name.''; + href="' + .make_index_url( + array( + 'category'=>$category_id, + 'cat_name'=>$name + ) + ) + .'">'.$name.''; } else { @@ -423,7 +437,12 @@ function get_html_menu_category($categories) } $menu.= '>'; - $url = make_index_url(array('category' => $category['id'])); + $url = make_index_url( + array( + 'category'=>$category['id'], + 'cat_name'=>$category['name'] + ) + ); $menu.= "\n".'