diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index cc37ede34e..3dc40a907d 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -953,11 +953,19 @@ index_body_forumlist_body_after * Since: 3.1.1 * Purpose: Add content after the forum list body on the index page +index_body_forumlist_body_before +=== +* Locations: + + styles/prosilver/template/index_body.html +* Since: 4.0.0-a1 +* Purpose: Add content before the forum list body on the index page + index_body_markforums_after === * Locations: + styles/prosilver/template/index_body.html * Since: 3.1.0-RC2 +* Deprecated: 4.0.0-a1 Use index_body_forumlist_body_before instead * Purpose: Add content after the mark-read link above the forum list on Board index index_body_markforums_before @@ -965,6 +973,7 @@ index_body_markforums_before * Locations: + styles/prosilver/template/index_body.html * Since: 3.1.0-RC2 +* Deprecated: 4.0.0-a1 Use index_body_forumlist_body_before instead * Purpose: Add content before the mark-read link above the forum list on Board index index_body_stat_blocks_after diff --git a/phpBB/phpbb/event/md_exporter.php b/phpBB/phpbb/event/md_exporter.php index 04e5f91ca2..d89ac512f9 100644 --- a/phpBB/phpbb/event/md_exporter.php +++ b/phpBB/phpbb/event/md_exporter.php @@ -169,7 +169,7 @@ class md_exporter list($file_details, $details) = explode("\n* Since: ", $details, 2); - $changed_versions = array(); + $changed_versions = []; if (strpos($details, "\n* Changed: ") !== false) { list($since, $details) = explode("\n* Changed: ", $details, 2); @@ -184,7 +184,11 @@ class md_exporter else { list($since, $description) = explode("\n* Purpose: ", $details, 2); - $changed_versions = array(); + } + + if (str_contains($since, "\n* Deprecated: ")) + { + list($since, $deprecated) = explode("\n* Deprecated: ", $since, 2); } $files = $this->validate_file_list($file_details); @@ -225,6 +229,7 @@ class md_exporter 'event' => $this->current_event, 'files' => $files, 'since' => $since, + 'deprecated' => $deprecated ?? '', 'changed' => $changes, 'description' => $description, ); @@ -451,7 +456,7 @@ class md_exporter { if (!$this->validate_version($since)) { - throw new \LogicException("Invalid since information found for event '{$this->current_event}'"); + throw new \LogicException("Invalid since information found for event '{$this->current_event}': {$since}"); } return $since; diff --git a/phpBB/styles/prosilver/template/ajax.js b/phpBB/styles/prosilver/template/ajax.js index 3fb6a88a87..93e8fcef80 100644 --- a/phpBB/styles/prosilver/template/ajax.js +++ b/phpBB/styles/prosilver/template/ajax.js @@ -392,6 +392,28 @@ $('#member_search').click(function () { return false; }); +/** + * Show to top button if available on page + */ +const $scrollTopButton = $('.to-top-button'); + +if ($scrollTopButton.length) { + // Show or hide the button based on scroll position + $(window).scroll(function () { + if ($(this).scrollTop() > 300) { + $scrollTopButton.fadeIn(); // Fade in the button + } else { + $scrollTopButton.fadeOut(); // Fade out the button + } + }); + + // Scroll smoothly to the top when the button is clicked + $scrollTopButton.click(function (e) { + e.preventDefault(); // Prevent the default anchor link behavior + $('html, body').animate({scrollTop: 0}, 500); // Smooth scroll to top + }); +} + /** * Automatically resize textarea */ diff --git a/phpBB/styles/prosilver/template/faq_body.html b/phpBB/styles/prosilver/template/faq_body.html index 4f925fa6a2..542e894c61 100644 --- a/phpBB/styles/prosilver/template/faq_body.html +++ b/phpBB/styles/prosilver/template/faq_body.html @@ -35,9 +35,6 @@
{faq_block.faq_row.FAQ_QUESTION}
{faq_block.faq_row.FAQ_ANSWER}
- - {{ Icon('font', 'circle-chevron-up', lang('BACK_TO_TOP'), false) }} -
@@ -46,5 +43,11 @@ +
+ + {{ Icon('font', 'chevron-up', '', false) }} + +
+ diff --git a/phpBB/styles/prosilver/template/index_body.html b/phpBB/styles/prosilver/template/index_body.html index c2102faddd..978c5dd2f3 100644 --- a/phpBB/styles/prosilver/template/index_body.html +++ b/phpBB/styles/prosilver/template/index_body.html @@ -1,15 +1,8 @@ -

{LAST_VISIT_DATE}{CURRENT_TIME}

-

{CURRENT_TIME}

- - -
- {L_MARK_FORUMS_READ} -
- + diff --git a/phpBB/styles/prosilver/template/navbar_header.html b/phpBB/styles/prosilver/template/navbar_header.html index 8269f27fa6..702a018765 100644 --- a/phpBB/styles/prosilver/template/navbar_header.html +++ b/phpBB/styles/prosilver/template/navbar_header.html @@ -44,6 +44,13 @@ {{ Icon('font', 'file-lines', lang('SEARCH_ACTIVE_TOPICS'), false, 'far icon icon-blue') }} + {% if U_MARK_FORUMS %} +
  • + + {{ Icon('font', 'book-open-reader', lang('MARK_FORUMS_READ'), false) }} + +
  • + {% endif %}
  • @@ -160,7 +167,7 @@ {% if S_DISPLAY_PM %}
  • - {{ Icon('font', 'inbox', lang('PRIVATE_MESSAGES'), false) }} {PRIVATE_MESSAGE_COUNT} + {{ Icon('font', 'inbox', lang('PRIVATE_MESSAGES'), true) }} {PRIVATE_MESSAGE_COUNT}
  • {% endif %} @@ -168,7 +175,7 @@ {% if S_NOTIFICATIONS_DISPLAY %}