|
<?php // remove this line |
|
|
|
//* Replace, reorder and add new icons in Simple Social Icons |
|
//* Added WordPress, SoundCLoud and Spotify icons |
|
//* https://gist.github.com/srikat/11391704 |
|
//* http://glyphicons.com/ |
|
|
|
add_filter( 'simple_social_default_profiles', 'custom_simple_social_default_profiles' ); |
|
function custom_simple_social_default_profiles() { |
|
$glyphs = array( |
|
'twitter' => '', |
|
'gplus' => '', |
|
'facebook' => '', |
|
'linkedin' => '', |
|
'instagram' => '', |
|
'pinterest' => '', |
|
'bloglovin' => '', |
|
'dribbble' => '', |
|
'flickr' => '', |
|
'github' => '', |
|
'wordpress' => '', |
|
'stumbleupon' => '', |
|
'tumblr' => '', |
|
'souncloud' => '', |
|
'spotify' => '', |
|
'vimeo' => '', |
|
'youtube' => '', |
|
'email' => '', |
|
'rss' => '', |
|
); |
|
$profiles = array( |
|
'twitter' => array( |
|
'label' => __( 'Twitter URI', 'ssiw' ), |
|
'pattern' => '<li class="social-twitter"><a href="%s" %s>' . $glyphs['twitter'] . '</a></li>', |
|
), |
|
'facebook' => array( |
|
'label' => __( 'Facebook URI', 'ssiw' ), |
|
'pattern' => '<li class="social-facebook"><a href="%s" %s>' . $glyphs['facebook'] . '</a></li>', |
|
), |
|
'gplus' => array( |
|
'label' => __( 'Google+ URI', 'ssiw' ), |
|
'pattern' => '<li class="social-gplus"><a href="%s" %s>' . $glyphs['gplus'] . '</a></li>', |
|
), |
|
'linkedin' => array( |
|
'label' => __( 'Linkedin URI', 'ssiw' ), |
|
'pattern' => '<li class="social-linkedin"><a href="%s" %s>' . $glyphs['linkedin'] . '</a></li>', |
|
), |
|
'instagram' => array( |
|
'label' => __( 'Instagram URI', 'ssiw' ), |
|
'pattern' => '<li class="social-instagram"><a href="%s" %s>' . $glyphs['instagram'] . '</a></li>', |
|
), |
|
'pinterest' => array( |
|
'label' => __( 'Pinterest URI', 'ssiw' ), |
|
'pattern' => '<li class="social-pinterest"><a href="%s" %s>' . $glyphs['pinterest'] . '</a></li>', |
|
), |
|
'bloglovin' => array( |
|
'label' => __( 'Bloglovin URI', 'ssiw' ), |
|
'pattern' => '<li class="social-bloglovin"><a href="%s" %s>' . $glyphs['bloglovin'] . '</a></li>', |
|
), |
|
'dribbble' => array( |
|
'label' => __( 'Dribbble URI', 'ssiw' ), |
|
'pattern' => '<li class="social-dribbble"><a href="%s" %s>' . $glyphs['dribbble'] . '</a></li>', |
|
), |
|
'flickr' => array( |
|
'label' => __( 'Flickr URI', 'ssiw' ), |
|
'pattern' => '<li class="social-flickr"><a href="%s" %s>' . $glyphs['flickr'] . '</a></li>', |
|
), |
|
'github' => array( |
|
'label' => __( 'GitHub URI', 'ssiw' ), |
|
'pattern' => '<li class="social-github"><a href="%s" %s>' . $glyphs['github'] . '</a></li>', |
|
), |
|
'wordpress' => array( |
|
'label' => __( 'WordPress URI', 'ssiw' ), |
|
'pattern' => '<li class="social-wordpress"><a href="%s" %s>' . $glyphs['wordpress'] . '</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>', |
|
), |
|
'souncloud' => array( |
|
'label' => __( 'SoundCloud URI', 'ssiw' ), |
|
'pattern' => '<li class="social-souncloud"><a href="%s" %s>' . $glyphs['souncloud'] . '</a></li>', |
|
), |
|
'spotify' => array( |
|
'label' => __( 'Spotify URI', 'ssiw' ), |
|
'pattern' => '<li class="social-spotify"><a href="%s" %s>' . $glyphs['spotify'] . '</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>', |
|
), |
|
'email' => array( |
|
'label' => __( 'Email URI', 'ssiw' ), |
|
'pattern' => '<li class="social-email"><a href="%s" %s>' . $glyphs['email'] . '</a></li>', |
|
), |
|
'rss' => array( |
|
'label' => __( 'RSS URI', 'ssiw' ), |
|
'pattern' => '<li class="social-rss"><a href="%s" %s>' . $glyphs['rss'] . '</a></li>', |
|
), |
|
); |
|
return $profiles; |
|
} |