getConfig(); $html = ''; $tooltip = isset($attributes['tooltip']) ? $attributes['tooltip'] : ''; $html .= '
'; if(!empty($attributes['label']) && $attributes['label']!='' && !empty($attributes['name']) && $attributes['name']!=''){ $html .= ''; } $html.= '
'; if ($config['useeditor'] == 0) { $html .= ''; } else { $settings = array( 'textarea_name' => $attributes['name'], //'quicktags' => array( 'buttons' => 'em,strong,link' ), 'media_buttons' => false, 'tinymce' => array( 'theme_advanced_buttons1' => 'bold,italic,strikethrough,separator,bullist,numlist,separator,blockquote,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,separator,undo,redo,separator', 'theme_advanced_buttons2' => '', ), 'editor_css' => '' ); ob_start(); wp_editor( htmlspecialchars_decode( $attributes['value'] ), $attributes['name'], $settings ); $html .= ob_get_clean(); if(!empty($attributes['help']) && $attributes['help']!=''){ $html .= '

'.$attributes['help'].'

'; } } $html .= '
'; if ($config['useeditor'] == 1) { ob_start(); global $wp_version, $tinymce_version, $concatenate_scripts, $compress_scripts; $version = 'ver=' . $tinymce_version; $compressed = $compress_scripts && $concatenate_scripts && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && false !== stripos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip'); // Load tinymce.js when running from /src, else load wp-tinymce.js.gz (production) or tinymce.min.js (SCRIPT_DEBUG) $mce_suffix = false !== strpos( $wp_version, '-src' ) ? '' : '.min'; $baseurl = includes_url( 'js/tinymce' ); $suffix = SCRIPT_DEBUG ? '' : '.min'; if ( $compressed ) { echo "\n"; } else { echo "\n"; echo "\n"; } ?>