Created
February 19, 2015 20:06
-
-
Save danimbrogno/f58c195f2385329a7d4b to your computer and use it in GitHub Desktop.
OutputSocialMediaMenuFunction
This file contains hidden or 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
$links = array(); | |
foreach(Theme::getSocialMediaChannels() as $handle => $name) | |
{ | |
$url = get_theme_mod($handle); | |
if($url!='http://' && $url!='') | |
{ | |
$links[] = sprintf( | |
'<li class="follow-us--link"><a href="%s" class="fc-webicon %s">%s</a></li>', | |
$url, | |
$handle, | |
self::displaySvg($handle) | |
); | |
} | |
} | |
printf('<ul id="%s" class="follow-us">%s</ul>', | |
self::getMenuID(self::MN_SOCIAL_MEDIA), | |
implode($links) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment