From 44d10ee5ce6c1e94032f7d3b2447b1f26fec1eb5 Mon Sep 17 00:00:00 2001 From: SecretR Date: Thu, 18 Sep 2014 17:21:50 +0300 Subject: [PATCH] Glyph and link css options for plugin added bbcodes --- e107_core/shortcodes/batch/bbcode_shortcodes.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_core/shortcodes/batch/bbcode_shortcodes.php b/e107_core/shortcodes/batch/bbcode_shortcodes.php index e9eb8778e..18cd75943 100644 --- a/e107_core/shortcodes/batch/bbcode_shortcodes.php +++ b/e107_core/shortcodes/batch/bbcode_shortcodes.php @@ -584,7 +584,8 @@ class bbcode_shortcodes extends e_shortcode extract($val); // echo "$onclick $onclick_var $helptext $icon
"; - $bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var); + // NEW support of 'glyph' (replace icon) and 'class' (to be added to tag) keys + $bbcode[$name] = array($onclick,$onclick_var,$helptext,$icon,$function,$function_var,$glyph,$class); if($val['icon']) $iconpath[$name] = $icon; else unset($iconpath[$name]); } @@ -608,10 +609,10 @@ class bbcode_shortcodes extends e_shortcode } else { - $pre = "','\\n',($_helptxt))."\" onclick=\"{$_onclick_func}('".$_onclick_var."')\" ".($bbcode_helpactive ? "onmouseout=\"{$bbcode_help}(''{$bbcode_tag})\" onmouseover=\"{$bbcode_help}('".$_helptxt."'{$bbcode_tag})\"" : "" )." />"; + $pre = "','\\n',($_helptxt))."\" onclick=\"{$_onclick_func}('".$_onclick_var."')\" ".($bbcode_helpactive ? "onmouseout=\"{$bbcode_help}(''{$bbcode_tag})\" onmouseover=\"{$bbcode_help}('".$_helptxt."'{$bbcode_tag})\"" : "" )." />"; $post = "\n"; // btn-small bbcode bbcode_buttons } - + if($bbcode[$parm]) // default - insert text. { $text = $pre;