From ca55ea58817496b21556d6252eb0858b6f1ec8b4 Mon Sep 17 00:00:00 2001 From: Daniel Ethan <181504372+danielethanme@users.noreply.github.com> Date: Thu, 26 Sep 2024 21:27:33 +0100 Subject: [PATCH] Update Font Awesome version in Admin panel The current Font Awesome version in the admin panel is 4.4.0. I updated this to the latest free version 6.6.0 here https://github.com/FortAwesome/Font-Awesome I checked and all icons look to be loading properly in the admin panel. I also checked each of the built-in themes to make sure nothing was conflicting, and I didn't notice any missing icons in the themes. --- .gitignore | 1 + system/admin/editor/js/Markdown.Editor.js | 4 +- system/admin/views/layout.html.php | 5 +- system/resources/css/font-awesome.css | 4 - system/resources/css/fontawesome.min.css | 9 + system/resources/css/solid.min.css | 6 + system/resources/fonts/FontAwesome.otf | Bin 93888 -> 0 bytes .../resources/fonts/fontawesome-webfont.eot | Bin 60767 -> 0 bytes .../resources/fonts/fontawesome-webfont.svg | 565 ------------------ .../resources/fonts/fontawesome-webfont.ttf | Bin 122092 -> 0 bytes .../resources/fonts/fontawesome-webfont.woff | Bin 71508 -> 0 bytes .../resources/fonts/fontawesome-webfont.woff2 | Bin 56780 -> 0 bytes system/resources/webfonts/fa-solid-900.ttf | Bin 0 -> 423676 bytes system/resources/webfonts/fa-solid-900.woff2 | Bin 0 -> 157192 bytes 14 files changed, 21 insertions(+), 573 deletions(-) delete mode 100644 system/resources/css/font-awesome.css create mode 100644 system/resources/css/fontawesome.min.css create mode 100644 system/resources/css/solid.min.css delete mode 100644 system/resources/fonts/FontAwesome.otf delete mode 100644 system/resources/fonts/fontawesome-webfont.eot delete mode 100644 system/resources/fonts/fontawesome-webfont.svg delete mode 100644 system/resources/fonts/fontawesome-webfont.ttf delete mode 100644 system/resources/fonts/fontawesome-webfont.woff delete mode 100644 system/resources/fonts/fontawesome-webfont.woff2 create mode 100644 system/resources/webfonts/fa-solid-900.ttf create mode 100644 system/resources/webfonts/fa-solid-900.woff2 diff --git a/.gitignore b/.gitignore index 25592d18..f3d1871c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /config/users/*.ini /backup /.htaccess +.DS_Store \ No newline at end of file diff --git a/system/admin/editor/js/Markdown.Editor.js b/system/admin/editor/js/Markdown.Editor.js index 814306aa..a2518171 100644 --- a/system/admin/editor/js/Markdown.Editor.js +++ b/system/admin/editor/js/Markdown.Editor.js @@ -1524,7 +1524,7 @@ buttons.readmore = makeButton("wmd-readmore-button", getString("readmore"), "fa fa-arrow-right", bindCommand("doReadMore")); buttons.toc = makeButton("wmd-toc-button", getString("toc"), "fa fa-list-alt", bindCommand("doTOC")); //makeSpacer(3); - buttons.undo = makeButton("wmd-undo-button", getString("undo"), "fa fa-undo", null); + buttons.undo = makeButton("wmd-undo-button", getString("undo"), "fa-solid fa-rotate-left", null); buttons.undo.execute = function (manager) { if (manager) manager.undo(); }; @@ -1533,7 +1533,7 @@ getString("redo") : getString("redomac"); // mac and other non-Windows platforms - buttons.redo = makeButton("wmd-redo-button", redoTitle, "fa fa-repeat", null); + buttons.redo = makeButton("wmd-redo-button", redoTitle, "fa-solid fa-rotate-right", null); buttons.redo.execute = function (manager) { if (manager) manager.redo(); }; diff --git a/system/admin/views/layout.html.php b/system/admin/views/layout.html.php index 5304fefd..5219e8b1 100644 --- a/system/admin/views/layout.html.php +++ b/system/admin/views/layout.html.php @@ -6,7 +6,8 @@ <?php echo $title;?> - + + @@ -75,7 +76,7 @@ with font-awesome or any other icon font library -->