options_callback_functions.php 80.1 KB
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 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214
<?php

 // These are our callback functions for each settings option GROUP described above.
 function jwl_setting_section_callback_function1() {
 	_e('<p><strong>Get detailed help for each button from the <a target="_blank" href="http://ultimatetinymcepro.com/wiki/">Ultimate Tinymce Wiki</a></strong>.</p><p><strong>Additional information for each option may be found on the <a target="_blank" href="http://ultimatetinymcepro.com/">Ultimate Tinymce Website</a></strong>.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;<strong><u>Description</u></strong><span style="margin-left:200px;"><strong><u>Enable</u></strong></span><span style="margin-left:20px;"><strong><u>Image</u></strong></span><span style="margin-left:50px;"><strong><u>Row Selection</u></strong></span></p>','jwl-ultimate-tinymce');
 }
 function jwl_setting_section_callback_function2() {
 	_e('<p><strong>Get detailed help for each button from the <a target="_blank" href="http://ultimatetinymcepro.com/wiki/">Ultimate Tinymce Wiki</a></strong>.</p><p><strong>Additional information for each option may be found on the <a target="_blank" href="http://ultimatetinymcepro.com/">Ultimate Tinymce Website</a></strong>.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;<strong><u>Description</u></strong><span style="margin-left:200px;"><strong><u>Enable</u></strong></span><span style="margin-left:20px;"><strong><u>Image</u></strong></span><span style="margin-left:50px;"><strong><u>Row Selection</u></strong></span></p>','jwl-ultimate-tinymce');
 }
 function jwl_setting_section_callback_function8() {
 	_e('<p><strong>Get detailed help for each feature from the <a target="_blank" href="http://ultimatetinymcepro.com/wiki/">Ultimate Tinymce Wiki</a></strong>.</p><p><strong>Additional information for each option may be found on the <a target="_blank" href="http://ultimatetinymcepro.com/">Ultimate Tinymce Website</a></strong>.</p><p>Over-ride the settings for the content editor (tinymce).</p><p>Consider this a "last resort".  If nothing else works at making the content editor replicate the front end of the website... these settings will certainly do the trick.</p><br /><br />','jwl-ultimate-tinymce');
 }
 function jwl_setting_section_callback_function3() {
 	_e('<p><strong>Get detailed help for each feature from the <a target="_blank" href="http://ultimatetinymcepro.com/wiki/">Ultimate Tinymce Wiki</a></strong>.</p>','jwl-ultimate-tinymce');
	_e('<p><strong>Additional information for each option may be found on the <a target="_blank" href="http://ultimatetinymcepro.com/">Ultimate Tinymce Website</a></strong>.</p>','jwl-ultimate-tinymce');
 }
 function jwl_setting_section_callback_function4() {
 	_e('<p><strong>Get detailed help for each feature from the <a target="_blank" href="http://ultimatetinymcepro.com/wiki/">Ultimate Tinymce Wiki</a></strong>.</p>','jwl-ultimate-tinymce');
	_e('<p><strong>Additional information for each option may be found on the <a target="_blank" href="http://ultimatetinymcepro.com/">Ultimate Tinymce Website</a></strong>.</p>','jwl-ultimate-tinymce');
 }
 
 // Begin callback functions	 
 function jwl_fontselect_callback_function() {
	 $options = get_option('jwl_options_group1');
    echo '<input name="jwl_options_group1[jwl_fontselect_field_id]" id="fontselect" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_fontselect_field_id']), false ) . ' /> '; ?><label for="fontselect"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/fontselect.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_fontselect_dropdown'])) {
			$options_fontselect = $options['jwl_fontselect_dropdown'];
			}
			$items_fontselect = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:27px;' name='jwl_options_group1[jwl_fontselect_dropdown][row]' onchange=';'>";
			foreach($items_fontselect as $item_fontselect) {
				$selected_fontselect = ($options_fontselect['row']==$item_fontselect) ? 'selected="selected"' : '';
				echo "<option value='$item_fontselect' $selected_fontselect>$item_fontselect</option>";
			}
			echo "</select>";
 }
 
 function jwl_fontsizeselect_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_fontsizeselect_field_id]" id="fontsize" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_fontsizeselect_field_id']), false ) . ' /> '; ?><label for="fontsize"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/fontsizeselect.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_fontsizeselect_dropdown'])) {
			$options_fontsizeselect = $options['jwl_fontsizeselect_dropdown'];
			}
			$items_fontsizeselect = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:27px;' name='jwl_options_group1[jwl_fontsizeselect_dropdown][row]'>";
			foreach($items_fontsizeselect as $item_fontsizeselect) {
				$selected_fontsizeselect = ($options_fontsizeselect['row']==$item_fontsizeselect) ? 'selected="selected"' : '';
				echo "<option value='$item_fontsizeselect' $selected_fontsizeselect>$item_fontsizeselect</option>";
			}
			echo "</select>";
 }
 
 function jwl_cut_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_cut_field_id]" id="cut" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_cut_field_id']), false ) . ' /> '; ?><label for="cut"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/cut.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_cut_dropdown'])) {
			$options_cut = $options['jwl_cut_dropdown'];
			}
			$items_cut = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_cut_dropdown][row]'>";
			foreach($items_cut as $item_cut) {
				$selected_cut = ($options_cut['row']==$item_cut) ? 'selected="selected"' : '';
				echo "<option value='$item_cut' $selected_cut>$item_cut</option>";
			}
			echo "</select>";
 }
 
 function jwl_copy_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_copy_field_id]" id="copy" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_copy_field_id']), false ) . ' /> '; ?><label for="copy"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/copy.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_copy_dropdown'])) {
			$options_copy = $options['jwl_copy_dropdown'];
			}
			$items_copy = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_copy_dropdown][row]'>";
			foreach($items_copy as $item_copy) {
				$selected_copy = ($options_copy['row']==$item_copy) ? 'selected="selected"' : '';
				echo "<option value='$item_copy' $selected_copy>$item_copy</option>";
			}
			echo "</select>";
 }
 
 function jwl_paste_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_paste_field_id]" id="paste" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_paste_field_id']), false ) . ' /> '; ?><label for="paste"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/paste.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_paste_dropdown'])) {
			$options_paste = $options['jwl_paste_dropdown'];
			}
			$items_paste = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_paste_dropdown][row]'>";
			foreach($items_paste as $item_paste) {
				$selected_paste = ($options_paste['row']==$item_paste) ? 'selected="selected"' : '';
				echo "<option value='$item_paste' $selected_paste>$item_paste</option>";
			}
			echo "</select>";
 }
 
 function jwl_backcolorpicker_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_backcolorpicker_field_id]" id="backcolorpicker" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_backcolorpicker_field_id']), false ) . ' /> '; ?><label for="backcolorpicker"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/backcolorpicker.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_backcolorpicker_dropdown'])) {
			$options_backcolorpicker = $options['jwl_backcolorpicker_dropdown'];
			}
			$items_backcolorpicker = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_backcolorpicker_dropdown][row]'>";
			foreach($items_backcolorpicker as $item_backcolorpicker) {
				$selected_backcolorpicker = ($options_backcolorpicker['row']==$item_backcolorpicker) ? 'selected="selected"' : '';
				echo "<option value='$item_backcolorpicker' $selected_backcolorpicker>$item_backcolorpicker</option>";
			}
			echo "</select>";
 }
 
 function jwl_forecolorpicker_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_forecolorpicker_field_id]" id="forecolorpicker" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_forecolorpicker_field_id']), false ) . ' /> '; ?><label for="forecolorpicker"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/forecolorpicker.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_forecolorpicker_dropdown'])) {
			$options_forecolorpicker = $options['jwl_forecolorpicker_dropdown'];
			}
			$items_forecolorpicker = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_forecolorpicker_dropdown][row]'>";
			foreach($items_forecolorpicker as $item_forecolorpicker) {
				$selected_forecolorpicker = ($options_forecolorpicker['row']==$item_forecolorpicker) ? 'selected="selected"' : '';
				echo "<option value='$item_forecolorpicker' $selected_forecolorpicker>$item_forecolorpicker</option>";
			}
			echo "</select>";
 }
 
 function jwl_advhr_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_advhr_field_id]" id="hr" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_advhr_field_id']), false ) . ' /> '; ?><label for="hr"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/hr.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_advhr_dropdown'])) {
			$options_advhr = $options['jwl_advhr_dropdown'];
			}
			$items_advhr = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_advhr_dropdown][row]'>";
			foreach($items_advhr as $item_advhr) {
				$selected_advhr = ($options_advhr['row']==$item_advhr) ? 'selected="selected"' : '';
				echo "<option value='$item_advhr' $selected_advhr>$item_advhr</option>";
			}
			echo "</select>";
 }
 
 function jwl_visualaid_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_visualaid_field_id]" id="visualaid" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_visualaid_field_id']), false ) . ' /> '; ?><label for="visualaid"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/visualaid.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_visualaid_dropdown'])) {
			$options_visualaid = $options['jwl_visualaid_dropdown'];
			}
			$items_visualaid = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_visualaid_dropdown][row]'>";
			foreach($items_visualaid as $item_visualaid) {
				$selected_visualaid = ($options_visualaid['row']==$item_visualaid) ? 'selected="selected"' : '';
				echo "<option value='$item_visualaid' $selected_visualaid>$item_visualaid</option>";
			}
			echo "</select>";
 }
 
 function jwl_anchor_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_anchor_field_id]" id="anchor" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_anchor_field_id']), false ) . ' /> '; ?><label for="anchor"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/anchor.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_anchor_dropdown'])) {
			$options_anchor = $options['jwl_anchor_dropdown'];
			}
			$items_anchor = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_anchor_dropdown][row]'>";
			foreach($items_anchor as $item_anchor) {
				$selected_anchor = ($options_anchor['row']==$item_anchor) ? 'selected="selected"' : '';
				echo "<option value='$item_anchor' $selected_anchor>$item_anchor</option>";
			}
			echo "</select>";
 }
 
 function jwl_sub_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_sub_field_id]" id="sub" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_sub_field_id']), false ) . ' /> '; ?><label for="sub"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/sub.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_sub_dropdown'])) {
			$options_sub = $options['jwl_sub_dropdown'];
			}
			$items_sub = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_sub_dropdown][row]'>";
			foreach($items_sub as $item_sub) {
				$selected_sub = ($options_sub['row']==$item_sub) ? 'selected="selected"' : '';
				echo "<option value='$item_sub' $selected_sub>$item_sub</option>";
			}
			echo "</select>";
 }
 
 function jwl_sup_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_sup_field_id]" id="sup" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_sup_field_id']), false ) . ' /> '; ?><label for="sup"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/sup.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_sup_dropdown'])) {
			$options_sup = $options['jwl_sup_dropdown'];
			}
			$items_sup = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_sup_dropdown][row]'>";
			foreach($items_sup as $item_sup) {
				$selected_sup = ($options_sup['row']==$item_sup) ? 'selected="selected"' : '';
				echo "<option value='$item_sup' $selected_sup>$item_sup</option>";
			}
			echo "</select>";
 }
 
 function jwl_search_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_search_field_id]" id="search" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_search_field_id']), false ) . ' /> '; ?><label for="search"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/search.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_search_dropdown'])) {
			$options_search = $options['jwl_search_dropdown'];
			}
			$items_search = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_search_dropdown][row]'>";
			foreach($items_search as $item_search) {
				$selected_search = ($options_search['row']==$item_search) ? 'selected="selected"' : '';
				echo "<option value='$item_search' $selected_search>$item_search</option>";
			}
			echo "</select>";
 }
 
 function jwl_replace_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_replace_field_id]" id="replace" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_replace_field_id']), false ) . ' /> '; ?><label for="replace"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/replace.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_replace_dropdown'])) {
			$options_replace = $options['jwl_replace_dropdown'];
			}
			$items_replace = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_replace_dropdown][row]'>";
			foreach($items_replace as $item_replace) {
				$selected_replace = ($options_replace['row']==$item_replace) ? 'selected="selected"' : '';
				echo "<option value='$item_replace' $selected_replace>$item_replace</option>";
			}
			echo "</select>";
 }
  
 function jwl_datetime_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_datetime_field_id]" id="datetime" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_datetime_field_id']), false ) . ' /> '; ?><label for="datetime"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/datetime.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_datetime_dropdown'])) {
			$options_datetime = $options['jwl_datetime_dropdown'];
			}
			$items_datetime = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:48px;' name='jwl_options_group1[jwl_datetime_dropdown][row]'>";
			foreach($items_datetime as $item_datetime) {
				$selected_datetime = ($options_datetime['row']==$item_datetime) ? 'selected="selected"' : '';
				echo "<option value='$item_datetime' $selected_datetime>$item_datetime</option>";
			}
			echo "</select>";
 }
 
 function jwl_nonbreaking_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_nonbreaking_field_id]" id="nonbreaking" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_nonbreaking_field_id']), false ) . ' /> '; ?><label for="nonbreaking"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/nonbreaking.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_nonbreaking_dropdown'])) {
			$options_nonbreaking = $options['jwl_nonbreaking_dropdown'];
			}
			$items_nonbreaking = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_nonbreaking_dropdown][row]'>";
			foreach($items_nonbreaking as $item_nonbreaking) {
				$selected_nonbreaking = ($options_nonbreaking['row']==$item_nonbreaking) ? 'selected="selected"' : '';
				echo "<option value='$item_nonbreaking' $selected_nonbreaking>$item_nonbreaking</option>";
			}
			echo "</select>";
 }
 
 function jwl_mailto_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_mailto_field_id]" id="mailto" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_mailto_field_id']), false ) . ' /> '; ?><label for="mailto"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/mailto.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_mailto_dropdown'])) {
			$options_mailto = $options['jwl_mailto_dropdown'];
			}
			$items_mailto = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_mailto_dropdown][row]'>";
			foreach($items_mailto as $item_mailto) {
				$selected_mailto = ($options_mailto['row']==$item_mailto) ? 'selected="selected"' : '';
				echo "<option value='$item_mailto' $selected_mailto>$item_mailto</option>";
			}
			echo "</select>";
 }
 
 function jwl_layers_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_layers_field_id]" id="layers" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_layers_field_id']), false ) . ' /> '; ?><label for="layers"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/layers.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_layers_dropdown'])) {
			$options_layers = $options['jwl_layers_dropdown'];
			}
			$items_layers = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_layers_dropdown][row]'>";
			foreach($items_layers as $item_layers) {
				$selected_layers = ($options_layers['row']==$item_layers) ? 'selected="selected"' : '';
				echo "<option value='$item_layers' $selected_layers>$item_layers</option>";
			}
			echo "</select>";
 }
 
 function jwl_span_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_span_field_id]" id="span" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_span_field_id']), false ) . ' /> '; ?><label for="span"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/span.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_span_dropdown'])) {
			$options_span = $options['jwl_span_dropdown'];
			}
			$items_span = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_span_dropdown][row]'>";
			foreach($items_span as $item_span) {
				$selected_span = ($options_span['row']==$item_span) ? 'selected="selected"' : '';
				echo "<option value='$item_span' $selected_span>$item_span</option>";
			}
			echo "</select>";
 }
 
 function jwl_equation_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_equation_field_id]" id="equation" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_equation_field_id']), false ) . ' /> '; ?><label for="equation"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/equation.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_equation_dropdown'])) {
			$options_equation = $options['jwl_equation_dropdown'];
			}
			$items_equation = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_equation_dropdown][row]'>";
			foreach($items_equation as $item_equation) {
				$selected_equation = ($options_equation['row']==$item_equation) ? 'selected="selected"' : '';
				echo "<option value='$item_equation' $selected_equation>$item_equation</option>";
			}
			echo "</select>";
 }
 
 function jwl_encode_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_encode_field_id]" id="encode" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_encode_field_id']), false ) . ' /> '; ?><label for="encode"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/encode.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_encode_dropdown'])) {
			$options_encode = $options['jwl_encode_dropdown'];
			}
			$items_encode = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_encode_dropdown][row]'>";
			foreach($items_encode as $item_encode) {
				$selected_encode = ($options_encode['row']==$item_encode) ? 'selected="selected"' : '';
				echo "<option value='$item_encode' $selected_encode>$item_encode</option>";
			}
			echo "</select>";
 }
 
 function jwl_directionality_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_directionality_field_id]" id="directionality" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_directionality_field_id']), false ) . ' /> '; ?><label for="directionality"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/directionality.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_directionality_dropdown'])) {
			$options_directionality = $options['jwl_directionality_dropdown'];
			}
			$items_directionality = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:54px;' name='jwl_options_group1[jwl_directionality_dropdown][row]'>";
			foreach($items_directionality as $item_directionality) {
				$selected_directionality = ($options_directionality['row']==$item_directionality) ? 'selected="selected"' : '';
				echo "<option value='$item_directionality' $selected_directionality>$item_directionality</option>";
			}
			echo "</select>";
 }
 
 function jwl_ezimage_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_ezimage_field_id]" id="ezimage" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_ezimage_field_id']), false ) . ' /> '; ?><label for="ezimage"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/ezimage.gif" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_ezimage_dropdown'])) {
			$options_ezimage = $options['jwl_ezimage_dropdown'];
			}
			$items_ezimage = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_ezimage_dropdown][row]'>";
			foreach($items_ezimage as $item_ezimage) {
				$selected_ezimage = ($options_ezimage['row']==$item_ezimage) ? 'selected="selected"' : '';
				echo "<option value='$item_ezimage' $selected_ezimage>$item_ezimage</option>";
			}
			echo "</select>";
 }
 
 function jwl_ptags_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_ptags_field_id]" id="ptags" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_ptags_field_id']), false ) . ' /> '; ?><label for="ptags"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/ptags.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_ptags_dropdown'])) {
			$options_ptags = $options['jwl_ptags_dropdown'];
			}
			$items_ptags = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_ptags_dropdown][row]'>";
			foreach($items_ptags as $item_ptags) {
				$selected_ptags = ($options_ptags['row']==$item_ptags) ? 'selected="selected"' : '';
				echo "<option value='$item_ptags' $selected_ptags>$item_ptags</option>";
			}
			echo "</select>";
 }
 
 function jwl_mcelinebreak_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_mcelinebreak_field_id]" id="mcelinebreak" type="checkbox" value="1" class="one" ' . checked( 1, isset($options['jwl_mcelinebreak_field_id']), false ) . ' /> '; ?><label for="mcelinebreak"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/linebreak.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_mcelinebreak_dropdown'])) {
			$options_mcelinebreak = $options['jwl_mcelinebreak_dropdown'];
			}
			$items_mcelinebreak = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_mcelinebreak_dropdown][row]'>";
			foreach($items_mcelinebreak as $item_mcelinebreak) {
				$selected_mcelinebreak = ($options_mcelinebreak['row']==$item_mcelinebreak) ? 'selected="selected"' : '';
				echo "<option value='$item_mcelinebreak' $selected_mcelinebreak>$item_mcelinebreak</option>";
			}
			echo "</select>";
 }
 
// ******************************************************************************
//
//
// 
// Callback Functions for Row 4 Buttons
 
 function jwl_styleselect_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_styleselect_field_id]" id="styleselect" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_styleselect_field_id']), false ) . ' /> '; ?><label for="styleselect"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/styleselect.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_styleselect_dropdown'])) {
			$options_styleselect = $options['jwl_styleselect_dropdown'];
			}	
			$items_styleselect = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:27px;' name='jwl_options_group1[jwl_styleselect_dropdown][row]'>";
			foreach($items_styleselect as $item_styleselect) {
				$selected_styleselect = ($options_styleselect['row']==$item_styleselect) ? 'selected="selected"' : '';
				echo "<option value='$item_styleselect' $selected_styleselect>$item_styleselect</option>";
			}
			echo "</select>";
 }
 
 function jwl_tableDropdown_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_tableDropdown_field_id]" id="tableDropdown" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_tableDropdown_field_id']), false ) . ' /> '; ?><label for="tableDropdown"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/tableDropdown.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_tableDropdown_dropdown'])) {
			$options_tableDropdown = $options['jwl_tableDropdown_dropdown'];
			}
			$items_tableDropdown = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_tableDropdown_dropdown][row]'>";
			foreach($items_tableDropdown as $item_tableDropdown) {
				$selected_tableDropdown = ($options_tableDropdown['row']==$item_tableDropdown) ? 'selected="selected"' : '';
				echo "<option value='$item_tableDropdown' $selected_tableDropdown>$item_tableDropdown</option>";
			}
			echo "</select>";
 }
 
 function jwl_emotions_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_emotions_field_id]" id="emotions" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_emotions_field_id']), false ) . ' /> '; ?><label for="emotions"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/emotions.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_emotions_dropdown'])) {
			$options_emotions = $options['jwl_emotions_dropdown'];
			}
			$items_emotions = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_emotions_dropdown][row]'>";
			foreach($items_emotions as $item_emotions) {
				$selected_emotions = ($options_emotions['row']==$item_emotions) ? 'selected="selected"' : '';
				echo "<option value='$item_emotions' $selected_emotions>$item_emotions</option>";
			}
			echo "</select>";
 }
 
 function jwl_image_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_image_field_id]" id="image" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_image_field_id']), false ) . ' /> '; ?><label for="image"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/image.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_image_dropdown'])) {
			$options_image = $options['jwl_image_dropdown'];
			}
			$items_image = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_image_dropdown][row]'>";
			foreach($items_image as $item_image) {
				$selected_image = ($options_image['row']==$item_image) ? 'selected="selected"' : '';
				echo "<option value='$item_image' $selected_image>$item_image</option>";
			}
			echo "</select>";
 }
 
 function jwl_preview_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_preview_field_id]" id="preview" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_preview_field_id']), false ) . ' /> '; ?><label for="preview"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/preview.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_preview_dropdown'])) {
			$options_preview = $options['jwl_preview_dropdown'];
			}	
			$items_preview = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_preview_dropdown][row]'>";
			foreach($items_preview as $item_preview) {
				$selected_preview = ($options_preview['row']==$item_preview) ? 'selected="selected"' : '';
				echo "<option value='$item_preview' $selected_preview>$item_preview</option>";
			}
			echo "</select>";
 }
 
 function jwl_cite_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_cite_field_id]" id="cite" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_cite_field_id']), false ) . ' /> '; ?><label for="cite"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/cite.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_cite_dropdown'])) {
			$options_cite = $options['jwl_cite_dropdown'];
			}	
			$items_cite = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_cite_dropdown][row]'>";
			foreach($items_cite as $item_cite) {
				$selected_cite = ($options_cite['row']==$item_cite) ? 'selected="selected"' : '';
				echo "<option value='$item_cite' $selected_cite>$item_cite</option>";
			}
			echo "</select>";
 }
 
 function jwl_abbr_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_abbr_field_id]" id="abbr" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_abbr_field_id']), false ) . ' /> '; ?><label for="abbr"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/abbr.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_abbr_dropdown'])) {
			$options_abbr = $options['jwl_abbr_dropdown'];
			}	
			$items_abbr = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_abbr_dropdown][row]'>";
			foreach($items_abbr as $item_abbr) {
				$selected_abbr = ($options_abbr['row']==$item_abbr) ? 'selected="selected"' : '';
				echo "<option value='$item_abbr' $selected_abbr>$item_abbr</option>";
			}
			echo "</select>";
 }
 
 function jwl_acronym_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_acronym_field_id]" id="acronym" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_acronym_field_id']), false ) . ' /> '; ?><label for="acronym"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/acronym.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
		if (isset($options['jwl_acronym_dropdown'])) {
			$options_acronym = $options['jwl_acronym_dropdown'];
			}	
			$items_acronym = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_acronym_dropdown][row]'>";
			foreach($items_acronym as $item_acronym) {
				$selected_acronym = ($options_acronym['row']==$item_acronym) ? 'selected="selected"' : '';
				echo "<option value='$item_acronym' $selected_acronym>$item_acronym</option>";
			}
			echo "</select>";
 }
 
 function jwl_del_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_del_field_id]" id="del" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_del_field_id']), false ) . ' /> '; ?><label for="del"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/del.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_del_dropdown'])) {
			$options_del = $options['jwl_del_dropdown'];
			}	
			$items_del = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_del_dropdown][row]'>";
			foreach($items_del as $item_del) {
				$selected_del = ($options_del['row']==$item_del) ? 'selected="selected"' : '';
				echo "<option value='$item_del' $selected_del>$item_del</option>";
			}
			echo "</select>";
 }
 
 function jwl_ins_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_ins_field_id]" id="ins" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_ins_field_id']), false ) . ' /> '; ?><label for="ins"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/ins.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_ins_dropdown'])) {
			$options_ins = $options['jwl_ins_dropdown'];
			}	
			$items_ins = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_ins_dropdown][row]'>";
			foreach($items_ins as $item_ins) {
				$selected_ins = ($options_ins['row']==$item_ins) ? 'selected="selected"' : '';
				echo "<option value='$item_ins' $selected_ins>$item_ins</option>";
			}
			echo "</select>";
 }
 
 function jwl_attribs_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_attribs_field_id]" id="attribs" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_attribs_field_id']), false ) . ' /> '; ?><label for="attribs"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/attribs.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_attribs_dropdown'])) {
			$options_attribs = $options['jwl_attribs_dropdown'];
			}
			$items_attribs = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_attribs_dropdown][row]'>";
			foreach($items_attribs as $item_attribs) {
				$selected_attribs = ($options_attribs['row']==$item_attribs) ? 'selected="selected"' : '';
				echo "<option value='$item_attribs' $selected_attribs>$item_attribs</option>";
			}
			echo "</select>";
 }
 
 function jwl_styleprops_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_styleprops_field_id]" id="styleprops" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_styleprops_field_id']), false ) . ' /> '; ?><label for="styleprops"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/styleprops.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_styleprops_dropdown'])) {
			$options_styleprops = $options['jwl_styleprops_dropdown'];
			}	
			$items_styleprops = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_styleprops_dropdown][row]'>";
			foreach($items_styleprops as $item_styleprops) {
				$selected_styleprops = ($options_styleprops['row']==$item_styleprops) ? 'selected="selected"' : '';
				echo "<option value='$item_styleprops' $selected_styleprops>$item_styleprops</option>";
			}
			echo "</select>";
 }
 
 function jwl_code_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_code_field_id]" id="code" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_code_field_id']), false ) . ' /> '; ?><label for="code"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/code.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_code_dropdown'])) {
			$options_code = $options['jwl_code_dropdown'];
			}	
			$items_code = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_code_dropdown][row]'>";
			foreach($items_code as $item_code) {
				$selected_code = ($options_code['row']==$item_code) ? 'selected="selected"' : '';
				echo "<option value='$item_code' $selected_code>$item_code</option>";
			}
			echo "</select>";
 }
 
 function jwl_codemagic_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_codemagic_field_id]" id="codemagic" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_codemagic_field_id']), false ) . ' /> '; ?><label for="codemagic"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/codemagic.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_codemagic_dropdown'])) {
			$options_codemagic = $options['jwl_codemagic_dropdown'];
			}		
			$items_codemagic = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_codemagic_dropdown][row]'>";
			foreach($items_codemagic as $item_codemagic) {
				$selected_codemagic = ($options_codemagic['row']==$item_codemagic) ? 'selected="selected"' : '';
				echo "<option value='$item_codemagic' $selected_codemagic>$item_codemagic</option>";
			}
			echo "</select>";
 }
 
 function jwl_html5_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_html5_field_id]" id="html5" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_html5_field_id']), false ) . ' /> '; ?><label for="html5"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/html5.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_html5_dropdown'])) {
			$options_html5 = $options['jwl_html5_dropdown'];
			}		
			$items_html5 = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_html5_dropdown][row]'>";
			foreach($items_html5 as $item_html5) {
				$selected_html5 = ($options_html5['row']==$item_html5) ? 'selected="selected"' : '';
				echo "<option value='$item_html5' $selected_html5>$item_html5</option>";
			}
			echo "</select>";
 }
 
 function jwl_media_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_media_field_id]" id="media" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_media_field_id']), false ) . ' /> '; ?><label for="media"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/media.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_media_dropdown'])) {
			$options_media = $options['jwl_media_dropdown'];
			}	
			$items_media = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_media_dropdown][row]'>";
			foreach($items_media as $item_media) {
				$selected_media = ($options_media['row']==$item_media) ? 'selected="selected"' : '';
				echo "<option value='$item_media' $selected_media>$item_media</option>";
			}
			echo "</select>";
 }
 
 function jwl_youtube_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_youtube_field_id]" id="youtube" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_youtube_field_id']), false ) . ' /> '; ?><label for="youtube"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/youtube.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_youtube_dropdown'])) {
			$options_youtube = $options['jwl_youtube_dropdown'];
			}	
			$items_youtube = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_youtube_dropdown][row]'>";
			foreach($items_youtube as $item_youtube) {
				$selected_youtube = ($options_youtube['row']==$item_youtube) ? 'selected="selected"' : '';
				echo "<option value='$item_youtube' $selected_youtube>$item_youtube</option>";
			}
			echo "</select>";
 }
 
 function jwl_youtubeIframe_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_youtubeIframe_field_id]" id="youtubeIframe" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_youtubeIframe_field_id']), false ) . ' /> '; ?><label for="youtubeIframe"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/youtubeIframe.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_youtubeIframe_dropdown'])) {
			$options_youtubeIframe = $options['jwl_youtubeIframe_dropdown'];
			}	
			$items_youtubeIframe = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_youtubeIframe_dropdown][row]'>";
			foreach($items_youtubeIframe as $item_youtubeIframe) {
				$selected_youtubeIframe = ($options_youtubeIframe['row']==$item_youtubeIframe) ? 'selected="selected"' : '';
				echo "<option value='$item_youtubeIframe' $selected_youtubeIframe>$item_youtubeIframe</option>";
			}
			echo "</select>";
 }
 
 function jwl_imgmap_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_imgmap_field_id]" id="imgmap" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_imgmap_field_id']), false ) . ' /> '; ?><label for="imgmap"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/imgmap.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_imgmap_dropdown'])) {
			$options_imgmap = $options['jwl_imgmap_dropdown'];
			}	
			$items_imgmap = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_imgmap_dropdown][row]'>";
			foreach($items_imgmap as $item_imgmap) {
				$selected_imgmap = ($options_imgmap['row']==$item_imgmap) ? 'selected="selected"' : '';
				echo "<option value='$item_imgmap' $selected_imgmap>$item_imgmap</option>";
			}
			echo "</select>";
 }
 
 function jwl_visualchars_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_visualchars_field_id]" id="visualchars" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_visualchars_field_id']), false ) . ' /> '; ?><label for="visualchars"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/visualchars.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_visualchars_dropdown'])) {
			$options_visualchars = $options['jwl_visualchars_dropdown'];
			}	
			$items_visualchars = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_visualchars_dropdown][row]'>";
			foreach($items_visualchars as $item_visualchars) {
				$selected_visualchars = ($options_visualchars['row']==$item_visualchars) ? 'selected="selected"' : '';
				echo "<option value='$item_visualchars' $selected_visualchars>$item_visualchars</option>";
			}
			echo "</select>";
 }
 
 function jwl_print_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_print_field_id]" id="print" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_print_field_id']), false ) . ' /> '; ?><label for="print"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/print.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_print_dropdown'])) {
			$options_print = $options['jwl_print_dropdown'];
			}	
			$items_print = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_print_dropdown][row]'>";
			foreach($items_print as $item_print) {
				$selected_print = ($options_print['row']==$item_print) ? 'selected="selected"' : '';
				echo "<option value='$item_print' $selected_print>$item_print</option>";
			}
			echo "</select>";
 }
 
 function jwl_shortcodes_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_shortcodes_field_id]" id="shortcodes" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_shortcodes_field_id']), false ) . ' /> '; ?><label for="shortcodes"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/shortcodes.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_shortcodes_dropdown'])) {
			$options_shortcodes = $options['jwl_shortcodes_dropdown'];
			}	
			$items_shortcodes = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_shortcodes_dropdown][row]'>";
			foreach($items_shortcodes as $item_shortcodes) {
				$selected_shortcodes = ($options_shortcodes['row']==$item_shortcodes) ? 'selected="selected"' : '';
				echo "<option value='$item_shortcodes' $selected_shortcodes>$item_shortcodes</option>";
			}
			echo "</select>";
 }
 
 function jwl_loremipsum_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_loremipsum_field_id]" id="loremipsum" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_loremipsum_field_id']), false ) . ' /> '; ?><label for="loremipsum"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/loremipsum.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_loremipsum_dropdown'])) {
			$options_loremipsum = $options['jwl_loremipsum_dropdown'];
			}	
			$items_loremipsum = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_loremipsum_dropdown][row]'>";
			foreach($items_loremipsum as $item_loremipsum) {
				$selected_loremipsum = ($options_loremipsum['row']==$item_loremipsum) ? 'selected="selected"' : '';
				echo "<option value='$item_loremipsum' $selected_loremipsum>$item_loremipsum</option>";
			}
			echo "</select>";
 }
 
 function jwl_w3cvalidate_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_w3cvalidate_field_id]" id="w3cvalidate" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_w3cvalidate_field_id']), false ) . ' /> '; ?><label for="w3cvalidate"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/w3cvalidate.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_w3cvalidate_dropdown'])) {
			$options_w3cvalidate = $options['jwl_w3cvalidate_dropdown'];
			}	
			$items_w3cvalidate = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_w3cvalidate_dropdown][row]'>";
			foreach($items_w3cvalidate as $item_w3cvalidate) {
				$selected_w3cvalidate = ($options_w3cvalidate['row']==$item_w3cvalidate) ? 'selected="selected"' : '';
				echo "<option value='$item_w3cvalidate' $selected_w3cvalidate>$item_w3cvalidate</option>";
			}
			echo "</select>";
 }
 
 function jwl_clker_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_clker_field_id]" id="clker" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_clker_field_id']), false ) . ' /> '; ?><label for="clker"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/clker.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_clker_dropdown'])) {
			$options_clker = $options['jwl_clker_dropdown'];
			}	
			$items_clker = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_clker_dropdown][row]'>";
			foreach($items_clker as $item_clker) {
				$selected_clker = ($options_clker['row']==$item_clker) ? 'selected="selected"' : '';
				echo "<option value='$item_clker' $selected_clker>$item_clker</option>";
			}
			echo "</select>";
 }
 
 function jwl_acheck_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_acheck_field_id]" id="acheck" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_acheck_field_id']), false ) . ' /> '; ?><label for="acheck"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/acheck.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_acheck_dropdown'])) {
			$options_acheck = $options['jwl_acheck_dropdown'];
			}	
			$items_acheck = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_acheck_dropdown][row]'>";
			foreach($items_acheck as $item_acheck) {
				$selected_acheck = ($options_acheck['row']==$item_acheck) ? 'selected="selected"' : '';
				echo "<option value='$item_acheck' $selected_acheck>$item_acheck</option>";
			}
			echo "</select>";
 }
 
 function jwl_advlink_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_advlink_field_id]" id="advlink" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_advlink_field_id']), false ) . ' /> '; ?><label for="advlink"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/advlink.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_advlink_dropdown'])) {
			$options_advlink = $options['jwl_advlink_dropdown'];
			}	
			$items_advlink = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_advlink_dropdown][row]'>";
			foreach($items_advlink as $item_advlink) {
				$selected_advlink = ($options_advlink['row']==$item_advlink) ? 'selected="selected"' : '';
				echo "<option value='$item_advlink' $selected_advlink>$item_advlink</option>";
			}
			echo "</select>";
 }
 
 function jwl_div_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_div_field_id]" id="div" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_div_field_id']), false ) . ' /> '; ?><label for="div"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/div_clear.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_div_dropdown'])) {
			$options_div = $options['jwl_div_dropdown'];
			}	
			$items_div = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:22px;' name='jwl_options_group1[jwl_div_dropdown][row]'>";
			foreach($items_div as $item_div) {
				$selected_div = ($options_div['row']==$item_div) ? 'selected="selected"' : '';
				echo "<option value='$item_div' $selected_div>$item_div</option>";
			}
			echo "</select>";
 }
 
 function jwl_nextpage_callback_function() {
	 $options = get_option('jwl_options_group1');
 	echo '<input name="jwl_options_group1[jwl_nextpage_field_id]" id="nextpage" type="checkbox" value="1" class="two" ' . checked( 1, isset($options['jwl_nextpage_field_id']), false ) . ' /> '; ?><label for="nextpage"><span></span></label><?php
	?><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/page_break.png" style="margin-left:10px;margin-bottom:-5px;" /><?php
			if (isset($options['jwl_nextpage_dropdown'])) {
			$options_nextpage = $options['jwl_nextpage_dropdown'];
			}	
			$items_nextpage = array("Row 1", "Row 2", "Row 3", "Row 4");
			echo "<select class='actionList2' id='row' style='width:80px;margin-left:82px;' name='jwl_options_group1[jwl_nextpage_dropdown][row]'>";
			foreach($items_nextpage as $item_nextpage) {
				$selected_nextpage = ($options_nextpage['row']==$item_nextpage) ? 'selected="selected"' : '';
				echo "<option value='$item_nextpage' $selected_nextpage>$item_nextpage</option>";
			}
			echo "</select>";
 }

// *********************************************************
//
//
// 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_options_group3');
	$options2 = $options['jwl_tinycolor_css_field_id'];
	$items = array("Default", "Pink", "Green", "Dark&Green", "Dark&Pink", "Rainbow", "Steel");
	echo "<select id='tinycolor' name='jwl_options_group3[jwl_tinycolor_css_field_id][tinycolor]'>";
	foreach($items as $item) {
		$selected = ($options2['tinycolor']==$item) ? 'selected="selected"' : '';
		echo "<option value='$item' $selected>$item</option>";
	}
	echo "</select>";
	?><span style="float:right;"><?php _e('Don\'t miss the <a target="_blank" href="http://www.plugins.joshlobe.com/wp-admin-colors/">WP Admin Colors</a> addon.','jwl-ultimate-tinymce'); ?></span><?php 
 }
 
 function change_mce_colors() {
   $options3 = get_option('jwl_options_group3');
   $options4 = $options3['jwl_tinycolor_css_field_id'];
   $current_option = strtolower($options4['tinycolor']);
   $colorurl = plugin_dir_url( __FILE__ ) . 'css/change_mce_'.$current_option.'.css';  // Color Options
   wp_register_style('tiny_color_mce', $colorurl, '', 1.0, 'screen');
   wp_enqueue_style('tiny_color_mce');
 }
 add_action('admin_head', 'change_mce_colors');
 
 function jwl_tinymce_nextpage_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_tinymce_nextpage_field_id]" id="tinymce_nextpage" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_tinymce_nextpage_field_id']), false ) . ' /> '; ?><label for="tinymce_nextpage"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Adds a button to "break" posts into multiple pages.','jwl-ultimate-tinymce'); ?></em></span><span style="margin-left:5px;"><img src="<?php echo plugin_dir_url( __FILE__ ) ?>img/page_break.png" style="margin-bottom:-5px;" /></span><?php
 }
 
 function jwl_postid_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_postid_field_id]" id="postid" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_postid_field_id']), false ) . ' /> '; ?><label for="postid"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Adds ID column to post/page admin list.','jwl-ultimate-tinymce'); ?></em></span><?php
 }
 
 function jwl_shortcode_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_shortcode_field_id]" id="shortcode" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_shortcode_field_id']), false ) . ' /> '; ?><label for="shortcode"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Use all shortcodes in widget areas too.','jwl-ultimate-tinymce'); ?></em></span><?php
 }
 
 function jwl_php_widget_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_php_widget_field_id]" id="php_widget" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_php_widget_field_id']), false ) . ' /> '; ?><label for="php_widget"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Adds a widget which can be used to insert PHP code.','jwl-ultimate-tinymce'); ?></em></span><?php
 }
 
 function jwl_linebreak_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_linebreak_field_id]" id="linebreak" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_linebreak_field_id']), false ) . ' /> '; ?><label for="linebreak"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Simply use the <b>[break]</b> shortcode','jwl-ultimate-tinymce'); ?></em></span><?php
 }
 
 function jwl_columns_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_columns_field_id]" id="columns" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_columns_field_id']), false ) . ' /> '; ?><label for="columns"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Use to create magazine-style columns.','jwl-ultimate-tinymce'); ?></em></span><?php
 }
 
 function jwl_autop_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_autop_field_id]" id="autop" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_autop_field_id']), false ) . ' /> '; ?><label for="autop"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Disables the WordPress <strong>wpautop()</strong> function.','jwl-ultimate-tinymce'); ?></em></span><?php 
 }
 
 function jwl_remove_pbr_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_remove_pbr_field_id]" id="remove_pbr" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_remove_pbr_field_id']), false ) . ' /> '; ?><label for="remove_pbr"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Removes the p and br tags from the text editor.','jwl-ultimate-tinymce'); ?></em></span><?php 
 }
 
 function jwl_cursor_callback_function() {
	 $options = get_option('jwl_options_group3');
 	echo '<input name="jwl_options_group3[jwl_cursor_field_id]" id="cursor" type="checkbox" value="1" class="four" ' . checked( 1, isset($options['jwl_cursor_field_id']), false ) . ' /> '; ?><label for="cursor"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Restore scrollbar position after saving post/page content.','jwl-ultimate-tinymce'); ?></em><?php 
 }
 
 function jwl_signoff_callback_function() {
	_e('Use the editor below to create content which can be inserted into a post/page using the <b>[signoff]</b> shortcode.','jwl-ultimate-tinymce');
 } 
 
// Functions for Admin Panel Options
function jwl_dev_support_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_dev_support]" id="jwl_dev_support" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_dev_support']), false ) . ' /> '; ?><label for="jwl_dev_support"><span></span></label><?php
	?><span style="margin-left:15px;" class="jwl_pro_text"><em><?php _e('Places an attractive link to my Pro version in footer of website.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_user_role_callback_function() {
	/*
	$options = get_option('jwl_options_group4');
    
	if (isset($options['jwl_tinymce_user_role'])) {
		$options_tinymce_user_role = $options['jwl_tinymce_user_role'];
	}
	$items_tinymce_user_role = array("Super Admin", "Administrator", "Editor", "Author", "Contributor");
	echo "<select id='jwl_tinymce_user_role' style='width:100px;' name='jwl_options_group4[jwl_tinymce_user_role]'>";
	foreach($items_tinymce_user_role as $item_tinymce_user_role) {
		$selected_tinymce_user_role = ($options_tinymce_user_role == $item_tinymce_user_role) ? 'selected="selected"' : '';
		echo "<option value='$item_tinymce_user_role' $selected_tinymce_user_role>$item_tinymce_user_role</option>";
	}
	echo "</select>";
	?><span class="jwl_pro_text" style="margin-left:10px;"><em><?php _e('Select which role may access the Ultimate Tinymce content editor.', 'jwl-ultimate-tinymce'); ?></em></span><?php
	*/
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php  _e('Select which role may access the Ultimate Tinymce content editor.', 'jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_menu_location_callback_function() {
	$options = get_option('jwl_options_group4');
    
	if (isset($options['jwl_menu_location'])) {
		$options_location = $options['jwl_menu_location'];
	}
	$items_location = array("Main", "Appearance", "Tools", "Settings");
	echo "<select id='jwl_menu_location' style='width:100px;' name='jwl_options_group4[jwl_menu_location]'>";
	foreach($items_location as $item_location) {
		$selected_location = ($options_location == $item_location) ? 'selected="selected"' : '';
		echo "<option value='$item_location' $selected_location>$item_location</option>";
	}
	echo "</select>";
	?><span class="jwl_pro_text" style="margin-left:10px;"><em><?php _e('First save as "Main". Then choose Tools, Settings, or Appearance, and save again.', 'jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_add_stylesheet_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_tinymce_add_stylesheet]" id="jwl_tinymce_add_stylesheet" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_tinymce_add_stylesheet']), false ) . ' /> '; ?><label for="jwl_tinymce_add_stylesheet"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('If availble in your theme, loads the editor-style.css file.','jwl-ultimate-tinymce'); ?></em><?php
}
function jwl_tinymce_add_widgets_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Create custom widgets just like a custom post type.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_add_context_menu_callback_function() {
	 ?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Enables an editor "right-click menu", negating the need for buttons in rows.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_custom_users_callback_function() {
	 ?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Allows each user to store individual custom settings.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_excerpt_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_tinymce_excerpt]" id="jwl_tinymce_excerpt" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_tinymce_excerpt']), false ) . ' /> '; ?><label for="jwl_tinymce_excerpt"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Enables Ultimate Tinymce in the excerpt area of Posts.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_post_revisions_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Sets maximum number of post revisions to store in database.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_page_revisions_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Sets maximum number of page revisions to store in database.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_del_revisions_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Deletes all post and page revisions from the database.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_excerpt_page_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_tinymce_excerpt_page]" id="jwl_tinymce_excerpt_page" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_tinymce_excerpt_page']), false ) . ' /> '; ?><label for="jwl_tinymce_excerpt_page"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Enables Ultimate Tinymce in the excerpt area of Pages.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_hide_html_tab_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_hide_html_tab]" id="hide_html" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_hide_html_tab']), false ) . ' /> '; ?><label for="hide_html"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Removes the TEXT tab from the content editor, rendering it unusuable','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_dashboard_widget_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_dashboard_widget]" id="dashboard" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_dashboard_widget']), false ) . ' /> '; ?><label for="dashboard"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Adds a dashboard widget with a News Feed from Ultimate Tinymce.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_admin_bar_link_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_admin_bar_link]" id="adminbar" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_admin_bar_link']), false ) . ' /> '; ?><label for="adminbar"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Adds a link to the admin bar for quick access to the Tinymce Settings Page.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_hide_posts_list_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Hides selected posts from admin edit view.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_hide_pages_list_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><span class="jwl_pro_text"><em><?php _e('Hides selected pages from admin edit view.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_content_css_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_content_css]" id="contentcss" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_content_css']), false ) . ' /> '; ?><label for="contentcss"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Click help icon for detailed information.','jwl-ultimate-tinymce'); ?></em></span>
	<?php
}
function jwl_disable_styles_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_disable_styles]" id="disable_styles" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_disable_styles']), false ) . ' /> '; ?><label for="disable_styles"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Removes all author plugin admin styling','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_refresh_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_tinymce_refresh]" id="tinymcerefresh" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_tinymce_refresh']), false ) . ' /> '; ?><label for="tinymcerefresh"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Disables the force caching of tinymce on page reload.','jwl-ultimate-tinymce'); ?></em></span><?php
}
function jwl_tinymce_kitchen_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_tinymce_kitchen]" id="tinymcekitchen" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_tinymce_kitchen']), false ) . ' /> '; ?><label for="tinymcekitchen"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Disables the force open state of "kitchen sink" button.','jwl-ultimate-tinymce'); ?></em></span><?php
}

function jwl_qr_code_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_qr_code]" id="jwl_qr_code" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_qr_code']), false ) . ' /> '; ?><label for="jwl_qr_code"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Displays unique qr code at bottom of each post.','jwl-ultimate-tinymce'); ?></em></span><span style="margin-left:10px;" class="jwl_pro_text"><em><?php _e('More options available in PRO','jwl-ultimate-tinymce'); ?></em></span><?php
}

function jwl_qr_code_pages_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<input name="jwl_options_group4[jwl_qr_code_pages]" id="jwl_qr_code_pages" type="checkbox" value="1" class="five" ' . checked( 1, isset($options['jwl_qr_code_pages']), false ) . ' /> '; ?><label for="jwl_qr_code_pages"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Displays unique qr code at bottom of each page.','jwl-ultimate-tinymce'); ?></em></span><span style="margin-left:10px;" class="jwl_pro_text"><em><?php _e('More options available in PRO','jwl-ultimate-tinymce'); ?></em></span><?php
}

function jwl_qr_code_text_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<div class="jwl_hide">';
	echo 'Choose QR Text Color:<br />';
	if (isset($options['jwl_qr_code_text'])) {
		echo '<input type="text" id="jwl_qr_code_text" class="color" name="jwl_options_group4[jwl_qr_code_text]" value="' . $options['jwl_qr_code_text'] . '" />';
	} else {
		echo '<input type="text" id="jwl_qr_code_text" class="color" name="jwl_options_group4[jwl_qr_code_text]" value="#000000" />';
	}
	echo '</div';
}

function jwl_qr_code_bg_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<div class="jwl_hide">';
	echo 'Choose QR Title Background Color:<br />';
	if( isset( $options['jwl_qr_code_bg'])) {
		echo '<input type="text" class="color" name="jwl_options_group4[jwl_qr_code_bg]" value="' . $options['jwl_qr_code_bg'] . '" />';
	} else {
		echo '<input type="text" class="color" name="jwl_options_group4[jwl_qr_code_bg]" value="#FFFFFF" />';
	}
	echo '</div';
}

function jwl_qr_code_bg_main_callback_function() {
	 $options = get_option('jwl_options_group4');
	echo '<div class="jwl_hide">';
	echo 'Choose QR Main Background Color:<br />';
	if( isset( $options['jwl_qr_code_bg_main'] )) {
		echo '<input type="text" class="color" name="jwl_options_group4[jwl_qr_code_bg_main]" value="' . $options['jwl_qr_code_bg_main'] . '" />';
	} else {
		echo '<input type="text" class="color" name="jwl_options_group4[jwl_qr_code_bg_main]" value="#FFFFFF" />';
	}
	echo '</div';
}

function jwl_qr_code_content_callback_function() {
	// See added wp_editor in main.php file to control the qr code content
	echo '<span class="jwl_hide">';
	$options = get_option('jwl_options_group4');
	if (isset($options['jwl_qr_code_content'])) {
		echo 'Write QR Content Text:<br />';
	}
	echo '</span>';
}

// Callback functions for the Tinymce Content Editor Over-rides
function jwl_tinymce_modifications_callback_function() {
	 $options = get_option('jwl_options_group8');
 	echo '<input name="jwl_options_group8[jwl_tinymce_modifications]" id="tinymce_modifications" type="checkbox" value="1" class="eight" ' . checked( 1, isset($options['jwl_tinymce_modifications']), false ) . ' /> '; ?><label for="tinymce_modifications"><span></span></label><?php
	?><span style="margin-left:15px;"><em><?php _e('Enable','jwl-ultimate-tinymce'); ?></em></span>
    <?php
}

function jwl_tinymce_background_color_callback_function() {
	$options2 = get_option('jwl_options_group8');
	if (empty($options2['jwl_tinymce_background_color_hex'])) {
		echo '<input name="jwl_options_group8[jwl_tinymce_background_color_hex]" value="#FFFFFF" id="tinymce_background_color_hex" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Hex Number (ex. #FFFFFF)','jwl-ultimate-tinymce'); ?></em></span><?php 
	} else {
		echo '<input name="jwl_options_group8[jwl_tinymce_background_color_hex]" value="'.$options2['jwl_tinymce_background_color_hex'].'" id="tinymce_background_color_hex" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Hex Number (ex. #FFFFFF)','jwl-ultimate-tinymce'); ?></em></span><?php 
	}
}

function jwl_tinymce_font_color_callback_function() {
	$options2 = get_option('jwl_options_group8');
	if (empty($options2['jwl_tinymce_font_color_hex'])) {
		echo '<input name="jwl_options_group8[jwl_tinymce_font_color_hex]" value="#000000" id="tinymce_font_color_hex" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Hex Number (ex. #000000)','jwl-ultimate-tinymce'); ?></em></span><?php 
	} else {
		echo '<input name="jwl_options_group8[jwl_tinymce_font_color_hex]" value="'.$options2['jwl_tinymce_font_color_hex'].'" id="tinymce_font_color_hex" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Hex Number (ex. #000000)','jwl-ultimate-tinymce'); ?></em></span><?php 
	}
}

function jwl_tinymce_fontsize_callback_function() {
	$options2 = get_option('jwl_options_group8');
	if (empty($options2['jwl_tinymce_fontsize'])) {
		echo '<input name="jwl_options_group8[jwl_tinymce_fontsize]" value="13px" id="tinymce_fontsize" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Font Size (ex. 12px, 14pt, 1.2em)','jwl-ultimate-tinymce'); ?></em></span><?php 
	} else {
		echo '<input name="jwl_options_group8[jwl_tinymce_fontsize]" value="'.$options2['jwl_tinymce_fontsize'].'" id="tinymce_fontsize" type="text" />';
	?><span style="margin-left:15px;"><em><?php _e('Enter Font Size (ex. 12px, 14pt, 1.2em)','jwl-ultimate-tinymce'); ?></em></span><?php 
	}
}

function jwl_tinymce_font_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><?php
}

function jwl_tinymce_lineheight_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><?php
}

function jwl_tinymce_direction_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><?php
}

function jwl_tinymce_padding_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><?php
}

function jwl_tinymce_margin_callback_function() {
	?><a target="_blank" href="http://ultimatetinymcepro.com/"><span class="jwl_pro_span"><?php _e('PRO','jwl-ultimate-tinymce'); ?></span></a><?php
}

?>