Last active
December 30, 2015 17:19
-
-
Save alexanderjsingleton/d3216b4b1735394c491a to your computer and use it in GitHub Desktop.
Retooling a php hash-table to accommodate over 72 [social-media buttons](http://tomswebspace.com/round-social-media-icons/).
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
//Member social | |
function member_social($atts, $content = null) | |
{ | |
extract(shortcode_atts(array("twitter" => "", "facebook" => "", "github" => "", "linkedin" => ""), $atts)); | |
$html = "\n".'<nav class="team-social text-center"> | |
<a target="_blank" href="http://twitter.com/'.$twitter.'"><img title="Twitter" alt="renova" src="'.get_stylesheet_directory_uri().'/images/social/cool/round/twitter.png"></a> | |
<a target="_blank" href="http://facebook.com/'.$facebook.'"><img title="Facebook" alt="renova" src="'.get_stylesheet_directory_uri().'/images/social/cool//round/facebook.png"></a> | |
<a target="_blank" href="http://linkedin.com/in/'.$linkedin.'"><img title="LinkedIn" alt="renova" src="'.get_stylesheet_directory_uri().'/images/social/cool//round/linkedin.png"></a> | |
<a target="_blank" href="http://github.com/'.$github.'"><img title="GitHub" alt="renova" src="'.get_stylesheet_directory_uri().'/images/social/cool//round/github.png"></a> | |
</nav>'; | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment