Index of /wp-content/themes/buildbench/components/option-types/new-icon
Name Last modified Size Description
Parent Directory -
README.html 2022-12-19 21:07 1.1K
README.md 2022-12-19 21:07 733
class-fw-option-type..> 2022-12-19 21:07 72K
static/ 2022-12-19 21:07 -
view.php 2022-12-19 21:07 2.3K
README.md
Update Icons
// 1. Open http://fontawesome.io/icons/
// 2. Run this script
// 3. Convert JSON to PHP Array https://www.google.com/#q=json+to+php+online
var fa = {
groups: {
// 'id': 'Title'
},
icons: {
// 'fa fa-adjust': {'group': 'web-app'},
}
};
var $section = jQuery('section#web-application'),
group;
do {
group = {
id: $section.attr('id'),
title: $section.find('> h2').text()
};
fa.groups[group.id] = group.title;
$section.find('.fontawesome-icon-list i.fa').each(function(){
var icon = jQuery(this).attr('class');
if (fa.icons[icon]) return;
fa.icons[icon] = {group: group.id};
});
$section = $section.next();
} while($section.length);
console.log( JSON.stringify(fa) );