1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-31 10:01:56 +02:00

Social icons now using Font-awesome resize method.

This commit is contained in:
Cameron
2014-01-15 11:04:44 -08:00
parent 1fb7cdfce7
commit ee3ff4c781
3 changed files with 6 additions and 8 deletions

View File

@@ -25,11 +25,10 @@ class social_shortcodes extends e_shortcode
'youtube' => array('href'=> deftrue('XURL_YOUTUBE'), 'title'=>'YouTube'),
'vimeo' => array('href'=> deftrue('XURL_VIMEO'), 'title'=>'Vimeo')
);
parse_str($parms,$parm);
$class = (vartrue($parms['size'])) ? 'fa-'.$parm['size'] : '';
$class = (vartrue($parm['size'])) ? 'fa-'.$parm['size'] : '';
$text = '';
@@ -39,8 +38,8 @@ class social_shortcodes extends e_shortcode
if($data['href'] != '')
{
$text .= '<a rel="external" href="'.$data['href'].'" class="social-icon social-'.$id.' '.$class.'">
<span class="fa fa-'.$id.'"></span>
$text .= '<a rel="external" href="'.$data['href'].'" class="social-icon social-'.$id.'">
<span class="fa fa-'.$id.' '.$class.'"></span>
</a>';
$text .= "\n";