Created
July 7, 2014 07:11
-
-
Save code-flow/7f232d1b913e2550fdc8 to your computer and use it in GitHub Desktop.
Fixed Social Share Icons AddOn (Example)
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
<?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' ); |
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
| � � LP ��5 f s s a d d o n R e g u l a r V e r s i o n 1 . 0 f s s a d d o n � 0OS/2#[ � `cmap ��s \gasp x glyf�O�� � Hhead ��~ � 6hhea�� $hmtx� $ loca�� @ maxp � P name�e | |
� p Bpost � � Lf GLf � � @ ������� H ��m����� ��m����� ����a �� 79 79 79 �� 2 X q � 747&54726326763#"'&'&'&'&'&'&5;27676767654'&#"#"'&#"34767632#"'&'&534767632#"'&'&5 '*.+%& @ 0 ",,". � �D-! | |
!.D;# #;2 | |
"" | |
�� 0 A V 7476%%'&57%76='''&547767654'&&77676=4'&'& G��12& %9(((S%$$%� 1 1 8F���%(&8��""%%h 0 . �� % 7476%%'&5?776='5' """��"ɊʉR#!��!#����� ���_<� ��V� ��V� �� ��� � � | |