mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-08 17:25:53 +03:00
refactoring : rewrite of get_cat_display_name function header
git-svn-id: http://piwigo.org/svn/trunk@572 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
9be5df4afe
commit
c65d35db19
1 changed files with 14 additions and 6 deletions
|
@ -144,12 +144,20 @@ function style_select($default_style, $select_name = "style")
|
||||||
return $style_selected;
|
return $style_selected;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The function get_cat_display_name returns a string containing the list
|
/**
|
||||||
// of upper categories to the root category from the lowest category shown
|
* returns the list of categories as a HTML string
|
||||||
// example : "anniversaires - fete mere 2002 - animaux - erika"
|
*
|
||||||
// You can give this parameters :
|
* categories string returned contains categories as given in the input
|
||||||
// - $style : the style of the span tag for the lowest category,
|
* array $cat_informations. $cat_informations array must be an association
|
||||||
// "font-style:italic;" for example
|
* of {category_id => category_name}. If url input parameter is empty,
|
||||||
|
* returns only the categories name without links.
|
||||||
|
*
|
||||||
|
* @param array cat_informations
|
||||||
|
* @param string separator
|
||||||
|
* @param string url
|
||||||
|
* @param boolean replace_space
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
function get_cat_display_name($cat_informations,
|
function get_cat_display_name($cat_informations,
|
||||||
$separator,
|
$separator,
|
||||||
$url = 'category.php?cat=',
|
$url = 'category.php?cat=',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue