Created
November 4, 2014 21:42
-
-
Save ameeker/48a017c5c0e899fafb9a to your computer and use it in GitHub Desktop.
Reordering, and Adding new networks to Simple Social Icons, including Trip Advisor
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
//* Add Trip Advisor Icon to Simple Social Icons | |
add_filter( 'simple_social_default_profiles', 'custom_simple_social_default_profiles' ); | |
function custom_simple_social_default_profiles() { | |
$glyphs = array( | |
'tripadvisor' => '<img src="http://bb.angiemeekerdesigns.com/wp-content/uploads/2014/11/tripadvisor-xxl.png" alt="Trip Advisor">', | |
'email' => '', | |
'facebook' => '', | |
'flickr' => '', | |
'gplus' => '', | |
'instagram' => '', | |
'linkedin' => '', | |
'pinterest' => '', | |
'rss' => '', | |
'stumbleupon' => '', | |
'tumblr' => '', | |
'twitter' => '', | |
'vimeo' => '', | |
'youtube' => '', | |
); | |
$profiles = array( | |
'tripadvisor' => array( | |
'label' => __( 'Trip Advisor URI', 'ssiw' ), | |
'pattern' => '<li class="tripadvisor"><a href="%s" %s>' . $glyphs['tripadvisor'] . '</a></li>', | |
), | |
'email' => array( | |
'label' => __( 'Email URI', 'ssiw' ), | |
'pattern' => '<li class="social-email"><a href="%s" %s>' . $glyphs['email'] . '</a></li>', | |
), | |
'facebook' => array( | |
'label' => __( 'Facebook URI', 'ssiw' ), | |
'pattern' => '<li class="social-facebook"><a href="%s" %s>' . $glyphs['facebook'] . '</a></li>', | |
), | |
'flickr' => array( | |
'label' => __( 'Flickr URI', 'ssiw' ), | |
'pattern' => '<li class="social-flickr"><a href="%s" %s>' . $glyphs['flickr'] . '</a></li>', | |
), | |
'gplus' => array( | |
'label' => __( 'Google+ URI', 'ssiw' ), | |
'pattern' => '<li class="social-gplus"><a href="%s" %s>' . $glyphs['gplus'] . '</a></li>', | |
), | |
'instagram' => array( | |
'label' => __( 'Instagram URI', 'ssiw' ), | |
'pattern' => '<li class="social-instagram"><a href="%s" %s>' . $glyphs['instagram'] . '</a></li>', | |
), | |
'linkedin' => array( | |
'label' => __( 'Linkedin URI', 'ssiw' ), | |
'pattern' => '<li class="social-linkedin"><a href="%s" %s>' . $glyphs['linkedin'] . '</a></li>', | |
), | |
'pinterest' => array( | |
'label' => __( 'Pinterest URI', 'ssiw' ), | |
'pattern' => '<li class="social-pinterest"><a href="%s" %s>' . $glyphs['pinterest'] . '</a></li>', | |
), | |
'rss' => array( | |
'label' => __( 'RSS URI', 'ssiw' ), | |
'pattern' => '<li class="social-rss"><a href="%s" %s>' . $glyphs['rss'] . '</a></li>', | |
), | |
'stumbleupon' => array( | |
'label' => __( 'StumbleUpon URI', 'ssiw' ), | |
'pattern' => '<li class="social-stumbleupon"><a href="%s" %s>' . $glyphs['stumbleupon'] . '</a></li>', | |
), | |
'tumblr' => array( | |
'label' => __( 'Tumblr URI', 'ssiw' ), | |
'pattern' => '<li class="social-tumblr"><a href="%s" %s>' . $glyphs['tumblr'] . '</a></li>', | |
), | |
'twitter' => array( | |
'label' => __( 'Twitter URI', 'ssiw' ), | |
'pattern' => '<li class="social-twitter"><a href="%s" %s>' . $glyphs['twitter'] . '</a></li>', | |
), | |
'vimeo' => array( | |
'label' => __( 'Vimeo URI', 'ssiw' ), | |
'pattern' => '<li class="social-vimeo"><a href="%s" %s>' . $glyphs['vimeo'] . '</a></li>', | |
), | |
'youtube' => array( | |
'label' => __( 'YouTube URI', 'ssiw' ), | |
'pattern' => '<li class="social-youtube"><a href="%s" %s>' . $glyphs['youtube'] . '</a></li>', | |
), | |
); | |
return $profiles; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment