1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-20 19:11:17 +02:00

Support for XURL icon sizes. eg. {XURL_ICONS: size=2x}

This commit is contained in:
Cameron 2014-01-15 08:17:13 -08:00
parent 656068aefb
commit 39eb14c614

View File

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