Merge branch 'main' into 'main'

refactor(core): intégration des modifications pour l'update vers SMF 2.1.3

See merge request khaganat/web/tpl_khforum!3
This commit is contained in:
yannk 2023-03-05 11:17:08 +01:00
commit 0dc9ef0eef
18 changed files with 130 additions and 95 deletions

View file

@ -264,7 +264,7 @@ function template_main()
// Show the page index... "Pages: [1]". But after all posts. // Show the page index... "Pages: [1]". But after all posts.
echo ' echo '
<div class="pagesection"> <div class="pagesection khbottom">
<div class="pagelinks"> <div class="pagelinks">
<a href="#main_content_section" class="button" id="bot">', $txt['go_up'], '</a> <a href="#main_content_section" class="button" id="bot">', $txt['go_up'], '</a>
', $context['page_index'], ' ', $context['page_index'], '
@ -273,8 +273,8 @@ function template_main()
', $context['menu_separator'], ' ', $context['menu_separator'], '
'; ';
// Next - Prev // Next - Prev
echo '<span class="nextlinks">', $context['previous_next'], '</span> //echo '<span class="nextlinks">', $context['previous_next'], '</span>'
'; ;
// Mobile action - moderation buttons (bottom) // Mobile action - moderation buttons (bottom)
if (!empty($context['normal_buttons'])) if (!empty($context['normal_buttons']))

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @license https://www.simplemachines.org/about/smf/license.php BSD
* *
* @version 2.1.0 * @version 2.1.3
*/ */
// @todo // @todo
@ -83,10 +83,17 @@ function template_error_log()
return; return;
} }
if ($context['has_filter'])
echo '
<div class="infobox">
<strong>', $txt['applying_filter'], ':</strong> ', $context['filter']['entity'], ' ', $context['filter']['value']['html'], '
</div>';
echo ' echo '
<div class="floatright"> <div class="floatright">
<input type="submit" name="removeSelection" value="', $txt['remove_selection'], '" data-confirm="', $txt['remove_selection_confirm'], '" class="button you_sure"> <input type="submit" name="removeSelection" value="', $txt['remove_selection'], '" data-confirm="', $txt['remove_selection_confirm'], '" class="button you_sure">
<input type="submit" name="delall" value="', ($context['has_filter'] ? $txt['remove_filtered_results'] : $txt['remove_all']), '" data-confirm="', ($context['has_filter'] ? $txt['remove_filtered_results_confirm'] : $txt['sure_about_errorlog_remove']), '" class="button you_sure"> <input type="submit" name="delall" value="', ($context['has_filter'] ? $txt['remove_filtered_results'] : $txt['remove_all']), '" data-confirm="', ($context['has_filter'] ? $txt['remove_filtered_results_confirm'] : $txt['sure_about_errorlog_remove']), '" class="button you_sure">
', ($context['has_filter'] ? '<a href="' . $scripturl . '?action=admin;area=logs;sa=errorlog' . ($context['sort_direction'] == 'down' ? ';desc' : '') . '" class="button">' . $txt['clear_filter'] . '</a>' : ''), '
</div> </div>
', $txt['apply_filter_of_type'], ':'; ', $txt['apply_filter_of_type'], ':';
@ -109,12 +116,6 @@ function template_error_log()
</div> </div>
</div>'; </div>';
if ($context['has_filter'])
echo '
<div class="information">
<strong>', $txt['applying_filter'], ':</strong> ', $context['filter']['entity'], ' ', $context['filter']['value']['html'], ' [<a href="', $scripturl, '?action=admin;area=logs;sa=errorlog', $context['sort_direction'] == 'down' ? ';desc' : '', '">', $txt['clear_filter'], '</a>]
</div>';
// We have some errors, must be some mods installed :P // We have some errors, must be some mods installed :P
foreach ($context['errors'] as $error) foreach ($context['errors'] as $error)
{ {
@ -207,7 +208,7 @@ function template_show_file()
<head> <head>
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<title>', $context['file_data']['file'], '</title> <title>', $context['file_data']['file'], '</title>
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
</head> </head>
<body> <body>
<table class="errorfile_table">'; <table class="errorfile_table">';

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<title>', $context['page_title'], '</title> <title>', $context['page_title'], '</title>
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
<script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script> <script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script>
</head> </head>
<body id="help_popup"> <body id="help_popup">
@ -50,7 +50,7 @@ function template_find_members()
<title>', $txt['find_members'], '</title> <title>', $txt['find_members'], '</title>
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
<script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script> <script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script>
<script> <script>
var membersAdded = []; var membersAdded = [];

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<title>', $context['page_title'], '</title> <title>', $context['page_title'], '</title>
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
<script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script> <script src="', $settings['default_theme_url'], '/scripts/script.js', $context['browser_cache'], '"></script>
</head> </head>
<body id="likes_popup"> <body id="likes_popup">

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<head> <head>
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<title>', $context['page_title'], '</title> <title>', $context['page_title'], '</title>
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
</head> </head>
<body> <body>
<div class="cat_bar"> <div class="cat_bar">

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<head> <head>
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<title>', $txt['operation_title'], '</title> <title>', $txt['operation_title'], '</title>
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css();
<link rel="stylesheet" href="', $settings['theme_url'], '/css/admin.css', $context['browser_cache'], '">';
template_javascript(); template_javascript();

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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 // Show the profile button
if ($message['member']['can_view_profile']) if ($message['member']['can_view_profile'])
echo ' echo '
<li><a href="', $message['member']['href'], '" title="' . $txt['view_profile'] . '">', ($settings['use_image_buttons'] ? '<span class="main_icons profile_sm"></span>' : $txt['view_profile']), '</a></li>'; <li><a href="', $message['member']['href'], '" title="' . $txt['view_profile'] . '">', ($settings['use_image_buttons'] ? '<span class="main_icons members"></span>' : $txt['view_profile']), '</a></li>';
// Don't show an icon if they haven't specified a website. // Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website'])) if ($message['member']['website']['url'] != '' && !isset($context['disabled_fields']['website']))

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<label for="notify_send_body">', $txt['notify_alert_timeout'], '</label> <label for="notify_send_body">', $txt['notify_alert_timeout'], '</label>
</dt> </dt>
<dd> <dd>
<input type="number" size="4" id="notify_alert_timeout" name="opt_alert_timeout" min="0" value="', $context['member']['alert_timeout'], '"> <input type="number" size="4" id="notify_alert_timeout" name="opt_alert_timeout" min="0" max="127" value="', $context['member']['alert_timeout'], '">
</dd>'; </dd>';
echo ' 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 size = avatar.alt.substr(3, 2) + " " + avatar.alt.substr(0, 2) + String.fromCharCode(117, 98, 116);
var file = document.getElementById("file"); 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); changeSel(selavatar);
else else
previewExternalAvatar(avatar.src) previewExternalAvatar(avatar.src)

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @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()
<meta charset="', $context['character_set'], '"> <meta charset="', $context['character_set'], '">
<title>', $txt['visual_verification_sound'], '</title> <title>', $txt['visual_verification_sound'], '</title>
<meta name="robots" content="noindex"> <meta name="robots" content="noindex">
<link rel="stylesheet" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css', $context['browser_cache'], '"> ', template_css(), '
<style>'; <style>';
// Just show the help text and a "close window" link. // Just show the help text and a "close window" link.

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @license https://www.simplemachines.org/about/smf/license.php BSD
* *
* @version 2.1.0 * @version 2.1.3
*/ */
/** /**
@ -655,7 +655,7 @@ function template_set_settings()
echo ' echo '
<input type="text"'; <input type="text"';
echo ' name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="', $setting['id'], '" value="', $setting['value'], '"', $setting['type'] == 'number' ? ' size="5"' : (empty($setting['size']) ? ' size="40"' : ' size="' . $setting['size'] . '"'), '> echo ' name="', !empty($setting['default']) ? 'default_' : '', 'options[', $setting['id'], ']" id="options_', $setting['id'], '" value="', $setting['value'], '"', $setting['type'] == 'number' ? '' : (empty($setting['size']) ? ' size="40"' : ' size="' . $setting['size'] . '"'), '>
</dd>'; </dd>';
} }
} }

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @license https://www.simplemachines.org/about/smf/license.php BSD
* *
* @version 2.1.0 * @version 2.1.3
*/ */
/** /**
@ -66,7 +66,7 @@ function template_main()
echo ' echo '
<span class="member', $member['is_hidden'] ? ' hidden' : '', '"> <span class="member', $member['is_hidden'] ? ' hidden' : '', '">
', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . sprintf($txt['view_profile_of_username'], $member['name']) . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . '"') . '>' . $member['name'] . '</a>', ' ', $member['is_guest'] ? $member['name'] : '<a href="' . $member['href'] . '" title="' . sprintf($txt['view_profile_of_username'], $member['name']) . '"' . (empty($member['color']) ? '' : ' style="color: ' . $member['color'] . ';"') . '>' . $member['name'] . '</a>', '
</span>'; </span>';
if (!empty($member['ip'])) if (!empty($member['ip']))

View file

@ -270,15 +270,16 @@ body#help_popup {
#likes li { #likes li {
clear: both; clear: both;
padding: 1px 0; padding: 1px 0;
display: flex;
align-items: center;
} }
#likes .avatar { #likes .avatar {
max-height: 45px; height: 5em;
max-width: 45px; width: 5em;
margin: 0 10px 0 0; margin: 0 10px 0 0;
} }
#likes .avatar, #likes li .like_profile { #likes li .like_profile {
vertical-align: middle; flex: 1 0 auto;
display: inline-block;
} }
#likes li .like_time { #likes li .like_time {
padding: 4px 0; padding: 4px 0;
@ -1139,6 +1140,11 @@ a.button, a.button:hover, .button:focus {
border-bottom: none; border-bottom: none;
} }
html[lang="el-GR"] .button,
html[lang="el-GR"] .quickbuttons > li > a,
html[lang="el-GR"] .inline_mod_check {
text-transform: capitalize;
}
.pagesection .button { .pagesection .button {
color: var(--color4); color: var(--color4);
} }
@ -1188,7 +1194,7 @@ a.button, a.button:hover, .button:focus {
} }
/* Set maximum width limit for content */ /* Set maximum width limit for content */
#top_section .inner_wrap, #wrapper, #footer .inner_wrap { #top_section .inner_wrap, #wrapper, #footer .inner_wrap, #footer {
max-width: 1200px; max-width: 1200px;
margin: 0 auto; margin: 0 auto;
width: 90%; width: 90%;
@ -1509,8 +1515,7 @@ font-size: large;
clear: both; clear: both;
} }
/* The footer with copyright links etc. */ /* The footer with copyright links etc. */
#footer { .footer2 {
margin: 0;
padding: 10px 0; padding: 10px 0;
background: var(--color2); background: var(--color2);
} }
@ -1725,13 +1730,12 @@ font-size: large;
} }
.event_options_left { .event_options_left {
box-sizing: border-box; box-sizing: border-box;
width: 49%; width: 55%;
padding-right: 1em;
min-width: 238px; min-width: 238px;
} }
.event_options_right { .event_options_right {
box-sizing: border-box; box-sizing: border-box;
width: 50%; width: 45%;
min-width: 270px; min-width: 270px;
} }
.event_options_left div, .event_options_left div,
@ -1745,9 +1749,18 @@ font-size: large;
#event_time_input { #event_time_input {
clear: left; clear: left;
} }
#event_time_input input[type="text"] { #event_time_input > div {
width: 100px; display: flex;
display: inline-block; }
#event_time_input input.date_input {
width: 40%;
margin: 2px 0.5ch 0;
flex: 1 1 auto;
}
#event_time_input input.time_input {
width: 13ch;
margin: 2px 0.5ch 0;
flex: 0 1 auto;
} }
#post_event input[type="checkbox"] { #post_event input[type="checkbox"] {
height: auto; height: auto;
@ -3650,6 +3663,7 @@ div#pollmoderation {
#forumposts { #forumposts {
clear: both; clear: both;
margin: 8px 0 0 0; margin: 8px 0 0 0;
margin-bottom: 0.3em;
} }
#forumposts .cat_bar { #forumposts .cat_bar {
@ -4273,6 +4287,7 @@ p.information img {
margin-top: -1px !important; margin-top: -1px !important;
} }
span.member.hidden { span.member.hidden {
display: inline-block;
font-style: italic; font-style: italic;
} }
@ -4869,6 +4884,22 @@ img.theme_thumbnail {
white-space: nowrap; white-space: nowrap;
width: 1px; width: 1px;
} }
/*fuck ?*/
.khbottom .buttonlist {
display:flex;
flex-direction: row-reverse;
}
.khbottom .button_strip_reply {
margin-left: 1em;
font-weight: bold;
}
/*Plugin Theme Changer Remix*/
/* Mode "rien à battre", faut mettre en "bottom" sinon ça passe pas...*/
.changetheme {
position: absolute;
right: 0;
z-index: 2000;
top:0;
}

View file

@ -614,7 +614,9 @@ div.sceditor-group {
} }
.sceditor-insertemoticon img, .sceditor-insertemoticon img,
.sceditor-smileyPopup img { .sceditor-smileyPopup img {
margin: 6px 7px 0 0; margin: 0;
border-left: var(--neutral-mid-color) 1px dotted;
padding: 0 0.3em;
} }
.sceditor-insertemoticon img, .sceditor-insertemoticon img,
div.sceditor-dropdown img, div.sceditor-dropdown img,

View file

@ -7,7 +7,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @license https://www.simplemachines.org/about/smf/license.php BSD
* *
* @version 2.1.2 * @version 2.1.3
*/ */
/* This template is, perhaps, the most important template in the theme. It /* This template is, perhaps, the most important template in the theme. It
@ -216,21 +216,22 @@ echo '<div class="khbb_body">';
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name_html_safe'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a> <a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name_html_safe'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
</h1>'; </h1>';
// Sur quel compte on est co ? Ou invité. // Sur quel compte on est co ? Ou invité.
echo '<div class="khbb_subtitle"> echo '
<div class="khbb_identity" title=""> <div class="khbb_subtitle">
<span class="textmenu">', $txt['hello_guest'], $context['user']['name'], '</span></a> <div class="khbb_identity" title="">
</div> '; <span class="textmenu">', $txt['hello_guest'], $context['user']['name'], '</span></a>
</div> ';
// les slogans ! utilisation des "news" pour cela. // les slogans ! utilisation des "news" pour cela.
// Show a random news item? (or you could pick one from news_lines...) // Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']) && !empty($context['random_news_line'])) if (!empty($settings['enable_news']) && !empty($context['random_news_line']))
echo ' echo '
<div class="news"> <div class="news">
<p>', $context['random_news_line'], '</p> <p>', $context['random_news_line'], '</p>
</div> </div>';
</div>';
echo ' echo '
</div>
</div>'; </div>';
echo ' echo '
<div id="wrapper">'; <div id="wrapper">';
@ -464,30 +465,33 @@ function template_body_below()
'; ';
// Show the footer with copyright, terms and help links. // Show the footer with copyright, terms and help links.
echo ' echo '<div>
<div id="footer"> <div id="footer">
<div class="inner_wrap">'; <div class="footer2">
<div class="inner_wrap">';
echo '
<ul>
<li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' </li>
<li>';
// Insérer barre de recherche rapide quick search
echo template_quicksearch() ;
echo '
</li>
<li class="copyright">', theme_copyright(), '</li>
<li><a href="?action=.xml;type=rss">Flux RSS</a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo ' echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>'; <ul>
<li class="floatright"><a href="', $scripturl, '?action=help">', $txt['help'], '</a> ', (!empty($modSettings['requireAgreement'])) ? '| <a href="' . $scripturl . '?action=agreement">' . $txt['terms_and_rules'] . '</a>' : '', ' </li>
<li>';
// Insérer barre de recherche rapide quick search
echo template_quicksearch() ;
echo '
</li>
<li class="copyright">', theme_copyright(), '</li>
<li><a href="?action=.xml;type=rss">Flux RSS</a></li>
</ul>';
// Show the load time?
if ($context['show_load_time'])
echo '
<p>', sprintf($txt['page_created_full'], $context['load_time'], $context['load_queries']), '</p>';
echo ' echo '
</div>
</div> </div>
<div class="khbiseau_bottom_color"></div>
</div><!-- #footer --> </div><!-- #footer -->
<div class="khbiseau_bottom_color"></div>
</div><!-- #wrapper --> </div><!-- #wrapper -->
'; ';

View file

@ -1,5 +1,5 @@
<?php <?php
// Version: 2.1.2; index // Version: 2.1.3; index
global $forum_copyright, $webmaster_email, $scripturl, $context, $boardurl; global $forum_copyright, $webmaster_email, $scripturl, $context, $boardurl;
// Add for Khbb theme // Add for Khbb theme
@ -27,8 +27,8 @@ $txt['lang_recaptcha'] = 'en';
// Ensure you remember to use uppercase for character set strings. // Ensure you remember to use uppercase for character set strings.
$txt['lang_character_set'] = 'UTF-8'; $txt['lang_character_set'] = 'UTF-8';
// Character set and right to left? // Character set right to left? 0 = ltr; 1 = rtl
$txt['lang_rtl'] = false; $txt['lang_rtl'] = '0';
// Number format. // Number format.
$txt['number_format'] = '1,234.00'; $txt['number_format'] = '1,234.00';

View file

@ -1,5 +1,5 @@
<?php <?php
// Version: 2.1.2; index // Version: 2.1.3; index
global $forum_copyright, $webmaster_email, $scripturl, $context, $boardurl; global $forum_copyright, $webmaster_email, $scripturl, $context, $boardurl;
// Add for Khbb theme // Add for Khbb theme
@ -28,8 +28,8 @@ $txt['lang_recaptcha'] = 'fr';
// Ensure you remember to use uppercase for character set strings. // Ensure you remember to use uppercase for character set strings.
$txt['lang_character_set'] = 'UTF-8'; $txt['lang_character_set'] = 'UTF-8';
// Character set and right to left? // Character set right to left? 0 = ltr; 1 = rtl
$txt['lang_rtl'] = false; $txt['lang_rtl'] = '0';
// Number format. // Number format.
$txt['number_format'] = '1,234.00 '; $txt['number_format'] = '1,234.00 ';

View file

@ -6,7 +6,7 @@
* @copyright 2022 Simple Machines and individual contributors * @copyright 2022 Simple Machines and individual contributors
* @license https://www.simplemachines.org/about/smf/license.php BSD * @license https://www.simplemachines.org/about/smf/license.php BSD
* *
* @version 2.1.0 * @version 2.1.3
*/ */
(function ($) { (function ($) {
@ -775,13 +775,11 @@ sceditor.formats.bbcode.set(
'url', { 'url', {
allowsEmpty: true, allowsEmpty: true,
quoteType: sceditor.BBCodeParser.QuoteType.always, quoteType: sceditor.BBCodeParser.QuoteType.always,
tags: { format(element, content)
a: {
'data-type': ['url']
}
},
format: function (element, content)
{ {
if (element.hasAttribute('data-type') && element.getAttribute('data-type') != 'url')
return content;
return '[url=' + decodeURI(element.href) + ']' + content + '[/url]'; return '[url=' + decodeURI(element.href) + ']' + content + '[/url]';
}, },
html: function (token, attrs, content) html: function (token, attrs, content)
@ -953,7 +951,7 @@ sceditor.formats.bbcode.set(
if (typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0) if (typeof attrs.defaultattr === "undefined" || attrs.defaultattr.length === 0)
attrs.defaultattr = content; attrs.defaultattr = content;
return '<a href="' + smf_scripturl +'?action=profile;u='+ attrs.defaultattr + '" class="mention" data-mention="'+ attrs.defaultattr + '">@'+ content.replace('@','') +'</a>'; return '<a href="' + smf_scripturl +'?action=profile;u='+ attrs.defaultattr + '" class="mention" data-type="mention" data-mention="'+ attrs.defaultattr + '">@'+ content.replace('@', '') +'</a>';
} }
} }
); );

View file

@ -5,7 +5,7 @@ $(function() {
$('.preview').SMFtooltip(); $('.preview').SMFtooltip();
// find all nested linked images and turn off the border // find all nested linked images and turn off the border
$('a.bbc_link img.bbc_img').parent().css('border', '0'); $('a.bbc_link img').parent().css('border', '0');
}); });
// The purpose of this code is to fix the height of overflow: auto blocks, because some browsers can't figure it out for themselves. // The purpose of this code is to fix the height of overflow: auto blocks, because some browsers can't figure it out for themselves.