Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 5 additions & 1 deletion admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,11 @@ public function onTwigSiteVariables()
$fa_icons = $fa_icons_file->content();
$fa_icons = array_map(function ($icon) {
//only pick used values
return ['id' => $icon['id'], 'unicode' => $icon['unicode']];
return [
'id' => $icon['id'],
'unicode' => $icon['unicode'],
'categories' => $icon['categories'] ?? []
];
}, $fa_icons['icons']);

$twig->twig_vars['fa_icons'] = $fa_icons;
Expand Down
8 changes: 5 additions & 3 deletions themes/grav/app/forms/fields/iconpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ var defaults = {
'highlight': '', // extra classes when highlighting an icon
'close': '' // extra classes for close button
},
'iconSets': { // example data structure. Used to specify which launchers will be created
'genericon': 'Genericon', // create a launcher to pick genericon icons
'fa': 'FontAwesome' // create a launcher to pick fontawesome icons
'iconSets': {
// example data structure. Used to specify which launchers will be created
'genericon': 'Genericon',
// create a launcher to pick genericon icons
'fa': 'FontAwesome' // create a launcher to pick fontawesome icons
}
};

Expand Down
6 changes: 6 additions & 0 deletions themes/grav/css/fontawesome/brands.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading