related to #1679 Added breadcrumb to page title (WIP)

This commit is contained in:
Matthieu Leproux 2022-07-05 10:21:09 +02:00
parent 1c8b690dc7
commit 83eeab2ee8
6 changed files with 17 additions and 4 deletions

View file

@ -201,7 +201,7 @@ $sort_orders_checked = array_keys($sort_orders);
$template->assign(array( $template->assign(array(
'ADMIN_PAGE_TITLE' => l10n('Album list management'), 'ADMIN_PAGE_TITLE' => l10n('Album list management'),
'CATEGORIES_NAV'=>$navigation, 'CATEGORIES_NAV'=> preg_replace("# {2,}#"," ",preg_replace("#(\r\n|\n\r|\n|\r)#"," ",$navigation)),
'F_ACTION'=>$form_action, 'F_ACTION'=>$form_action,
'PWG_TOKEN' => get_pwg_token(), 'PWG_TOKEN' => get_pwg_token(),
'sort_orders' => $sort_orders, 'sort_orders' => $sort_orders,

View file

@ -211,7 +211,7 @@ if (!empty($category['id_uppercat']))
$template->assign( $template->assign(
array( array(
'CATEGORIES_NAV' => trim($navigation), 'CATEGORIES_NAV' => preg_replace("# {2,}#"," ",preg_replace("#(\r\n|\n\r|\n|\r)#"," ",$navigation)),
'CAT_ID' => $category['id'], 'CAT_ID' => $category['id'],
'CAT_NAME' => @htmlspecialchars($category['name']), 'CAT_NAME' => @htmlspecialchars($category['name']),
'CAT_COMMENT' => @htmlspecialchars($category['comment']), 'CAT_COMMENT' => @htmlspecialchars($category['comment']),

View file

@ -126,7 +126,7 @@ $navigation = get_cat_display_name_cache(
$template->assign( $template->assign(
array( array(
'CATEGORIES_NAV' => trim($navigation), 'CATEGORIES_NAV' => preg_replace("# {2,}#"," ",preg_replace("#(\r\n|\n\r|\n|\r)#"," ",$navigation)),
'F_ACTION' => $base_url.get_query_string_diff(array()), 'F_ACTION' => $base_url.get_query_string_diff(array()),
) )
); );

View file

@ -38,7 +38,7 @@ categoriesCache.selectize(jQuery('[data-selectize=categories]'), {
}); });
jQuery(document).ready(function() { jQuery(document).ready(function() {
$("h1").append('<span title="{"Numeric identifier"|@translate}"> #{$CAT_ID}</span> <span style="letter-spacing:0">{$CATEGORIES_NAV}</span>'); $("h1").append('<span title="{"Numeric identifier"|@translate}"> <span class="image-id">#{$CAT_ID}</span></span> <span style="letter-spacing:0" class="bc-albums">{$CATEGORIES_NAV}</span>');
jQuery(document).on('click', '.refreshRepresentative', function(e) { jQuery(document).on('click', '.refreshRepresentative', function(e) {
var $this = jQuery(this); var $this = jQuery(this);

View file

@ -1937,6 +1937,16 @@ h1 .image-id {
font-weight: 100; font-weight: 100;
opacity: 0.5; opacity: 0.5;
} }
h1 .bc-albums {
padding: 4px 8px;
font-weight: bold;
text-align: center;
border-radius: 7px;
background-color: #c6c6c6;
font-size: 12px;
position: relative;
top: -3px;
}
h2 { letter-spacing:1px; font-weight:bold; display: none;} h2 { letter-spacing:1px; font-weight:bold; display: none;}
h2:lang(en) { text-transform:capitalize; } h2:lang(en) { text-transform:capitalize; }

View file

@ -45,6 +45,9 @@ h1 {
background-color: #565656; background-color: #565656;
color: #c1c1c1; color: #c1c1c1;
} }
h1 .bc-albums {
background-color: #333;
}
#tabsheet { #tabsheet {
background-color:#565656; background-color:#565656;