dp.SyntaxHighlighter.ClipboardSwf = '{$this->component_path}script/clipboard.swf';
@@ -68,18 +68,17 @@ dp.SyntaxHighlighter.HighlightAll('code');
dpScript;
Context::addHtmlFooter($js_code);
+ Context::addCSSFile($this->component_path.'css/SyntaxHighlighter.css');
+ Context::addJsFile($this->component_path.'script/shCore.js');
}
- Context::addCSSFile($this->component_path.'css/SyntaxHighlighter.css');
-
- Context::addJsFile($this->component_path.'script/shCore.js');
Context::addJsFile($this->component_path.'script/shBrush'.$code_type.'.js');
$output = null;
- if(isset($option_file_path) || isset($option_description)) {
+ if($option_file_path != null || $option_description != null) {
$output .= '';
- if(isset($option_file_path)) $output .= ''.$option_file_path.'';
- if(isset($option_description)) $output .= ''.$option_description.'';
+ if($option_file_path != null) $output .= ''.$option_file_path.'';
+ if($option_description != null) $output .= ''.$option_description.'';
$output .= '
';
}
$output .= sprintf('%s
', $code_type.$option, $body);
diff --git a/modules/editor/components/code_highlighter/tpl/popup.html b/modules/editor/components/code_highlighter/tpl/popup.html
index a38736285..a519c88c1 100755
--- a/modules/editor/components/code_highlighter/tpl/popup.html
+++ b/modules/editor/components/code_highlighter/tpl/popup.html
@@ -15,8 +15,8 @@
{$lang->code_type} |
|