Skip to content

Commit

Permalink
Update #2405
Browse files Browse the repository at this point in the history
Signed-off-by: deviance <meangczac.chan@gmail.com>
  • Loading branch information
FrederickChan committed Oct 5, 2022
1 parent 408d15d commit b4795a7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion includes/classes/PHPFusion/ImageRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ class ImageRepo {
'apply' => 'fa-solid fa-check',
'cancel' => 'fa-solid fa-ban',
'reset' => 'fa-solid fa-rotate-left',
'undo' => 'fa-solid fa-rotate-left',
'back' => 'fa-solid fa-rotate-left',
'redo' => 'fa-solid fa-rotate-right',
'reply' => 'fa-solid fa-reply',
'forward' => 'fa-solid fa-share-from-square',
'first' => 'fa-solid fa-angle-left',
Expand Down Expand Up @@ -122,6 +125,10 @@ class ImageRepo {
'coins' => 'fa-solid fa-sack',
'location' => 'fa-solid fa-location-dot',
'code' => 'fa-solid fa-brackets-curly',
'star' => 'fa-regular fa-star',
'half-star' => 'fa-solid fa-half-star',
'flag' => 'fa-regular fa-flag',
'clock' => 'fa-regular fa-clock',
'success' => 'fa-solid fa-badge-check',
'warning' => 'fa-solid fa-triangle-exclamation',
'danger' => 'fa-solid fa-light-emergency-on',
Expand All @@ -140,7 +147,9 @@ class ImageRepo {
'bug' => 'fa-solid fa-bug',
'contact' => 'fa-solid fa-square-phone',
'covid' => 'fa-solid fa-virus-covid',
'settings' => 'fa-solid fa-screwdriver-wrench'
'settings' => 'fa-solid fa-screwdriver-wrench',
'download' => 'fa-solid fa-download',
'pen' => 'fa-solid fa-pen',
];

/**
Expand All @@ -161,7 +170,11 @@ private static function cache() {
if (self::$cached) {
return;
}

self::$cached = TRUE;

$settings = fusion_get_settings();

//<editor-fold desc="imagePaths">
// You need to + sign it, so setImage will work.
self::$image_paths += [
Expand All @@ -180,9 +193,12 @@ private static function cache() {
//K
//L
"left" => IMAGES."icons/left.png",
"logo" => $settings['sitebanner'],
//M
//N
"noavatar" => IMAGES."avatars/no-avatar.jpg",
"no-avatar" => IMAGES."avatars/no-avatar.jpg",
"no-cover" => IMAGES."covers/no-cover.png",
//O
//P
"panel_on" => IMAGES."icons/panel_on.gif",
Expand Down

0 comments on commit b4795a7

Please sign in to comment.