From 8db346f62ba7c7bf555cbbc5f78b18539f277018 Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Thu, 25 Jul 2024 14:29:53 +0200 Subject: [PATCH] Messages index - Add emphasis on the "reply" button --- Display.template.php | 25 ++++++++++++++++++++----- css/index.css | 3 ++- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/Display.template.php b/Display.template.php index ddd3a35..9365e3a 100644 --- a/Display.template.php +++ b/Display.template.php @@ -39,13 +39,16 @@ function template_main() '; // Show the page index... "Pages: [1]". + // Exclude the "reply" button. + $buttons_normal = $context['normal_buttons']; + unset($buttons_normal['reply']); echo '
- ', template_button_strip($context['normal_buttons'], 'right'), ' + ', template_button_strip($buttons_normal, 'right'), ' ', $context['menu_separator'], ' '; @@ -262,18 +265,18 @@ function template_main()
'; // Show the page index... "Pages: [1]". But after all posts. + // Exclude the "reply" button. + $buttons_normal = $context['normal_buttons']; + unset($buttons_normal['reply']); echo '
- ', template_button_strip($context['normal_buttons'], 'right'), ' + ', template_button_strip($buttons_normal, 'right'), ' ', $context['menu_separator'], ' '; - // Next - Prev - //echo '', $context['previous_next'], '' - ; // Mobile action - moderation buttons (bottom) if (!empty($context['normal_buttons'])) @@ -286,6 +289,18 @@ function template_main() echo '
'; + // Put the "reply" button in its own strip. + $buttons_reply = [ + 'reply' => $context['normal_buttons']['reply'], + ]; + echo ' +
+
+ ', template_button_strip($buttons_reply, 'right'), ' + ', $context['menu_separator'], ' +
+
'; + // Show the lower breadcrumbs. theme_linktree(); diff --git a/css/index.css b/css/index.css index 22a806d..fc00c7b 100644 --- a/css/index.css +++ b/css/index.css @@ -1143,7 +1143,8 @@ generic_menu .dropmenu .subsections ul li a { outline: none; padding: 0 0.4em; } -.button_strip_new_topic { +.button_strip_new_topic, +.button_strip_reply { font-weight: 700; font-family: var(--font-emphasis); }