Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
c5300fa
Initial theme upload
TwitchisMental Feb 11, 2024
1289a9d
Add new form grids
jdarwood007 Apr 28, 2024
0229324
Adding font awesome for real this time
live627 Feb 20, 2024
48ab63c
fontawesome helptext
DiegoAndresCortes Dec 5, 2023
25d180d
Add files via upload
live627 Dec 7, 2023
817c484
Improve popup
live627 Feb 20, 2024
7893406
select login container, not login icon
live627 Dec 8, 2023
7d2ee00
make unread links have the same as menu buttons
live627 Dec 8, 2023
d9c8846
Delete Themes/default/scripts/editor.js
live627 Dec 9, 2023
44aa141
Update index.css
live627 Dec 9, 2023
6c446ed
Update Theme.php
live627 Dec 9, 2023
898a4a3
scrollabble
live627 Dec 10, 2023
a56cb37
no more eval
live627 Feb 1, 2024
2ae572a
move variables to a separate file
live627 Dec 11, 2023
7ba4c73
code tag changes
live627 Sep 24, 2023
4250e41
extract poll js
live627 Feb 20, 2024
4357586
nuke tabindex
live627 Feb 20, 2024
8536529
Disable forms on submit using the new `inert` HTML property
live627 Feb 20, 2024
a55d303
Update quick modify to support Ctrl+Enter
live627 Feb 20, 2024
5c8746b
css rev
DiegoAndresCortes Dec 29, 2023
a6305d4
move quicksearch
DiegoAndresCortes Dec 29, 2023
2c9cdbf
load icons.css and variables.css
DiegoAndresCortes Dec 29, 2023
0521c79
responsive css minor changes
DiegoAndresCortes Dec 29, 2023
462a641
layout tweaks
DiegoAndresCortes Dec 29, 2023
bf32d85
print top_info once
live627 Feb 20, 2024
d5599e2
generic notification popups
DiegoAndresCortes Dec 29, 2023
a385fc2
move toggle outside header tags
live627 Feb 20, 2024
2c968f7
tweaks to mobile menu action
live627 Feb 20, 2024
ff4a72a
more layout changes
DiegoAndresCortes Jan 7, 2024
9cdc960
buttonlist initial 'rework'
DiegoAndresCortes Jan 7, 2024
eb337ca
update slider
DiegoAndresCortes Jan 8, 2024
7c44a75
pagesection order
DiegoAndresCortes Jan 9, 2024
47c81c2
quickbuttons
DiegoAndresCortes Jan 9, 2024
63caca5
remove information class from display_head
DiegoAndresCortes Jan 10, 2024
3b910d9
change report icon
DiegoAndresCortes Jan 10, 2024
b79646a
infocenter indent and cleanup
DiegoAndresCortes Jan 10, 2024
607d665
calendar css and small tweaks
DiegoAndresCortes Jan 15, 2024
3e0ea5a
more miscellaneous changes/fixes
DiegoAndresCortes Jan 15, 2024
f6de6b0
icons css file rev 1
DiegoAndresCortes Jan 15, 2024
5e8cbe7
admin css rev 1
DiegoAndresCortes Jan 15, 2024
cf77c4b
tidy up variables file
DiegoAndresCortes Jan 15, 2024
4ec2f64
reset specificity, profilelinks vars and fixes
DiegoAndresCortes Jan 16, 2024
398a352
no overflow in jump_to_select
DiegoAndresCortes Jan 30, 2024
ab4a59a
Change calendar 'Location' field to input box
GL700Wing Feb 21, 2024
47de41a
fix stats panel
DiegoAndresCortes Feb 1, 2024
2e7f2fe
fix headings
DiegoAndresCortes Feb 1, 2024
75819a2
fix markup/html issues
DiegoAndresCortes Feb 11, 2024
a05397c
other minor fixes
DiegoAndresCortes Feb 11, 2024
87e553d
use avatar height as baseline for notis
DiegoAndresCortes Feb 12, 2024
bf72593
extract profile css and js
live627 Feb 29, 2024
5251b52
popup_container and generic menus
DiegoAndresCortes Feb 29, 2024
308d4f2
Update Recent.template.php
dragomano Feb 29, 2024
84a359d
Basic light/dark mode selected from system preferences
live627 Mar 1, 2024
c9eb2ed
A big blob of native js to replace jq
live627 Mar 9, 2024
94383a7
Rewrite our editor integration
live627 Mar 14, 2024
223ad40
fixes
DiegoAndresCortes Mar 9, 2024
7db907a
remove padding and margins from variables
DiegoAndresCortes Mar 9, 2024
a51a02b
decouple postbit css
DiegoAndresCortes Mar 10, 2024
e2770db
expand and select fix
DiegoAndresCortes Mar 10, 2024
2c9a468
use same styles/markup for item lists
DiegoAndresCortes Mar 10, 2024
e23aa36
revamp variants and dark mode
DiegoAndresCortes Mar 11, 2024
95036d6
additional fixes
DiegoAndresCortes Mar 11, 2024
bf0bbcc
use correct method for time
DiegoAndresCortes Mar 11, 2024
f1464a9
variant and color mode fixes
DiegoAndresCortes Mar 11, 2024
1a10d9c
style and color fixes
DiegoAndresCortes Mar 11, 2024
452badd
update user option for variant or color mode when switching
DiegoAndresCortes Mar 12, 2024
4c7fe4f
fix search layout
DiegoAndresCortes Mar 13, 2024
96dff19
dark mode colors
DiegoAndresCortes Mar 13, 2024
c99d487
calendar and date fixes
DiegoAndresCortes Mar 22, 2024
09d0a9d
sceditor css vars
DiegoAndresCortes Apr 3, 2024
29e001a
timepicker css
DiegoAndresCortes Apr 3, 2024
eee645d
rtl more cleanup
DiegoAndresCortes Apr 3, 2024
89f7501
random news, newsfader fix, slogan and user_panel alignment
DiegoAndresCortes Apr 14, 2024
8d0c3f1
tweak info_center markup and css
DiegoAndresCortes Apr 14, 2024
6914adf
genericmenu fixes
DiegoAndresCortes Apr 15, 2024
41a9c96
word-break for signatures
DiegoAndresCortes Apr 25, 2024
9899f7c
fix buttonlist dropdown and remove bloat
DiegoAndresCortes Apr 25, 2024
ace504d
redesign report selection form
live627 Apr 30, 2024
a757f1a
Nothing to see here
live627 Sep 18, 2024
4183105
you killing me :P
live627 Mar 1, 2025
fc6294b
simplify menu a tad
live627 Sep 5, 2024
ec9599b
formatting, tweaks + css fixes
DiegoAndresCortes Oct 12, 2024
f051c91
board and topic layout
DiegoAndresCortes Oct 12, 2024
485f9b7
postbit and poster layout
DiegoAndresCortes Oct 12, 2024
d2026c2
tidy up attachments css and use css variables
DiegoAndresCortes Oct 12, 2024
1cb587f
icons cleanup
DiegoAndresCortes Oct 12, 2024
fb11687
admin layout tweaks
DiegoAndresCortes Oct 12, 2024
c8661d0
replace wrapper id selectors with a generic wrapper container selector
DiegoAndresCortes Oct 12, 2024
f0a0678
calendar and events css tidy up
DiegoAndresCortes Oct 12, 2024
67d1110
responsive css tidy up, and change breakpoints
DiegoAndresCortes Oct 12, 2024
2be5143
fix buttonlist dropmenu items
DiegoAndresCortes Oct 12, 2024
56d0554
rewrite atwho in plain JS
live627 Dec 8, 2024
0dc1508
move more js to dedicated files
live627 Dec 14, 2024
2619312
topic modify plugin more extensible
live627 Dec 17, 2024
12e6d5c
add structured data to linktree
live627 Dec 23, 2024
2723406
a stash of editor plugins
live627 Jan 26, 2025
288e88e
break out board list and topic list
live627 Jan 26, 2025
bb8acc1
support attributes in xml data
live627 Feb 25, 2025
24bbbad
Utils::$context['additional_options']
live627 Feb 26, 2025
8461169
messageindex grid from array
live627 Mar 6, 2025
c026e02
Update Languages/en_US/ManageMaintenance.php
live627 Apr 3, 2025
80f4c30
Update Languages/en_US/ManageMaintenance.php
live627 Apr 3, 2025
be1a272
Delete Themes/default/scripts/sceditor.plugins.quote-selected.js
live627 Apr 3, 2025
51fb719
Update Languages/en_US/ManageMaintenance.php
live627 Apr 3, 2025
00c6df3
better year range
live627 Apr 4, 2025
410c853
Accessibility improvements
live627 Apr 4, 2025
10c00f2
remove debugging lefttover
live627 Apr 4, 2025
12a43e5
Update Themes/default/webfonts/index.php
live627 Apr 5, 2025
107505a
Merge remote-tracking branch 'SimpleMachines/release-3.0' into theme
live627 Apr 7, 2025
6a73f00
Apply suggestions from code review
live627 Apr 22, 2025
b63d899
introduce integrate_sceditor_locale
live627 Apr 22, 2025
365f105
use new api for editortxt
live627 Apr 22, 2025
23c09ff
fixes for bbcode definitions in editor
live627 Apr 22, 2025
0ec51cf
partial revert of 23c09ff67251d96d045ee21b8ca59424c7e62187; see https…
live627 Apr 28, 2025
6793e49
Merge remote-tracking branch 'SimpleMachines/release-3.0' into theme
live627 Apr 28, 2025
c21c21f
Merge remote-tracking branch 'SimpleMachines/release-3.0' into theme
live627 Jun 26, 2025
526628f
fix calls
live627 Jul 28, 2025
86c6207
restore selection when a toolbar button is pressed
live627 Jul 28, 2025
a302c9d
Merge remote-tracking branch 'SimpleMachines/release-3.0' into theme
live627 Aug 25, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Languages/en_US/Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,21 @@
$editortxt['font_name'] = 'Font name';
$editortxt['font_size'] = 'Font size';
$editortxt['font_color'] = 'Font color';
$editortxt['black'] = 'Black';
$editortxt['red'] = 'Red';
$editortxt['yellow'] = 'Yellow';
$editortxt['pink'] = 'Pink';
$editortxt['green'] = 'Green';
$editortxt['orange'] = 'Orange';
$editortxt['purple'] = 'Purple';
$editortxt['blue'] = 'Blue';
$editortxt['beige'] = 'Beige';
$editortxt['brown'] = 'Brown';
$editortxt['teal'] = 'Teal';
$editortxt['navy'] = 'Navy';
$editortxt['maroon'] = 'Maroon';
$editortxt['lime_green'] = 'Lime Green';
$editortxt['white'] = 'White';
$editortxt['remove_formatting'] = 'Remove formatting';
$editortxt['cut'] = 'Cut';
$editortxt['browser_no_cut'] = 'Your browser does not allow the cut command. Please use the keyboard shortcut Ctrl/Cmd-X';
Expand Down
4 changes: 3 additions & 1 deletion Languages/en_US/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
$txt['page'] = 'Page';
$txt['prev'] = 'Previous page';
$txt['next'] = 'Next page';
$txt['breadcrumb'] = 'Breadcrumb';

$txt['page_title_number'] = '{title} - Page {pagenum, number, integer}';

Expand Down Expand Up @@ -307,7 +308,8 @@
$txt['reply_quote'] = 'Reply with quote';
$txt['reply'] = 'Reply';
$txt['reply_noun'] = 'Reply';
$txt['reply_number'] = 'Reply #{0, number} - ';
$txt['reply_number'] = 'Reply #{0, number}';
$txt['reply_number_sr'] = '<span class="visually_hidden">Reply</span> #{0, number}';
$txt['approve'] = 'Approve';
$txt['unapprove'] = 'Unapprove';
$txt['approve_all'] = 'approve all';
Expand Down
1 change: 1 addition & 0 deletions Languages/en_US/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
$helptxt['enable_ajax_alerts'] = 'This option allows your members to receive AJAX notifications. This means that members do not need to refresh the page to get new notifications.<br><strong>NOTE:</strong> This option might cause a severe load at your server with many users online.';
$helptxt['alerts_auto_purge'] = 'Once an alert has been read, it is rarely needed again. For performance reasons, it is a good idea to automatically delete them after a while.';
$helptxt['jquery_source'] = 'This will determine the source used to load the jQuery Library. <em>Google CDN, jQuery CDN</em> and <em>Microsoft CDN</em> will load the jQuery library from those respective CDN networks. <em>Local</em> will only use the local source. <em>Custom</em> allows you to specify a custom URL for the library.';
$helptxt['fontawesome_source'] = 'This will determine the source used to load the Font Awesome Library. <em>Cloudflare CDN</em>, and <em>Font Awesome CDN</em> will load the Font Awesome library from those respective CDN networks. <em>Local</em> will only use the local source. <em>Custom</em> allows you to specify a custom URL for the library.';
$helptxt['compactTopicPagesEnable'] = 'This will just show a selection of the number of pages.<br><em>Example:</em>
&quot;3&quot; to display: 1 ... 4 [5] 6 ... 9 <br>
&quot;5&quot; to display: 1 ... 3 4 [5] 6 7 ... 9';
Expand Down
28 changes: 13 additions & 15 deletions Languages/en_US/ManageMaintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
$txt['database_optimize_attempt'] = 'Attempting to optimize your database...';
$txt['database_optimizing'] = 'Optimizing {0}... {1} KB optimized.';
$txt['database_already_optimized'] = 'All of the tables were already optimized.';
$txt['database_opimize_unneeded'] = 'It was not necessary to optimize any tables.';
$txt['database_opimize_unneeded'] = 'No tables need to be optimized.';
$txt['database_optimized'] = ' table(s) optimized.';
$txt['database_no_id'] = 'has a non-existent member ID';

Expand Down Expand Up @@ -162,16 +162,14 @@

$txt['maintain_recount'] = 'Recount all forum totals and statistics';
$txt['maintain_recount_info'] = 'Should the total replies of a topic or the number of PMs in your inbox be incorrect: this function will recount all saved counts and statistics for you.';
$txt['maintain_errors'] = 'Find and repair any errors';
$txt['maintain_errors_info'] = 'If, for example, posts or topics are missing after a server crash, this function may help in finding them again.';
$txt['maintain_logs'] = 'Empty out unimportant logs';
$txt['maintain_logs_info'] = 'This function will empty out all unimportant logs. This should be avoided unless something is wrong, but it does not hurt anything.';
$txt['maintain_cache'] = 'Empty SMF’s cache';
$txt['maintain_cache_info'] = 'This function will empty out the cache should you need it to be cleared.';
$txt['maintain_optimize'] = 'Optimize all tables';
$txt['maintain_optimize_info'] = 'This task allows you to optimize all tables. This will get rid of overhead, effectively making the tables smaller in size and your forum faster.';
$txt['maintain_repair'] = 'Find and repair any errors';
$txt['maintain_repair_info'] = 'Try to find and fix any errors that may prevent posts or topics from showinng up or being searchable. This should be run afer a forum conversion.';
$txt['maintain_logs'] = 'Clear logs';
$txt['maintain_logs_info'] = 'Clear out all information-related logs, such as the error log. This should be avoided unless something is wrong, and will not adversely affect forum operations';
$txt['maintain_cleancache'] = 'Empty SMF’s cache';
$txt['maintain_cleancache_info'] = 'Empty out the cache should you need it to be cleared.';
$txt['maintain_version'] = 'Check all files against current versions';
$txt['maintain_version_info'] = 'This maintenance task allows you to do a detailed version check of all forum files against the official list of latest versions.';
$txt['maintain_version_info'] = 'Runs a detailed version check of all forum files against the official list of latest versions and displays the results.';
$txt['maintain_rebuild_settings'] = 'Rebuild Settings.php';
$txt['maintain_rebuild_settings_info'] = 'This task reconstructs your Settings.php file. It does not change the values stored in the file. Instead, it cleans up and reformats your Settings.php file to a pristine version.';
$txt['maintain_run_now'] = 'Run task now';
Expand All @@ -183,7 +181,7 @@
$txt['maintain_old_nothing_else'] = 'Any sort of topic.';
$txt['maintain_old_are_moved'] = 'Moved/merged topic notices.';
$txt['maintain_old_are_locked'] = 'Locked.';
$txt['maintain_old_are_not_stickied'] = 'But do not count stickied topics.';
$txt['maintain_old_are_not_stickied'] = 'Exclude sticky topics.';
$txt['maintain_old_all'] = 'All boards (click to select specific boards)';
$txt['maintain_old_choose'] = 'Specific boards (click to select all)';
$txt['maintain_old_remove'] = 'Remove now';
Expand All @@ -207,10 +205,10 @@
$txt['mediumtext_introduction'] = 'The default messages table can contain posts up to a size of 65535 characters, in order be able to store bigger texts the column must be converted to "MEDIUMTEXT". This operation is not reversible.';
$txt['body_checking_introduction'] = 'This function will convert the column of your database that contains the text of the messages into a "TEXT" format (currently is "MEDIUMTEXT"). This operation will allow to slightly reduce the amount of space occupied by each message (1 byte per message). If any message stored into the database is longer than 65535 characters it will be truncated and part of the text will be lost.';

$txt['entity_convert_title'] = 'Convert HTML-entities to UTF-8 characters';
$txt['entity_convert_only_utf8'] = 'The database needs to be in UTF-8 format before HTML-entities can be converted to UTF-8';
$txt['entity_convert_introduction'] = 'This function will convert all characters that are stored in the database as HTML-entities to UTF-8 characters. This is especially useful when you have just converted your forum from a character set like ISO-8859-1 while non-latin characters were used on the forum. The browser then sends all characters as HTML-entities. For example, the HTML-entity &amp;#945; represents the greek letter &#945; (alpha). Converting entities to UTF-8 will improve searching and sorting of text and reduce storage size.';
$txt['entity_convert_proceed'] = 'Proceed';
$txt['maintain_convertentities'] = 'Convert HTML-entities to UTF-8 characters';
$txt['maintain_convertentities_only_utf8'] = 'The database needs to be in UTF-8 format before HTML-entities can be converted to UTF-8';
$txt['maintain_convertentities_info'] = 'This function will convert all characters that are stored in the database as HTML-entities to UTF-8 characters. This is especially useful when you have just converted your forum from a character set like ISO-8859-1 while non-latin characters were used on the forum. The browser then sends all characters as HTML-entities. For example, the HTML-entity &amp;#945; represents the greek letter &#945; (alpha). Converting entities to UTF-8 will improve searching and sorting of text and reduce storage size.';
$txt['maintain_convertentities_proceed'] = 'Proceed';

// Move topics out.
$txt['move_topics_maintenance'] = 'Move Topics';
Expand Down
14 changes: 9 additions & 5 deletions Languages/en_US/ManageSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,16 @@
$txt['alerts_auto_purge_0'] = 'Never';
$txt['alerts_per_page'] = 'Alerts Per Page';
$txt['jquery_source'] = 'Source for the jQuery Library';
$txt['jquery_custom_label'] = 'Custom';
$txt['jquery_custom'] = 'Custom URL to the jQuery Library';
$txt['jquery_local'] = 'Local';
$txt['jquery_google_cdn'] = 'Google CDN';
$txt['jquery_jquery_cdn'] = 'jQuery CDN';
$txt['jquery_microsoft_cdn'] = 'Microsoft CDN';
$txt['fontawesome_source'] = 'Source for the FontAwesome Library';
$txt['fontawesome_custom'] = 'Custom URL to the FontAwesome Library';
$txt['cdn_custom_label'] = 'Custom';
$txt['local_cdn'] = 'Local';
$txt['google_cdn'] = 'Google CDN';
$txt['jquery_cdn'] = 'jQuery CDN';
$txt['microsoft_cdn'] = 'Microsoft CDN';
$txt['cloudflare_cdn'] = 'Cloudflare CDN';
$txt['fontawesome_cdn'] = 'FontAwesome CDN';
$txt['minimize_files'] = 'Minimize CSS and JavaScript files';
$txt['queryless_urls'] = 'Use friendly URLs';
$txt['queryless_urls_note'] = 'Supported on Apache, Lighttpd, and LiteSpeed only';
Expand Down
2 changes: 2 additions & 0 deletions Languages/en_US/Profile.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@
$txt['theme_opt_posting'] = 'Posting';
$txt['theme_opt_moderation'] = 'Moderation';
$txt['theme_opt_personal_messages'] = 'Personal Messages';
$txt['theme_opt_colormode'] = 'Theme Color Mode';
$txt['theme_opt_variant'] = 'Theme Variant';

$txt['export_profile_data'] = 'Download profile data';
$txt['export_profile_data_desc'] = 'This section allows you to export a copy of your forum profile data to a downloadable file, optionally including your posts and personal messages.<br>Please note:<ul class="bbc_list">{list}</ul>';
Expand Down
10 changes: 10 additions & 0 deletions Languages/en_US/Themes.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

$txt['theme_url_config'] = 'Theme URLs and Configuration';
$txt['theme_variants'] = 'Theme Variants';
$txt['theme_colormodes'] = 'Theme Color Modes';
$txt['theme_options'] = 'Theme Options and Preferences';
$txt['actual_theme_name'] = 'This theme’s name: ';
$txt['actual_theme_dir'] = 'This theme’s directory: ';
Expand All @@ -73,6 +74,7 @@
$txt['current_theme_style'] = 'This theme’s style: ';

$txt['theme_variants_default'] = 'Default theme variant';
$txt['variant_default'] = 'Default';
$txt['theme_variants_user_disable'] = 'Disable user variant selection';

$txt['site_slogan'] = 'Site slogan';
Expand Down Expand Up @@ -164,3 +166,11 @@
// Open Graph
$txt['og_image'] = 'Open Graph image';
$txt['og_image_desc'] = 'Suggested size: 175x175px. <a href="https://ogp.me/" target="_blank" class="bbc_link">Open Graph</a> is used for social media sharing.';

// Theme Mode (dark, light, system, etc)
$txt['theme_pick_colormode'] = 'Select Color Mode';
$txt['theme_colormode_default'] = 'Default color mode';
$txt['theme_colormode_user_disable'] = 'Disable user color mode selection';
$txt['colormode_light'] = 'Light';
$txt['colormode_dark'] = 'Dark';
$txt['colormode_system'] = 'System Default';
26 changes: 22 additions & 4 deletions Sources/Actions/Admin/Features.php
Original file line number Diff line number Diff line change
Expand Up @@ -1572,10 +1572,10 @@ public static function basicConfigVars(): array
'select',
'jquery_source',
[
'cdn' => Lang::getTxt('jquery_google_cdn', file: 'ManageSettings'),
'jquery_cdn' => Lang::getTxt('jquery_jquery_cdn', file: 'ManageSettings'),
'microsoft_cdn' => Lang::getTxt('jquery_microsoft_cdn', file: 'ManageSettings'),
'local' => Lang::getTxt('jquery_local', file: 'ManageSettings'),
'cdn' => Lang::getTxt('google_cdn', file: 'ManageSettings'),
'jquery_cdn' => Lang::getTxt('jquery_cdn', file: 'ManageSettings'),
'microsoft_cdn' => Lang::getTxt('microsoft_cdn', file: 'ManageSettings'),
'local' => Lang::getTxt('local_cdn', file: 'ManageSettings'),
'custom' => Lang::getTxt('jquery_custom', file: 'ManageSettings'),
],
'onchange' => 'if (this.value == \'custom\'){document.getElementById(\'jquery_custom\').disabled = false; } else {document.getElementById(\'jquery_custom\').disabled = true;}',
Expand All @@ -1585,6 +1585,24 @@ public static function basicConfigVars(): array
'jquery_custom',
'disabled' => !isset(Config::$modSettings['jquery_source']) || (isset(Config::$modSettings['jquery_source']) && Config::$modSettings['jquery_source'] != 'custom'), 'size' => 75,
],

// FontAwesome source
[
'select',
'fontawesome_source',
[
'cdn' => Lang::getTxt('cloudflare_cdn', file: 'ManageSettings'),
'fontawesome_cdn' => Lang::getTxt('fontawesome_cdn', file: 'ManageSettings'),
'local' => Lang::getTxt('local_cdn', file: 'ManageSettings'),
'custom' => Lang::getTxt('fontawesome_custom', file: 'ManageSettings'),
],
'onchange' => 'if (this.value == \'custom\'){document.getElementById(\'fontawesome_custom\').disabled = false; } else {document.getElementById(\'fontawesome_custom\').disabled = true;}',
],
[
'text',
'fontawesome_custom',
'disabled' => !isset(Config::$modSettings['fontawesome_source']) || (isset(Config::$modSettings['fontawesome_source']) && Config::$modSettings['fontawesome_source'] != 'custom'), 'size' => 75,
],
'',

// css and js minification.
Expand Down
33 changes: 22 additions & 11 deletions Sources/Actions/Admin/Maintenance.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class Maintenance implements ActionInterface
public static array $subactions = [
'routine' => [
'function' => 'routine',
'template' => 'maintain_routine',
'activities' => [
'version' => 'version',
'repair' => 'repair',
Expand All @@ -91,7 +90,6 @@ class Maintenance implements ActionInterface
],
'database' => [
'function' => 'database',
'template' => 'maintain_database',
'activities' => [
'optimize' => 'optimize',
'convertentities' => 'entitiesToUnicode',
Expand Down Expand Up @@ -155,7 +153,7 @@ public function execute(): void
// Set a few things.
Utils::$context['page_title'] = Lang::getTxt('maintain_title', file: 'Admin');
Utils::$context['sub_action'] = $this->subaction;
Utils::$context['sub_template'] = !empty(self::$subactions[$this->subaction]['template']) ? self::$subactions[$this->subaction]['template'] : '';
Utils::$context['sub_template'] = self::$subactions[$this->subaction]['template'] ?? 'options';

$call = \is_string(self::$subactions[$this->subaction]['function']) && method_exists($this, self::$subactions[$this->subaction]['function']) ? [$this, self::$subactions[$this->subaction]['function']] : Utils::getCallable(self::$subactions[$this->subaction]['function']);

Expand Down Expand Up @@ -184,30 +182,43 @@ public function routine(): void
if (isset($_GET['done']) && \in_array($_GET['done'], ['recount', 'rebuild_settings'])) {
Utils::$context['maintenance_finished'] = Lang::getTxt('maintain_' . $_GET['done'], file: 'ManageMaintenance');
}
Utils::$context['template_layers'][] = 'maintain';
Utils::$context['options'] = array_combine(
array_keys(self::$subactions[$this->subaction]['activities']),
array_fill(0, count(self::$subactions[$this->subaction]['activities']), []),
);
Utils::$context['post_url'] = Config::$scripturl . '?action=admin;area=maintain';
}

/**
* Supporting function for the database maintenance area.
*/
public function database(): void
{
Utils::$context['template_layers'][] = 'maintain';
Utils::$context['options'] = array_combine(
array_keys(self::$subactions[$this->subaction]['activities']),
array_fill(0, count(self::$subactions[$this->subaction]['activities']), []),
);
Utils::$context['post_url'] = Config::$scripturl . '?action=admin;area=maintain;sa=database';

// Show some conversion options?
Utils::$context['convert_entities'] = true;

if (Config::$db_type == 'mysql') {
$colData = Db::$db->list_columns('{db_prefix}messages', true);
$body_type = array_column(Db::$db->list_columns('{db_prefix}messages', true), 'type', 'name')['body'];
Utils::$context['options']['convertmsgbody']['title'] = Lang::$txt[($body_type == 'text' ? 'mediumtext' : 'text') . '_title'];
Utils::$context['options']['convertmsgbody']['info'] = Lang::$txt['mediumtext_info'];

foreach ($colData as $column) {
if ($column['name'] == 'body') {
$body_type = $column['type'];
}
if ($body_type != 'text' && !empty(Config::$modSettings['max_messageLength']) && Config::$modSettings['max_messageLength'] < 65536) {
Utils::$context['options']['convertmsgbody']['after'] = '<p class="infobox">' . Lang::$txt['convert_to_suggest_text'] . '</p>';
}

Utils::$context['convert_to'] = $body_type == 'text' ? 'mediumtext' : null;
} else {
unset(Utils::$context['options']['convertmsgbody']);
}

if (isset($_GET['done']) && $_GET['done'] == 'convertentities') {
Utils::$context['maintenance_finished'] = Lang::getTxt('entity_convert_title', file: 'ManageMaintenance');
Utils::$context['maintenance_finished'] = Lang::getTxt('maintain_convertentities_title', file: 'ManageMaintenance');
}
}

Expand Down
1 change: 1 addition & 0 deletions Sources/Actions/Admin/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ public function modifyUser(): void
// Setup the template.
Utils::$context['sub_template'] = 'modify_user_subscription';
Utils::$context['page_title'] = Lang::getTxt(Utils::$context['action_type'] . '_subscriber', file: 'ManagePaid');
Theme::loadJavaScriptFile('paidsubs.js', ['defer' => true, 'minimize' => true], 'smf_paidsubs');

// If we haven't been passed the subscription ID get it.
if (Utils::$context['log_id'] && !Utils::$context['sub_id']) {
Expand Down
Loading