Skip to content

Instantly share code, notes, and snippets.

@code-flow
Created July 7, 2014 07:11
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 code-flow/7f232d1b913e2550fdc8 to your computer and use it in GitHub Desktop.
Save code-flow/7f232d1b913e2550fdc8 to your computer and use it in GitHub Desktop.
Fixed Social Share Icons AddOn (Example)
<?php
/*
Plugin Name: Fixed Social Share Icons AddOn (Example)
Description: Adds more social icons to the Fixed WordPress Social Share Button
Version: 1.0
*/
/**
* Adds the icons in the style.css definition to the list of icons.
*
* @param array $icon_list
*
* @return array
*/
function fss_add_icons( $icon_list ) {
/**
* Define your added icons line by line.
* Don't forget that these icons
*/
$icons_to_add = array(
'fssaddon-icon-instagram',
'fssaddon-icon-delicious',
'fssaddon-icon-github-alt'
);
return array_merge( $icon_list, $icons_to_add );
}
add_filter( 'wpbfsb_icons', 'fss_add_icons' );
/**
* Adds the new style.css to the list of icon files.
*
* @param array $files
*
* @return array
*/
function fss_icon_files( $files ) {
$files['fss-add-icons'] = plugins_url( 'style.css', __FILE__ );
return $files;
}
add_filter( 'wpbfsb_icon_files', 'fss_icon_files' );
|��LP��5fssaddonRegularVersion 1.0fssaddon �0OS/2#[�`cmap��s\gaspxglyf�O���Hhead��~�6hhea��$hmtx�$loca��@maxp �P name�e
�pBpost� �LfGLf��@�������  H ��m����� ��m���������a��797979��2Xq�747&54726326763#"'&'&'&'&'&'&5;27676767654'&#"#"'&#"34767632#"'&'&534767632#"'&'&5'*.+%&  @ 0 " ,, ".    �  �D-! 
 !.D;#  #;2

""
��0AV7476%%'&57%76='''&547767654'&&77676=4'&'&G��12& %9(((S%$$%� 1  1 8F�� �%(&8��""%%h 0 .��%7476%%'&5?776='5'"""��"ɊʉR#!��!#��������_<� ��V���V��������
�f���N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
 �0OS/2#[�`cmap��s\gaspxglyf�O���Hhead��~�6hhea��$hmtx�$loca��@maxp �P name�e
�pBpost� �LfGLf��@�������  H ��m����� ��m���������a��797979��2Xq�747&54726326763#"'&'&'&'&'&'&5;27676767654'&#"#"'&#"34767632#"'&'&534767632#"'&'&5'*.+%&  @ 0 " ,, ".    �  �D-! 
 !.D;#  #;2

""
��0AV7476%%'&57%76='''&547767654'&&77676=4'&'&G��12& %9(((S%$$%� 1  1 8F�� �%(&8��""%%h 0 .��%7476%%'&5?776='5'"""��"ɊʉR#!��!#��������_<� ��V���V��������
�f���N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
wOFFOTTO�
PCFF ���xx�OS/2�``#[cmapP\\��sgasp�head�66��~hhea�$$��hmtx�maxp,Pname4BB�e
�postx  fssaddon:���
S���
S��� �k��t�� � "'fssaddonfssaddonu0u1u20uF113uF16DuF1A5�
��W����g��F�����������������������������{�������������������������x�v�u�z�{�|�m�e�]�d�kt�|�~~�~�~�}�}�z�y�y�z�}�}�{�y�|�~���|�|�{�|�~�~�~�~�~����������������Y�z�}�~�����������������������������������������������������������~�~�y�t���y�n�}�|�{�z�|�~�n�x���u�y�~{~{�x�t���������������������������������������������������������������������������K�������������������������������������������������������������������������������������������ۋ���������~�|����|�~����~�|��ۋ|�~������������������������Ƌ��������������Me����~�s�uvwz{vvt�s�e�k�p�q�}���������c���M��,�t�w�z�z��������������������z�z�v�s�s�v�z{yz�w�s�<�����������������������������������������Z��������������\�������������������������{�{�w�u���u�w{{{{w�u��u�w�{�{��������]���]�����������������^���^��z�{�~�|�z�����
�LfGLf��@�������  H ��m����� ��m���������a��5��_<� ��V���V��������P�N&\6
(l  N & \  >
(lfssaddonVersion 1.0fssaddonfssaddonfssaddonRegularfssaddonGenerated by IcoMoon
@font-face {
font-family: 'fssaddon';
src:url('fssaddon.eot?-kw9tdo');
src:url('fssaddon.eot?#iefix-kw9tdo') format('embedded-opentype'),
url('fssaddon.woff?-kw9tdo') format('woff'),
url('fssaddon.ttf?-kw9tdo') format('truetype'),
url('fssaddon.svg?-kw9tdo#fssaddon') format('svg');
font-weight: normal;
font-style: normal;
}
[class^="fssaddon-icon-"], [class*=" fssaddon-icon-"] {
font-family: 'fssaddon';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.fssaddon-icon-github-alt:before {
content: "\f113";
}
.fssaddon-icon-instagram:before {
content: "\f16d";
}
.fssaddon-icon-delicious:before {
content: "\f1a5";
}
@code-flow
Copy link
Author

Save all files into a folder "fss-add-icons" and move it to your /wp-content/plugins/ folder. Activate the new plugin via your WordPress administration panel. The new icons should now appear in the list of icons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment