Skip to content

Instantly share code, notes, and snippets.

@piercemoore
Last active December 16, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piercemoore/5458279 to your computer and use it in GitHub Desktop.
Save piercemoore/5458279 to your computer and use it in GitHub Desktop.
PHP array of all the symbols in Zurb's Foundation Framework icon fonts and the function to display all of them
<?php
$sets = ['access' => ['wheelchair','speaker','fontsize','eject','view-mode','eyeball','asl','person','question','adult','child','glasses','cc','blind','braille','iphone-home','w3c','css','key','hearing-impaired','male','female','network','guidedog','universal-access','elevator'], 'social' => [ 'thumb-up','thumb-down','rss','facebook','twitter','pinterest','github','path','linkedin','dribbble','stumble-upon','behance','reddit','google-plus','youtube','vimeo','flickr','slideshare','picassa','skype','steam','instagram','foursquare','delicious','chat','torso','tumblr','video-chat','digg','wordpress'], 'general' => [ 'settings','heart','star','plus','minus','checkmark','remove','mail','calendar','page','tools','globe','home','quote','people','monitor','laptop','phone','cloud','error','right-arrow','left-arrow','up-arrow','down-arrow','trash','add-doc','edit','lock','unlock','refresh','paper-clip','video','photo','graph','idea','mic','cart','address-book','compass','flag','location','clock','folder','inbox','website','smiley','search']];
$html = "";
foreach($sets as $set => $icons) {
foreach($icons as $icon) {
$html .= "<tr><td>$set - $icon</td><td><i class='foundicon-$set-$icon'></i></td></tr>";
}
}
?>
<table>
<thead>
<th>Set - Name</th>
<th>Icon</th>
</thead>
<tbody>
<?=$html;?>
</tbody>
</table>
<?php
// The exact same thing, just compressed.
$sets = ['access' => ['wheelchair','speaker','fontsize','eject','view-mode','eyeball','asl','person','question','adult','child','glasses','cc','blind','braille','iphone-home','w3c','css','key','hearing-impaired','male','female','network','guidedog','universal-access','elevator'], 'social' => [ 'thumb-up','thumb-down','rss','facebook','twitter','pinterest','github','path','linkedin','dribbble','stumble-upon','behance','reddit','google-plus','youtube','vimeo','flickr','slideshare','picassa','skype','steam','instagram','foursquare','delicious','chat','torso','tumblr','video-chat','digg','wordpress'], 'general' => [ 'settings','heart','star','plus','minus','checkmark','remove','mail','calendar','page','tools','globe','home','quote','people','monitor','laptop','phone','cloud','error','right-arrow','left-arrow','up-arrow','down-arrow','trash','add-doc','edit','lock','unlock','refresh','paper-clip','video','photo','graph','idea','mic','cart','address-book','compass','flag','location','clock','folder','inbox','website','smiley','search']];
<?php
$sets = [
'access' => [
'wheelchair',
'speaker',
'fontsize',
'eject',
'view-mode',
'eyeball',
'asl',
'person',
'question',
'adult',
'child',
'glasses',
'cc',
'blind',
'braille',
'iphone-home',
'w3c',
'css',
'key',
'hearing-impaired',
'male',
'female',
'network',
'guidedog',
'universal-access',
'elevator'
],
'social' => [
'thumb-up',
'thumb-down',
'rss',
'facebook',
'twitter',
'pinterest',
'github',
'path',
'linkedin',
'dribbble',
'stumble-upon',
'behance',
'reddit',
'google-plus',
'youtube',
'vimeo',
'flickr',
'slideshare',
'picassa',
'skype',
'steam',
'instagram',
'foursquare',
'delicious',
'chat',
'torso',
'tumblr',
'video-chat',
'digg',
'wordpress'
],
'general' => [
'settings',
'heart',
'star',
'plus',
'minus',
'checkmark',
'remove',
'mail',
'calendar',
'page',
'tools',
'globe',
'home',
'quote',
'people',
'monitor',
'laptop',
'phone',
'cloud',
'error',
'right-arrow',
'left-arrow',
'up-arrow',
'down-arrow',
'trash',
'add-doc',
'edit',
'lock',
'unlock',
'refresh',
'paper-clip',
'video',
'photo',
'graph',
'idea',
'mic',
'cart',
'address-book',
'compass',
'flag',
'location',
'clock',
'folder',
'inbox',
'website',
'smiley',
'search'
]
];
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment