From fda6081b6289313dcd8d75f0c792991141a46742 Mon Sep 17 00:00:00 2001 From: Zatalyz <41-zatalyz@users.noreply.port.numenaute.org> Date: Sun, 5 Mar 2023 11:17:08 +0100 Subject: [PATCH] =?UTF-8?q?refactor(core):=20int=C3=A9gration=20des=20modi?= =?UTF-8?q?fications=20pour=20l'update=20vers=20SMF=202.1.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khbb/Display.template.php | 6 +-- khbb/Errors.template.php | 17 ++++---- khbb/Help.template.php | 6 +-- khbb/Likes.template.php | 4 +- khbb/ModerationCenter.template.php | 4 +- khbb/Packages.template.php | 5 +-- khbb/PersonalMessage.template.php | 4 +- khbb/Profile.template.php | 6 +-- khbb/Register.template.php | 4 +- khbb/Themes.template.php | 4 +- khbb/Who.template.php | 4 +- khbb/css/index.css | 61 +++++++++++++++++++------- khbb/css/jquery.sceditor.theme.css | 4 +- khbb/index.template.php | 68 +++++++++++++++-------------- khbb/languages/index.english.php | 6 +-- khbb/languages/index.french.php | 6 +-- khbb/scripts/jquery.sceditor.smf.js | 14 +++--- khbb/scripts/theme.js | 2 +- 18 files changed, 130 insertions(+), 95 deletions(-) diff --git a/khbb/Display.template.php b/khbb/Display.template.php index ce653bf..dc51fe4 100644 --- a/khbb/Display.template.php +++ b/khbb/Display.template.php @@ -264,7 +264,7 @@ function template_main() // Show the page index... "Pages: [1]". But after all posts. echo ' -
+
'; - if ($context['has_filter']) - echo ' -
- ', $txt['applying_filter'], ': ', $context['filter']['entity'], ' ', $context['filter']['value']['html'], ' [', $txt['clear_filter'], '] -
'; - // We have some errors, must be some mods installed :P foreach ($context['errors'] as $error) { @@ -207,7 +208,7 @@ function template_show_file() ', $context['file_data']['file'], ' - + ', template_css(), ' '; diff --git a/khbb/Help.template.php b/khbb/Help.template.php index f9ed88d..d9157bb 100644 --- a/khbb/Help.template.php +++ b/khbb/Help.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.0 + * @version 2.1.3 */ /** @@ -24,7 +24,7 @@ function template_popup() ', $context['page_title'], ' - + ', template_css(), ' @@ -50,7 +50,7 @@ function template_find_members() ', $txt['find_members'], ' - + ', template_css(), ' diff --git a/khbb/ModerationCenter.template.php b/khbb/ModerationCenter.template.php index 570b0da..0b3dccc 100644 --- a/khbb/ModerationCenter.template.php +++ b/khbb/ModerationCenter.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.0 + * @version 2.1.3 */ /** @@ -546,7 +546,7 @@ function template_show_notice() ', $context['page_title'], ' - + ', template_css(), '
diff --git a/khbb/Packages.template.php b/khbb/Packages.template.php index 11987ca..3eb129f 100644 --- a/khbb/Packages.template.php +++ b/khbb/Packages.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.0 + * @version 2.1.3 */ /** @@ -1316,8 +1316,7 @@ function template_view_operations() ', $txt['operation_title'], ' - - '; + ', template_css(); template_javascript(); diff --git a/khbb/PersonalMessage.template.php b/khbb/PersonalMessage.template.php index 5503471..976b277 100644 --- a/khbb/PersonalMessage.template.php +++ b/khbb/PersonalMessage.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.2 + * @version 2.1.3 */ /** @@ -422,7 +422,7 @@ function template_single_pm($message) // Show the profile button if ($message['member']['can_view_profile']) echo ' -
  • ', ($settings['use_image_buttons'] ? '' : $txt['view_profile']), '
  • '; +
  • ', ($settings['use_image_buttons'] ? '' : $txt['view_profile']), '
  • '; // Don't show an icon if they haven't specified a website. if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website'])) diff --git a/khbb/Profile.template.php b/khbb/Profile.template.php index d5116dc..bf520d3 100644 --- a/khbb/Profile.template.php +++ b/khbb/Profile.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.2 + * @version 2.1.3 */ /** @@ -1883,7 +1883,7 @@ function template_alert_configuration()
    - +
    '; echo ' @@ -2955,7 +2955,7 @@ function template_profile_avatar_select() var size = avatar.alt.substr(3, 2) + " " + avatar.alt.substr(0, 2) + String.fromCharCode(117, 98, 116); var file = document.getElementById("file"); - if (avatar.src.indexOf("blank.png") > -1) + if (avatar.src.indexOf("blank.png") > -1 || selavatar.indexOf("blank.png") == -1) changeSel(selavatar); else previewExternalAvatar(avatar.src) diff --git a/khbb/Register.template.php b/khbb/Register.template.php index f79be14..f109b56 100644 --- a/khbb/Register.template.php +++ b/khbb/Register.template.php @@ -7,7 +7,7 @@ * @copyright 2022 Simple Machines and individual contributors * @license https://www.simplemachines.org/about/smf/license.php BSD * - * @version 2.1.0 + * @version 2.1.3 */ /** @@ -452,7 +452,7 @@ function template_verification_sound() ', $txt['visual_verification_sound'], ' - + ', template_css(), '