Last active
December 16, 2015 15:49
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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