Skip to content

Instantly share code, notes, and snippets.

@fernandiez
Last active October 14, 2015 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fernandiez/c79cad6803e66101e9b7 to your computer and use it in GitHub Desktop.
Save fernandiez/c79cad6803e66101e9b7 to your computer and use it in GitHub Desktop.
Replace, reorder and add new glyphicons in Simple Social Icons http://glyphicons.com/
<?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' => '&#xe607;',
'gplus' => '&#xe60e;',
'facebook' => '&#xe606;',
'linkedin' => '&#xe603;',
'instagram' => '&#xe600;',
'pinterest' => '&#xe605;',
'bloglovin' => '&#xe60c;',
'dribbble' => '&#xe602;',
'flickr' => '&#xe609;',
'github' => '&#xe60a;',
'wordpress' => '&#xe010;',
'stumbleupon' => '&#xe601;',
'tumblr' => '&#xe604;',
'souncloud' => '&#xe054;',
'spotify' => '&#xe028;',
'vimeo' => '&#xe608;',
'youtube' => '&#xe60f;',
'email' => '&#xe60d;',
'rss' => '&#xe60b;',
);
$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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment