tinymce-advanced
Last commit date
css
16 years ago
images
17 years ago
js
16 years ago
mce
16 years ago
utils
16 years ago
readme.txt
16 years ago
screenshot-1.png
16 years ago
tadv_admin.php
16 years ago
tadv_defaults.php
16 years ago
tiny_mce_popup.js
16 years ago
tinymce-advanced.php
16 years ago
tadv_admin.php
358 lines
| 1 | <?php |
| 2 | |
| 3 | if ( !defined('ABSPATH') || !current_user_can('manage_options') ) |
| 4 | wp_die('Cheatin’ uh?'); |
| 5 | |
| 6 | if ( isset( $_POST['tadv_uninstall'] ) ) { |
| 7 | check_admin_referer( 'tadv-uninstall' ); |
| 8 | |
| 9 | delete_option('tadv_options'); |
| 10 | delete_option('tadv_toolbars'); |
| 11 | delete_option('tadv_plugins'); |
| 12 | delete_option('tadv_btns1'); |
| 13 | delete_option('tadv_btns2'); |
| 14 | delete_option('tadv_btns3'); |
| 15 | delete_option('tadv_btns4'); |
| 16 | delete_option('tadv_allbtns'); |
| 17 | ?> |
| 18 | <div class="updated" style="margin-top:30px;"> |
| 19 | <p><?php _e('All options have been removed from the database. You can', 'tadv'); ?> <a href="plugins.php"><?php _e('deactivate TinyMCE Advanced', 'tadv'); ?></a> <?php _e('or', 'tadv'); ?> <a href=""> <?php _e('reload this page', 'tadv'); ?></a> <?php _e('to reset them to the default values.', 'tadv'); ?></p> |
| 20 | </div> |
| 21 | <?php |
| 22 | return; |
| 23 | } |
| 24 | |
| 25 | if ( ! isset($GLOBALS['wp_version']) || version_compare($GLOBALS['wp_version'], '2.8', '<') ) { // if less than 2.8 ?> |
| 26 | <div class="error" style="margin-top:30px;"> |
| 27 | <p><?php _e('This plugin requires WordPress version 2.8 or newer. Please upgrade your WordPress installation or download an', 'tadv'); ?> <a href="http://wordpress.org/extend/plugins/tinymce-advanced/download/"><?php _e('older version of the plugin.', 'tadv'); ?></a></p> |
| 28 | </div> |
| 29 | <?php |
| 30 | return; |
| 31 | } |
| 32 | |
| 33 | $update_tadv_options = false; |
| 34 | $imgpath = WP_PLUGIN_URL . '/tinymce-advanced/images/'; |
| 35 | |
| 36 | $tadv_toolbars = get_option('tadv_toolbars'); |
| 37 | if ( ! is_array($tadv_toolbars) ) { |
| 38 | @include_once( WP_PLUGIN_DIR . '/tinymce-advanced/tadv_defaults.php'); |
| 39 | $tadv_options = array( 'advlink' => 1, 'advimage' => 1, 'importcss' => 0, 'contextmenu' => 0, 'tadvreplace' => 0 ); |
| 40 | } else { |
| 41 | $tadv_options = get_option('tadv_options'); |
| 42 | $tadv_toolbars['toolbar_1'] = isset($tadv_toolbars['toolbar_1']) ? (array) $tadv_toolbars['toolbar_1'] : array(); |
| 43 | $tadv_toolbars['toolbar_2'] = isset($tadv_toolbars['toolbar_2']) ? (array) $tadv_toolbars['toolbar_2'] : array(); |
| 44 | $tadv_toolbars['toolbar_3'] = isset($tadv_toolbars['toolbar_3']) ? (array) $tadv_toolbars['toolbar_3'] : array(); |
| 45 | $tadv_toolbars['toolbar_4'] = isset($tadv_toolbars['toolbar_4']) ? (array) $tadv_toolbars['toolbar_4'] : array(); |
| 46 | } |
| 47 | |
| 48 | if ( isset( $_POST['tadv-save'] ) ) { |
| 49 | check_admin_referer( 'tadv-save-buttons-order' ); |
| 50 | |
| 51 | $tb1 = $tb2 = $tb3 = $tb4 = $btns = array(); |
| 52 | parse_str( $_POST['toolbar_1order'], $tb1 ); |
| 53 | parse_str( $_POST['toolbar_2order'], $tb2 ); |
| 54 | parse_str( $_POST['toolbar_3order'], $tb3 ); |
| 55 | parse_str( $_POST['toolbar_4order'], $tb4 ); |
| 56 | |
| 57 | $tadv_toolbars['toolbar_1'] = (array) $tb1['pre']; |
| 58 | $tadv_toolbars['toolbar_2'] = (array) $tb2['pre']; |
| 59 | $tadv_toolbars['toolbar_3'] = (array) $tb3['pre']; |
| 60 | $tadv_toolbars['toolbar_4'] = (array) $tb4['pre']; |
| 61 | |
| 62 | update_option( 'tadv_toolbars', $tadv_toolbars ); |
| 63 | |
| 64 | $tadv_options['advlink'] = $_POST['advlink'] ? 1 : 0; |
| 65 | $tadv_options['advimage'] = $_POST['advimage'] ? 1 : 0; |
| 66 | $tadv_options['contextmenu'] = $_POST['contextmenu'] ? 1 : 0; |
| 67 | $tadv_options['importcss'] = $_POST['importcss'] ? 1 : 0; |
| 68 | $tadv_options['fix_autop'] = $_POST['fix_autop'] ? 1 : 0; |
| 69 | $update_tadv_options = true; |
| 70 | } |
| 71 | |
| 72 | $hidden_row = 0; |
| 73 | $i = 0; |
| 74 | foreach ( $tadv_toolbars as $toolbar ) { |
| 75 | $l = false; |
| 76 | $i++; |
| 77 | |
| 78 | if ( empty($toolbar) ) { |
| 79 | $btns["toolbar_$i"] = array(); |
| 80 | continue; |
| 81 | } |
| 82 | |
| 83 | foreach( $toolbar as $k => $v ) { |
| 84 | if ( strpos($v, 'separator') !== false ) $toolbar[$k] = 'separator'; |
| 85 | if ( 'layer' == $v ) $l = $k; |
| 86 | if ( empty($v) ) unset($toolbar[$k]); |
| 87 | } |
| 88 | if ( $l ) array_splice( $toolbar, $l, 1, array('insertlayer', 'moveforward', 'movebackward', 'absolute') ); |
| 89 | |
| 90 | $btns["toolbar_$i"] = $toolbar; |
| 91 | } |
| 92 | extract($btns); |
| 93 | |
| 94 | if ( empty($toolbar_1) && empty($toolbar_2) && empty($toolbar_3) && empty($toolbar_4) ) { |
| 95 | ?><div class="error" id="message"><p><?php _e('All toolbars are empty! Default buttons loaded.', 'tadv'); ?></p></div><?php |
| 96 | |
| 97 | @include_once( WP_PLUGIN_DIR . '/tinymce-advanced/tadv_defaults.php'); |
| 98 | $allbtns = array_merge( $tadv_btns1, $tadv_btns2, $tadv_btns3, $tadv_btns4 ); |
| 99 | } else { |
| 100 | $allbtns = array_merge( $toolbar_1, $toolbar_2, $toolbar_3, $toolbar_4 ); |
| 101 | } |
| 102 | if ( in_array('advhr', $allbtns) ) $plugins[] = 'advhr'; |
| 103 | if ( in_array('insertlayer', $allbtns) ) $plugins[] = 'layer'; |
| 104 | if ( in_array('visualchars', $allbtns) ) $plugins[] = 'visualchars'; |
| 105 | |
| 106 | if ( in_array('nonbreaking', $allbtns) ) $plugins[] = 'nonbreaking'; |
| 107 | if ( in_array('styleprops', $allbtns) ) $plugins[] = 'style'; |
| 108 | if ( in_array('emotions', $allbtns) ) $plugins[] = 'emotions'; |
| 109 | if ( in_array('insertdate', $allbtns) || |
| 110 | in_array('inserttime', $allbtns) ) $plugins[] = 'insertdatetime'; |
| 111 | |
| 112 | if ( in_array('tablecontrols', $allbtns) ) $plugins[] = 'table'; |
| 113 | if ( in_array('print', $allbtns) ) $plugins[] = 'print'; |
| 114 | if ( in_array('iespell', $allbtns) ) $plugins[] = 'iespell'; |
| 115 | if ( in_array('search', $allbtns) || |
| 116 | in_array('replace', $allbtns) ) $plugins[] = 'searchreplace'; |
| 117 | |
| 118 | if ( in_array('cite', $allbtns) || |
| 119 | in_array('ins', $allbtns) || |
| 120 | in_array('del', $allbtns) || |
| 121 | in_array('abbr', $allbtns) || |
| 122 | in_array('acronym', $allbtns) || |
| 123 | in_array('attribs', $allbtns) ) $plugins[] = 'xhtmlxtras'; |
| 124 | |
| 125 | if ( $tadv_options['advlink'] == '1' ) $plugins[] = 'advlink'; |
| 126 | if ( $tadv_options['advimage'] == '1' ) $plugins[] = 'advimage'; |
| 127 | if ( $tadv_options['contextmenu'] == '1' ) $plugins[] = 'contextmenu'; |
| 128 | |
| 129 | $buttons = array( 'Kitchen Sink' => 'wp_adv', 'Quote' => 'blockquote', 'Bold' => 'bold', 'Italic' => 'italic', 'Strikethrough' => 'strikethrough', 'Underline' => 'underline', 'Bullet List' => 'bullist', 'Numbered List' => 'numlist', 'Outdent' => 'outdent', 'Indent' => 'indent', 'Allign Left' => 'justifyleft', 'Center' => 'justifycenter', 'Alligh Right' => 'justifyright', 'Justify' => 'justifyfull', 'Cut' => 'cut', 'Copy' => 'copy', 'Paste' => 'paste', 'Link' => 'link', 'Remove Link' => 'unlink', 'Insert Image' => 'image', 'More Tag' => 'wp_more', 'Split Page' => 'wp_page', 'Search' => 'search', 'Replace' => 'replace', '<!--fontselect-->' => 'fontselect', '<!--fontsizeselect-->' => 'fontsizeselect', 'Help' => 'wp_help', 'Full Screen' => 'fullscreen', '<!--styleselect-->' => 'styleselect', '<!--formatselect-->' => 'formatselect', 'Text Color' => 'forecolor', 'Back Color' => 'backcolor', 'Paste as Text' => 'pastetext', 'Paste from Word' => 'pasteword', 'Remove Format' => 'removeformat', 'Clean Code' => 'cleanup', 'Check Spelling' => 'spellchecker', 'Character Map' => 'charmap', 'Print' => 'print', 'Undo' => 'undo', 'Redo' => 'redo', 'Table' => 'tablecontrols', 'Citation' => 'cite', 'Inserted Text' => 'ins', 'Deleted Text' => 'del', 'Abbreviation' => 'abbr', 'Acronym' => 'acronym', 'XHTML Attribs' => 'attribs', 'Layer' => 'layer', 'Advanced HR' => 'advhr', 'View HTML' => 'code', 'Hidden Chars' => 'visualchars', 'NB Space' => 'nonbreaking', 'Sub' => 'sub', 'Sup' => 'sup', 'Visual Aids' => 'visualaid', 'Insert Date' => 'insertdate', 'Insert Time' => 'inserttime', 'Anchor' => 'anchor', 'Style' => 'styleprops', 'Smilies' => 'emotions', 'Insert Movie' => 'media', 'IE Spell' => 'iespell' ); |
| 130 | |
| 131 | if ( function_exists('moxiecode_plugins_url') ) { |
| 132 | if ( moxiecode_plugins_url('imagemanager') ) $buttons['MCFileManager'] = 'insertimage'; |
| 133 | if ( moxiecode_plugins_url('filemanager') ) $buttons['MCImageManager'] = 'insertfile'; |
| 134 | } |
| 135 | |
| 136 | $tadv_allbtns = array_values($buttons); |
| 137 | $tadv_allbtns[] = 'separator'; |
| 138 | $tadv_allbtns[] = '|'; |
| 139 | |
| 140 | if ( get_option('tadv_plugins') != $plugins ) update_option( 'tadv_plugins', $plugins ); |
| 141 | if ( get_option('tadv_btns1') != $toolbar_1 ) update_option( 'tadv_btns1', $toolbar_1 ); |
| 142 | if ( get_option('tadv_btns2') != $toolbar_2 ) update_option( 'tadv_btns2', $toolbar_2 ); |
| 143 | if ( get_option('tadv_btns3') != $toolbar_3 ) update_option( 'tadv_btns3', $toolbar_3 ); |
| 144 | if ( get_option('tadv_btns4') != $toolbar_4 ) update_option( 'tadv_btns4', $toolbar_4 ); |
| 145 | if ( get_option('tadv_allbtns') != $tadv_allbtns ) update_option( 'tadv_allbtns', $tadv_allbtns ); |
| 146 | |
| 147 | for ( $i = 1; $i < 21; $i++ ) |
| 148 | $buttons["s$i"] = "separator$i"; |
| 149 | |
| 150 | if ( isset($_POST['tadv-save']) ) { ?> |
| 151 | <div class="updated" id="message"><p><?php _e('Options saved', 'tadv'); ?></p></div> |
| 152 | <?php } ?> |
| 153 | |
| 154 | <div class="wrap" id="contain"> |
| 155 | |
| 156 | <h2><?php _e('TinyMCE Buttons Arrangement', 'tadv'); ?></h2> |
| 157 | |
| 158 | <form id="tadvadmin" method="post" action="" onsubmit=""> |
| 159 | <p><?php _e('Drag and drop buttons onto the toolbars below.', 'tadv'); ?></p> |
| 160 | |
| 161 | <div id="tadvzones"> |
| 162 | <input id="toolbar_1order" name="toolbar_1order" value="" type="hidden" /> |
| 163 | <input id="toolbar_2order" name="toolbar_2order" value="" type="hidden" /> |
| 164 | <input id="toolbar_3order" name="toolbar_3order" value="" type="hidden" /> |
| 165 | <input id="toolbar_4order" name="toolbar_4order" value="" type="hidden" /> |
| 166 | <input name="tadv-save" value="1" type="hidden" /> |
| 167 | |
| 168 | <div class="tadvdropzone"> |
| 169 | <ul style="position: relative;" id="toolbar_1" class="container"> |
| 170 | <?php |
| 171 | if ( is_array($tadv_toolbars['toolbar_1']) ) { |
| 172 | $tb1 = array(); |
| 173 | foreach( $tadv_toolbars['toolbar_1'] as $k ) { |
| 174 | $t = array_intersect( $buttons, (array) $k ); |
| 175 | $tb1 += $t; |
| 176 | } |
| 177 | |
| 178 | foreach( $tb1 as $name => $btn ) { |
| 179 | if ( strpos( $btn, 'separator' ) !== false ) { ?> |
| 180 | |
| 181 | <li class="separator" id="pre_<?php echo $btn; ?>"> |
| 182 | <div class="tadvitem"> </div></li> |
| 183 | <?php } else { ?> |
| 184 | |
| 185 | <li class="tadvmodule" id="pre_<?php echo $btn; ?>"> |
| 186 | <div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" title="<?php echo $name; ?>" /> |
| 187 | <span class="descr"> <?php echo $name; ?></span></div></li> |
| 188 | <?php } |
| 189 | } |
| 190 | $buttons = array_diff( $buttons, $tb1 ); |
| 191 | } ?> |
| 192 | </ul></div> |
| 193 | <br class="clear" /> |
| 194 | |
| 195 | <div class="tadvdropzone"> |
| 196 | <ul style="position: relative;" id="toolbar_2" class="container"> |
| 197 | <?php |
| 198 | if ( is_array($tadv_toolbars['toolbar_2']) ) { |
| 199 | $tb2 = array(); |
| 200 | foreach( $tadv_toolbars['toolbar_2'] as $k ) { |
| 201 | $t = array_intersect( $buttons, (array) $k ); |
| 202 | $tb2 = $tb2 + $t; |
| 203 | } |
| 204 | foreach( $tb2 as $name => $btn ) { |
| 205 | if ( strpos( $btn, 'separator' ) !== false ) { ?> |
| 206 | |
| 207 | <li class="separator" id="pre_<?php echo $btn; ?>"> |
| 208 | <div class="tadvitem"> </div></li> |
| 209 | <?php } else { ?> |
| 210 | |
| 211 | <li class="tadvmodule" id="pre_<?php echo $btn; ?>"> |
| 212 | <div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" title="<?php echo $name; ?>" /> |
| 213 | <span class="descr"> <?php echo $name; ?></span></div></li> |
| 214 | <?php } |
| 215 | } |
| 216 | $buttons = array_diff( $buttons, $tb2 ); |
| 217 | } ?> |
| 218 | </ul></div> |
| 219 | <br class="clear" /> |
| 220 | |
| 221 | <div class="tadvdropzone"> |
| 222 | <ul style="position: relative;" id="toolbar_3" class="container"> |
| 223 | <?php |
| 224 | if ( is_array($tadv_toolbars['toolbar_3']) ) { |
| 225 | $tb3 = array(); |
| 226 | foreach( $tadv_toolbars['toolbar_3'] as $k ) { |
| 227 | $t = array_intersect( $buttons, (array) $k ); |
| 228 | $tb3 += $t; |
| 229 | } |
| 230 | foreach( $tb3 as $name => $btn ) { |
| 231 | if ( strpos( $btn, 'separator' ) !== false ) { ?> |
| 232 | |
| 233 | <li class="separator" id="pre_<?php echo $btn; ?>"> |
| 234 | <div class="tadvitem"> </div></li> |
| 235 | <?php } else { ?> |
| 236 | |
| 237 | <li class="tadvmodule" id="pre_<?php echo $btn; ?>"> |
| 238 | <div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" title="<?php echo $name; ?>" /> |
| 239 | <span class="descr"> <?php echo $name; ?></span></div></li> |
| 240 | <?php } |
| 241 | } |
| 242 | $buttons = array_diff( $buttons, $tb3 ); |
| 243 | } ?> |
| 244 | </ul></div> |
| 245 | <br class="clear" /> |
| 246 | |
| 247 | <div class="tadvdropzone"> |
| 248 | <ul style="position: relative;" id="toolbar_4" class="container"> |
| 249 | <?php |
| 250 | if ( is_array($tadv_toolbars['toolbar_4']) ) { |
| 251 | $tb4 = array(); |
| 252 | foreach( $tadv_toolbars['toolbar_4'] as $k ) { |
| 253 | $t = array_intersect( $buttons, (array) $k ); |
| 254 | $tb4 += $t; |
| 255 | } |
| 256 | foreach( $tb4 as $name => $btn ) { |
| 257 | if ( strpos( $btn, 'separator' ) !== false ) { ?> |
| 258 | |
| 259 | <li class="separator" id="pre_<?php echo $btn; ?>"> |
| 260 | <div class="tadvitem"> </div></li> |
| 261 | <?php } else { ?> |
| 262 | |
| 263 | <li class="tadvmodule" id="pre_<?php echo $btn; ?>"> |
| 264 | <div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" title="<?php echo $name; ?>" /> |
| 265 | <span class="descr"> <?php echo $name; ?></span></div></li> |
| 266 | <?php } |
| 267 | } |
| 268 | $buttons = array_diff( $buttons, $tb4 ); |
| 269 | } ?> |
| 270 | </ul></div> |
| 271 | <br class="clear" /> |
| 272 | </div> |
| 273 | |
| 274 | <div id="tadvWarnmsg"> |
| 275 | <span id="too_long" style="display:none;"><?php _e('Adding too many buttons will make the toolbar too long and will not display correctly in TinyMCE!', 'tadv'); ?></span> |
| 276 | </div> |
| 277 | |
| 278 | <div id="tadvpalettediv"> |
| 279 | <ul style="position: relative;" id="tadvpalette"> |
| 280 | <?php |
| 281 | if ( is_array($buttons) ) { |
| 282 | foreach( $buttons as $name => $btn ) { |
| 283 | if ( strpos( $btn, 'separator' ) !== false ) { ?> |
| 284 | |
| 285 | <li class="separator" id="pre_<?php echo $btn; ?>"> |
| 286 | <div class="tadvitem"> </div></li> |
| 287 | <?php } else { ?> |
| 288 | |
| 289 | <li class="tadvmodule" id="pre_<?php echo $btn; ?>"> |
| 290 | <div class="tadvitem"><img src="<?php echo $imgpath . $btn . '.gif'; ?>" title="<?php echo $name; ?>" /> |
| 291 | <span class="descr"> <?php echo $name; ?></span></div></li> |
| 292 | <?php } |
| 293 | } |
| 294 | } ?> |
| 295 | </ul> |
| 296 | </div> |
| 297 | |
| 298 | <table class="clear" style="margin:10px 0"><tr><td style="padding:2px 12px 8px;"> |
| 299 | Also enable: |
| 300 | <label for="advlink" class="tadv-box"><?php _e('Advanced Link', 'tadv'); ?> |
| 301 | <input type="checkbox" class="tadv-chk" name="advlink" id="advlink" <?php if ( $tadv_options['advlink'] == '1' ) echo ' checked="checked"'; ?> /></label> • |
| 302 | |
| 303 | <label for="advimage" class="tadv-box"><?php _e('Advanced Image', 'tadv'); ?> |
| 304 | <input type="checkbox" class="tadv-chk" name="advimage" id="advimage" <?php if ( $tadv_options['advimage'] == '1' ) echo ' checked="checked"'; ?> /></label> • |
| 305 | <label for="contextmenu" class="tadv-box"><?php _e('Context Menu', 'tadv'); ?> |
| 306 | |
| 307 | <input type="checkbox" class="tadv-chk" name="contextmenu" id="contextmenu" <?php if ( $tadv_options['contextmenu'] == '1' ) echo ' checked="checked"'; ?> /></label> |
| 308 | <?php _e('(to show the context menu in Firefox and use the spellchecker, hold down the Ctrl key).', 'tadv'); ?> |
| 309 | </td></tr> |
| 310 | |
| 311 | <tr><td style="border:1px solid #CD0000;padding:2px 12px 8px;"> |
| 312 | <p style="font-weight:bold;color:#CD0000;"><?php _e('Advanced', 'tadv'); ?></p> |
| 313 | |
| 314 | <p><label for="importcss" class="tadv-box"><?php _e('Import the current theme CSS classes', 'tadv'); ?> |
| 315 | <input type="checkbox" class="tadv-chk" name="importcss" id="importcss" <?php if ( $tadv_options['importcss'] == '1' ) echo ' checked="checked"'; ?> /></label></p> |
| 316 | <p style="font-size:11px;"><?php _e('Custom CSS styles can be added in', 'tadv'); ?> <a href="plugin-editor.php?file=tinymce-advanced/css/tadv-mce.css&plugin=tinymce-advanced/tinymce-advanced.php"> <?php _e('/wp-content/plugins/tinymce-advanced/css/tadv-mce.css.', 'tadv'); ?></a> <?php _e('They will be imported and used in TinyMCE. Only CSS classes will be used, also <strong>div.my-class</strong> would not work, but <strong>.my-class</strong> will.', 'tadv'); ?></p> |
| 317 | <p><label for="fix_autop" class="tadv-box"><?php _e('Stop removing the <p> and <br /> tags when saving and show them in the HTML editor', 'tadv'); ?> |
| 318 | <input type="checkbox" class="tadv-chk" name="fix_autop" id="fix_autop" <?php if ( $tadv_options['fix_autop'] == '1' ) echo ' checked="checked"'; ?> /></label></p> |
| 319 | <p style="font-size:11px;"><?php _e('This will make it possible to use more advanced HTML without the back-end filtering affecting it much. It also preserves empty new lines in the editor by padding them with <br /> tags.', 'tadv'); ?></p> |
| 320 | </td></tr> |
| 321 | <?php |
| 322 | $mce_locale = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); |
| 323 | if ( $mce_locale != 'en' ) { |
| 324 | if ( ! @file_exists(WP_PLUGIN_DIR . '/tinymce-advanced/mce/advlink/langs/' . $mce_locale . '_dlg.js') ) { ?> |
| 325 | <tr><td style="padding:2px 12px 8px;"> |
| 326 | <p style="font-weight:bold;"><?php _e('Language Settings', 'tadv'); ?></p> |
| 327 | <p><?php _e('Your WordPress language is set to', 'tadv'); ?> <strong><?php echo get_locale(); ?></strong>. <?php _e('However there is no matching language installed for TinyMCE plugins. This plugin includes several translations: German, French, Italian, Spanish, Portuguese, Russian, Japanese and Chinese. More translations are available at the', 'tadv'); ?> <a href="http://services.moxiecode.com/i18n/"><?php _e('TinyMCE web site.', 'tadv'); ?></a></p> |
| 328 | </td></tr> |
| 329 | <?php } |
| 330 | } // end mce_locale |
| 331 | ?> |
| 332 | </table> |
| 333 | |
| 334 | <p> |
| 335 | <?php wp_nonce_field( 'tadv-save-buttons-order' ); ?> |
| 336 | <input class="button tadv_btn" type="button" class="tadv_btn" value="<?php _e('Remove Settings', 'tadv'); ?>" onclick="document.getElementById('tadv_uninst_div').style.display = 'block';" /> |
| 337 | <input class="button-primary tadv_btn" type="button" value="<?php _e('Save Changes', 'tadv'); ?>" onclick="tadvSortable.serialize();" /> |
| 338 | </p> |
| 339 | </form> |
| 340 | |
| 341 | <div id="tadvWarnmsg2"> |
| 342 | <span id="sink_err" style="display:none;"><?php _e('The Kitchen Sink button shows/hides the next toolbar row. It will not work at the current place.', 'tadv'); ?></span> |
| 343 | </div> |
| 344 | |
| 345 | <div id="tadv_uninst_div" style=""> |
| 346 | <form method="post" action=""> |
| 347 | <?php wp_nonce_field('tadv-uninstall'); ?> |
| 348 | <div><?php _e('Remove all saved settings from the database?', 'tadv'); ?> |
| 349 | <input class="button tadv_btn" type="button" name="cancel" value="<?php _e('Cancel', 'tadv'); ?>" onclick="document.getElementById('tadv_uninst_div').style.display = 'none';" style="margin-left:20px" /> |
| 350 | <input class="button tadv_btn" type="submit" name="tadv_uninstall" value="<?php _e('Continue', 'tadv'); ?>" /></div> |
| 351 | </form> |
| 352 | </div> |
| 353 | </div> |
| 354 | |
| 355 | <?php |
| 356 | if ( $update_tadv_options ) |
| 357 | update_option( 'tadv_options', $tadv_options ); |
| 358 |