mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 17:32:25 +02:00
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
This commit is contained in:
@@ -278,7 +278,14 @@ function get_cat_display_name($cat_informations,
|
||||
elseif ($url == '')
|
||||
{
|
||||
$output.= '<a class=""';
|
||||
$output.= ' href="'.make_index_url( array('category'=>$id) ).'">';
|
||||
$output.= ' href="'
|
||||
.make_index_url(
|
||||
array(
|
||||
'category'=>$id,
|
||||
'cat_name'=>$name
|
||||
)
|
||||
)
|
||||
.'">';
|
||||
$output.= $name.'</a>';
|
||||
}
|
||||
else
|
||||
@@ -353,7 +360,14 @@ SELECT id,name
|
||||
{
|
||||
$output.= '
|
||||
<a class=""
|
||||
href="'.make_index_url( array('category'=>$category_id) ).'">'.$name.'</a>';
|
||||
href="'
|
||||
.make_index_url(
|
||||
array(
|
||||
'category'=>$category_id,
|
||||
'cat_name'=>$name
|
||||
)
|
||||
)
|
||||
.'">'.$name.'</a>';
|
||||
}
|
||||
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".'<a href="'.$url.'"';
|
||||
if ($page_cat != 0
|
||||
@@ -509,7 +528,7 @@ function get_html_tag_selection(
|
||||
)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
|
||||
$output = '<ul class="tagSelection">';
|
||||
foreach ($tags as $tag)
|
||||
{
|
||||
@@ -524,7 +543,7 @@ function get_html_tag_selection(
|
||||
{
|
||||
$output.= ' checked="checked"';
|
||||
}
|
||||
|
||||
|
||||
$output.=
|
||||
' />'
|
||||
.' '.$tag['name']
|
||||
|
||||
Reference in New Issue
Block a user