1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01: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";

View File

@ -100,7 +100,6 @@ body {
.xurl-social-icons a {
font-size: 28px;
color: inherit;
text-decoration: none;
opacity: .7;

View File

@ -123,7 +123,7 @@ $LAYOUT['_footer_'] = ' <hr>
{SITEDISCLAIMER}
</div>
<div class="col-lg-6 text-right">
{XURL_ICONS}
{XURL_ICONS: size=2x}
</div>
</footer>