';
printf(__('Thank you for choosing Ultimate Tinymce.
Please visit the Ultimate Tinymce Settings Page to begin customization of your editor.
If you are upgrading from a previous version, you will need to reconfigure your button row settings.Hide Notice'), '?jwl_nag_ignore=0');
echo "
DescriptionEnableImageHelpRow Selection
','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function2() { _e('DescriptionEnableImageHelpRow Selection
','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function3() { _e('These are added bonuses and features I have included.
','jwl-ultimate-tinymce'); } function jwl_setting_section_callback_function4() { _e(' Here you can enable advanced features of the TinyMCE Editor.
NOTE:
Checking the box "enables" the selected advanced feature.
De-selecting the box will restore original Wordpress default functionality for that setting.
 ?>img/fontselect.png)
";
foreach($items_fontselect as $item_fontselect) {
$selected_fontselect = ($options_fontselect['row']==$item_fontselect) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_fontsizeselect_callback_function() {
echo ' ';
?> ?>img/fontsizeselect.png)
";
foreach($items_fontsizeselect as $item_fontsizeselect) {
$selected_fontsizeselect = ($options_fontsizeselect['row']==$item_fontsizeselect) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_cut_callback_function() {
echo ' ';
?> ?>img/cut.png)
";
foreach($items_cut as $item_cut) {
$selected_cut = ($options_cut['row']==$item_cut) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_copy_callback_function() {
echo ' ';
?> ?>img/copy.png)
";
foreach($items_copy as $item_copy) {
$selected_copy = ($options_copy['row']==$item_copy) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_paste_callback_function() {
echo ' ';
?> ?>img/paste.png)
";
foreach($items_paste as $item_paste) {
$selected_paste = ($options_paste['row']==$item_paste) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_backcolorpicker_callback_function() {
echo ' ';
?> ?>img/backcolorpicker.png)
";
foreach($items_backcolorpicker as $item_backcolorpicker) {
$selected_backcolorpicker = ($options_backcolorpicker['row']==$item_backcolorpicker) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_forecolorpicker_callback_function() {
echo ' ';
?> ?>img/forecolorpicker.png)
";
foreach($items_forecolorpicker as $item_forecolorpicker) {
$selected_forecolorpicker = ($options_forecolorpicker['row']==$item_forecolorpicker) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_advhr_callback_function() {
echo ' ';
?> ?>img/hr.png)
";
foreach($items_advhr as $item_advhr) {
$selected_advhr = ($options_advhr['row']==$item_advhr) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_visualaid_callback_function() {
echo ' ';
?> ?>img/visualaid.png)
";
foreach($items_visualaid as $item_visualaid) {
$selected_visualaid = ($options_visualaid['row']==$item_visualaid) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_anchor_callback_function() {
echo ' ';
?> ?>img/anchor.png)
";
foreach($items_anchor as $item_anchor) {
$selected_anchor = ($options_anchor['row']==$item_anchor) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_sub_callback_function() {
echo ' ';
?> ?>img/sub.png)
";
foreach($items_sub as $item_sub) {
$selected_sub = ($options_sub['row']==$item_sub) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_sup_callback_function() {
echo ' ';
?> ?>img/sup.png)
";
foreach($items_sup as $item_sup) {
$selected_sup = ($options_sup['row']==$item_sup) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_search_callback_function() {
echo ' ';
?> ?>img/search.png)
";
foreach($items_search as $item_search) {
$selected_search = ($options_search['row']==$item_search) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_replace_callback_function() {
echo ' ';
?> ?>img/replace.png)
";
foreach($items_replace as $item_replace) {
$selected_replace = ($options_replace['row']==$item_replace) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_datetime_callback_function() {
echo ' ';
?> ?>img/datetime.png)
";
foreach($items_datetime as $item_datetime) {
$selected_datetime = ($options_datetime['row']==$item_datetime) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
// Begin Callback functions for each individual setting registered in code above.
// Callback Functions for Row 4 Buttons
function jwl_styleselect_callback_function() {
echo ' ';
?> ?>img/styleselect.png)
";
foreach($items_styleselect as $item_styleselect) {
$selected_styleselect = ($options_styleselect['row']==$item_styleselect) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_tableDropdown_callback_function() {
echo ' ';
?> ?>img/tableDropdown.png)
";
foreach($items_tableDropdown as $item_tableDropdown) {
$selected_tableDropdown = ($options_tableDropdown['row']==$item_tableDropdown) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_emotions_callback_function() {
echo ' ';
?> ?>img/emotions.png)
";
foreach($items_emotions as $item_emotions) {
$selected_emotions = ($options_emotions['row']==$item_emotions) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_image_callback_function() {
echo ' ';
?> ?>img/image.png)
";
foreach($items_image as $item_image) {
$selected_image = ($options_image['row']==$item_image) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_preview_callback_function() {
echo ' ';
?> ?>img/preview.png)
";
foreach($items_preview as $item_preview) {
$selected_preview = ($options_preview['row']==$item_preview) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_cite_callback_function() {
echo ' ';
?> ?>img/cite.png)
";
foreach($items_cite as $item_cite) {
$selected_cite = ($options_cite['row']==$item_cite) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_abbr_callback_function() {
echo ' ';
?> ?>img/abbr.png)
";
foreach($items_abbr as $item_abbr) {
$selected_abbr = ($options_abbr['row']==$item_abbr) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_acronym_callback_function() {
echo ' ';
?> ?>img/acronym.png)
";
foreach($items_acronym as $item_acronym) {
$selected_acronym = ($options_acronym['row']==$item_acronym) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_del_callback_function() {
echo ' ';
?> ?>img/del.png)
";
foreach($items_del as $item_del) {
$selected_del = ($options_del['row']==$item_del) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_ins_callback_function() {
echo ' ';
?> ?>img/ins.png)
";
foreach($items_ins as $item_ins) {
$selected_ins = ($options_ins['row']==$item_ins) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_attribs_callback_function() {
echo ' ';
?> ?>img/attribs.png)
";
foreach($items_attribs as $item_attribs) {
$selected_attribs = ($options_attribs['row']==$item_attribs) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_styleprops_callback_function() {
echo ' ';
?> ?>img/styleprops.png)
";
foreach($items_styleprops as $item_styleprops) {
$selected_styleprops = ($options_styleprops['row']==$item_styleprops) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_code_callback_function() {
echo ' ';
?> ?>img/code.png)
";
foreach($items_code as $item_code) {
$selected_code = ($options_code['row']==$item_code) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_codemagic_callback_function() {
echo ' ';
?> ?>img/codemagic.png)
";
foreach($items_codemagic as $item_codemagic) {
$selected_codemagic = ($options_codemagic['row']==$item_codemagic) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_media_callback_function() {
echo ' ';
?> ?>img/media.png)
";
foreach($items_media as $item_media) {
$selected_media = ($options_media['row']==$item_media) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_youtube_callback_function() {
echo ' ';
?> ?>img/youtube.png)
";
foreach($items_youtube as $item_youtube) {
$selected_youtube = ($options_youtube['row']==$item_youtube) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_imgmap_callback_function() {
echo ' ';
?> ?>img/imgmap.png)
";
foreach($items_imgmap as $item_imgmap) {
$selected_imgmap = ($options_imgmap['row']==$item_imgmap) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_visualchars_callback_function() {
echo ' ';
?> ?>img/visualchars.png)
";
foreach($items_visualchars as $item_visualchars) {
$selected_visualchars = ($options_visualchars['row']==$item_visualchars) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_print_callback_function() {
echo ' ';
?> ?>img/print.png)
";
foreach($items_print as $item_print) {
$selected_print = ($options_print['row']==$item_print) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
function jwl_shortcodes_callback_function() {
echo ' ';
?> ?>img/shortcodes.png)
";
foreach($items_shortcodes as $item_shortcodes) {
$selected_shortcodes = ($options_shortcodes['row']==$item_shortcodes) ? 'selected="selected"' : '';
echo "";
}
echo "";
}
// Callback functions for miscellaneous options and features
// Function and Settings for Tinymce editor color changes
function jwl_tinycolor_css_callback_function() {
$options = get_option('jwl_tinycolor_css_field_id');
$items = array("Default", "Pink", "Green", "Dark&Green", "Dark&Pink", "Rainbow", "Steel");
echo "";
?>
';
?>
';
?>
';
?>
';
?>
';
?>
';
?>
[break] shortcode');
}
function jwl_columns_callback_function() {
echo ' ';
?>
[one_half]This is the left column.[/one_half] [one_half_last]This is the right column.[/one_half_last]');
}
function jwl_signoff_callback_function() {
echo '';
?>
Insert the above code using the [signoff] shortcode within your post.');
}
// Callback functions for Advanced TinyMCE Features
function jwl_defaults_callback_function() {
echo ' ';
?> ?>advlink/advlink.png)
';
?>
';
?>
';
?>
Read the help file first.'); ?> __('Bold Red Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#FF0000', 'fontWeight' => 'bold' )),
array( 'title' => __('Bold Green Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#00FF00', 'fontWeight' => 'bold' )),
array( 'title' => __('Bold Blue Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#0000FF', 'fontWeight' => 'bold' )),
array( 'title' => __('Italic Red Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#FF0000', 'font-style' => 'italic' )),
array( 'title' => __('Italic Green Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#00FF00', 'font-style' => 'italic' )),
array( 'title' => __('Italic Blue Text','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'color' => '#0000FF', 'font-style' => 'italic' )),
array( 'title' => __('Borders','jwl-ultimate-tinymce')),
array( 'title' => __('Border Black','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #000000', 'padding' => '2px' )),
array( 'title' => __('Border Red','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #FF0000', 'padding' => '2px' )),
array( 'title' => __('Border Green','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #00FF00', 'padding' => '2px' )),
array( 'title' => __('Border Blue','jwl-ultimate-tinymce'), 'inline' => 'span', 'styles' => array( 'border' => '1px solid #0000FF', 'padding' => '2px' )),
array( 'title' => __('Float','jwl-ultimate-tinymce')),
array( 'title' => __('Float Left','jwl-ultimate-tinymce'), 'block' => 'span', 'styles' => array( 'float' => 'left' )),
array( 'title' => __('Float Right','jwl-ultimate-tinymce'), 'block' => 'span', 'styles' => array( 'float' => 'right' )),
array( 'title' => __('Alerts','jwl-ultimate-tinymce')),
array( 'title' => __('Normal Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #DEDEDE', 'background' => '#EFEFEF url('.plugin_dir_url( __FILE__ ).'img/normal.png) 8px 4px no-repeat', 'background-repeat' => 'no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )),
array( 'title' => __('Green Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #1EDB0D', 'background' => '#A9FCA2 url('.plugin_dir_url( __FILE__ ).'img/green.png) 8px 4px no-repeat', 'background-repeat' => 'no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )),
array( 'title' => __('Yellow Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #F5F531', 'background' => '#FAFAB9 url('.plugin_dir_url( __FILE__ ).'img/yellow.png) 8px 4px no-repeat', 'background-repeat' => 'no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' )),
array( 'title' => __('Red Alert','jwl-ultimate-tinymce'), 'block' => 'div', 'styles' => array( 'border' => 'solid 1px #ED220C', 'background' => '#FABDB6 url('.plugin_dir_url( __FILE__ ).'img/red.png) 8px 4px no-repeat', 'background-repeat' => 'no-repeat', 'color' => '#222222' , 'padding' => '4px 4px 4px 30px' , 'text-align' => 'left' ))
);
$settings['style_formats'] = json_encode( $style_formats );
return $settings;
}
add_filter( 'tiny_mce_before_init', 'josh_mce_before_init' );
}
// User option for adding the clear div buttons in the visual editor
function tinymce_add_button_div($buttons) {
$jwl_div = get_option('jwl_div_field_id');
if ($jwl_div == "1")
array_push($buttons, "separator", "clearleft","clearright","clearboth");
return $buttons;
}
add_filter('mce_buttons', 'tinymce_add_button_div');
// Function to remove wpautop
$jwl_autop = get_option('jwl_autop_field_id');
if ($jwl_autop == "1"){
remove_filter ('the_content', 'wpautop');
}
// Functions for miscellaneous options and features
// Function for NextPage Feature
$jwl_tinymce_nextpage = get_option('jwl_tinymce_nextpage_field_id');
if ($jwl_tinymce_nextpage == "1"){
add_filter('mce_buttons','jwl_nextpage_button');
function jwl_nextpage_button($mce_buttons) {
$pos = array_search('wp_more',$mce_buttons,true);
if ($pos !== false) {
$tmp_buttons = array_slice($mce_buttons, 0, $pos+1);
$tmp_buttons[] = 'wp_page';
$mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos+1));
}
return $mce_buttons;
}
}
// Function for excerpt editor
$jwl_tinymce_excerpt = get_option('jwl_tinymce_excerpt_field_id');
if ($jwl_tinymce_excerpt == "1"){
function jwl_tinymce_excerpt_js(){ ?>
'widget_execphp', 'description' => __('Arbitrary text, HTML, or PHP Code'));
$control_ops = array('width' => 400, 'height' => 350);
$this->WP_Widget('execphp', __('PHP Code'), $widget_ops, $control_ops);
}
function widget( $args, $instance ) {
extract($args);
$title = apply_filters( 'widget_title', empty($instance['title']) ? '' : $instance['title'], $instance );
$text = apply_filters( 'widget_execphp', $instance['text'], $instance );
echo $before_widget;
if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }
ob_start();
eval('?>'.$text);
$text = ob_get_contents();
ob_end_clean();
?>
'', 'text' => '' ) );
$title = strip_tags($instance['title']);
$text = format_to_edit($instance['text']);
?>
/>
'; } add_shortcode( 'break', 'jwl_insert_linebreak' ); } // User option for adding a signoff shortcode for tinymce visual editor (Goes with custom message box below) function jwl_sign_off_text() { $jwl_signoff = get_option('jwl_signoff_field_id'); return $jwl_signoff; } add_shortcode('signoff', 'jwl_sign_off_text'); // Add column shortcodes for tinymce editor $jwl_columns = get_option('jwl_columns_field_id'); if ($jwl_columns == "1"){ function jwl_one_third( $atts, $content = null ) { return '
.