diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php index c6ed40e3c..e80fb0bee 100644 --- a/e107_handlers/theme_handler.php +++ b/e107_handlers/theme_handler.php @@ -1373,6 +1373,40 @@ class themeHandler $text .= $itext; + + $wildcard = false; + $curCss = array(); + + + foreach($theme['css'] as $k=>$vl) + { + if($vl['name'] == '*') + { + unset($theme['css'][$k]); + $wildcard = true; + } + else + { + $curCss[] = $vl['name']; + } + } + + + if($wildcard == true) + { + foreach($theme['files'] as $val) + { + if(substr($val,-4) == '.css' && substr($val,0,5) != 'admin_' && !in_array($val, $curCss)) + { + $theme['css'][] = array('name'=>$val, 'info'=>'User-added Stylesheet', 'nonadmin'=>1); + } + } + + } + + + + if(array_key_exists("multipleStylesheets", $theme) && $mode) { diff --git a/e107_plugins/social/e_shortcode.php b/e107_plugins/social/e_shortcode.php index 666435807..1d50e87cd 100644 --- a/e107_plugins/social/e_shortcode.php +++ b/e107_plugins/social/e_shortcode.php @@ -108,10 +108,12 @@ class social_shortcodes extends e_shortcode $size = varset($parm['size'], 'md'); - //TODO LANS ie. "Share on [x]" in English_global.php + //TODO LANS ie. "Share on [x]" in English_global.php + + $emailMessage = "Check out this link: "; //TODO LAN $providers = array( - 'email' => array('icon' => 'e-social-mail', 'title'=>"Email to someone", 'url' => "mailto:EMAIL_RECIPIENT?subject=[t]&body=Check out this link: [u]"), + 'email' => array('icon' => 'e-social-mail', 'title'=>"Email to someone", 'url' => "mailto:EMAIL_RECIPIENT?subject=[t]&body=".urlencode($emailMessage)."[u]"), 'facebook-like' => array('icon' => 'e-social-thumbs-up', 'title'=>"Like on Facebook", 'url' => "http://www.facebook.com/plugins/like.php?href=[u]"), 'facebook-share' => array('icon' => 'e-social-facebook', 'title'=>"Share on Facebook", 'url' => "http://www.facebook.com/sharer.php?u=[u]&t=[t]"), 'twitter' => array('icon' => 'e-social-twitter', 'title'=>"Share on Twitter", 'url' => "http://twitter.com/share?url=[u]&text=[t]"), @@ -171,7 +173,7 @@ class social_shortcodes extends e_shortcode $text = '
'.$label.' -
'; return; } - - echo '

'.$caption.'

- - '.$text.' - '; + + + + // default. + + if(!empty($caption)) + { + echo '

'.$caption.'

'; + } + + echo $text; + + return; diff --git a/e107_themes/bootstrap3/theme.xml b/e107_themes/bootstrap3/theme.xml index 55e9b9f92..fbe736f50 100644 --- a/e107_themes/bootstrap3/theme.xml +++ b/e107_themes/bootstrap3/theme.xml @@ -18,6 +18,7 @@ +