C:\xampp\htdocs\landing\wp-content\plugins\tinymce-advanced\tadv_admin.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
<?php
/**
 * User and admin settings UI.
 * @package advanced-editor-tools
 */

if ( ! defined'TADV_ADMIN_PAGE' ) ) {
    exit;
}

// TODO
if ( ! current_user_can'manage_options' ) ) {
    
wp_die'Invalid request' );
}

$message '';
$tadv_options_updated false;
$settings $admin_settings = array();
$images_url plugins_url'plugin-assets/images'__FILE__ );
$form_action esc_urlremove_query_arg( array( 'tadv-import-file-complete' ), wp_unslash$_SERVER['REQUEST_URI'] ) ) );

if ( isset( 
$_POST['tadv-save'] ) ) {
    
check_admin_referer'tadv-save-buttons-order' );
    
$this->save_settings();
} elseif ( isset( 
$_POST['tadv-restore-defaults'] ) ) {
    
check_admin_referer'tadv-save-buttons-order' );

    
// TODO: only for admin || SA
    
$this->admin_settings $this->get_default_admin_settings();
    
update_option'tadv_admin_settings'$this->get_default_admin_settings() );

    
// TODO: all users that can have settings
    
$this->user_settings $this->get_default_user_settings();
    
update_option'tadv_settings'$this->get_default_user_settings() );

    
$message '<div class="updated notice notice-success is-dismissible"><p>' .  __'Default settings restored.''tinymce-advanced' ) . '</p></div>';
} elseif ( isset( 
$_POST['tadv-import-settings'] ) ) {
    
check_admin_referer'tadv-save-buttons-order' );

    
// TODO: all users
    
?>
    <div class="wrap advanced-editor-tools">
    <h2><?php _e'Advanced Editor Tools Settings Import''tinymce-advanced' ); ?></h2>

    <div class="tadv-import-export">
        <form action="" method="post" enctype="multipart/form-data" class="import-file">
            <p><?php _e'The settings are imported from a previously exported settings file.''tinymce-advanced' ); ?></p>
            <p><input type="file" name="tadv-import"></p>
            <p><input type="submit" class="button button-primary" name="tadv-import-file" value="<?php _e'Import settings''tinymce-advanced' ); ?>" /></p>
            <?php wp_nonce_field'tadv-import-settings''tadv-import-settings-nonce'false ); ?>
        </form>
        <hr>
        <form action="<?php echo $form_action?>" method="post">
            <p><?php _e'Alternatively the settings can be imported from a JSON encoded string. Please paste the exported string in the text area below.''tinymce-advanced' );    ?></p>
            <p><textarea id="tadv-import" name="tadv-import"></textarea></p>
            <p>
                <button type="button" class="button" id="tadv-import-verify"><?php _e'Verify''tinymce-advanced' ); ?></button>
                <input type="submit" class="button button-primary alignright" name="tadv-import-submit" value="<?php _e'Import settings from string''tinymce-advanced' ); ?>" />
            </p>
            <?php wp_nonce_field'tadv-import-settings''tadv-import-settings-nonce'false ); ?>
            <p id="tadv-import-error"></p>
        </form>
        <p><a href=""><?php _e'Back to Editor Settings''tinymce-advanced' ); ?></a></p>
    </div>
    </div>
    <?php

    
return;
} elseif ( isset( 
$_POST['tadv-import-submit'] ) && ! empty( $_POST['tadv-import'] ) && is_string$_POST['tadv-import'] ) ) {
    
check_admin_referer'tadv-import-settings''tadv-import-settings-nonce' );

    
// TODO: all users that can have settings
    
$import json_decodetrimwp_unslash$_POST['tadv-import'] ) ), true );

    if ( ! 
is_array$import ) ) {
        
$message '<div class="error notice is-dismissible"><p>' .  __'Importing of settings failed.''tinymce-advanced' ) . '</p></div>';
    } else {
        
$this->save_settings$import );
        
$message '<div class="updated notice notice-success is-dismissible"><p>' __'Settings imported successfully.''tinymce-advanced' ) . '</p></div>';
    }
} elseif ( isset( 
$_GET['tadv-import-file-complete'] ) ) {
    
$err = (int) $_GET['tadv-import-file-complete'];

    switch( 
$err ) {
        case 
1:
            
$message __'Importing of settings failed. Please import a valid settings file.''tinymce-advanced' );
            break;
        case 
2:
            
$message __'Importing of settings failed. The imported file is empty.''tinymce-advanced' );
            break;
        case 
3:
            
$message __'Importing of settings failed. The imported file is invalid.''tinymce-advanced' );
            break;
    }

    if ( empty( 
$message ) ) {
        
$message '<div class="updated notice notice-success is-dismissible"><p>' __'Settings imported successfully.''tinymce-advanced' ) . '</p></div>';
    } else {
        
$message '<div class="error notice is-dismissible"><p>' $message '</p></div>';
    }
}

$this->load_settings();

if ( empty( 
$this->toolbar_1 ) && empty( $this->toolbar_2 ) && empty( $this->toolbar_3 ) && empty( $this->toolbar_4 ) ) {
    
$message '<div class="error"><p>' __'ERROR: All toolbars are empty. Default settings loaded.''tinymce-advanced' ) . '</p></div>';

    
$this->admin_settings $this->get_default_admin_settings();
    
$this->user_settings $this->get_default_user_settings();
    
$this->load_settings();
}

$all_buttons $this->get_all_buttons();

?>
<div class="wrap tinymce-advanced block-active<?php if ( is_rtl() ) echo ' mce-rtl'?>" id="contain">
<h2><?php _e'Advanced Editor Tools''tinymce-advanced' ); ?></h2>
<?php

// TODO admin || SA
$this->warn_if_unsupported();

// Add a notice that the plugin was renamed.
// Remove in the bnext version.
?>
<div class="notice notice-warning is-dismissible"><p>
<?php _e'Please note: This plugin was renamed from "TinyMCE Advanced" to "Advanced Editor Tools". The plugin functionality remains the same.''tinymce-advanced' ); ?>
</p></div>
<?php

if ( isset( $_POST['tadv-save'] ) && empty( $message ) ) {
    
?><div class="updated notice notice-success is-dismissible"><p><?php _e'Settings saved.''tinymce-advanced' ); ?></p></div><?php
} else {
    echo 
$message;
}

$dashicons_arrow is_rtl() ? 'dashicons-arrow-left' 'dashicons-arrow-right';

?>
<form id="tadvadmin" method="post" action="<?php echo $form_action?>">

<div class="toggle">
    <p class="tadv-submit tadv-submit-top">
        <input class="button-primary button-large top-button" type="submit" name="tadv-save" value="<?php _e'Save Changes''tinymce-advanced' ); ?>" />
    </p>
    <h3 class="settings-toggle block" tabindex="0">
        <span class="dashicons dashicons-arrow-down"></span>
        <span class="dashicons arrow-open <?php echo $dashicons_arrow?>"></span>
        <?php _e'Block Editor (Gutenberg)''tinymce-advanced' ); ?>
    </h3>
    <h3 class="settings-toggle classic" tabindex="0">
        <span class="dashicons dashicons-arrow-down"></span>
        <span class="dashicons arrow-open <?php echo $dashicons_arrow?>"></span>
        <?php _e'Classic Editor (TinyMCE)''tinymce-advanced' ); ?>
    </h3>
</div>

<div id="block-editor">
<h4><?php _e'Toolbars for the Block Editor''tinymce-advanced' ); ?></h4>
<div class="block-toolbars">
<?php
    $all_block_buttons 
$this->get_all_block_buttons();
    
$all_block_panels $this->get_all_block_panels();

?>

    <div>
        <p class="toolbar-block-title">
            <strong><?php _e'Main toolbar''tinymce-advanced' ); ?></strong>
            <br>
            <span class="tma-help tadv-popout-help-toggle">
                <span class="dashicons dashicons-editor-help"></span>
                <?php _e'Limitations for the Block Editor toolbar''tinymce-advanced' ); ?>
            </span>
        </p>

        <div class="tadv-popout-help hidden">
            <span class="tadv-popout-help-close dashicons dashicons-no-alt"></span>
            <ol>
                <li><?php _e'The Align Left, Align Center, Align Right, Bold, Italic, and Link buttons cannot be moved or arranged.''tinymce-advanced' ); ?></li>
                <li><?php _e'All other buttons are always shown in a drop-down. The users are not allowed to add any of them to the main toolbar.''tinymce-advanced' ); ?></li>
                <li><?php _e'All buttons that are shown in the drop-down are auto-arranged by alphabetical order. The users are not allowed to arrange them.''tinymce-advanced' ); ?></li>
                <li><?php _e'The drop-down cannot be empty and the Inline Image and Text Color items cannot be placed in the side toolbar.''tinymce-advanced' ); ?>
            </ol>
        </div>

        <div class="toolbar-block-wrap toolbar-wrap">
            <div role="toolbar" aria-orientation="horizontal" class="tma-block-toolbar-wrap editor-block-toolbar" aria-label="Block toolbar example representation">

            <div class="editor-block-switcher block-editor-block-switcher">
                <div class="components-toolbar">
                    <button type="button" class="components-button components-icon-button editor-block-switcher__toggle block-editor-block-switcher__toggle">
                        <span class="editor-block-icon block-editor-block-icon has-colors">
                            <svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img" aria-hidden="true" focusable="false"><path d="M11 5v7H9.5C7.6 12 6 10.4 6 8.5S7.6 5 9.5 5H11m8-2H9.5C6.5 3 4 5.5 4 8.5S6.5 14 9.5 14H11v7h2V5h2v16h2V5h2V3z"></path></svg>
                        </span>
                    </button>
                </div>
            </div>

            <div class="components-toolbar">
                <div>
                    <button type="button" aria-label="Align text left" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                        <span class="dashicons dashicons-editor-alignleft"></span>
                    </button>
                </div>

                <div>
                    <button type="button" aria-label="Align text center" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                        <span class="dashicons dashicons-editor-aligncenter"></span>
                    </button>
                </div>

                <div>
                    <button type="button" aria-label="Align text right" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                        <span class="dashicons dashicons-editor-alignright"></span>
                    </button>
                </div>
            </div>

            <?php if ( is_rtl() ) : ?>
            <div class="components-toolbar">
                <div>
                    <button type="button" aria-label="Left to right" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                        <span class="dashicons dashicons-editor-ltr"></span>
                    </button>
                </div>
            </div>
            <?php endif; ?>

            <div class="editor-format-toolbar block-editor-format-toolbar">
                <div class="components-toolbar">
                    <div>
                        <button type="button" aria-label="Bold" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                            <span class="dashicons dashicons-editor-bold"></span>
                        </button>
                    </div>

                    <div>
                        <button type="button" aria-label="Italic" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                            <span class="dashicons dashicons-editor-italic"></span>
                        </button>
                    </div>

                    <div>
                        <button type="button" aria-label="Link" aria-pressed="false" class="components-button components-icon-button components-toolbar__control">
                            <span class="dashicons dashicons-admin-links"></span>
                        </button>
                    </div>

                    <div class="components-dropdown-menu">
                        <button type="button" aria-label="More Rich Text Controls" aria-haspopup="true" aria-expanded="false" class="components-button components-icon-button components-dropdown-menu__toggle has-text">
                            <span class="components-dropdown-menu__indicator"></span>
                        </button>
                    </div>
                </div>
            </div>

            <div>
                <div class="components-toolbar">
                    <div>
                        <button type="button" aria-label="More options" aria-expanded="false" class="components-button components-icon-button components-toolbar__control editor-block-settings-menu__toggle block-editor-block-settings-menu__toggle">
                            <svg aria-hidden="true" role="img" focusable="false" class="dashicon dashicons-ellipsis" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path d="M5 10c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></svg>
                        </button>
                    </div>
                </div>
            </div>

            </div><?php // .editor-block-toolbar end ?>
        </div>
        <div class="tma-block-dropdown-toolbar-wrap">
            <div class="tma-block-dropdown-toolbar-arrow"></div>
            <div class="tma-block-dropdown-toolbar">
                <div class="tma-block-dropdown-toolbar-inner-wrap">
                    <ul id="toolbar_block" class="toolbar-block-dropdown container-block">
                    <?php

                    
// Block editor limitation: only the buttons in the overflow drop-down/sub-toolbar can be moved (but not arranged).
                    
$excluded_block_buttons = array(
                        
'core/bold',
                        
'core/italic',
                        
'core/link',
                    );

                    foreach( 
$this->toolbar_block as $button_id ) {
                        if ( 
in_array$button_id$excluded_block_buttonstrue ) ) {
                            continue;
                        }

                        if ( isset( 
$all_block_buttons$button_id ] ) ) {
                            
$name $all_block_buttons$button_id ]['name'];
                            
$icon $all_block_buttons$button_id ]['icon'];
                            unset( 
$all_block_buttons$button_id ] );
                        } else {
                            continue;
                        }

                        
?><li class="<?php echo str_replace'/''-'$button_id ); ?>">
                            <div type="button" title="<?php echo $name?>" aria-pressed="false" class="tma-components-icon-button">
                                <?php echo $icon?>
                                <span class="block-button-name"><?php echo $name?></span>
                            </div>
                            <input type="hidden" name="toolbar_block[]" value="<?php echo $button_id?>">
                        </li><?php
                    
}

                    
?>
                    </ul>
                </div>
            </div>
        </div>

        <p class="toolbar-block-title">
            <strong><?php _e'Alternative side toolbar''tinymce-advanced' ); ?></strong>
            <?php _e'(shown in the sidebar)''tinymce-advanced' ); ?>
        </p>
        <div class="toolbar-side-wrap toolbar-wrap">
            <div class="panel-title">
                <?php _e'Formatting''tinymce-advanced' ); ?>
                <span class="dashicons dashicons-arrow-up-alt2"></span>
            </div>
            <ul id="toolbar_block_side" class="tma-components-toolbar block-toolbar-side container-block"><?php


            
foreach( $this->toolbar_block_side as $button_id ) {
                if ( isset( 
$all_block_buttons$button_id ] ) ) {
                    
$name $all_block_buttons$button_id ]['name'];
                    
$icon $all_block_buttons$button_id ]['icon'];
                    unset( 
$all_block_buttons$button_id ] );
                } else {
                    continue;
                }

                
?><li class="<?php echo str_replace'/''-'$button_id ); ?>">
                    <div type="button" title="<?php echo $name?>" aria-pressed="false" class="tma-components-icon-button">
                        <?php echo $icon?>
                        <span class="block-button-name"><?php echo $name?></span>
                    </div>
                    <input type="hidden" name="toolbar_block_side[]" value="<?php echo $button_id?>">
                </li><?php
            
}

            
?></ul>

        </div><?php // toolbar-side-wrap end ?>

        <p class="toolbar-block-title">
            <strong><?php _e'Unused buttons for the blocks toolbars''tinymce-advanced' ); ?></strong>
        </p>
        <div class="toolbar-unused-wrap toolbar-wrap">
            <ul id="toolbar_block_unused" class="tma-components-toolbar block-toolbar-unused container-block"><?php

            
foreach( $all_block_buttons as $button_id => $button ) {
                
$name $button['name'];
                
$icon $button['icon'];

                
?><li class="<?php echo str_replace'/''-'$button_id ); ?>">
                    <div type="button" title="<?php echo $name?>" aria-pressed="false" class="tma-components-icon-button">
                        <?php echo $icon?>
                        <span class="block-button-name"><?php echo $name?></span>
                    </div>
                    <input type="hidden" name="toolbar_block_unused[]" value="<?php echo $button_id?>">
                </li><?php
            
}

            
?></ul>
        </div><?php // toolbar-unused-wrap end ?>

        <?php $colors_preview_src is_rtl() ? $images_url '/colors-rtl.png' $images_url '/colors.png' ?>
        <div class="panel-block-colors-wrap">
            <div class="panel-block-colors">
                <div class="panel-title">
                    <?php _e'Text color''tinymce-advanced' ); ?>
                    <span class="dashicons dashicons-arrow-up-alt2"></span>
                </div>
                <div class="panel-block-text-color<?php if ( ! $this->check_user_setting'selected_text_color' ) ) echo ' disabled'?>">
                    <p><?php _e'Selected text color''tinymce-advanced' ); ?></p>
                    <img width="260" height="100" class="text-color-preview" src="<?php echo $colors_preview_src?>">
                </div>
                <div class="panel-block-background-color<?php if ( ! $this->check_user_setting'selected_text_background_color' ) ) echo ' disabled'?>">
                    <p><?php _e'Selected text background color''tinymce-advanced' ); ?></p>
                    <img width="260" height="100" class="text-color-preview" src="<?php echo $colors_preview_src?>">
                </div>
            </div>

            <table class="form-table panel-block-colors-settings"><tbody>
                <tr class="panel-block-colors-settings__text">
                    <th>
                        <?php _e'Enable setting of selected text color''tinymce-advanced' ); ?>
                        <span class="small-info"><?php _e'(this will replace the default text color popup in WP 5.4 and newer)''tinymce-advanced' ); ?></span>
                    </th>
                    <td>
                        <p>
                            <input type="radio" name="selected_text_color" id="selected_text_color_yes" value="yes"<?php if ( $this->check_user_setting'selected_text_color' ) ) echo ' checked'?>>
                            <label for="selected_text_color_yes"><?php _e'Yes''tinymce-advanced' ); ?></label>
                        </p>
                        <p>
                            <input type="radio" name="selected_text_color" id="selected_text_color_no"  value="no"<?php if ( ! $this->check_user_setting'selected_text_color' ) ) echo ' checked'?>>
                            <label for="selected_text_color_no"><?php _e'No''tinymce-advanced' ); ?></label>
                        </p>
                    </td>
                </tr>
                <tr class="panel-block-colors-settings__background">
                    <th><?php _e'Enable setting of selected text background color''tinymce-advanced' ); ?></th>
                    <td>
                        <p>
                            <input type="radio" name="selected_text_background_color" id="selected_text_background_color_yes" value="yes"<?php if ( $this->check_user_setting'selected_text_background_color' ) ) echo ' checked'?>>
                            <label for="selected_text_background_color_yes"><?php _e'Yes''tinymce-advanced' ); ?></label>
                        </p>
                        <p>
                            <input type="radio" name="selected_text_background_color" id="selected_text_background_color_no" value="no"<?php if ( ! $this->check_user_setting'selected_text_background_color' ) ) echo ' checked'?>>
                            <label for="selected_text_background_color_no"><?php _e'No''tinymce-advanced' ); ?></label>
                        </p>
                    </td>
                </tr>
            </tbody></table>
        </div><?php // panel-block-colors-wrap end ?>
        <br clear="both">
    </div>

</div>

<h4 class="classic-blocks-title-h4"><?php _e'Toolbars for the Classic Paragraph and Classic blocks''tinymce-advanced' ); ?></h4>

<p>
    <?php _e'The toolbars in the Classic Paragraph and Classic blocks are narrower and show on focus.''tinymce-advanced' ); ?>
    <?php _e'For best results enable the menu and add only essential buttons.''tinymce-advanced' ); ?>
    <?php _e'The buttons will wrap around depending on the width of the toolbar.''tinymce-advanced' ); ?>
</p>

<p>
    <input type="checkbox" name="options[]" id="menubar_block" value="menubar_block" <?php if ( $this->check_user_setting'menubar_block' ) ) { echo ' checked'; } ?>>
    <label for="menubar_block"><?php _e'Enable the editor menu (recommended).''tinymce-advanced' ); ?></label>
</p>

<div class="tadv-block-editor-toolbars-wrap">
    <div class="tadv-mce-menu tadv-block-editor mce-container mce-menubar mce-toolbar mce-first mce-stack-layout-item
        <?php if ( $this->check_user_setting'menubar_block' ) ) { echo ' enabled'; } ?>">
        <div class="mce-container-body mce-flow-layout">
            <div class="mce-widget mce-btn mce-menubtn mce-first mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">File</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">Edit</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">Insert</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item mce-toolbar-item">
                <button type="button">
                    <span class="tadv-translate">View</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">Format</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">Table</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
            <div class="mce-widget mce-btn mce-menubtn mce-last mce-flow-layout-item">
                <button type="button">
                    <span class="tadv-translate">Tools</span>
                    <i class="mce-caret"></i>
                </button>
            </div>
        </div>
    </div>

    <div class="tadvdropzone tadv-block-editor mce-toolbar">
        <ul id="toolbar_classic_block" class="container-classic-block">
        <?php

        $mce_text_buttons 
= array( 'styleselect''formatselect''fontselect''fontsizeselect' );
        
$all_buttons_block $all_buttons;

        
// Remove the toolbar-toggle
        
unset( $all_buttons_block['wp_adv'] );

        foreach( 
$this->toolbar_classic_block as $button_id ) {
            
$name '';

            if ( 
strpos$button_id'separator' ) !== false || in_array$button_id, array( 'moveforward''movebackward''absolute' ) ) ) {
                continue;
            }

            if ( isset( 
$all_buttons_block$button_id ] ) ) {
                
$name $all_buttons_block$button_id ];
                unset( 
$all_buttons_block$button_id ] );
            } else {
                continue;
            }

            
?>
            <li class="tadvmodule" id="<?php echo $button_id?>">
                <?php

                
if ( in_array$button_id$mce_text_buttonstrue ) ) {
                    
?>
                    <div class="tadvitem mce-widget mce-btn mce-menubtn mce-fixed-width mce-listbox">
                        <div class="the-button">
                            <span class="descr"><?php echo $name?></span>
                            <i class="mce-caret"></i>
                            <input type="hidden" class="tadv-button" name="toolbar_classic_block[]" value="<?php echo $button_id?>" />
                        </div>
                    </div>
                    <?php
                
} else {
                    
?>
                    <div class="tadvitem">
                        <i class="mce-ico mce-i-<?php echo $button_id?>" title="<?php echo $name?>"></i>
                        <span class="descr"><?php echo $name?></span>
                        <input type="hidden" class="tadv-button" name="toolbar_classic_block[]" value="<?php echo $button_id?>" />
                    </div>
                    <?php
                
}

                
?>
            </li>
            <?php
        
}

        
?>
        </ul>
    </div>
</div>

<p><?php _e'Drop buttons in the toolbars, or drag the buttons to rearrange them.''tinymce-advanced' ); ?></p>

<div class="unuseddiv">
    <p><strong><?php _e'Unused Buttons for the Classic Paragraph and Classic blocks toolbars''tinymce-advanced' ); ?></strong></p>
    <div>
        <ul id="unused-classic-block" class="unused container-classic-block">
        <?php

        
foreach( $all_buttons_block as $button_id => $name ) {
            if ( 
strpos$button_id'separator' ) !== false ) {
                continue;
            }

            
?>
            <li class="tadvmodule" id="<?php echo $button_id?>">
                <?php

                
if ( in_array$button_id$mce_text_buttonstrue ) ) {
                    
?>
                    <div class="tadvitem mce-widget mce-btn mce-menubtn mce-fixed-width mce-listbox">
                        <div class="the-button">
                            <span class="descr"><?php echo $name?></span>
                            <i class="mce-caret"></i>
                            <input type="hidden" class="tadv-button" name="unused-classic-block[]" value="<?php echo $button_id?>" />
                        </div>
                    </div>
                    <?php
                
} else {
                    
?>
                    <div class="tadvitem">
                        <i class="mce-ico mce-i-<?php echo $button_id?>" title="<?php echo $name?>"></i>
                        <span class="descr"><?php echo $name?></span>
                        <input type="hidden" class="tadv-button" name="unused-classic-block[]" value="<?php echo $button_id?>" />
                    </div>
                    <?php
                
}

                
?>
            </li>
            <?php
        
}

        
?>
        </ul>
    </div><!-- /highlight -->
</div><!-- /unuseddiv -->
</div><!-- /block-editor -->

<div id="classic-editor">
<h4><?php _e'Toolbars for the Classic Editor''tinymce-advanced' ); ?></h4>

<div class="tadvzones">
<p>
    <input type="checkbox" name="options[]" id="menubar" value="menubar" <?php if ( $this->check_user_setting'menubar' ) ) { echo ' checked="checked"'; } ?>>
    <label for="menubar"><?php _e'Enable the editor menu.''tinymce-advanced' ); ?></label>
</p>

<div class="tadv-mce-menu tadv-classic-editor mce-container mce-menubar mce-toolbar mce-first mce-stack-layout-item
    <?php if ( $this->check_user_setting'menubar' ) ) { echo ' enabled'; } ?>">
    <div class="mce-container-body mce-flow-layout">
        <div class="mce-widget mce-btn mce-menubtn mce-first mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">File</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">Edit</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">Insert</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item mce-toolbar-item">
            <button type="button">
                <span class="tadv-translate">View</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">Format</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">Table</span>
                <i class="mce-caret"></i>
            </button>
        </div>
        <div class="mce-widget mce-btn mce-menubtn mce-last mce-flow-layout-item">
            <button type="button">
                <span class="tadv-translate">Tools</span>
                <i class="mce-caret"></i>
            </button>
        </div>
    </div>
</div>

<?php

$all_buttons_classic 
$all_buttons;
$button_id '';

for ( 
$i 1$i 5$i++ ) {
    
$toolbar "toolbar_$i";

    
?>
    <div class="tadvdropzone mce-toolbar">
    <ul id="toolbar_<?php echo $i?>" class="container">
    <?php

    
foreach( $this->$toolbar as $button_id ) {
        if ( 
strpos$button_id'separator' ) !== false || in_array$button_id, array( 'moveforward''movebackward''absolute' ) ) ) {
            continue;
        }

        if ( isset( 
$all_buttons_classic$button_id ] ) ) {
            
$name $all_buttons_classic$button_id ];
            unset( 
$all_buttons_classic$button_id ] );
        } else {
            continue;
        }

        
?>
        <li class="tadvmodule" id="<?php echo $button_id?>">
            <?php

            
if ( in_array$button_id$mce_text_buttonstrue ) ) {
                
?>
                <div class="tadvitem mce-widget mce-btn mce-menubtn mce-fixed-width mce-listbox">
                    <div class="the-button">
                        <span class="descr"><?php echo $name?></span>
                        <i class="mce-caret"></i>
                        <input type="hidden" class="tadv-button" name="toolbar_<?php echo $i?>[]" value="<?php echo $button_id?>" />
                    </div>
                </div>
                <?php
            
} else {
                
?>
                <div class="tadvitem">
                    <i class="mce-ico mce-i-<?php echo $button_id?>" title="<?php echo $name?>"></i>
                    <span class="descr"><?php echo $name?></span>
                    <input type="hidden" class="tadv-button" name="toolbar_<?php echo $i?>[]" value="<?php echo $button_id?>" />
                </div>
                <?php
            
}

            
?>
        </li>
        <?php

    
}

    
?>
    </ul></div>
    <?php
}

?>
</div>

<p><?php _e'Drop buttons in the toolbars, or drag the buttons to rearrange them.''tinymce-advanced' ); ?></p>

<div class="unuseddiv">
    <h4><?php _e'Unused Buttons''tinymce-advanced' ); ?></h4>
    <div>
        <ul id="unused" class="unused container">
        <?php

        
foreach( $all_buttons_classic as $button_id => $name ) {
            if ( 
strpos$button_id'separator' ) !== false ) {
                continue;
            }

            
?>
            <li class="tadvmodule" id="<?php echo $button_id?>">
                <?php

                
if ( in_array$button_id$mce_text_buttonstrue ) ) {
                    
?>
                    <div class="tadvitem mce-widget mce-btn mce-menubtn mce-fixed-width mce-listbox">
                        <div class="the-button">
                            <span class="descr"><?php echo $name?></span>
                            <i class="mce-caret"></i>
                            <input type="hidden" class="tadv-button" name="unused[]" value="<?php echo $button_id?>" />
                        </div>
                    </div>
                    <?php
                
} else {
                    
?>
                    <div class="tadvitem">
                        <i class="mce-ico mce-i-<?php echo $button_id?>" title="<?php echo $name?>"></i>
                        <span class="descr"><?php echo $name?></span>
                        <input type="hidden" class="tadv-button" name="unused[]" value="<?php echo $button_id?>" />
                    </div>
                    <?php
                
}

                
?>
            </li>
            <?php
        
}

        
?>
        </ul>
    </div><!-- /highlighted -->
</div>
</div><!-- /classic-editor -->

<div class="advanced-options">
    <h3><?php _e'Options''tinymce-advanced' ); ?></h3>

    <div>
        <input type="checkbox" name="options[]" value="merge_toolbars" id="merge_toolbars" <?php if ( $this->check_user_setting'merge_toolbars' ) ) echo ' checked'?> />
        <label for="merge_toolbars"><?php _e'Append all buttons to the top toolbar in the Classic Paragraph and Classic blocks.''tinymce-advanced' ); ?></label>
        <p><?php _e'This affects buttons that are added by other plugins. These buttons will be appended to the top toolbar row instead of forming second, third, and forth rows.''tinymce-advanced' ); ?></p>
    </div>

    <div>
        <input type="checkbox" name="options[]" value="advlist" id="advlist" <?php if ( $this->check_user_setting('advlist') ) echo ' checked'?> />
        <label for="advlist"><?php _e'List Style Options''tinymce-advanced' ); ?></label>
        <p>
            <?php _e'Enable more list options: upper or lower case letters for ordered lists, disk or square for unordered lists, etc.''tinymce-advanced' ); ?>
        </p>
    </div>

    <div>
        <input type="checkbox" name="options[]" value="contextmenu" id="contextmenu" <?php if ( $this->check_user_setting('contextmenu') ) echo ' checked'?> />
        <label for="contextmenu"><?php _e'Context Menu''tinymce-advanced' ); ?></label>
        <p><?php _e'Replace the browser context (right-click) menu.''tinymce-advanced' ); ?></p>
    </div>

    <div>
        <input type="checkbox" name="options[]" value="advlink" id="advlink" <?php if ( $this->check_user_setting('advlink') ) echo ' checked'?> />
        <label for="advlink"><?php _e'Alternative link dialog''tinymce-advanced' ); ?></label>
        <p><?php _e'Open the TinyMCE link dialog when using the link button on the toolbar or the link menu item.''tinymce-advanced' ); ?></p>
    </div>

    <div>
        <input type="checkbox" name="options[]" value="fontsize_formats" id="fontsize_formats" <?php if ( $this->check_user_setting'fontsize_formats' ) ) echo ' checked="checked"'?> />
        <label for="fontsize_formats"><?php _e'Font sizes''tinymce-advanced' ); ?></label>
        <p><?php printf__'Replace the size setting available for fonts with: %s.''tinymce-advanced' ), $this->fontsize_formats ); ?></p>
    </div>
</div>
<?php

if ( ! is_multisite() || current_user_can'manage_sites' ) ) {
    
?>
    <div class="advanced-options">
    <h3><?php _e'Advanced Options''tinymce-advanced' ); ?></h3>
    <div>
        <input type="checkbox" name="admin_options[]" value="classic_paragraph_block" id="classic_paragraph_block" <?php if ( $this->check_admin_setting'classic_paragraph_block' ) ) echo ' checked'?> />
        <label for="classic_paragraph_block"><?php _e'Add Classic Paragraph block''tinymce-advanced' ); ?></label>
        <p>
            <?php _e'The Classic Paragraph block includes the familiar TinyMCE editor and is an extended and enhanced Classic block.''tinymce-advanced' ); ?>
            <?php _e'You can add multiple paragraphs, tables, galleries, embed video, set fonts and colors, and generally use everything that is available in the Classic Editor.''tinymce-advanced' ); ?>
            <?php _e'Also, like the Classic block, most existing TinyMCE plugins and add-ons will continue to work.''tinymce-advanced' ); ?>
            <?php _e'This makes the Block Editor more familiar, easier to use, easier to get used to, and more compatible with your existing workflow.''tinymce-advanced' ); ?>
        </p>
        <p>
            <?php _e'In addition most default blocks can be transformed into classic paragraphs, and a Classic Paragraph can be converted to multiple blocks.''tinymce-advanced' ); ?>
            <?php _e'It can be used everywhere instead of the Paragraph block including in columns, when creating reusable blocks, etc.''tinymce-advanced' ); ?>
        </p>
    </div>

    <div>
        <input type="checkbox" name="admin_options[]" value="hybrid_mode" id="hybrid_mode" <?php if ( $this->check_admin_setting'hybrid_mode' ) ) echo ' checked'?> />
        <label for="hybrid_mode"><?php _e'Make the Classic Paragraph or Classic block the default block (hybrid mode)''tinymce-advanced' ); ?></label>
        <p>
            <?php _e'The default block is inserted on pressing Enter in the title, or clicking under the last block.''tinymce-advanced' ); ?>
            <?php _e'Selecting this option also adds some improvements and fixes for the Classic block.''tinymce-advanced' ); ?>
        </p>
    </div>

    <div>
        <?php

        
if ( function_exists'is_plugin_active' ) && ! is_plugin_active'classic-editor/classic-editor.php' ) ) {

            
?>
            <input type="checkbox" name="admin_options[]" value="replace_block_editor" id="replace_block_editor" <?php if ( $this->check_admin_setting'replace_block_editor' ) ) echo ' checked'?> />
            <label for="replace_block_editor"><?php _e'Replace the Block Editor with the Classic Editor''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'Selecting this option will restore the previous (&#8220;classic&#8221;) editor and the previous Edit Post screen.''tinymce-advanced' ); ?>
                <?php _e'It will allow you to use other plugins that enhance that editor, add old-style Meta Boxes, or in some way depend on the previous Edit Post screen.''tinymce-advanced' ); ?>
            </p>
            <p>
                <?php

                $text 
__'If you prefer to use both editors side by side, do not enable this option. It is better to install the %1$sClassic Editor plugin%2$s.''tinymce-advanced' );
                
/* translators: URL to (localised) Classic Editor plugin. */
                
$url __'https://wordpress.org/plugins/classic-editor/''tinymce-advanced' );
                
printf$text'<a href="' esc_url$url ) . '">''</a>' );

                
?>
            </p>
            <?php
        
}

        
?>
    </div>
    <div>
        <input type="checkbox" name="admin_options[]" value="no_autop" id="no_autop" <?php if ( $this->check_admin_setting'no_autop' ) ) echo ' checked'?> />
        <label for="no_autop"><?php _e'Keep paragraph tags in the Classic block and the Classic Editor''tinymce-advanced' ); ?></label>
        <p>
            <?php _e'Stop removing &lt;p&gt; and &lt;br&gt; tags in the Classic Editor and show them in the Text tab.''tinymce-advanced' ); ?>
            <?php _e'This will make it possible to use more advanced coding in the Text tab without the back-end filtering affecting it much.''tinymce-advanced' ); ?>
            <?php _e'However it may behave unexpectedly in rare cases, so test it thoroughly before enabling it permanently.''tinymce-advanced' ); ?>
            <?php _e'Line breaks in the Text tab in the Classic Editor would still affect the output, in particular do not use empty lines, line breaks inside HTML tags or multiple &lt;br&gt; tags.''tinymce-advanced' ); ?>
        </p>
    </div>
    <?php

    $has_editor_style 
$this->has_editor_style();
    
$disabled ' disabled';

    if ( 
$has_editor_style === false ) {
        
add_editor_style();
        
$has_editor_style $this->has_editor_style();
    }

    if ( 
$has_editor_style ) {
        
$disabled '';
    }

    
?>
    <div>
        <input type="checkbox" name="admin_options[]" value="importcss" id="importcss" <?php if ( ! $disabled && $this->check_admin_setting'importcss' ) ) echo ' checked'; echo $disabled?> />
        <label for="importcss"><?php _e'Create CSS classes menu''tinymce-advanced' ); ?></label>
        <p>
            <?php _e'Load the CSS classes used in editor-style.css and replace the Formats menu.''tinymce-advanced' ); ?>
        </p>
        <?php

        
if ( $disabled ) {
            
?>
            <p>
            <span class="tadv-error"><?php _e'Disabled:''tinymce-advanced' ); ?></span>
            <?php _e'A stylesheet file named editor-style.css was not added by your theme.''tinymce-advanced' ); ?>
            <br>
            <?php
        
}

        
?>
        </p>
    </div>
    <div class="advanced-table-options">
        <h4><?php _e'Advanced options for tables''tinymce-advanced' ); ?></h4>
        <div>
            <input type="checkbox" name="admin_options[]" value="table_resize_bars" id="table_resize_bars" <?php if ( $this->check_admin_setting'table_resize_bars' ) ) echo ' checked'?> />
            <label for="table_resize_bars"><?php _e'Enable resizing of tables, rows, and columns by dragging with the mouse''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'When enabled the whole table, rows, and columns can be resized by dragging but the sizes are set with inline CSS styles.''tinymce-advanced' ); ?>
                <?php _e'This may override some styles that are set by your theme and usually makes the table non-responsive when viewed on a small screen like a smartphone.''tinymce-advanced' ); ?>
                <?php _e'When a row or a column is resized the inline styles are updated on all table rows and cells.''tinymce-advanced' ); ?>
            </p>
            <p>
                <?php _e'Disabling this option will stop the editor from adding inline CSS styles and will produce cleaner HTML code.''tinymce-advanced' ); ?>
                <?php _e'Then the table, the rows and the cells can be resized by typing the size values in the advanced options tabs.''tinymce-advanced' ); ?>
            </p>
            <p>
                <span class="dashicons dashicons-info"></span>
                <?php _e'This option does not affect inline styles on tables in existing posts. To reset table size or remove all formatting for the whole table please see the two buttons at the bottom of the Format menu.''tinymce-advanced' ); ?>
            </p>
        </div>
        <div>
            <input type="checkbox" name="admin_options[]" value="table_default_attributes" id="table_default_attributes" <?php if ( $this->check_admin_setting'table_default_attributes' ) ) echo ' checked'?> />
            <label for="table_default_attributes"><?php _e'When inserting a table set the HTML border attribute to 1''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'This will add a border around the table unless it is overriden by your theme.''tinymce-advanced' ); ?>
            </p>
        </div>
        <div>
            <input type="checkbox" name="admin_options[]" value="table_grid" id="table_grid" <?php if ( $this->check_admin_setting'table_grid' ) ) echo ' checked'?> />
            <label for="table_grid"><?php _e'When inserting a table show a grid where the number of rows and columns can be selected by dragging with the mouse''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'If the grid is disabled the number of rows and columns can be typed in the Insert Table dialog.''tinymce-advanced' ); ?>
            </p>
        </div>
        <div>
            <input type="checkbox" name="admin_options[]" value="table_tab_navigation" id="table_tab_navigation" <?php if ( $this->check_admin_setting'table_tab_navigation' ) ) echo ' checked'?> />
            <label for="table_tab_navigation"><?php _e'Jump to the next cell when pressing the tab key while editing a table''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'When disabled, pressing the tab key will jump outside the editor area.''tinymce-advanced' ); ?>
            </p>
        </div>
        <div>
            <input type="checkbox" name="admin_options[]" value="table_advtab" id="table_advtab" <?php if ( $this->check_admin_setting'table_advtab' ) ) echo ' checked'?> />
            <label for="table_advtab"><?php _e'Show the advanced tabs in the table properties dialogs''tinymce-advanced' ); ?></label>
            <p>
                <?php _e'The advanced tabs allow setting of inline CSS styles on the table, each row, and each cell. They have fields for easier setting of border, border color and background color styles.''tinymce-advanced' ); ?>
            </p>
            <p>
                <span class="dashicons dashicons-warning"></span>
                <?php _e'To keep the table more responsive please use percentage values when setting widths.''tinymce-advanced' ); ?>
            </p>
        </div>
    </div>
    </div>

    <div class="advanced-options">
    <h3><?php _e'Administration''tinymce-advanced' ); ?></h3>
    <div>
        <h4><?php _e'Settings import and export''tinymce-advanced' ); ?></h4>
        <p>
            <?php _e'The settings are exported as a JSON encoded file.''tinymce-advanced' ); ?>
            <?php _e'It is important that the exported file is not edited in any way.''tinymce-advanced' ); ?>
        </p>
        <p>
            <?php wp_nonce_field'tadv-export-settings''tadv-export-settings-nonce'false ); ?>
            <input type="submit" class="button" name="tadv-export-settings" value="<?php _e'Export Settings''tinymce-advanced' ); ?>" /> &nbsp;
            <input type="submit" class="button" name="tadv-import-settings" value="<?php _e'Import Settings''tinymce-advanced' ); ?>" />
        </p>
    </div>
    <div>
        <h4><?php _e'Enable the editor enhancements for:''tinymce-advanced' ); ?></h4>
        <p>
            <input type="checkbox" id="tadv_enable_1" name="tadv_enable_at[]" value="edit_post_screen" <?php if ( $this->check_admin_setting'enable_edit_post_screen' ) ) echo ' checked'?> />
            <label for="tadv_enable_1"><?php _e'The Classic Editor (Add New and Edit posts and pages)''tinymce-advanced' ); ?></label>
        </p>
        <p>
            <input type="checkbox" id="tadv_enable_2" name="tadv_enable_at[]" value="rest_of_wpadmin" <?php if ( $this->check_admin_setting'enable_rest_of_wpadmin' ) ) echo ' checked'?> />
            <label for="tadv_enable_2"><?php _e'Other instances of the Classic (TinyMCE) editor in wp-admin''tinymce-advanced' ); ?></label>
        </p>
        <p>
            <input type="checkbox" id="tadv_enable_3" name="tadv_enable_at[]" value="on_front_end" <?php if ( $this->check_admin_setting'enable_on_front_end' ) ) echo ' checked'?> />
            <label for="tadv_enable_3"><?php _e'Instances of the Classic editor on the front end of the site''tinymce-advanced' ); ?></label>
        </p>
    </div>
    </div>
    <?php

}
?>

<hr>

<p class="tadv-submit">
    <?php wp_nonce_field'tadv-save-buttons-order' ); ?>
    <input class="button" type="submit" name="tadv-restore-defaults" value="<?php _e'Restore Default Settings''tinymce-advanced' ); ?>" />
    <input class="button-primary button-large" type="submit" name="tadv-save" value="<?php _e'Save Changes''tinymce-advanced' ); ?>" />
</p>
</form>

<div id="wp-adv-error-message" class="tadv-error">
<?php _e'The [Toolbar toggle] button shows or hides the second, third, and forth button rows. It will only work when it is in the first row and there are buttons in the second row.''tinymce-advanced' ); ?>
</div>
</div><?php // .wrap.tinymce-advanced end ?>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586