mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 04:39:56 +03:00
- modification : major simplification of admin.php. Titles are managed by
included page, localized items are managed directly in the template. - new : sub template admin/double_select is included in templates admin/cat_options, admin/user_perm and admin/group_perm. I haven't been able to use it in admin/picture_modify because it seems impossible to have two instance of the same sub-template without interfering. - modification : bug 99, in profile manager, no auto submit when changing language (useless and generate accessibility problem). - improvement : HTML semantically correct for administration menu, simpler syntax, less tags, correct tags (dl/dt/dd instead of div/div). - modification : number of waiting elements and unvalidated comments are displayed in admin/intro instead of administration menu (with a link to the dedicated pages). - deletion : no link to profile from admin/user_list anymore (no need). git-svn-id: http://piwigo.org/svn/trunk@817 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
de22732f93
commit
20f0541697
34 changed files with 517 additions and 508 deletions
|
@ -192,7 +192,7 @@ function language_select($default, $select_name = "language")
|
|||
{
|
||||
$available_lang = get_languages();
|
||||
|
||||
$lang_select = '<select name="' . $select_name . '" onchange="this.form.submit()">';
|
||||
$lang_select = '<select name="' . $select_name . '">';
|
||||
foreach ($available_lang as $code => $displayname)
|
||||
{
|
||||
$selected = ( strtolower($default) == strtolower($code) ) ? ' selected="selected"' : '';
|
||||
|
@ -449,4 +449,12 @@ function parse_comment_content($content)
|
|||
|
||||
return $content;
|
||||
}
|
||||
|
||||
function get_cat_display_name_from_id($cat_id,
|
||||
$url = 'category.php?cat=',
|
||||
$replace_space = true)
|
||||
{
|
||||
$cat_info = get_cat_info($cat_id);
|
||||
get_cat_display_name($cat_info['id'], $url, $replace_space);
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue