From 83eeab2ee8b3f1dfe397847abf11d774e658c0ff Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 5 Jul 2022 10:21:09 +0200 Subject: [PATCH] related to #1679 Added breadcrumb to page title (WIP) --- admin/cat_list.php | 2 +- admin/cat_modify.php | 2 +- admin/element_set_ranks.php | 2 +- admin/themes/default/template/cat_modify.tpl | 2 +- admin/themes/default/theme.css | 10 ++++++++++ admin/themes/roma/theme.css | 3 +++ 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/admin/cat_list.php b/admin/cat_list.php index 3a2a9da96..3a6747006 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -201,7 +201,7 @@ $sort_orders_checked = array_keys($sort_orders); $template->assign(array( '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, 'PWG_TOKEN' => get_pwg_token(), 'sort_orders' => $sort_orders, diff --git a/admin/cat_modify.php b/admin/cat_modify.php index 79f2d5e5a..261f1c0c6 100644 --- a/admin/cat_modify.php +++ b/admin/cat_modify.php @@ -211,7 +211,7 @@ if (!empty($category['id_uppercat'])) $template->assign( array( - 'CATEGORIES_NAV' => trim($navigation), + 'CATEGORIES_NAV' => preg_replace("# {2,}#"," ",preg_replace("#(\r\n|\n\r|\n|\r)#"," ",$navigation)), 'CAT_ID' => $category['id'], 'CAT_NAME' => @htmlspecialchars($category['name']), 'CAT_COMMENT' => @htmlspecialchars($category['comment']), diff --git a/admin/element_set_ranks.php b/admin/element_set_ranks.php index b52433084..eee02384e 100644 --- a/admin/element_set_ranks.php +++ b/admin/element_set_ranks.php @@ -126,7 +126,7 @@ $navigation = get_cat_display_name_cache( $template->assign( 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()), ) ); diff --git a/admin/themes/default/template/cat_modify.tpl b/admin/themes/default/template/cat_modify.tpl index 08f49d829..9b9b5a3ba 100644 --- a/admin/themes/default/template/cat_modify.tpl +++ b/admin/themes/default/template/cat_modify.tpl @@ -38,7 +38,7 @@ categoriesCache.selectize(jQuery('[data-selectize=categories]'), { }); jQuery(document).ready(function() { - $("h1").append(' #{$CAT_ID} {$CATEGORIES_NAV}'); + $("h1").append(' #{$CAT_ID} {$CATEGORIES_NAV}'); jQuery(document).on('click', '.refreshRepresentative', function(e) { var $this = jQuery(this); diff --git a/admin/themes/default/theme.css b/admin/themes/default/theme.css index a0315c657..fc7a70308 100644 --- a/admin/themes/default/theme.css +++ b/admin/themes/default/theme.css @@ -1937,6 +1937,16 @@ h1 .image-id { font-weight: 100; 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:lang(en) { text-transform:capitalize; } diff --git a/admin/themes/roma/theme.css b/admin/themes/roma/theme.css index b1d14c45d..5d7614bfa 100644 --- a/admin/themes/roma/theme.css +++ b/admin/themes/roma/theme.css @@ -45,6 +45,9 @@ h1 { background-color: #565656; color: #c1c1c1; } +h1 .bc-albums { + background-color: #333; +} #tabsheet { background-color:#565656;