Skip to content

Instantly share code, notes, and snippets.

@danimbrogno
Created February 19, 2015 20:06
Show Gist options
  • Save danimbrogno/f58c195f2385329a7d4b to your computer and use it in GitHub Desktop.
Save danimbrogno/f58c195f2385329a7d4b to your computer and use it in GitHub Desktop.
OutputSocialMediaMenuFunction
$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