Messages index - Add emphasis on the "reply" button

This commit is contained in:
Antoine Le Gonidec 2024-07-25 14:29:53 +02:00
parent 2a7b7bfe96
commit 8db346f62b
Signed by: vv221
GPG key ID: 636B78F91CEB80D8
2 changed files with 22 additions and 6 deletions

View file

@ -39,13 +39,16 @@ function template_main()
</div>';
// Show the page index... "Pages: [1]".
// Exclude the "reply" button.
$buttons_normal = $context['normal_buttons'];
unset($buttons_normal['reply']);
echo '
<div class="pagesection">
<div class="pagelinks">
<a href="#bot" class="button">', $txt['go_down'], '</a>
', $context['page_index'], '
</div>
', template_button_strip($context['normal_buttons'], 'right'), '
', template_button_strip($buttons_normal, 'right'), '
', $context['menu_separator'], '
';
@ -262,18 +265,18 @@ function template_main()
</div><!-- #forumposts -->';
// Show the page index... "Pages: [1]". But after all posts.
// Exclude the "reply" button.
$buttons_normal = $context['normal_buttons'];
unset($buttons_normal['reply']);
echo '
<div class="pagesection khbottom">
<div class="pagelinks">
<a href="#main_content_section" class="button" id="bot">', $txt['go_up'], '</a>
', $context['page_index'], '
</div>
', template_button_strip($context['normal_buttons'], 'right'), '
', template_button_strip($buttons_normal, 'right'), '
', $context['menu_separator'], '
';
// Next - Prev
//echo '<span class="nextlinks">', $context['previous_next'], '</span>'
;
// Mobile action - moderation buttons (bottom)
if (!empty($context['normal_buttons']))
@ -286,6 +289,18 @@ function template_main()
echo '
</div>';
// Put the "reply" button in its own strip.
$buttons_reply = [
'reply' => $context['normal_buttons']['reply'],
];
echo '
<div class="pagesection khbottom">
<div style="margin-left: auto;">
', template_button_strip($buttons_reply, 'right'), '
', $context['menu_separator'], '
</div>
</div>';
// Show the lower breadcrumbs.
theme_linktree();

View file

@ -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);
}