1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-02 12:48:26 +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,6 +26,9 @@ class social_shortcodes extends e_shortcode
'vimeo' => array('href'=> deftrue('XURL_VIMEO'), 'title'=>'Vimeo') 'vimeo' => array('href'=> deftrue('XURL_VIMEO'), 'title'=>'Vimeo')
); );
parse_str($parms,$parm);
$class = (vartrue($parms['size'])) ? 'fa-'.$parms['size'] : '';
$text = ''; $text = '';
@@ -36,7 +39,7 @@ class social_shortcodes extends e_shortcode
if($data['href'] != '') 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> <span class="fa fa-'.$id.'"></span>
</a>'; </a>';