Skip to content

Commit

Permalink
Update Font Awesome version in Admin panel
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielethanme committed Sep 26, 2024
1 parent 941a75b commit ca55ea5
Show file tree
Hide file tree
Showing 14 changed files with 21 additions and 573 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/config/users/*.ini
/backup
/.htaccess
.DS_Store
4 changes: 2 additions & 2 deletions system/admin/editor/js/Markdown.Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand All @@ -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();
};
Expand Down
5 changes: 3 additions & 2 deletions system/admin/views/layout.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<title><?php echo $title;?></title>
<meta name="description" content="<?php echo $description; ?>"/>
<link rel="canonical" href="<?php echo $canonical; ?>" />
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/font-awesome.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/fontawesome.min.css">
<link rel="stylesheet" href="<?php echo site_url() ?>system/resources/css/solid.min.css">
<link href="<?php echo site_url() ?>system/resources/css/adminlte.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<script src="<?php echo site_url() ?>system/resources/js/jquery.min.js"></script>
Expand Down Expand Up @@ -75,7 +76,7 @@
with font-awesome or any other icon font library -->
<li class="nav-item">
<a href="<?php echo site_url();?>admin/content" class="nav-link">
<i class="nav-icon fa fa-th"></i>
<i class="nav-icon fa-solid fa-square-plus"></i>
<p>
<?php echo ucwords(i18n('Add_content')); ?>
</p>
Expand Down
4 changes: 0 additions & 4 deletions system/resources/css/font-awesome.css

This file was deleted.

9 changes: 9 additions & 0 deletions system/resources/css/fontawesome.min.css

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions system/resources/css/solid.min.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.6.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}
Binary file removed system/resources/fonts/FontAwesome.otf
Binary file not shown.
Binary file removed system/resources/fonts/fontawesome-webfont.eot
Binary file not shown.
565 changes: 0 additions & 565 deletions system/resources/fonts/fontawesome-webfont.svg

This file was deleted.

Binary file removed system/resources/fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file removed system/resources/fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file removed system/resources/fonts/fontawesome-webfont.woff2
Binary file not shown.
Binary file added system/resources/webfonts/fa-solid-900.ttf
Binary file not shown.
Binary file added system/resources/webfonts/fa-solid-900.woff2
Binary file not shown.

0 comments on commit ca55ea5

Please sign in to comment.