WP Edit - Version 3.6

Version Description

  • 12/16/15
  • Update to be stable with WordPress 4.4.
Download this release

Release Info

Developer josh401
Plugin Icon wp plugin WP Edit
Version 3.6
Comparing to
See all releases

Version 3.6

Files changed (80) hide show
  1. css/admin.css +237 -0
  2. css/column-style.css +36 -0
  3. css/tinymce_dashicons.css +8 -0
  4. images/banner.png +0 -0
  5. images/close_banner.png +0 -0
  6. includes/functions.php +758 -0
  7. includes/style_formats.php +937 -0
  8. js/admin.js +196 -0
  9. langs/default-es.ES.mo +0 -0
  10. langs/default-es.ES.po +1392 -0
  11. langs/default.mo +0 -0
  12. langs/default.po +856 -0
  13. langs/wpedit-sr_RS.mo +0 -0
  14. langs/wpedit-sr_RS.po +1441 -0
  15. main.php +2729 -0
  16. plugins/abbr/abbr.png +0 -0
  17. plugins/abbr/plugin.js +88 -0
  18. plugins/acheck/img/acheck.png +0 -0
  19. plugins/acheck/plugin.js +40 -0
  20. plugins/advlink/advlink.php +86 -0
  21. plugins/advlink/images/advlink.png +0 -0
  22. plugins/advlink/includes/advlink.css +86 -0
  23. plugins/advlink/includes/advlink.js +161 -0
  24. plugins/advlink/plugin.js +75 -0
  25. plugins/anchor/plugin.min.js +1 -0
  26. plugins/code/plugin.min.js +1 -0
  27. plugins/colorpicker/plugin.min.js +1 -0
  28. plugins/columnShortcodes/columnShortcodes.htm +36 -0
  29. plugins/columnShortcodes/includes/columnShortcodes.css +65 -0
  30. plugins/columnShortcodes/includes/columnShortcodes.js +713 -0
  31. plugins/columnShortcodes/plugin.js +28 -0
  32. plugins/custom_plugins/acheck.png +0 -0
  33. plugins/custom_plugins/advimage.png +0 -0
  34. plugins/custom_plugins/advlink.png +0 -0
  35. plugins/custom_plugins/cleardiv.png +0 -0
  36. plugins/custom_plugins/clker.png +0 -0
  37. plugins/custom_plugins/codemagic.png +0 -0
  38. plugins/custom_plugins/color.png +0 -0
  39. plugins/custom_plugins/formatPainter.png +0 -0
  40. plugins/custom_plugins/googleImages.png +0 -0
  41. plugins/custom_plugins/line_break.png +0 -0
  42. plugins/custom_plugins/loremipsum.png +0 -0
  43. plugins/custom_plugins/mailto.gif +0 -0
  44. plugins/custom_plugins/p_tag.png +0 -0
  45. plugins/custom_plugins/shortcodes.gif +0 -0
  46. plugins/custom_plugins/youtube.png +0 -0
  47. plugins/directionality/plugin.min.js +1 -0
  48. plugins/emoticons/img/smiley-cool.gif +0 -0
  49. plugins/emoticons/img/smiley-cry.gif +0 -0
  50. plugins/emoticons/img/smiley-embarassed.gif +0 -0
  51. plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
  52. plugins/emoticons/img/smiley-frown.gif +0 -0
  53. plugins/emoticons/img/smiley-innocent.gif +0 -0
  54. plugins/emoticons/img/smiley-kiss.gif +0 -0
  55. plugins/emoticons/img/smiley-laughing.gif +0 -0
  56. plugins/emoticons/img/smiley-money-mouth.gif +0 -0
  57. plugins/emoticons/img/smiley-sealed.gif +0 -0
  58. plugins/emoticons/img/smiley-smile.gif +0 -0
  59. plugins/emoticons/img/smiley-surprised.gif +0 -0
  60. plugins/emoticons/img/smiley-tongue-out.gif +0 -0
  61. plugins/emoticons/img/smiley-undecided.gif +0 -0
  62. plugins/emoticons/img/smiley-wink.gif +0 -0
  63. plugins/emoticons/img/smiley-yell.gif +0 -0
  64. plugins/emoticons/plugin.min.js +1 -0
  65. plugins/eqneditor/img/eqneditor.png +0 -0
  66. plugins/eqneditor/plugin.min.js +108 -0
  67. plugins/hr/plugin.min.js +1 -0
  68. plugins/image_orig/plugin.min.js +1 -0
  69. plugins/insertdatetime/plugin.min.js +1 -0
  70. plugins/nonbreaking/nonbreaking.png +0 -0
  71. plugins/nonbreaking/plugin.min.js +23 -0
  72. plugins/preview/plugin.min.js +1 -0
  73. plugins/print/plugin.min.js +1 -0
  74. plugins/searchreplace/plugin.min.js +1 -0
  75. plugins/table/plugin.min.js +1 -0
  76. plugins/test/plugin.js +94 -0
  77. plugins/visualblocks/css/visualblocks.css +128 -0
  78. plugins/visualblocks/plugin.min.js +1 -0
  79. plugins/wpep_noautop/plugin.js +59 -0
  80. readme.txt +252 -0
css/admin.css ADDED
@@ -0,0 +1,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @media only screen and (min-width: 1200px) {
2
+ .sortable {
3
+ width: 100%;
4
+ }
5
+ .wrap {
6
+ float:left;width:70%;margin-right:3%;
7
+ }
8
+ #right_column_metaboxes {
9
+ width:25%;float:left;margin-top:98px;
10
+ }
11
+ }
12
+ @media only screen and (max-width: 1200px) {
13
+ #right_column_metaboxes .main_container {
14
+ margin-right:20px;
15
+ }
16
+ }
17
+
18
+ .postbox {
19
+ min-width: 0px;
20
+ border-radius: 5px;
21
+ }
22
+
23
+ /*
24
+ Main navigation tabs
25
+ */
26
+ h2 .nav-tab {
27
+ font-size: 13px;
28
+ }
29
+
30
+
31
+ /*
32
+ Buttons tooltips
33
+ */
34
+ .ui-tooltip {
35
+ padding: 0 8px;
36
+ }
37
+ .data_tooltip_title {
38
+ margin: 5px 0;
39
+ }
40
+
41
+
42
+ /*
43
+ Metaboxes
44
+ */
45
+ .metabox {
46
+ border: 1px solid black;
47
+ background-color: #FFF;
48
+ padding: 2px 5px;
49
+ }
50
+ .meta_title {
51
+ text-align: center;
52
+ font-weight: bold;
53
+ font-size: 16px;
54
+ padding: 5px 0;
55
+ border-bottom: 1px dotted #999;
56
+ }
57
+ .meta_body {
58
+ padding: 10px;
59
+ }
60
+
61
+
62
+ /*
63
+ Main container
64
+ */
65
+ .main_container {
66
+
67
+ background-color: white;
68
+ padding: 0 20px 20px 20px;
69
+ margin-bottom: 20px;
70
+ border: 1px solid #CCC;
71
+ border-radius: 0 0 10px 10px;
72
+
73
+ background: rgb(255,255,255);
74
+ background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(247,249,255,1) 48%, rgba(217,222,224,1) 100%);
75
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(48%,rgba(247,249,255,1)), color-stop(100%,rgba(217,222,224,1)));
76
+ background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(247,249,255,1) 48%,rgba(217,222,224,1) 100%);
77
+ background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(247,249,255,1) 48%,rgba(217,222,224,1) 100%);
78
+ background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(247,249,255,1) 48%,rgba(217,222,224,1) 100%);
79
+ background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(247,249,255,1) 48%,rgba(217,222,224,1) 100%);
80
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#d9dee0',GradientType=0 );
81
+ }
82
+
83
+ /* Pro Upgrade List */
84
+ .dashicons-yes {
85
+ color: deepskyblue;
86
+ }
87
+ ul.wpep_pro_upgrade_list {
88
+
89
+ }
90
+
91
+ /*
92
+ Sortable rows
93
+ */
94
+ #inside_button_hover > div > div:hover { /* Button hover */
95
+ border: 1px solid #FC94CC;
96
+ border-radius: 5px;
97
+ background: #FFF2F9;
98
+ -webkit-box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
99
+ -moz-box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
100
+ box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
101
+ }
102
+ .sortable { /* Button row containers */
103
+ width: 100%;
104
+ min-height: 42px;
105
+ margin-bottom: 10px;
106
+ overflow: auto;
107
+ border-radius: 5px;
108
+ -webkit-box-shadow: 0px 0px 5px 0px rgba(204,204,204,1);
109
+ -moz-box-shadow: 0px 0px 5px 0px rgba(204,204,204,1);
110
+ box-shadow: 0px 0px 5px 0px rgba(204,204,204,1);
111
+ }
112
+ .sortable > div { /* Main individual buttons */
113
+ float: left;
114
+ margin: 5px 0 5px 4px;
115
+ cursor: move;
116
+ border-radius: 5px;
117
+ padding: 5px;
118
+ width: auto;
119
+ min-width: 20px;
120
+ min-height: 20px;
121
+ }
122
+ .sortable > div > span {
123
+ text-align: center;
124
+ display: block;
125
+ }
126
+ .ui-sortable-helper { /* Pink highlight container */
127
+ width: auto !important;
128
+ height: auto !important;
129
+ padding-right: 0px !important;
130
+ border: 1px solid #FC94CC;
131
+ border-radius: 5px;
132
+ background: #FFF2F9;
133
+ -webkit-box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
134
+ -moz-box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
135
+ box-shadow: 0px 0px 20px 0px rgba(233,186,245,1);
136
+ }
137
+ .sortable_placeholder { /* Blue placeholder container */
138
+ background: #D9F7FC !important;
139
+ opacity: 0.8 !important;
140
+ border: 1px solid #72E7F9 !important;
141
+ border-radius: 5px !important;
142
+ -webkit-box-shadow: 0px 0px 20px 0px rgba(184,206,245,1) !important;
143
+ -moz-box-shadow: 0px 0px 20px 0px rgba(184,206,245,1) !important;
144
+ box-shadow: 0px 0px 20px 0px rgba(184,206,245,1) !important;
145
+ }
146
+ .sortable_multiselect > div { /* Pink highlight container individual buttons */
147
+ float: left;
148
+ margin: 0 4px 0 0;
149
+ cursor: move;
150
+ border-radius: 5px;
151
+ padding: 5px;
152
+ width: auto;
153
+ min-width: 20px;
154
+ min-height: 20px;
155
+ position: relative;
156
+ }
157
+ .ui-state-active-button { /* Active buttons */
158
+ border: 1px solid #FC94CC !important;
159
+ border-radius: 5px;
160
+ background: #FFFED6 !important;
161
+ -webkit-box-shadow: 0px 0px 10px 0px rgba(249, 247, 99,1);
162
+ -moz-box-shadow: 0px 0px 10px 0px rgba(249, 247, 99,1);
163
+ box-shadow: 0px 0px 10px 0px rgba(249, 247, 99,1);
164
+ }
165
+
166
+
167
+ /*
168
+ Bootstrap Tables
169
+ */
170
+ table {
171
+ max-width: 100%;
172
+ }
173
+
174
+ th {
175
+ text-align: left;
176
+ }
177
+
178
+ .table {
179
+ width: 100%;
180
+ margin-bottom: 20px;
181
+ }
182
+
183
+ .table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th,
184
+ .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
185
+ padding: 8px;
186
+ line-height: 1.428571429;
187
+ vertical-align: top;
188
+ border-top: 1px solid #ddd;
189
+ }
190
+
191
+ .table > thead > tr > th {
192
+ vertical-align: bottom;
193
+ border-bottom: 2px solid #ddd;
194
+ font-size: 14px;
195
+ }
196
+
197
+ .table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th,
198
+ .table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td {
199
+ border-top: 0;
200
+ }
201
+
202
+ .table > tbody + tbody {
203
+ border-top: 2px solid #ddd;
204
+ }
205
+
206
+ .table .table {
207
+ background-color: #fff;
208
+ }
209
+
210
+ .table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th,
211
+ .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td {
212
+ padding: 5px;
213
+ }
214
+
215
+ .table-bordered {
216
+ border: 1px solid #ddd;
217
+ }
218
+
219
+ .table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th,
220
+ .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
221
+ border: 1px solid #ddd;
222
+ }
223
+
224
+ .table-bordered > thead > tr > th,
225
+ .table-bordered > thead > tr > td {
226
+ border-bottom-width: 2px;
227
+ }
228
+
229
+ .table-striped > tbody > tr:nth-child(odd) > td,
230
+ .table-striped > tbody > tr:nth-child(odd) > th {
231
+ background-color: #eaeaea;
232
+ }
233
+
234
+ .table-hover > tbody > tr:hover > td,
235
+ .table-hover > tbody > tr:hover > th {
236
+ background-color: #f5f5f5;
237
+ }
css/column-style.css ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ------- Fluid Columns ------- */
2
+ .jwl_one_half{width:48%;}
3
+ .jwl_one_third{width:30.66%;}
4
+ .jwl_two_third{width:65.33%;}
5
+ .jwl_one_fourth{width:22%;}
6
+ .jwl_three_fourth{width:74%;}
7
+ .jwl_one_fifth{width:16.8%;}
8
+ .jwl_two_fifth{width:37.6%;}
9
+ .jwl_three_fifth{width:58.4%;}
10
+ .jwl_four_fifth{width:67.2%;}
11
+ .jwl_one_sixth{width:13.33%;}
12
+ .jwl_five_sixth{width:82.67%;}
13
+
14
+ .jwl_one_half, .jwl_one_third, .jwl_two_third, .jwl_three_fourth, .jwl_one_fourth, .jwl_one_fifth, .jwl_two_fifth,
15
+ .jwl_three_fifth, .jwl_four_fifth, .jwl_one_sixth, .jwl_five_sixth {
16
+ position:relative;
17
+ margin-right:4%;
18
+ float:left;
19
+ }
20
+
21
+ .last{ margin-right:0 !important; clear:right; }
22
+ .clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}
23
+
24
+ /* ------- Added for Right to Left language support ------- */
25
+ .rtl .jwl_one_half, .rtl .jwl_one_third, .rtl .jwl_two_third, .rtl .jwl_three_fourth, .rtl .jwl_one_fourth,
26
+ .rtl .jwl_one_fifth, .rtl .jwl_two_fifth, .rtl .jwl_three_fifth, .rtl .jwl_four_fifth, .rtl .jwl_one_sixth, .rtl .jwl_five_sixth {
27
+ float: right;
28
+ margin-right: inherit;
29
+ margin-left: 4%;
30
+ }
31
+
32
+ .rtl .last {
33
+ clear: left;
34
+ margin-left: 0 !important;
35
+ margin-right: inherit;
36
+ }
css/tinymce_dashicons.css ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ i.mce-i-format_painter:before {
2
+ content: "\f100" !important;
3
+ font-family: 'dashicons' !important;
4
+ }
5
+ i.mce-i-schedule:before {
6
+ content: "\f489" !important;
7
+ font-family: 'dashicons' !important;
8
+ }
images/banner.png ADDED
Binary file
images/close_banner.png ADDED
Binary file
includes/functions.php ADDED
@@ -0,0 +1,758 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ ****************************************************************
5
+ Global Functions
6
+ ****************************************************************
7
+ */
8
+ $plugin_options_global = get_option('wp_edit_global');
9
+
10
+ // Disable admin bar links
11
+ if($plugin_options_global['disable_admin_links'] != 1) {
12
+
13
+ function wp_edit_admin_bar_init() {
14
+
15
+ // Is the user sufficiently leveled, or has the bar been disabled?
16
+ if (!is_admin() || !is_admin_bar_showing() ) {
17
+ return;
18
+ }
19
+ // Good to go, lets do this!
20
+ add_action('admin_bar_menu', 'wp_edit_admin_bar_links', 500);
21
+ }
22
+ add_action('admin_bar_init', 'wp_edit_admin_bar_init');
23
+
24
+ function wp_edit_admin_bar_links() {
25
+
26
+ global $wp_admin_bar;
27
+ $path = admin_url();
28
+ $wp_admin_bar->add_menu( array(
29
+ 'title' => __('WP Edit','wp-edit'),
30
+ 'id' => 'jwl_links',
31
+ 'href' => $path . 'admin.php?page=wp_edit_options&tab=buttons'
32
+ ));
33
+ /** * Add the submenu links. */
34
+ $wp_admin_bar->add_menu( array(
35
+ 'id' => 'jwl_admin_buttons',
36
+ 'parent' => 'jwl_links',
37
+ 'title' => __('Buttons','wp-edit'),
38
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=buttons',
39
+ 'meta' => array(
40
+ 'title' => __('Buttons','wp-edit')
41
+ ),
42
+ ));
43
+ $wp_admin_bar->add_menu( array(
44
+ 'id' => 'jwl_admin_global',
45
+ 'parent' => 'jwl_links',
46
+ 'title' => __('Global','wp-edit'),
47
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=global',
48
+ 'meta' => array(
49
+ 'title' => __('Global','wp-edit')
50
+ ),
51
+ ));
52
+ $wp_admin_bar->add_menu( array(
53
+ 'id' => 'jwl_admin_general',
54
+ 'parent' => 'jwl_links',
55
+ 'title' => __('General','wp-edit'),
56
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=general',
57
+ 'meta' => array(
58
+ 'title' => __('General','wp-edit')
59
+ ),
60
+ ));
61
+ $wp_admin_bar->add_menu( array(
62
+ 'id' => 'jwl_admin_posts',
63
+ 'parent' => 'jwl_links',
64
+ 'title' => __('Posts/Pages','wp-edit'),
65
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=posts',
66
+ 'meta' => array(
67
+ 'title' => __('Posts/Pages','wp-edit')
68
+ ),
69
+ ));
70
+ $wp_admin_bar->add_menu( array(
71
+ 'id' => 'jwl_admin_editor',
72
+ 'parent' => 'jwl_links',
73
+ 'title' => __('Editor','wp-edit'),
74
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=editor',
75
+ 'meta' => array(
76
+ 'title' => __('Editor','wp-edit')
77
+ ),
78
+ ));
79
+ $wp_admin_bar->add_menu( array(
80
+ 'id' => 'jwl_admin_extras',
81
+ 'parent' => 'jwl_links',
82
+ 'title' => __('Extras','wp-edit'),
83
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=extras',
84
+ 'meta' => array(
85
+ 'title' => __('Extras','wp-edit')
86
+ ),
87
+ ));
88
+ $wp_admin_bar->add_menu( array(
89
+ 'id' => 'jwl_admin_user_specific',
90
+ 'parent' => 'jwl_links',
91
+ 'title' => __('User Specific','wp-edit'),
92
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=user_specific',
93
+ 'meta' => array(
94
+ 'title' => __('User Specific','wp-edit')
95
+ ),
96
+ ));
97
+ $wp_admin_bar->add_menu( array(
98
+ 'id' => 'jwl_admin_database',
99
+ 'parent' => 'jwl_links',
100
+ 'title' => __('Database','wp-edit'),
101
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=database',
102
+ 'meta' => array(
103
+ 'title' => __('Database','wp-edit')
104
+ ),
105
+ ));
106
+ $wp_admin_bar->add_menu( array(
107
+ 'id' => 'jwl_admin_about',
108
+ 'parent' => 'jwl_links',
109
+ 'title' => __('About','wp-edit'),
110
+ 'href' => $path.'admin.php?page=wp_edit_options&tab=about',
111
+ 'meta' => array(
112
+ 'title' => __('About','wp-edit')
113
+ ),
114
+ ));
115
+ }
116
+ }
117
+
118
+ /*
119
+ ****************************************************************
120
+ General Functions
121
+ ****************************************************************
122
+ */
123
+ $plugin_options_general = get_option('wp_edit_general');
124
+
125
+ // Enable LineBreak Shortcode
126
+ if($plugin_options_general['linebreak_shortcode'] == 1) {
127
+
128
+ function wp_edit_insert_linebreak($atts){
129
+ return '<br clear="none" />';
130
+ }
131
+ add_shortcode( 'break', 'wp_edit_insert_linebreak' );
132
+ }
133
+
134
+ // Enable Shortcodes in Widgets
135
+ if($plugin_options_general['shortcodes_in_widgets'] == 1) {
136
+
137
+ add_filter( 'widget_text', 'do_shortcode');
138
+ }
139
+
140
+ // Enable Shortcodes in Excerpts
141
+ if($plugin_options_general['shortcodes_in_excerpts'] == 1) {
142
+
143
+ add_filter( 'the_excerpt', 'do_shortcode');
144
+ }
145
+
146
+ // Add Editor to Post Excerpts
147
+ if($plugin_options_general['post_excerpt_editor'] == 1) {
148
+
149
+ function wp_edit_change_post_excerpt() {
150
+ remove_meta_box('postexcerpt', 'post', 'normal');
151
+ add_meta_box('postexcerpt', __('WP Edit Excerpt', 'wp-edit'), 'wp_edit_post_excerpt_meta_box', 'post', 'normal');
152
+ }
153
+ add_action( 'admin_init', 'wp_edit_change_post_excerpt' );
154
+
155
+ function wp_edit_post_excerpt_meta_box() {
156
+ global $wpdb,$post;
157
+ $tinymce_summary = $wpdb->get_row("SELECT post_excerpt FROM $wpdb->posts WHERE id = '$post->ID'");
158
+ $post_tinymce_excerpt = $tinymce_summary->post_excerpt;
159
+
160
+ $id = 'excerpt';
161
+ $settings = array(
162
+ 'quicktags' => array('buttons' => 'em,strong,link',),
163
+ 'text_area_name'=> 'excerpt',
164
+ 'quicktags' => true,
165
+ 'tinymce' => true,
166
+ 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:250px; width:100%;}</style>'
167
+ );
168
+ wp_editor($post_tinymce_excerpt,$id,$settings);
169
+ }
170
+ }
171
+
172
+ // Add Editor to Page Excerpts
173
+ if($plugin_options_general['page_excerpt_editor'] == 1) {
174
+
175
+ add_action('init', 'wp_edit_page_excerpts_init');
176
+ function wp_edit_page_excerpts_init() {
177
+ add_post_type_support('page', array('excerpt'));
178
+ }
179
+
180
+ add_action( 'admin_init', 'wp_edit_change_page_excerpt' );
181
+ function wp_edit_change_page_excerpt() {
182
+ remove_meta_box('postexcerpt', 'page', 'normal');
183
+ add_meta_box('postexcerpt', __('Wp Edit Excerpt', 'wp-edit'), 'wp_edit_page_excerpt_meta_box', 'page', 'normal');
184
+ }
185
+
186
+ function wp_edit_page_excerpt_meta_box() {
187
+ global $wpdb,$post;
188
+ $tinymce_summary_page = $wpdb->get_row("SELECT post_excerpt FROM $wpdb->posts WHERE id = '$post->ID'");
189
+ $post_tinymce_excerpt_page = $tinymce_summary_page->post_excerpt;
190
+
191
+ $id = 'excerpt';
192
+ $settings = array(
193
+ 'quicktags' => array('buttons' => 'em,strong,link',),
194
+ 'text_area_name'=> 'excerpt',
195
+ 'quicktags' => true,
196
+ 'tinymce' => true,
197
+ 'editor_css' => '<style>#wp-excerpt-editor-container .wp-editor-area{height:250px; width:100%;}</style>'
198
+ );
199
+ wp_editor($post_tinymce_excerpt_page,$id,$settings);
200
+ }
201
+ }
202
+
203
+ // Extend editor to profile biography
204
+ if($plugin_options_general['profile_editor'] == 1) {
205
+
206
+ function wp_edit_visual_editor($user) {
207
+
208
+ // Contributor level user or higher required
209
+ if ( !current_user_can('edit_posts') )
210
+ return;
211
+ ?>
212
+ <table class="form-table">
213
+ <tr id="wp_edit_biographical_editor">
214
+ <th><label for="description"><?php _e('Biographical Info', 'wp-edit'); ?></label></th>
215
+ <td>
216
+ <?php
217
+ $description = get_user_meta( $user->ID, 'description', true);
218
+ $args = array('textarea_rows' => 5);
219
+ wp_editor( $description, 'description', $args );
220
+ ?>
221
+ <p class="description"><?php _e('Share a little biographical information to fill out your profile. This may be shown publicly.', 'wp-edit'); ?></p>
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ <?php
226
+ }
227
+ add_action('show_user_profile','wp_edit_visual_editor');
228
+ add_action('edit_user_profile','wp_edit_visual_editor');
229
+
230
+ function wp_edit_editor_biography_js($hook) {
231
+
232
+ global $current_screen;
233
+ if($current_screen->id === 'profile' || $current_screen->id === 'edit-profile') {
234
+
235
+ ?>
236
+ <script type="text/javascript">
237
+ jQuery(document).ready(function($) {
238
+ // Remove the textarea before displaying visual editor
239
+ $('#description').parents('tr').remove();
240
+
241
+ field = $('#wp_edit_biographical_editor').remove();
242
+ parent = $('#password').closest('tr');
243
+ field.insertBefore(parent);
244
+ });
245
+ </script>
246
+ <?php
247
+ }
248
+ }
249
+ add_action( 'admin_head', 'wp_edit_editor_biography_js', 10, 1 );
250
+ }
251
+
252
+ /*
253
+ ****************************************************************
254
+ Posts/Pages Functions
255
+ ****************************************************************
256
+ */
257
+ $plugin_options_posts = get_option('wp_edit_posts');
258
+
259
+ // Post title field
260
+ if(isset($plugin_options_posts['post_title_field']) && $plugin_options_posts['post_title_field'] != 'Enter title here') {
261
+
262
+ function wp_edit_title_text_input( $title ){
263
+
264
+ $plugin_options_posts = get_option('wp_edit_posts');
265
+ $title = $plugin_options_posts['post_title_field'];
266
+ return $title;
267
+ }
268
+ add_filter( 'enter_title_here', 'wp_edit_title_text_input' );
269
+ }
270
+
271
+ // Column Shortcodes
272
+ if($plugin_options_posts['column_shortcodes'] == 1) {
273
+
274
+ function wp_edit_one_third( $atts, $content = null ) { return '<div class="jwl_one_third">' . do_shortcode($content) . '</div>'; }
275
+ add_shortcode('one_third', 'wp_edit_one_third');
276
+ function wp_edit_one_third_last( $atts, $content = null ) { return '<div class="jwl_one_third last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
277
+ add_shortcode('one_third_last', 'wp_edit_one_third_last');
278
+ function wp_edit_two_third( $atts, $content = null ) { return '<div class="jwl_two_third">' . do_shortcode($content) . '</div>'; }
279
+ add_shortcode('two_third', 'wp_edit_two_third');
280
+ function wp_edit_two_third_last( $atts, $content = null ) { return '<div class="jwl_two_third last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
281
+ add_shortcode('two_third_last', 'wp_edit_two_third_last');
282
+ function wp_edit_one_half( $atts, $content = null ) { return '<div class="jwl_one_half">' . do_shortcode($content) . '</div>'; }
283
+ add_shortcode('one_half', 'wp_edit_one_half');
284
+ function wp_edit_one_half_last( $atts, $content = null ) { return '<div class="jwl_one_half last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
285
+ add_shortcode('one_half_last', 'wp_edit_one_half_last');
286
+ function wp_edit_one_fourth( $atts, $content = null ) { return '<div class="jwl_one_fourth">' . do_shortcode($content) . '</div>'; }
287
+ add_shortcode('one_fourth', 'wp_edit_one_fourth');
288
+ function wp_edit_one_fourth_last( $atts, $content = null ) { return '<div class="jwl_one_fourth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
289
+ add_shortcode('one_fourth_last', 'wp_edit_one_fourth_last');
290
+ function wp_edit_three_fourth( $atts, $content = null ) { return '<div class="jwl_three_fourth">' . do_shortcode($content) . '</div>'; }
291
+ add_shortcode('three_fourth', 'wp_edit_three_fourth');
292
+ function wp_edit_three_fourth_last( $atts, $content = null ) { return '<div class="jwl_three_fourth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
293
+ add_shortcode('three_fourth_last', 'wp_edit_three_fourth_last');
294
+ function wp_edit_one_fifth( $atts, $content = null ) { return '<div class="jwl_one_fifth">' . do_shortcode($content) . '</div>'; }
295
+ add_shortcode('one_fifth', 'wp_edit_one_fifth');
296
+ function wp_edit_one_fifth_last( $atts, $content = null ) { return '<div class="jwl_one_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
297
+ add_shortcode('one_fifth_last', 'wp_edit_one_fifth_last');
298
+ function wp_edit_two_fifth( $atts, $content = null ) { return '<div class="jwl_two_fifth">' . do_shortcode($content) . '</div>'; }
299
+ add_shortcode('two_fifth', 'wp_edit_two_fifth');
300
+ function wp_edit_two_fifth_last( $atts, $content = null ) { return '<div class="jwl_two_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
301
+ add_shortcode('two_fifth_last', 'wp_edit_two_fifth_last');
302
+ function wp_edit_three_fifth( $atts, $content = null ) { return '<div class="jwl_three_fifth">' . do_shortcode($content) . '</div>'; }
303
+ add_shortcode('three_fifth', 'wp_edit_three_fifth');
304
+ function wp_edit_three_fifth_last( $atts, $content = null ) { return '<div class="jwl_three_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
305
+ add_shortcode('three_fifth_last', 'wp_edit_three_fifth_last');
306
+ function wp_edit_four_fifth( $atts, $content = null ) { return '<div class="jwl_four_fifth">' . do_shortcode($content) . '</div>'; }
307
+ add_shortcode('four_fifth', 'wp_edit_four_fifth');
308
+ function wp_edit_four_fifth_last( $atts, $content = null ) { return '<div class="jwl_four_fifth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
309
+ add_shortcode('four_fifth_last', 'wp_edit_four_fifth_last');
310
+ function wp_edit_one_sixth( $atts, $content = null ) { return '<div class="jwl_one_sixth">' . do_shortcode($content) . '</div>'; }
311
+ add_shortcode('one_sixth', 'wp_edit_one_sixth');
312
+ function wp_edit_one_sixth_last( $atts, $content = null ) { return '<div class="jwl_one_sixth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
313
+ add_shortcode('one_sixth_last', 'wp_edit_one_sixth_last');
314
+ function wp_edit_five_sixth( $atts, $content = null ) { return '<div class="jwl_five_sixth">' . do_shortcode($content) . '</div>'; }
315
+ add_shortcode('five_sixth', 'wp_edit_five_sixth');
316
+ function wp_edit_five_sixth_last( $atts, $content = null ) { return '<div class="jwl_five_sixth last">' . do_shortcode($content) . '</div><div class="clearboth"></div>'; }
317
+ add_shortcode('five_sixth_last', 'wp_edit_five_sixth_last');
318
+
319
+ function wp_edit_column_stylesheet() {
320
+
321
+ wp_register_style('wp_edit_column-styles', WP_PLUGIN_URL.'/wp-edit/css/column-style.css');
322
+ wp_enqueue_style('wp_edit_column-styles');
323
+ }
324
+ add_action('wp_print_styles', 'wp_edit_column_stylesheet');
325
+ }
326
+
327
+ // Disable wpautop
328
+ if(!empty($plugin_options_posts['disable_wpautop']) && $plugin_options_posts['disable_wpautop'] == '1') {
329
+
330
+ if ( ! class_exists( 'JWL_Toggle_wpautop' ) ) {
331
+
332
+ /*** JWL_Toggle_wpautop class. */
333
+ class JWL_Toggle_wpautop {
334
+
335
+ /*** Add our hooks and filters */
336
+ function __construct() {
337
+
338
+ add_action( 'admin_init', array( $this, 'activation' ) );
339
+ add_action( 'admin_init', array( $this, 'admin_init' ) );
340
+ add_action( 'add_meta_boxes', array( $this, 'add_meta_boxes' ) );
341
+ add_action( 'save_post', array( $this, 'save_post' ) );
342
+ add_action( 'the_post', array( $this, 'the_post' ) );
343
+ add_action( 'loop_end', array( $this, 'loop_end' ) );
344
+
345
+ add_filter( 'post_class', array( $this, 'post_class' ), 10, 3 );
346
+ }
347
+
348
+ /*** By default, add the ability to disable wpautop on all registered post types */
349
+ function activation() {
350
+
351
+ if ( $settings = get_option( 'jwl_toggle_wpautop_settings' ))
352
+ return;
353
+
354
+ $post_types = get_post_types();
355
+
356
+ if ( empty( $post_types ) )
357
+ return;
358
+
359
+ $default_post_types = array();
360
+
361
+ foreach ( $post_types as $post_type ) {
362
+ $pt = get_post_type_object( $post_type );
363
+
364
+ if ( in_array( $post_type, array( 'revision', 'nav_menu_item', 'attachment' ) ) || ! $pt->public )
365
+ continue;
366
+
367
+ $default_post_types[] = $post_type;
368
+ }
369
+
370
+ if ( ! empty( $default_post_types ) )
371
+ add_option( 'jwl_toggle_wpautop_settings', $default_post_types );
372
+ }
373
+
374
+ /*** Add our settings fields to the writing page */
375
+ function admin_init() {
376
+
377
+ register_setting( 'jwl_toggle_wpautop_settings', 'jwl_toggle_wpautop_settings', array( $this, 'sanitize_settings' ) );
378
+
379
+ //add a section for the plugin's settings on the writing page
380
+ add_settings_section( 'jwl_toggle_wpautop_settings_section', __('Toggle wpautop', 'wp-edit'), array( $this, 'settings_section_text' ), 'writing' );
381
+
382
+ //For each post type add a settings field, excluding revisions and nav menu items
383
+ if ( $post_types = get_post_types() ) {
384
+ foreach ( $post_types as $post_type ) {
385
+ $pt = get_post_type_object( $post_type );
386
+
387
+ if ( in_array( $post_type, array( 'revision', 'nav_menu_item', 'attachment' ) ) || ! $pt->public )
388
+ continue;
389
+
390
+ add_settings_field( 'jwl_toggle_wpautop_post_types' . $post_type, $pt->labels->name, array( $this,'toggle_wpautop_field' ), 'writing', 'jwl_toggle_wpautop_settings_section', array( 'slug' => $pt->name, 'name' => $pt->labels->name ) );
391
+ }
392
+ }
393
+ }
394
+
395
+ /*** Display our settings section */
396
+ function settings_section_text() {
397
+ echo '<p>';
398
+ _e('Select which post types have the option to disable the wpautop filter.','wp-edit');
399
+ echo '</p>';
400
+ settings_fields( 'jwl_toggle_wpautop_settings' );
401
+ }
402
+
403
+ /*** Display the actual settings field */
404
+ function toggle_wpautop_field( $args ) {
405
+
406
+ $settings = get_option( 'jwl_toggle_wpautop_settings', array() );
407
+
408
+ if ( $post_types = get_post_types() ) { ?>
409
+ <input type="checkbox" name="jwl_toggle_wpautop_post_types[]" id="jwl_toggle_wpautop_post_types_<?php echo $args['slug']; ?>" value="<?php echo $args['slug']; ?>" <?php in_array( $args['slug'], $settings ) ? checked( true ) : checked( false ); ?>/>
410
+ <?php
411
+ }
412
+ }
413
+
414
+ /*** Sanitize our settings fields */
415
+ function sanitize_settings( $input ) {
416
+
417
+ $input = wp_parse_args( $_POST['jwl_toggle_wpautop_post_types'], array() );
418
+
419
+ $new_input = array();
420
+
421
+ foreach ( $input as $pt ) {
422
+ if ( post_type_exists( sanitize_text_field( $pt ) ) )
423
+ $new_input[] = sanitize_text_field( $pt );
424
+ }
425
+
426
+ return $new_input;
427
+ }
428
+
429
+ /*** Add meta boxes to the selected post types */
430
+ function add_meta_boxes( $post_type ) {
431
+
432
+ $settings = get_option( 'jwl_toggle_wpautop_settings', array() );
433
+
434
+ if ( empty( $settings ) )
435
+ return;
436
+
437
+ if ( in_array( $post_type, $settings ) )
438
+ add_action( 'post_submitbox_misc_actions', array( $this, 'post_submitbox_misc_actions' ), 5 );
439
+ }
440
+
441
+ /*** Display a checkbox to disable the wpautop filter */
442
+ function post_submitbox_misc_actions() {
443
+
444
+ global $post;
445
+
446
+ wp_nonce_field( '_jwl_wpautop_nonce', '_jwl_wpautop_noncename' );
447
+ ?>
448
+ <div class="misc-pub-section jwl-wpautop">
449
+ <span>Disable wpautop:</span> <input type="checkbox" name="_jwl_disable_wpautop" id="_jwl_disable_wpautop" <?php checked( get_post_meta( $post->ID, '_jwl_disable_wpautop', true ) ); ?> /> <span style="float:right; display: block;"><a href="http://codex.wordpress.org/Function_Reference/wpautop" target="_blank">?</a>
450
+ </div>
451
+ <?php
452
+ }
453
+
454
+ /*** Process the wpautop checkbox */
455
+ function save_post( $post_id ) {
456
+ //Skip revisions and autosaves
457
+ if ( wp_is_post_revision( $post_id ) || ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) )
458
+ return;
459
+
460
+ //Users should have the ability to edit listings.
461
+ if ( ! current_user_can( 'edit_post', $post_id ) )
462
+ return;
463
+
464
+ if ( isset( $_POST['_jwl_wpautop_noncename'] ) && wp_verify_nonce( $_POST['_jwl_wpautop_noncename'], '_jwl_wpautop_nonce' ) ) {
465
+
466
+ if ( isset( $_POST['_jwl_disable_wpautop'] ) && ! empty( $_POST['_jwl_disable_wpautop'] ) )
467
+ update_post_meta( $post_id, '_jwl_disable_wpautop', 1 );
468
+ else
469
+ delete_post_meta( $post_id, '_jwl_disable_wpautop' );
470
+ }
471
+ }
472
+
473
+ /*** Add or remove the wpautop filter */
474
+ function the_post( $post ) {
475
+ if ( get_post_meta( $post->ID, '_jwl_disable_wpautop', true ) ) {
476
+ remove_filter( 'the_content', 'wpautop' );
477
+ remove_filter( 'the_excerpt', 'wpautop' );
478
+ } else {
479
+ if ( ! has_filter( 'the_content', 'wpautop' ) )
480
+ add_filter( 'the_content', 'wpautop' );
481
+
482
+ if ( ! has_filter( 'the_excerpt', 'wpautop' ) )
483
+ add_filter( 'the_excerpt', 'wpautop' );
484
+ }
485
+ }
486
+
487
+ /*** loop_end function. * After we run our loop, everything should be set back to normal */
488
+ function loop_end() {
489
+ if ( ! has_filter( 'the_content', 'wpautop' ) )
490
+ add_filter( 'the_content', 'wpautop' );
491
+
492
+ if ( ! has_filter( 'the_excerpt', 'wpautop' ) )
493
+ add_filter( 'the_excerpt', 'wpautop' );
494
+ }
495
+
496
+ /*** Add a class to posts noting whether they were passed through the wpautop filter */
497
+ function post_class( $classes, $class, $post_id ) {
498
+ if ( get_post_meta( $post_id, '_jwl_disable_wpautop', true ) )
499
+ $classes[] = 'no-wpautop';
500
+ else
501
+ $classes[] = 'wpautop';
502
+
503
+ return $classes;
504
+ }
505
+ }
506
+ }
507
+ $jwl_toggle_wpautop = new JWL_Toggle_wpautop();
508
+ }
509
+
510
+ // Max post revisions
511
+ if(isset($plugin_options_posts['max_post_revisions']) && $plugin_options_posts['max_post_revisions'] != '') {
512
+
513
+ function wp_edit_max_post_revisions( $num, $post ) {
514
+ $options_post_revisions = get_option('wp_edit_posts');
515
+ if( 'post' == $post->post_type ) {
516
+ $num = $options_post_revisions['max_post_revisions'];
517
+ }
518
+ return $num;
519
+ }
520
+ add_filter( 'wp_revisions_to_keep', 'wp_edit_max_post_revisions', 10, 2 );
521
+ }
522
+
523
+ // Max page revisions
524
+ if(isset($plugin_options_posts['max_page_revisions']) && $plugin_options_posts['max_page_revisions'] != '') {
525
+
526
+ function wp_edit_max_page_revisions( $num, $post ) {
527
+ $options_post_revisions = get_option('wp_edit_posts');
528
+ if( 'page' == $post->post_type ) {
529
+ $num = $options_post_revisions['max_page_revisions'];
530
+ }
531
+ return $num;
532
+ }
533
+ add_filter( 'wp_revisions_to_keep', 'wp_edit_max_page_revisions', 10, 2 );
534
+ }
535
+
536
+ // Hide admin posts
537
+ if(!empty($plugin_options_posts['hide_admin_posts']) && $plugin_options_posts['hide_admin_posts'] != '') {
538
+
539
+ function wp_edit_hide_admin_posts( $query ) {
540
+ if( !is_admin() ) return $query;
541
+ global $pagenow;
542
+ $options_hide_posts = get_option('wp_edit_posts');
543
+ $jwl_hide_posts = $options_hide_posts['hide_admin_posts'];
544
+ $jwl_hide_posts_array = explode(",",$jwl_hide_posts);
545
+
546
+ if( 'edit.php' == $pagenow && ( get_query_var('post_type') && 'post' == get_query_var('post_type') ) )
547
+ $query->set( 'post__not_in', $jwl_hide_posts_array ); // page id
548
+ return $query;
549
+ }
550
+ add_action( 'pre_get_posts' ,'wp_edit_hide_admin_posts' );
551
+ }
552
+
553
+ // Hide admin pages
554
+ if(!empty($plugin_options_posts['hide_admin_pages']) && $plugin_options_posts['hide_admin_pages'] != '') {
555
+
556
+ function wp_edit_hide_admin_pages( $query ) {
557
+ if( !is_admin() ) return $query;
558
+ global $pagenow;
559
+ $options_hide_pages = get_option('wp_edit_posts');
560
+ $jwl_hide_pages = $options_hide_pages['hide_admin_pages'];
561
+ $jwl_hide_pages_array = explode(",",$jwl_hide_pages);
562
+
563
+ if( 'edit.php' == $pagenow && ( get_query_var('post_type') && 'page' == get_query_var('post_type') ) )
564
+ $query->set( 'post__not_in', $jwl_hide_pages_array ); // page id
565
+ return $query;
566
+ }
567
+ add_action( 'pre_get_posts' ,'wp_edit_hide_admin_pages' );
568
+ }
569
+
570
+ /*
571
+ ****************************************************************
572
+ Extras Functions
573
+ ****************************************************************
574
+ */
575
+ $plugin_options_extras = get_option('wp_edit_extras');
576
+
577
+ // Signoff text
578
+ if(isset($plugin_options_extras['signoff_text']) && $plugin_options_extras['signoff_text'] != '') {
579
+
580
+ function wp_edit_sign_off_text() {
581
+
582
+ $options = get_option('wp_edit_extras');
583
+ $jwl_signoff = isset($options['signoff_text']) ? $options['signoff_text'] : 'Please enter text here...';
584
+
585
+ return $jwl_signoff;
586
+ }
587
+ add_shortcode('signoff', 'wp_edit_sign_off_text');
588
+ }
589
+
590
+
591
+ /*
592
+ ****************************************************************
593
+ User Specific Functions
594
+ ****************************************************************
595
+ */
596
+ function wp_edit_user_specific_init() {
597
+
598
+ global $current_user;
599
+ $opts_user_meta = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
600
+
601
+ // Add ID Column
602
+ if(isset($opts_user_meta['id_column']) && $opts_user_meta['id_column'] === '1') {
603
+
604
+ function wp_edit_column_id($defaults){
605
+ $defaults['wps_post_id'] = __('ID');
606
+ return $defaults;
607
+ }
608
+ add_filter('manage_posts_columns', 'wp_edit_column_id', 5);
609
+ add_filter('manage_pages_columns', 'wp_edit_column_id', 5);
610
+ function wp_edit_custom_column_id($column_name, $id){
611
+ if($column_name === 'wps_post_id'){
612
+ echo $id;
613
+ }
614
+ }
615
+ add_action('manage_posts_custom_column', 'wp_edit_custom_column_id', 5, 2);
616
+ add_action('manage_pages_custom_column', 'wp_edit_custom_column_id', 5, 2);
617
+ }
618
+
619
+ // Add Tumbnail Column
620
+ if(isset($opts_user_meta['thumbnail_column']) && $opts_user_meta['thumbnail_column'] === '1') {
621
+
622
+ if ( !function_exists('wp_edit_AddThumbColumn') && function_exists('add_theme_support') ) {
623
+
624
+
625
+ // First, check if current theme support post thumbnails
626
+ function wpep_check_post_thumbnails() {
627
+
628
+ // If current theme does not support post thumbnails
629
+ if(!current_theme_supports('post-thumbnails')) {
630
+
631
+ // Add post thumbnail support
632
+ add_theme_support('post-thumbnails', array( 'post', 'page' ) );
633
+ }
634
+ }
635
+ add_action('after_theme_setup', 'wpep_check_post_thumbnails');
636
+
637
+ function wp_edit_AddThumbColumn($cols) {
638
+
639
+ $cols['thumbnail'] = __('Thumbnail', 'wp-edit');
640
+ return $cols;
641
+ }
642
+
643
+ function wp_edit_AddThumbValue($column_name, $post_id) {
644
+
645
+ if ( 'thumbnail' == $column_name ) {
646
+
647
+ $thumb = get_the_post_thumbnail($post_id, array(100,70));
648
+
649
+ if ( isset($thumb) && $thumb ) { echo $thumb; }
650
+ else { echo __('None','wp-edit'); }
651
+ }
652
+ }
653
+
654
+ // for posts
655
+ add_filter( 'manage_posts_columns', 'wp_edit_AddThumbColumn' );
656
+ add_action( 'manage_posts_custom_column', 'wp_edit_AddThumbValue', 10, 2 );
657
+
658
+ // for pages
659
+ add_filter( 'manage_pages_columns', 'wp_edit_AddThumbColumn' );
660
+ add_action( 'manage_pages_custom_column', 'wp_edit_AddThumbValue', 10, 2 );
661
+ }
662
+ }
663
+
664
+ // Hide Text Tab
665
+ if(isset($opts_user_meta['hide_text_tab']) && $opts_user_meta['hide_text_tab'] === '1') {
666
+
667
+ global $pagenow;
668
+ if ($pagenow=='post.php' || $pagenow == 'post-new.php' || ($pagenow == "admin.php" && (isset($_GET['page'])) == 'cleverness-to-do-list') || ($pagenow == "options-general.php" && (isset($_GET['page'])) == 'ultimate-tinymce')) {
669
+ function wp_edit_user_hide_on_todo() {
670
+ ?><style type="text/css"> #excerpt-html { display: none !important; } #content-id-html { display: none !important; } #content-html { display: none !important; } #clevernesstododescription-html { display: none !important; }</style><?php
671
+ }
672
+ add_filter('admin_head','wp_edit_user_hide_on_todo');
673
+ }
674
+ }
675
+
676
+ // Default Visual Tab
677
+ if(isset($opts_user_meta['default_visual_tab']) && $opts_user_meta['default_visual_tab'] === '1') {
678
+
679
+ add_filter( 'wp_default_editor', create_function('', 'return "tmce";') );
680
+ }
681
+
682
+ // Disable Dashboard Widget
683
+ if(isset($opts_user_meta['dashboard_widget']) && $opts_user_meta['dashboard_widget'] != '1') {
684
+
685
+ add_action('wp_dashboard_setup', 'wp_edit_user_custom_dashboard_widgets');
686
+ function wp_edit_user_custom_dashboard_widgets() {
687
+ global $wp_meta_boxes;
688
+ wp_add_dashboard_widget('jwl_user_tinymce_dashboard_widget', __('WP Edit Pro RSS Feed', 'wp-edit'), 'wp_edit_user_tinymce_widget', 'wp_edit_user_configure_widget');
689
+ }
690
+ function wp_edit_user_tinymce_widget() {
691
+ $jwl_widgets = get_option( 'wp_edit_user_dashboard_options' ); // Get the dashboard widget options
692
+ $jwl_widget_id = 'jwl_user_tinymce_dashboard_widget'; // This must be the same ID we set in wp_add_dashboard_widget
693
+ /* Check whether we have set the post count through the controls. If we didn't, set the default to 5 */
694
+ $jwl_total_items = isset( $jwl_widgets[$jwl_widget_id] ) && isset( $jwl_widgets[$jwl_widget_id]['items'] ) ? absint( $jwl_widgets[$jwl_widget_id]['items'] ) : 5;
695
+ // Echo the output of the RSS Feed.
696
+ echo '<p><a href="http://www.feedblitz.com/f/?Sub=950320"><img title="Subscribe to get updates by email and more!" border="0" src="http://assets.feedblitz.com/chicklets/email/i/25/950320.bmp"></a><br />News updates for WP Edit Pro and Stable versions.</p>';
697
+ echo '<p style="border-bottom:#000 1px solid;">Showing ('.$jwl_total_items.') Posts</p>';
698
+ echo '<div class="rss-widget">';
699
+ wp_widget_rss_output(array(
700
+ 'url' => 'http://feeds.feedblitz.com/wpeditpro&x=1',
701
+ 'title' => '',
702
+ 'items' => $jwl_total_items,
703
+ 'show_author' => 0,
704
+ 'show_date' => 1
705
+ ));
706
+ echo "</div>";
707
+ echo '<p style="text-align:center;border-top: #000 1px solid;padding:5px;"><a target="_blank" href="https://wpeditpro.com/">WP Edit Pro</a> - Visual Wordpress Editor</p>';
708
+ }
709
+ function wp_edit_user_configure_widget() {
710
+ $jwl_widget_id = 'jwl_user_tinymce_dashboard_widget'; // This must be the same ID we set in wp_add_dashboard_widget
711
+ $jwl_form_id = 'jwl-user-dashboard-control'; // Set this to whatever you want
712
+ // Checks whether there are already dashboard widget options in the database
713
+ if ( !$jwl_widget_options = get_option( 'wp_edit_user_dashboard_options' ) ) {
714
+ $jwl_widget_options = array(); // If not, we create a new array
715
+ }
716
+ // Check whether we have information for this form
717
+ if ( !isset($jwl_widget_options[$jwl_widget_id]) ) {
718
+ $jwl_widget_options[$jwl_widget_id] = array(); // If not, we create a new array
719
+ }
720
+ // Check whether our form was just submitted
721
+ if ( 'POST' == $_SERVER['REQUEST_METHOD'] && isset($_POST[$jwl_form_id]) ) {
722
+ /* Get the value. In this case ['items'] is from the input field with the name of '.$form_id.'[items] */
723
+ $jwl_number = absint( $_POST[$jwl_form_id]['items'] );
724
+ $jwl_widget_options[$jwl_widget_id]['items'] = $jwl_number; // Set the number of items
725
+ update_option( 'wp_edit_user_dashboard_options', $jwl_widget_options ); // Update our dashboard widget options so we can access later
726
+ }
727
+ // Check if we have set the number of posts previously. If we didn't, then we just set it as empty. This value is used when we create the input field
728
+ $jwl_number = isset( $jwl_widget_options[$jwl_widget_id]['items'] ) ? (int) $jwl_widget_options[$jwl_widget_id]['items'] : '';
729
+ // Create our form fields. Pay very close attention to the name part of the input field.
730
+ echo '<p><label for="jwl_user_tinymce_dashboard_widget-number">' . __('Number of posts to show:', 'wp-edit') . '</label>';
731
+ echo '<input id="jwl_user_tinymce_dashboard_widget-number" name="'.$jwl_form_id.'[items]" type="text" value="' . $jwl_number . '" size="3" /></p>';
732
+ }
733
+ }
734
+
735
+ // Enable Post/Page Highlights
736
+ if(isset($opts_user_meta['enable_highlights']) && $opts_user_meta['enable_highlights'] === '1') {
737
+
738
+ function wp_edit_highlight_posts_status_colors(){
739
+
740
+ global $current_user;
741
+ $opts_user_meta = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
742
+ ?>
743
+ <style type="text/css">
744
+ .status-draft{background-color: <?php (isset($opts_user_meta['draft_highlight']) ? print $opts_user_meta['draft_highlight'] : print '#FFFFFF'); ?> !important;}
745
+ .status-pending{background-color: <?php (isset($opts_user_meta['pending_highlight']) ? print $opts_user_meta['pending_highlight'] : print '#FFFFFF'); ?> !important;}
746
+ .status-publish{background-color: <?php (isset($opts_user_meta['published_highlight']) ? print $opts_user_meta['published_highlight'] : print '#FFFFFF'); ?> !important;}
747
+ .status-future{background-color: <?php (isset($opts_user_meta['future_highlight']) ? print $opts_user_meta['future_highlight'] : print '#FFFFFF'); ?> !important;}
748
+ .status-private{background-color: <?php (isset($opts_user_meta['private_highlight']) ? print $opts_user_meta['private_highlight'] : print '#FFFFFF'); ?> !important;}
749
+ </style>
750
+ <?php
751
+ }
752
+ add_action('admin_head','wp_edit_highlight_posts_status_colors');
753
+ }
754
+
755
+ }
756
+ add_action('init', 'wp_edit_user_specific_init');
757
+
758
+ ?>
includes/style_formats.php ADDED
@@ -0,0 +1,937 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Adds all the predefined styles to the editor
4
+ add_filter( 'tiny_mce_before_init', 'wp_edit_style_formats_mce_before_init' );
5
+ function wp_edit_style_formats_mce_before_init( $settings ) {
6
+
7
+ //*************************************
8
+ // Predefined Styles - if user selected
9
+ //************************************/
10
+ $options = get_option('wp_edit_editor');
11
+ $enable_predefined = (isset($options['editor_add_pre_styles']) && $options['editor_add_pre_styles'] === '1') ? '1' : '0';
12
+
13
+ if($enable_predefined == 1) {
14
+
15
+ $style_formats_predefined = array(
16
+
17
+ //
18
+ // Our Predefined Styles need to be added as well
19
+ array(
20
+ 'title' => 'Defined Styles',
21
+ 'items' => array(
22
+
23
+ array(
24
+ 'title' => 'Text Styles',
25
+ 'items' => array(
26
+
27
+ array(
28
+ 'title' => 'Bold Black Text',
29
+ 'inline' => 'span',
30
+ 'styles' => array(
31
+ 'color' => '#000',
32
+ 'fontWeight' => 'bold'
33
+ )
34
+ ),
35
+ array(
36
+ 'title' => 'Italic Black Text',
37
+ 'inline' => 'span',
38
+ 'styles' => array(
39
+ 'color' => '#000',
40
+ 'fontStyle' => 'italic'
41
+ )
42
+ ),
43
+ array(
44
+ 'title' => 'Bold Italic Black Text',
45
+ 'inline' => 'span',
46
+ 'styles' => array(
47
+ 'color' => '#000',
48
+ 'fontWeight' => 'bold',
49
+ 'fontStyle' => 'italic'
50
+ )
51
+ ),
52
+ array(
53
+ 'title' => 'Bold Red Text',
54
+ 'inline' => 'span',
55
+ 'styles' => array(
56
+ 'color' => '#f00',
57
+ 'fontWeight' => 'bold'
58
+ )
59
+ ),
60
+ array(
61
+ 'title' => 'Italic Red Text',
62
+ 'inline' => 'span',
63
+ 'styles' => array(
64
+ 'color' => '#f00',
65
+ 'fontStyle' => 'italic'
66
+ )
67
+ ),
68
+ array(
69
+ 'title' => 'Bold Italic Red Text',
70
+ 'inline' => 'span',
71
+ 'styles' => array(
72
+ 'color' => '#f00',
73
+ 'fontWeight' => 'bold',
74
+ 'fontStyle' => 'italic'
75
+ )
76
+ ),
77
+ array(
78
+ 'title' => 'Bold Blue Text',
79
+ 'inline' => 'span',
80
+ 'styles' => array(
81
+ 'color' => '#0040FF',
82
+ 'fontWeight' => 'bold'
83
+ )
84
+ ),
85
+ array(
86
+ 'title' => 'Italic Blue Text',
87
+ 'inline' => 'span',
88
+ 'styles' => array(
89
+ 'color' => '#0040FF',
90
+ 'fontStyle' => 'italic'
91
+ )
92
+ ),
93
+ array(
94
+ 'title' => 'Bold Italic Blue Text',
95
+ 'inline' => 'span',
96
+ 'styles' => array(
97
+ 'color' => '#0040FF',
98
+ 'fontWeight' => 'bold',
99
+ 'fontStyle' => 'italic'
100
+ )
101
+ ),
102
+ array(
103
+ 'title' => 'Bold Green Text',
104
+ 'inline' => 'span',
105
+ 'styles' => array(
106
+ 'color' => '#0BEA43',
107
+ 'fontWeight' => 'bold'
108
+ )
109
+ ),
110
+ array(
111
+ 'title' => 'Italic Green Text',
112
+ 'inline' => 'span',
113
+ 'styles' => array(
114
+ 'color' => '#0BEA43',
115
+ 'fontStyle' => 'italic'
116
+ )
117
+ ),
118
+ array(
119
+ 'title' => 'Bold Italic Green Text',
120
+ 'inline' => 'span',
121
+ 'styles' => array(
122
+ 'color' => '#0BEA43',
123
+ 'fontWeight' => 'bold',
124
+ 'fontStyle' => 'italic'
125
+ )
126
+ )
127
+ )
128
+ ),
129
+
130
+ array(
131
+ 'title' => 'Text Outlines',
132
+ 'items' => array(
133
+
134
+ array(
135
+ 'title' => 'Text Outline Black',
136
+ 'inline' => 'span',
137
+ 'styles' => array(
138
+ 'text-shadow' => '-1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000'
139
+ )
140
+ ),
141
+ array(
142
+ 'title' => 'Text Outline Red',
143
+ 'inline' => 'span',
144
+ 'styles' => array(
145
+ 'text-shadow' => '-1px 0 #f00, 0 1px #f00, 1px 0 #f00, 0 -1px #f00'
146
+ )
147
+ ),
148
+ array(
149
+ 'title' => 'Text Outline Blue',
150
+ 'inline' => 'span',
151
+ 'styles' => array(
152
+ 'text-shadow' => '-1px 0 #0040FF, 0 1px #0040FF, 1px 0 #0040FF, 0 -1px #0040FF'
153
+ )
154
+ ),
155
+ array(
156
+ 'title' => 'Text Outline Green',
157
+ 'inline' => 'span',
158
+ 'styles' => array(
159
+ 'text-shadow' => '-1px 0 #0BEA43, 0 1px #0BEA43, 1px 0 #0BEA43, 0 -1px #0BEA43'
160
+ )
161
+ ),
162
+ array(
163
+ 'title' => 'Text Outline Violet',
164
+ 'selector' => 'placeholder'
165
+ ),
166
+ // Added 7-18-12
167
+ array(
168
+ 'title' => 'Text Outline Teal',
169
+ 'selector' => 'placeholder'
170
+ ),
171
+ array(
172
+ 'title' => 'Text Outline Gold',
173
+ 'selector' => 'placeholder'
174
+ ),
175
+ array(
176
+ 'title' => 'Text Outline Purple',
177
+ 'selector' => 'placeholder'
178
+ )
179
+ )
180
+ ),
181
+
182
+
183
+
184
+
185
+ array(
186
+ 'title' => 'Text Decoration',
187
+ 'items' => array(
188
+
189
+ array(
190
+ 'title' => '3D Text',
191
+ 'inline' => 'span',
192
+ 'styles' => array(
193
+ 'font-size' => '28px',
194
+ 'text-shadow' => '0px 0px 0 rgb(198,198,198),1px 1px 0 rgb(163,163,163),2px 2px 0 rgb(127,127,127),3px 3px 0 rgb(91,91,91), 4px 4px 0 rgb(55,55,55),5px 5px 4px rgba(0,0,0,0.35),5px 5px 1px rgba(0,0,0,0.5),0px 0px 4px rgba(0,0,0,.2)'
195
+ )
196
+ ),
197
+ array(
198
+ 'title' => 'Text Shadow',
199
+ 'inline' => 'span',
200
+ 'styles' => array(
201
+ 'text-shadow' => '2px 2px 2px #000'
202
+ )
203
+ ),
204
+ array(
205
+ 'title' => 'Blurry Text',
206
+ 'inline' => 'span',
207
+ 'styles' => array(
208
+ 'color' => 'transparent',
209
+ 'text-shadow' => '0 0 5px rgba(0,0,0,0.8)',
210
+ 'font-size' => '28px'
211
+ )
212
+ ),
213
+ array(
214
+ 'title' => 'Milky Text',
215
+ 'inline' => 'span',
216
+ 'styles' => array(
217
+ 'color' => '#fff',
218
+ 'background' => '#fff',
219
+ 'text-shadow' => '1px 1px 4px#000'
220
+ )
221
+ ),
222
+ array(
223
+ 'title' => 'Mystery Text',
224
+ 'inline' => 'span',
225
+ 'styles' => array(
226
+ 'color' => '#000',
227
+ 'background' => '#000',
228
+ 'text-shadow' => '1px 1px 4px #fff'
229
+ )
230
+ ),
231
+ array(
232
+ 'title' => 'Engrave Text',
233
+ 'inline' => 'span',
234
+ 'styles' => array(
235
+ 'text-shadow' => '1px 1px white, -1px -1px #444',
236
+ 'color' => '#fff'
237
+ )
238
+ ),
239
+ array(
240
+ 'title' => 'Small Caps',
241
+ 'inline' => 'span',
242
+ 'styles' => array(
243
+ 'font-variant' => 'small-caps'
244
+ )
245
+ )
246
+ )
247
+ ),
248
+
249
+ array(
250
+ 'title' => 'Text Glows',
251
+ 'items' => array(
252
+
253
+ array(
254
+ 'title' => 'Glow Green',
255
+ 'inline' => 'span',
256
+ 'styles' => array(
257
+ 'text-shadow' => '0 0 0.2em #B8F9BB, 0 0 0.2em #B8F9BB, 0 0 0.2em #B8F9BB'
258
+ )
259
+ ),
260
+ array(
261
+ 'title' => 'Glow Blue',
262
+ 'inline' => 'span',
263
+ 'styles' => array(
264
+ 'text-shadow' => '0 0 0.2em #BFF8FC, 0 0 0.2em #BFF8FC, 0 0 0.2em #BFF8FC'
265
+ )
266
+ ),
267
+ array(
268
+ 'title' => 'Glow Yellow',
269
+ 'inline' => 'span',
270
+ 'styles' => array(
271
+ 'text-shadow' => '0 0 0.2em #FCFCBD, 0 0 0.2em #FCFCBD, 0 0 0.2em #FCFCBD'
272
+ )
273
+ ),
274
+ array(
275
+ 'title' => 'Glow Violet',
276
+ 'selector' => 'placeholder'
277
+ ),
278
+ array(
279
+ 'title' => 'Glow Red',
280
+ 'selector' => 'placeholder'
281
+ ),
282
+ // Added 7-18-12
283
+ array(
284
+ 'title' => 'Glow Teal',
285
+ 'selector' => 'placeholder'
286
+ ),
287
+ array(
288
+ 'title' => 'Glow Gold',
289
+ 'selector' => 'placeholder'
290
+ ),
291
+ array(
292
+ 'title' => 'Glow Purple',
293
+ 'selector' => 'placeholder'
294
+ )
295
+ )
296
+ ),
297
+
298
+
299
+
300
+ array(
301
+ 'title' => 'Highlights',
302
+ 'items' => array(
303
+
304
+ array(
305
+ 'title' => 'Highlight Green',
306
+ 'inline' => 'span',
307
+ 'styles' => array(
308
+ 'background-color' => '#B8F9BB',
309
+ 'border' => '1px solid #419B44',
310
+ 'padding' => '2px 5px 2px 5px',
311
+ 'border-radius' => '3px'
312
+ )
313
+ ),
314
+ array(
315
+ 'title' => 'Highlight Blue',
316
+ 'inline' => 'span',
317
+ 'styles' => array(
318
+ 'background-color' => '#BFF8FC',
319
+ 'border' => '1px solid #506EF4',
320
+ 'padding' => '2px 5px 2px 5px',
321
+ 'border-radius' => '3px'
322
+ )
323
+ ),
324
+ array(
325
+ 'title' => 'Highlight Yellow',
326
+ 'inline' => 'span',
327
+ 'styles' => array(
328
+ 'background-color' => '#FFFF35',
329
+ 'border' => '1px solid #E5D02D',
330
+ 'padding' => '2px 5px 2px 5px',
331
+ 'border-radius' => '3px'
332
+ )
333
+ ),
334
+ array(
335
+ 'title' => 'Highlight Violet',
336
+ 'selector' => 'placeholder'
337
+ ),
338
+ array(
339
+ 'title' => 'Highlight Red',
340
+ 'selector' => 'placeholder'
341
+ ),
342
+ // Added 7-18-12
343
+ array(
344
+ 'title' => 'Highlight Teal',
345
+ 'selector' => 'placeholder'
346
+ ),
347
+ array(
348
+ 'title' => 'Highlight Gold',
349
+ 'selector' => 'placeholder'
350
+ ),
351
+ array(
352
+ 'title' => 'Highlight Purple',
353
+ 'selector' => 'placeholder'
354
+ )
355
+ )
356
+ ),
357
+
358
+ array(
359
+ 'title' => 'Inset Box Styles',
360
+ 'items' => array(
361
+
362
+ array(
363
+ 'title' => 'Inset Box Green',
364
+ 'inline' => 'span',
365
+ 'styles' => array(
366
+ 'background-color' => '#B8F9BB',
367
+ 'border' => '1px solid #419B44',
368
+ 'padding' => '2px 5px 2px 5px',
369
+ 'border-radius' => '3px',
370
+ 'box-shadow' => '0 1px 10px #666 inset'
371
+ )
372
+ ),
373
+ array(
374
+ 'title' => 'Inset Box Blue',
375
+ 'inline' => 'span',
376
+ 'styles' => array(
377
+ 'background-color' => '#BFF8FC',
378
+ 'border' => '1px solid #506EF4',
379
+ 'padding' => '2px 5px 2px 5px',
380
+ 'border-radius' => '3px',
381
+ 'box-shadow' => '0 1px 10px #666 inset'
382
+ )
383
+ ),
384
+ array(
385
+ 'title' => 'Inset Box Yellow',
386
+ 'inline' => 'span',
387
+ 'styles' => array(
388
+ 'background-color' => '#FFFF35',
389
+ 'border' => '1px solid #E5D02D',
390
+ 'padding' => '2px 5px 2px 5px',
391
+ 'border-radius' => '3px',
392
+ 'box-shadow' => '0 1px 10px #666 inset'
393
+ )
394
+ ),
395
+ array(
396
+ 'title' => 'Inset Box Violet',
397
+ 'selector' => 'placeholder'
398
+ ),
399
+ array(
400
+ 'title' => 'Inset Box Red',
401
+ 'selector' => 'placeholder'
402
+ ),
403
+ array(
404
+ 'title' => 'Inset Box Steel',
405
+ 'selector' => 'placeholder'
406
+ ),
407
+ // Added 7-18-12
408
+ array(
409
+ 'title' => 'Inset Box Teal',
410
+ 'selector' => 'placeholder'
411
+ ),
412
+ array(
413
+ 'title' => 'Inset Box Gold',
414
+ 'selector' => 'placeholder'
415
+ ),
416
+ array(
417
+ 'title' => 'Inset Box Purple',
418
+ 'selector' => 'placeholder'
419
+ )
420
+ )
421
+ ),
422
+
423
+ array(
424
+ 'title' => 'Box Shadows',
425
+ 'items' => array(
426
+
427
+ array(
428
+ 'title' => 'Box Shadow Green',
429
+ 'inline' => 'span',
430
+ 'styles' => array(
431
+ 'background-color' => '#B8F9BB',
432
+ 'border' => '1px solid #419B44',
433
+ 'padding' => '2px 5px 2px 5px',
434
+ 'border-radius' => '3px',
435
+ 'box-shadow' => '5px 5px 2px #888888'
436
+ )
437
+ ),
438
+ array(
439
+ 'title' => 'Box Shadow Blue',
440
+ 'inline' => 'span',
441
+ 'styles' => array(
442
+ 'background-color' => '#BFF8FC',
443
+ 'border' => '1px solid #506EF4',
444
+ 'padding' => '2px 5px 2px 5px',
445
+ 'border-radius' => '3px',
446
+ 'box-shadow' => '5px 5px 2px #888888'
447
+ )
448
+ ),
449
+ array(
450
+ 'title' => 'Box Shadow Yellow',
451
+ 'inline' => 'span',
452
+ 'styles' => array(
453
+ 'background-color' => '#FFFF35',
454
+ 'border' => '1px solid #E5D02D',
455
+ 'padding' => '2px 5px 2px 5px',
456
+ 'border-radius' => '3px',
457
+ 'box-shadow' => '5px 5px 2px #888888'
458
+ )
459
+ ),
460
+ array(
461
+ 'title' => 'Box Shadow Violet',
462
+ 'selector' => 'placeholder'
463
+ ),
464
+ array(
465
+ 'title' => 'Box Shadow Red',
466
+ 'selector' => 'placeholder'
467
+ ),
468
+ // Added 7-18-12
469
+ array(
470
+ 'title' => 'Box Shadow Teal',
471
+ 'selector' => 'placeholder'
472
+ ),
473
+ array(
474
+ 'title' => 'Box Shadow Gold',
475
+ 'selector' => 'placeholder'
476
+ ),
477
+ array(
478
+ 'title' => 'Box Shadow Purple',
479
+ 'selector' => 'placeholder'
480
+ )
481
+ )
482
+ ),
483
+
484
+ array(
485
+ 'title' => 'Hover Boxes',
486
+ 'items' => array(
487
+
488
+ array(
489
+ 'title' => 'Hover Box Green',
490
+ 'inline' => 'span',
491
+ 'styles' => array(
492
+ 'background-color' => '#B8F9BB',
493
+ 'border' => '1px solid #419B44',
494
+ 'padding' => '2px 5px 2px 5px',
495
+ 'border-radius' => '3px',
496
+ 'box-shadow' => '10px 10px 5px #888888'
497
+ )
498
+ ),
499
+ array(
500
+ 'title' => 'Hover Box Blue',
501
+ 'inline' => 'span',
502
+ 'styles' => array(
503
+ 'background-color' => '#BFF8FC',
504
+ 'border' => '1px solid #506EF4',
505
+ 'padding' => '2px 5px 2px 5px',
506
+ 'border-radius' => '3px',
507
+ 'box-shadow' => '10px 10px 5px #888888'
508
+ )
509
+ ),
510
+ array(
511
+ 'title' => 'Hover Box Yellow',
512
+ 'inline' => 'span',
513
+ 'styles' => array(
514
+ 'background-color' => '#FFFF35',
515
+ 'border' => '1px solid #E5D02D',
516
+ 'padding' => '2px 5px 2px 5px',
517
+ 'border-radius' => '3px',
518
+ 'box-shadow' => '10px 10px 5px #888888'
519
+ )
520
+ ),
521
+ array(
522
+ 'title' => 'Hover Box Violet',
523
+ 'selector' => 'placeholder'
524
+ ),
525
+ array(
526
+ 'title' => 'Hover Box Red',
527
+ 'selector' => 'placeholder'
528
+ ),
529
+ // Added 7-18-12
530
+ array(
531
+ 'title' => 'Hover Box Teal',
532
+ 'selector' => 'placeholder'
533
+ ),
534
+ array(
535
+ 'title' => 'Hover Box Gold',
536
+ 'selector' => 'placeholder'
537
+ ),
538
+ array(
539
+ 'title' => 'Hover Box Purple',
540
+ 'selector' => 'placeholder'
541
+ )
542
+ )
543
+ ),
544
+
545
+ array(
546
+ 'title' => 'Download Links',
547
+ 'items' => array(
548
+
549
+ array(
550
+ 'title' => 'Download Link Green',
551
+ 'selector' => 'a',
552
+ 'styles' => array(
553
+ 'color' => '#3B9634',
554
+ 'fontWeight' => 'bold',
555
+ 'background-color' => '#ACF9A7',
556
+ 'border-radius' => '5px',
557
+ 'border' => '1px solid #71C66B',
558
+ 'padding' => '5px',
559
+ 'text-shadow' => '1px 1px 6px #fff'
560
+ )
561
+ ),
562
+ array(
563
+ 'title' => 'Download Link Blue',
564
+ 'selector' => 'a',
565
+ 'styles' => array(
566
+ 'color' => '#46ADC4',
567
+ 'fontWeight' => 'bold',
568
+ 'background-color' => '#9FF4EA',
569
+ 'border-radius' => '5px',
570
+ 'border' => '1px solid #46ADC4',
571
+ 'padding' => '5px'
572
+ )
573
+ ),
574
+ array(
575
+ 'title' => 'Download Link Yellow',
576
+ 'selector' => 'a',
577
+ 'styles' => array(
578
+ 'color' => '#A5A51A',
579
+ 'fontWeight' => 'bold',
580
+ 'background-color' => '#FCFCAB',
581
+ 'border-radius' => '5px',
582
+ 'border' => '1px solid #F2F200',
583
+ 'padding' => '5px'
584
+ )
585
+ ),
586
+ array(
587
+ 'title' => 'Download Link Violet',
588
+ 'selector' => 'placeholder'
589
+ ),
590
+ array(
591
+ 'title' => 'Download Link Red',
592
+ 'selector' => 'placeholder'
593
+ ),
594
+ // Added 7-18-12
595
+ array(
596
+ 'title' => 'Download Link Teal',
597
+ 'selector' => 'placeholder'
598
+ ),
599
+ array(
600
+ 'title' => 'Download Link Gold',
601
+ 'selector' => 'placeholder'
602
+ ),
603
+ array(
604
+ 'title' => 'Download Link Purple',
605
+ 'selector' => 'placeholder'
606
+ )
607
+ )
608
+ ),
609
+
610
+ array(
611
+ 'title' => '3D Buttons',
612
+ 'items' => array(
613
+
614
+ array(
615
+ 'title' => '3D Button Green',
616
+ 'inline' => 'span',
617
+ 'styles' => array(
618
+ 'border' => '1px solid #006400',
619
+ 'background-color' => '#008000',
620
+ 'border-radius' => '4px',
621
+ 'box-shadow' => 'inset 1px 6px 12px #7CFC00, inset -1px -10px 5px #006400, 1px 2px 1px black',
622
+ '-o-box-shadow' => 'inset 1px 6px 12px #7CFC00, inset -1px -10px 5px #006400, 1px 2px 1px black',
623
+ '-webkit-box-shadow' => 'inset 1px 6px 12px #7CFC00, inset -1px -10px 5px #006400, 1px 2px 1px black',
624
+ '-moz-box-shadow' => 'inset 1px 6px 12px #7CFC00, inset -1px -10px 5px #006400, 1px 2px 1px black',
625
+ 'color' => 'white',
626
+ 'text-shadow' => '1px 1px 1px black',
627
+ 'padding' => '5px 30px',
628
+ )
629
+ ),
630
+ array(
631
+ 'title' => '3D Button Blue',
632
+ 'inline' => 'span',
633
+ 'styles' => array(
634
+ 'border' => '1px solid #001563',
635
+ 'background-color' => '#0638AD',
636
+ 'border-radius' => '4px',
637
+ 'box-shadow' => 'inset 1px 6px 12px #5A98FC, inset -1px -10px 5px #001563, 1px 2px 1px black',
638
+ '-o-box-shadow' => 'inset 1px 6px 12px #5A98FC, inset -1px -10px 5px #001563, 1px 2px 1px black',
639
+ '-webkit-box-shadow' => 'inset 1px 6px 12px #5A98FC, inset -1px -10px 5px #001563, 1px 2px 1px black',
640
+ '-moz-box-shadow' => 'inset 1px 6px 12px #5A98FC, inset -1px -10px 5px #001563, 1px 2px 1px black',
641
+ 'color' => 'white',
642
+ 'text-shadow' => '1px 1px 1px black',
643
+ 'padding' => '5px 30px',
644
+ )
645
+ ),
646
+ array(
647
+ 'title' => '3D Button Yellow',
648
+ 'inline' => 'span',
649
+ 'styles' => array(
650
+ 'border' => '1px solid #7F7D10',
651
+ 'background-color' => '#AAAA06',
652
+ 'border-radius' => '4px',
653
+ 'box-shadow' => 'inset 1px 6px 12px #F8FC7E, inset -1px -10px 5px #7F7D10, 1px 2px 1px black',
654
+ '-o-box-shadow' => 'inset 1px 6px 12px #F8FC7E, inset -1px -10px 5px #7F7D10, 1px 2px 1px black',
655
+ '-webkit-box-shadow' => 'inset 1px 6px 12px #F8FC7E, inset -1px -10px 5px #7F7D10, 1px 2px 1px black',
656
+ '-moz-box-shadow' => 'inset 1px 6px 12px #F8FC7E, inset -1px -10px 5px #7F7D10, 1px 2px 1px black',
657
+ 'color' => 'white',
658
+ 'text-shadow' => '1px 1px 1px black',
659
+ 'padding' => '5px 30px',
660
+ )
661
+ ),
662
+ array(
663
+ 'title' => '3D Button Violet',
664
+ 'selector' => 'placeholder'
665
+ ),
666
+ array(
667
+ 'title' => '3D Button Red',
668
+ 'selector' => 'placeholder'
669
+ )
670
+ )
671
+ ),
672
+
673
+ array(
674
+ 'title' => 'Callout Boxes',
675
+ 'items' => array(
676
+
677
+ array(
678
+ 'title' => 'Callout Box Green',
679
+ 'block' => 'div',
680
+ 'styles' => array(
681
+ 'background-color' => '#B5F4CC',
682
+ 'border' => '1px solid #00C648',
683
+ 'border-radius' => '10px',
684
+ 'padding' => '10px'
685
+ ),
686
+ 'wrapper' => true
687
+ ),
688
+ array(
689
+ 'title' => 'Callout Box Blue',
690
+ 'block' => 'div',
691
+ 'styles' => array(
692
+ 'background-color' => '#BDF9F9',
693
+ 'border' => '1px solid #4ABAF7',
694
+ 'border-radius' => '10px',
695
+ 'padding' => '10px',
696
+ 'width' => 'auto'
697
+ ),
698
+ 'wrapper' => true
699
+ ),
700
+ array(
701
+ 'title' => 'Callout Box Yellow',
702
+ 'block' => 'div',
703
+ 'styles' => array(
704
+ 'background-color' => '#FCFCAB',
705
+ 'border' => '1px solid #F2F200',
706
+ 'border-radius' => '10px',
707
+ 'padding' => '10px'
708
+ ),
709
+ 'wrapper' => true
710
+ ),
711
+ array(
712
+ 'title' => 'Callout Box Violet',
713
+ 'selector' => 'placeholder'
714
+ ),
715
+ array(
716
+ 'title' => 'Callout Box Red',
717
+ 'selector' => 'placeholder'
718
+ ),
719
+ // Added 7-18-12
720
+ array(
721
+ 'title' => 'Callout Box Teal',
722
+ 'selector' => 'placeholder'
723
+ ),
724
+ array(
725
+ 'title' => 'Callout Box Gold',
726
+ 'selector' => 'placeholder'
727
+ ),
728
+ array(
729
+ 'title' => 'Callout Box Purple',
730
+ 'selector' => 'placeholder'
731
+ )
732
+ )
733
+ ),
734
+
735
+ array(
736
+ 'title' => 'Floating Divs',
737
+ 'items' => array(
738
+
739
+ array(
740
+ 'title' => 'Floating Div Green',
741
+ 'block' => 'div',
742
+ 'styles' => array(
743
+ 'display' => 'inline-block',
744
+ 'width' => 'auto',
745
+ 'height' => 'auto',
746
+ 'margin' => '10px',
747
+ 'padding' => '0px 10px',
748
+ 'background' => '#6FE27A',
749
+ 'box-shadow' => '0 1px 5px #00A805, inset 0 10px 20px #B7FFC1',
750
+ '-o-box-shadow' => '0 1px 5px #00A805, inset 0 10px 20px #B7FFC1',
751
+ '-webkit-box-shadow' => '0 1px 5px #00A805, inset 0 10px 20px #B7FFC1',
752
+ '-moz-box-shadow' => '0 1px 5px #00A805, inset 0 10px 20px #B7FFC1'
753
+ ),
754
+ 'wrapper' => true
755
+ ),
756
+ array(
757
+ 'title' => 'Floating Div Blue',
758
+ 'block' => 'div',
759
+ 'styles' => array(
760
+ 'display' => 'inline-block',
761
+ 'width' => 'auto',
762
+ 'height' => 'auto',
763
+ 'margin' => '10px',
764
+ 'padding' => '0px 10px',
765
+ 'background' => '#6fb2e5',
766
+ 'box-shadow' => '0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff',
767
+ '-o-box-shadow' => '0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff',
768
+ '-webkit-box-shadow' => '0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff',
769
+ '-moz-box-shadow' => '0 1px 5px #0061aa, inset 0 10px 20px #b6f9ff'
770
+ ),
771
+ 'wrapper' => true
772
+ ),
773
+ array(
774
+ 'title' => 'Floating Div Yellow',
775
+ 'block' => 'div',
776
+ 'styles' => array(
777
+ 'display' => 'inline-block',
778
+ 'width' => 'auto',
779
+ 'height' => 'auto',
780
+ 'margin' => '10px',
781
+ 'padding' => '0px 10px',
782
+ 'background' => '#E2E26F',
783
+ 'box-shadow' => '0 1px 5px #E8E409, inset 0 10px 20px #FFFFB7',
784
+ '-o-box-shadow' => '0 1px 5px #E8E409, inset 0 10px 20px #FFFFB7',
785
+ '-webkit-box-shadow' => '0 1px 5px #E8E409, inset 0 10px 20px #FFFFB7',
786
+ '-moz-box-shadow' => '0 1px 5px #E8E409, inset 0 10px 20px #FFFFB7'
787
+ ),
788
+ 'wrapper' => true
789
+ ),
790
+ array(
791
+ 'title' => 'Floating Div Violet',
792
+ 'selector' => 'placeholder'
793
+ ),
794
+ array(
795
+ 'title' => 'Floating Div Red',
796
+ 'selector' => 'placeholder'
797
+ ),
798
+ array(
799
+ 'title' => 'Floating Div Glass',
800
+ 'selector' => 'placeholder'
801
+ )
802
+ )
803
+ ),
804
+
805
+ array(
806
+ 'title' => 'Borders',
807
+ 'items' => array(
808
+
809
+ array(
810
+ 'title' => 'Single Border',
811
+ 'inline' => 'span',
812
+ 'styles' => array(
813
+ 'border' => '1px solid #000',
814
+ 'padding' => '2px 10px',
815
+ 'border-radius' => '2px'
816
+ )
817
+ ),
818
+ array(
819
+ 'title' => 'Double Border',
820
+ 'inline' => 'span',
821
+ 'styles' => array(
822
+ 'border' => 'medium double #000',
823
+ 'padding' => '2px 10px',
824
+ 'border-radius' => '2px'
825
+ )
826
+ ),
827
+ array(
828
+ 'title' => 'Top & Bottom Border',
829
+ 'inline' => 'span',
830
+ 'styles' => array(
831
+ 'border' => 'medium',
832
+ 'border-top-style' => 'double',
833
+ 'border-bottom-style' => 'double',
834
+ 'border-top-color' => '#000',
835
+ 'border-bottom-color' => '#000'
836
+ )
837
+ ),
838
+ array(
839
+ 'title' => 'Sngl Rainbow Border',
840
+ 'inline' => 'span',
841
+ 'styles' => array(
842
+ 'border' => '1px solid',
843
+ 'padding' => '2px 10px 2px 10px',
844
+ 'border-color' => 'red blue green orange'
845
+ )
846
+ ),
847
+ array(
848
+ 'title' => 'Dbl Rainbow Border',
849
+ 'selector' => 'placeholder'
850
+ )
851
+ )
852
+ ),
853
+
854
+ array(
855
+ 'title' => 'Opacity',
856
+ 'items' => array(
857
+
858
+ array(
859
+ 'title' => '75% Opacity',
860
+ 'inline' => 'span',
861
+ 'styles' => array(
862
+ 'opacity' => '0.75'
863
+ )
864
+ ),
865
+ array(
866
+ 'title' => '50% Opacity',
867
+ 'inline' => 'span',
868
+ 'styles' => array(
869
+ 'opacity' => '0.50'
870
+ )
871
+ ),
872
+ array(
873
+ 'title' => '25% Opacity',
874
+ 'inline' => 'span',
875
+ 'styles' => array(
876
+ 'opacity' => '0.25'
877
+ )
878
+ )
879
+ )
880
+ ),
881
+
882
+ array(
883
+ 'title' => 'Alignment',
884
+ 'items' => array(
885
+
886
+ array(
887
+ 'title' => 'Align Left',
888
+ 'inline' => 'span',
889
+ 'styles' => array(
890
+ 'float' => 'left'
891
+ )
892
+ ),
893
+ array(
894
+ 'title' => 'Align Right',
895
+ 'inline' => 'span',
896
+ 'styles' => array(
897
+ 'float' => 'right'
898
+ )
899
+ )
900
+ )
901
+ )
902
+ )
903
+ )
904
+ );
905
+ //*************************************
906
+ // END Predefined Styles
907
+ //************************************/
908
+
909
+
910
+ //**********************************************
911
+ // FINALLY... let's put it all back together
912
+ //*********************************************/
913
+ if(isset($settings['style_formats'])) {
914
+
915
+ $new_array = array();
916
+ $json_decode_orig_settings = json_decode($settings['style_formats'], true);
917
+
918
+ // Check to make sure incoming 'style_formats' is an array
919
+ if(is_array($json_decode_orig_settings)) {
920
+
921
+ $new_array = json_encode(array_merge($json_decode_orig_settings, $style_formats_predefined));
922
+ $settings['style_formats'] = $new_array;
923
+ }
924
+ } else {
925
+
926
+ $settings['style_formats'] = json_encode($style_formats_predefined);
927
+ }
928
+
929
+ // Merge new styles to original styles
930
+ isset($settings['style_formats_merge']) ? $settings['style_formats_merge'] = true : $settings['style_formats_merge'] = true;
931
+ }
932
+
933
+ return $settings;
934
+ }
935
+
936
+
937
+ ?>
js/admin.js ADDED
@@ -0,0 +1,196 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+
4
+ /*
5
+ ****************************************************************
6
+ Color picker for input fields
7
+ ****************************************************************
8
+ */
9
+ $('.color_field').wpColorPicker();
10
+
11
+ /*
12
+ ****************************************************************
13
+ Sortable buttons
14
+ ****************************************************************
15
+ */
16
+ // Buttons draggable/sortable
17
+ $("#toolbar1, #toolbar2, #tmce_container").sortable({
18
+ revert: true,
19
+ tolerance: 'pointer',
20
+ cursor: 'move',
21
+ opacity: 0.6,
22
+ distance: 10,
23
+ placeholder: "sortable_placeholder",
24
+ connectWith: "#toolbar1, #toolbar2, #tmce_container",
25
+ cursorAt: {
26
+ right: 40,
27
+ bottom: 40
28
+ },
29
+ helper: function(event, item) {
30
+
31
+ if(!item.hasClass("ui-state-active-button")) {
32
+ item.addClass("ui-state-active-button").siblings().removeClass("ui-state-active-button");
33
+ }
34
+ var helper = $('<div id="sortable_multiselect_container"><div class="sortable_multiselect"></div></div>');
35
+ var selected = item.parent().parent().children().children(".ui-state-active-button");
36
+ var cloned = selected.clone();
37
+ helper.find("div.sortable_multiselect").append(cloned);
38
+ selected.hide();
39
+
40
+ item.data("multi-sortable", cloned);
41
+
42
+ return helper;
43
+ },
44
+ start: function() {
45
+ },
46
+ stop: function(e, ui) {
47
+
48
+ var cloned = ui.item.data("multi-sortable");
49
+ ui.item.removeData("multi-sortable");
50
+
51
+ ui.item.after(cloned);
52
+ ui.item.parent().parent().children().children(":hidden").remove();
53
+ ui.item.remove();
54
+
55
+ // Get each sorted string
56
+ sorted_tmce1 = $( "#toolbar1" ).sortable( "toArray" );
57
+ sorted_tmce2 = $( "#toolbar2" ).sortable( "toArray" );
58
+ sorted_tmce_cont = $( "#tmce_container" ).sortable( "toArray" );
59
+
60
+ // Build huge string of all buttons and containers
61
+ sorted_final = '*toolbar1:'+sorted_tmce1+'*toolbar2:'+sorted_tmce2+'*tmce_container:'+sorted_tmce_cont;
62
+
63
+ // Populate hidden input field
64
+ $('.get_sorted_array').val(sorted_final);
65
+
66
+ // Remove active state from selection
67
+ $(this).parent().children().children().removeClass("ui-state-active-button");
68
+ }
69
+ });
70
+
71
+ // Populate hidden array div with default values
72
+ sorted_tmce1 = $( "#toolbar1" ).sortable( "toArray" );
73
+ sorted_tmce2 = $( "#toolbar2" ).sortable( "toArray" );
74
+ sorted_tmce_cont = $( "#tmce_container" ).sortable( "toArray" );
75
+ // Build huge string of all buttons and containers
76
+ sorted_final = '*toolbar1:'+sorted_tmce1+'*toolbar2:'+sorted_tmce2+'*tmce_container:'+sorted_tmce_cont;
77
+ // Populate hidden input field
78
+ $('.get_sorted_array').val(sorted_final);
79
+
80
+ // Toggle button active class
81
+ $(document).on('click', '.draggable', function() {
82
+
83
+ $(this).toggleClass('ui-state-active-button');
84
+ });
85
+
86
+ // Document click function to remove active button selection
87
+ $(document).click(function(e) {
88
+
89
+ if(!$(e.target).parents().hasClass('wpep_act_button_area')) {
90
+
91
+ $('#inside_button_hover').children('div').children('div').removeClass('ui-state-active-button');
92
+ }
93
+ });
94
+
95
+
96
+ // Button tooltips
97
+ $( ".sortable" ).tooltip({
98
+ items: "div.draggable",
99
+ hide: false
100
+ });
101
+
102
+ // Get tooltip data from html data attribute
103
+ $(document).on('mouseover', 'div.draggable', function() {
104
+
105
+ get_data = $(this).context.getAttribute('data-tooltip');
106
+ $( ".sortable" ).tooltip( "option", "content", get_data );
107
+ });
108
+
109
+
110
+
111
+ // Reset Buttons
112
+ $('.reset_dd_buttons').click(function() {
113
+
114
+ OkDialog('Reset Buttons?', 'Clicking "Okay" will reset all buttons to their original default values.', '.wpep_reset_buttons');
115
+ });
116
+
117
+ // Buttons help tabs
118
+ $('#button_help_tabs').tabs();
119
+
120
+
121
+ // Reset plugin options
122
+ $('.reset_db_values_confirm').click(function() {
123
+
124
+ OkDialog('Reset Plugin Options?', 'Clicking "Okay" will reset all plugin options to their original default values.', '.reset_db_values');
125
+ });
126
+
127
+
128
+ /*
129
+ ****************************************************************
130
+ jQuery modal dialog functions
131
+ ****************************************************************
132
+ */
133
+ function OkDialog(title, message, action) {
134
+
135
+ var $dialog = $('<div title="'+title+'"></div>').html(message).dialog({
136
+
137
+ modal: true,
138
+ width: 600,
139
+ height: 200,
140
+ closeOnEscape: true,
141
+ buttons: {
142
+
143
+ Ok: function() {
144
+
145
+ $(action).click();
146
+ $(this).dialog('close');
147
+ },
148
+ Cancel: function() {
149
+ $(this).dialog('close');
150
+ }
151
+ }
152
+ });
153
+ $dialog.dialog("open");
154
+ }
155
+
156
+
157
+ /*
158
+ ****************************************************************
159
+ Get HTML version
160
+ ****************************************************************
161
+ */
162
+ function getHtmlVer(){
163
+
164
+ var CName = navigator.appCodeName;
165
+ var UAgent = navigator.userAgent;
166
+ var HtmlVer= 0.0;
167
+
168
+ // Remove start of string in UAgent upto CName or end of string if not found.
169
+ UAgent = UAgent.substring((UAgent+CName).toLowerCase().indexOf(CName.toLowerCase()));
170
+
171
+ // Remove CName from start of string. (Eg. '/5.0 (Windows; U...)
172
+ UAgent = UAgent.substring(CName.length);
173
+
174
+ // Remove any spaves or '/' from start of string.
175
+ while(UAgent.substring(0,1)==" " || UAgent.substring(0,1)=="/") {
176
+ UAgent = UAgent.substring(1);
177
+ }
178
+
179
+ // Remove the end of the string from first characrer that is not a number or point etc.
180
+ var pointer = 0;
181
+ while("0123456789.+-".indexOf((UAgent+"?").substring(pointer,pointer+1))>=0) {
182
+ pointer = pointer+1;
183
+ }
184
+ UAgent = UAgent.substring(0,pointer);
185
+
186
+ if(!isNaN(UAgent)) {
187
+ if(UAgent>0) {
188
+ HtmlVer=UAgent;
189
+ }
190
+ }
191
+ return HtmlVer;
192
+ }
193
+
194
+ // Add html version to 'About' tab
195
+ $('.wpep_html_version').html(getHtmlVer());
196
+ });
langs/default-es.ES.mo ADDED
Binary file
langs/default-es.ES.po ADDED
@@ -0,0 +1,1392 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Edit\n"
4
+ "POT-Creation-Date: 2014-03-22 12:44-0500\n"
5
+ "PO-Revision-Date: 2014-06-05 10:29+0100\n"
6
+ "Last-Translator: jelena kovacevic <jecajeca260@gmail.com>\n"
7
+ "Language-Team: Josh Lobe <joshlobe@joshlobe.com>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.5\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+ "X-Poedit-SearchPath-1: ..\n"
17
+
18
+ #: ../functions.php:41 ../main.php:201 ../main.php:926 ../main.php:2307
19
+ msgid "WP Edit"
20
+ msgstr "WP Edit"
21
+
22
+ #: ../functions.php:49 ../functions.php:52 ../main.php:934
23
+ msgid "Buttons"
24
+ msgstr "Botones"
25
+
26
+ #: ../functions.php:58 ../functions.php:61 ../main.php:935
27
+ msgid "Global"
28
+ msgstr "Global"
29
+
30
+ #: ../functions.php:67 ../functions.php:70 ../main.php:936
31
+ msgid "General"
32
+ msgstr "General"
33
+
34
+ #: ../functions.php:76 ../functions.php:79 ../main.php:937
35
+ msgid "Posts/Pages"
36
+ msgstr "Post/Páginas"
37
+
38
+ #: ../functions.php:85 ../functions.php:88 ../main.php:938
39
+ msgid "Editor"
40
+ msgstr "Editor"
41
+
42
+ #: ../functions.php:94 ../functions.php:97 ../main.php:939 ../main.php:1642
43
+ msgid "Fonts"
44
+ msgstr "Fuentes"
45
+
46
+ #: ../functions.php:103 ../functions.php:106 ../main.php:940
47
+ msgid "Widgets"
48
+ msgstr "Widgets"
49
+
50
+ #: ../functions.php:112 ../functions.php:115 ../main.php:941
51
+ msgid "User Specific"
52
+ msgstr "Especificaciones de Usuario"
53
+
54
+ #: ../functions.php:121 ../functions.php:124 ../main.php:942
55
+ msgid "Extras"
56
+ msgstr "Extras"
57
+
58
+ #: ../functions.php:130 ../functions.php:133 ../main.php:943
59
+ msgid "Database"
60
+ msgstr "Base de Datos"
61
+
62
+ #: ../functions.php:172
63
+ msgid "WP Edit Excerpt"
64
+ msgstr "Extracto de WP Edit"
65
+
66
+ #: ../functions.php:204
67
+ msgid "Wp Edit Excerpt"
68
+ msgstr "Extracto de Wp Edit"
69
+
70
+ #: ../functions.php:235
71
+ msgid "Biographical Info"
72
+ msgstr "Información biográfica"
73
+
74
+ #: ../functions.php:242
75
+ msgid ""
76
+ "Share a little biographical information to fill out your profile. This may "
77
+ "be shown publicly."
78
+ msgstr ""
79
+ "Comparta un poco de información biográfica para completar su perfil. Esto se "
80
+ "mostrará públicamente."
81
+
82
+ #: ../functions.php:279
83
+ msgid "Arbitrary text, HTML, or PHP Code"
84
+ msgstr "Texto arbitrario, HTML o Código PHP "
85
+
86
+ #: ../functions.php:281
87
+ msgid "WP Edit PHP Widget"
88
+ msgstr "Widget PHP de WP Edit "
89
+
90
+ #: ../functions.php:316
91
+ msgid "Title:"
92
+ msgstr "Título:"
93
+
94
+ #: ../functions.php:321
95
+ msgid "Automatically add paragraphs."
96
+ msgstr "Adicionar automáticamente los párrafos."
97
+
98
+ #: ../functions.php:487
99
+ msgid "Select which post types have the option to disable the wpautop filter."
100
+ msgstr ""
101
+ "Seleccione cuáles tipos de post tienen la opción de deshabilitar el filtro "
102
+ "wpautop. "
103
+
104
+ #: ../functions.php:542
105
+ msgid "Disable wpautop:"
106
+ msgstr "Desabilitar wpautop:"
107
+
108
+ #: ../main.php:294
109
+ msgid "User specific options saved."
110
+ msgstr "Opciones específicas de usuario guardadas."
111
+
112
+ #: ../main.php:314
113
+ msgid "Additional options saved."
114
+ msgstr "Opciones adicionales guardadas."
115
+
116
+ #: ../main.php:335
117
+ msgid "Tinymce options saved."
118
+ msgstr "Opciones Tinymce guardadas."
119
+
120
+ #: ../main.php:356
121
+ msgid "Global options successfully saved."
122
+ msgstr "Opciones globales guardadas satisfactoriamente."
123
+
124
+ #: ../main.php:382
125
+ msgid "General options successfully saved."
126
+ msgstr "Opciones generales guardadas satisfactoriamente."
127
+
128
+ #: ../main.php:415
129
+ msgid "Revisions successfully deleted"
130
+ msgstr "Revisiones eliminadas satisfactoriamente"
131
+
132
+ #: ../main.php:417
133
+ msgid "No POST revisions were found to delete"
134
+ msgstr "No se encontraron revisiones de POST para borrar"
135
+
136
+ #: ../main.php:430
137
+ msgid "Message: "
138
+ msgstr "Mensaje:"
139
+
140
+ #: ../main.php:432
141
+ msgid "Database size before deletions: "
142
+ msgstr "Tamaño de base de datos antes de eliminar:"
143
+
144
+ #: ../main.php:434 ../main.php:438
145
+ msgid "megabytes."
146
+ msgstr "megabytes."
147
+
148
+ #: ../main.php:436
149
+ msgid "Database Size after deletions: "
150
+ msgstr "Tamaño de base de datos después de eliminar:"
151
+
152
+ #: ../main.php:460
153
+ msgid "Posts/Pages options successfully saved."
154
+ msgstr "Opciones de Post/Páginas guardadas satisfactoriamente."
155
+
156
+ #: ../main.php:490
157
+ msgid "Editor options successfully saved."
158
+ msgstr "Opciones de editor guardadas satisfactoriamente."
159
+
160
+ #: ../main.php:512
161
+ msgid "Font options successfully saved."
162
+ msgstr "Opciones de fuente guardadas satisfactoriamente."
163
+
164
+ #: ../main.php:542
165
+ msgid "Extra options saved."
166
+ msgstr "Opciones extras guardadas."
167
+
168
+ #: ../main.php:569
169
+ msgid "Editor Rows configuration saved."
170
+ msgstr "Configuración de las Filas de editor salvadas."
171
+
172
+ #: ../main.php:585
173
+ msgid ""
174
+ "You must also check the confirm box before options will be uninstalled and "
175
+ "deleted."
176
+ msgstr ""
177
+ "También debe marcar la casilla de confirmación antes de que se puedan "
178
+ "desinstalar y eliminar las opciones."
179
+
180
+ #: ../main.php:593 ../main.php:860
181
+ msgid "Sorry, your nonce did not verify."
182
+ msgstr "Lo sentimos, no hay nada que verificar."
183
+
184
+ #: ../main.php:791
185
+ msgid "Plugin settings have successfully attempted to convert."
186
+ msgstr "Los ajustes del plugin tuvieron éxito en la conversión."
187
+
188
+ #: ../main.php:797
189
+ msgid "Unfortunately, no settings were found to convert."
190
+ msgstr "Por desgracia, no se encontraron valores para convertir."
191
+
192
+ #: ../main.php:803
193
+ msgid " buttons added to row 1 in \"Buttons\" tab."
194
+ msgstr "botones agregados a la fila 1 en la pestaña \"Botones\"."
195
+
196
+ #: ../main.php:806
197
+ msgid " options updated in \"Global\" tab."
198
+ msgstr "opciones actualizadas en la pestaña \"Global\"."
199
+
200
+ #: ../main.php:809
201
+ msgid " options updated in \"General\" tab."
202
+ msgstr "opciones actualizadas en la pestaña \"General\"."
203
+
204
+ #: ../main.php:812
205
+ msgid " options updated in \"Posts/Pages\" tab."
206
+ msgstr "opciones actualizadas en la pestaña \"Posts/Páginas\"."
207
+
208
+ #: ../main.php:815
209
+ msgid " options updated in \"User Specific\" tab."
210
+ msgstr "opciones actualizadas en la pestaña \"Especificación de Usuario\"."
211
+
212
+ #: ../main.php:818
213
+ msgid " options updated in \"Extras\" tab."
214
+ msgstr "opciones actualizadas en la pestaña \"Extras\"."
215
+
216
+ #: ../main.php:820
217
+ msgid ""
218
+ "Delete old Ultimate Tinymce database options? (Irreversible; but results in "
219
+ "a cleaner database)"
220
+ msgstr ""
221
+ "¿Eliminar viejas opciones de la base de datos Tinymce? (Irreversible, pero "
222
+ "limpia los resultados en la base de datos)"
223
+
224
+ #: ../main.php:825
225
+ msgid "Delete"
226
+ msgstr "Eliminar"
227
+
228
+ #: ../main.php:826
229
+ msgid "No Thanks"
230
+ msgstr "No Gracias"
231
+
232
+ #: ../main.php:846
233
+ msgid "Ultimate Tinymce database options successfully deleted."
234
+ msgstr "Opciones de base de datos de TinyMCE eliminadas correctamente."
235
+
236
+ #: ../main.php:848
237
+ msgid "Congratulations! You are now running solid with WP Edit."
238
+ msgstr "¡Felicitaciones! Ahora está ejecutando sólidamente con WP Edit."
239
+
240
+ #: ../main.php:881
241
+ msgid "Plugin settings have been restored to defaults."
242
+ msgstr ""
243
+ "Los ajustes de plugin han sido restaurados a los valores predeterminados."
244
+
245
+ #: ../main.php:895
246
+ msgid "Plugin settings have been successfully imported."
247
+ msgstr "Los ajustes de plugin se han importado correctamente."
248
+
249
+ #: ../main.php:957
250
+ msgid "Drag and Drop Panel"
251
+ msgstr "Panel de Arrastrar y Soltar"
252
+
253
+ #: ../main.php:958
254
+ msgid "Editor Rows"
255
+ msgstr "Filas de Editor "
256
+
257
+ #: ../main.php:986 ../main.php:1082
258
+ msgid "Bold"
259
+ msgstr "Negrita"
260
+
261
+ #: ../main.php:987 ../main.php:1083
262
+ msgid "Italic"
263
+ msgstr "Itálica"
264
+
265
+ #: ../main.php:988 ../main.php:1084
266
+ msgid "Strikethrough"
267
+ msgstr "Tachado"
268
+
269
+ #: ../main.php:989 ../main.php:1085
270
+ msgid "Bullet List"
271
+ msgstr "Lista con viñetas"
272
+
273
+ #: ../main.php:990 ../main.php:1086
274
+ msgid "Numbered List"
275
+ msgstr "Lista numerada"
276
+
277
+ #: ../main.php:991 ../main.php:1087
278
+ msgid "Blockquote"
279
+ msgstr "Bloque entre comillas"
280
+
281
+ #: ../main.php:992 ../main.php:1088
282
+ msgid "Align Left"
283
+ msgstr "Alinear a la Izquierda"
284
+
285
+ #: ../main.php:993 ../main.php:1089
286
+ msgid "Align Center"
287
+ msgstr "Alinear al Centro"
288
+
289
+ #: ../main.php:994 ../main.php:1090
290
+ msgid "Align Right"
291
+ msgstr "Alinear a la Derecha"
292
+
293
+ #: ../main.php:995 ../main.php:1091
294
+ msgid "Link"
295
+ msgstr "Enlazar"
296
+
297
+ #: ../main.php:996 ../main.php:1092
298
+ msgid "Unlink"
299
+ msgstr "Desenlazar"
300
+
301
+ #: ../main.php:997 ../main.php:1093
302
+ msgid "More"
303
+ msgstr "Más"
304
+
305
+ #: ../main.php:998 ../main.php:1094
306
+ msgid "Distraction Free"
307
+ msgstr "Libre de Distracción "
308
+
309
+ #: ../main.php:1001 ../main.php:1097
310
+ msgid "Format Select"
311
+ msgstr "Seleccione el Formato"
312
+
313
+ #: ../main.php:1002 ../main.php:1098
314
+ msgid "Underline"
315
+ msgstr "Subrayar"
316
+
317
+ #: ../main.php:1003 ../main.php:1099
318
+ msgid "Align Full"
319
+ msgstr "Alineación Completa"
320
+
321
+ #: ../main.php:1004 ../main.php:1100
322
+ msgid "Foreground Color"
323
+ msgstr "Colores del Primer Plano"
324
+
325
+ #: ../main.php:1005 ../main.php:1101
326
+ msgid "Paste Text"
327
+ msgstr "Pegar Texto"
328
+
329
+ #: ../main.php:1006 ../main.php:1102
330
+ msgid "Remove Format"
331
+ msgstr "Eliminar Formato"
332
+
333
+ #: ../main.php:1007 ../main.php:1103
334
+ msgid "Character Map"
335
+ msgstr "Mapa de caracteres"
336
+
337
+ #: ../main.php:1008 ../main.php:1104
338
+ msgid "Outdent"
339
+ msgstr "Anular Sangría"
340
+
341
+ #: ../main.php:1009 ../main.php:1105
342
+ msgid "Indent"
343
+ msgstr "Sangría"
344
+
345
+ #: ../main.php:1010 ../main.php:1106
346
+ msgid "Undo"
347
+ msgstr "Deshacer"
348
+
349
+ #: ../main.php:1011 ../main.php:1107
350
+ msgid "Redo"
351
+ msgstr "Rehacer"
352
+
353
+ #: ../main.php:1012 ../main.php:1108
354
+ msgid "Help"
355
+ msgstr "Ayuda"
356
+
357
+ #: ../main.php:1015 ../main.php:1111
358
+ msgid "Font Select"
359
+ msgstr "Seleccionar Fuente"
360
+
361
+ #: ../main.php:1016 ../main.php:1112
362
+ msgid "Font Size Select"
363
+ msgstr "Seleccionar Tamaño de la Fuente"
364
+
365
+ #: ../main.php:1017 ../main.php:1113
366
+ msgid "Formats"
367
+ msgstr "Formato"
368
+
369
+ #: ../main.php:1018 ../main.php:1114
370
+ msgid "Background Color Picker"
371
+ msgstr "Selector de color de fondo"
372
+
373
+ #: ../main.php:1019 ../main.php:1115
374
+ msgid "Media"
375
+ msgstr "Media"
376
+
377
+ #: ../main.php:1020 ../main.php:1116
378
+ msgid "Text Direction Right to Left"
379
+ msgstr "Dirección del texto de Derecha a Izquierda"
380
+
381
+ #: ../main.php:1021 ../main.php:1117
382
+ msgid "Text Direction Left to Right"
383
+ msgstr "Dirección del texto de Izquierda a Derecha"
384
+
385
+ #: ../main.php:1022 ../main.php:1118
386
+ msgid "Anchor"
387
+ msgstr "Ancho"
388
+
389
+ #: ../main.php:1023 ../main.php:1119
390
+ msgid "HTML Code"
391
+ msgstr "Código HTML"
392
+
393
+ #: ../main.php:1024 ../main.php:1120
394
+ msgid "Emoticons"
395
+ msgstr "Emociones"
396
+
397
+ #: ../main.php:1025 ../main.php:1121
398
+ msgid "Horizontal Rule"
399
+ msgstr "Regla Horizontal"
400
+
401
+ #: ../main.php:1026 ../main.php:1122
402
+ msgid "Image"
403
+ msgstr "Imagen"
404
+
405
+ #: ../main.php:1027 ../main.php:1123
406
+ msgid "Insert Date Time"
407
+ msgstr "Insertar Fecha y Hora"
408
+
409
+ #: ../main.php:1028 ../main.php:1124
410
+ msgid "Page Break"
411
+ msgstr "Salto de Página"
412
+
413
+ #: ../main.php:1029 ../main.php:1125
414
+ msgid "Preview"
415
+ msgstr "Vista Previa"
416
+
417
+ #: ../main.php:1030 ../main.php:1126
418
+ msgid "Print"
419
+ msgstr "Imprimir"
420
+
421
+ #: ../main.php:1031 ../main.php:1127
422
+ msgid "Search and Replace"
423
+ msgstr "Buscar y Reemplazar"
424
+
425
+ #: ../main.php:1032 ../main.php:1128
426
+ msgid "Show Blocks"
427
+ msgstr "Mostrar Bloqueados"
428
+
429
+ #: ../main.php:1033 ../main.php:1129
430
+ msgid "Subscript"
431
+ msgstr "Suscribirse"
432
+
433
+ #: ../main.php:1034 ../main.php:1130
434
+ msgid "Superscript"
435
+ msgstr "Superscript"
436
+
437
+ #: ../main.php:1035 ../main.php:1131
438
+ msgid "Paragraph Tag"
439
+ msgstr "Etiqueta de Párrafo"
440
+
441
+ #: ../main.php:1036 ../main.php:1132
442
+ msgid "Line Break"
443
+ msgstr "Salto de Línea"
444
+
445
+ #: ../main.php:1037 ../main.php:1133
446
+ msgid "MailTo Link"
447
+ msgstr "Enlace al MailTo"
448
+
449
+ #: ../main.php:1038 ../main.php:1134
450
+ msgid "Lorem Ipsum"
451
+ msgstr "Lorem Ipsum"
452
+
453
+ #: ../main.php:1039 ../main.php:1135
454
+ msgid "Color Picker"
455
+ msgstr "Selector de Color"
456
+
457
+ #: ../main.php:1040 ../main.php:1136
458
+ msgid "Shortcodes"
459
+ msgstr "Códigos Cortos"
460
+
461
+ #: ../main.php:1041 ../main.php:1137
462
+ msgid "YouTube Video"
463
+ msgstr "Video YouTube"
464
+
465
+ #: ../main.php:1042 ../main.php:1138
466
+ msgid "Clker Images"
467
+ msgstr "Imagenes Clker"
468
+
469
+ #: ../main.php:1043 ../main.php:1139
470
+ msgid "Clear Div"
471
+ msgstr "Limpiar Div"
472
+
473
+ #: ../main.php:1044 ../main.php:1140
474
+ msgid "Code Magic"
475
+ msgstr "Magia de Código "
476
+
477
+ #: ../main.php:1045 ../main.php:1141
478
+ msgid "Accessibility Checker"
479
+ msgstr "Comprobador de accesibilidad"
480
+
481
+ #: ../main.php:1067
482
+ msgid "Icon Placeholder Container"
483
+ msgstr "Contenedor de Placeholder de Icono "
484
+
485
+ #: ../main.php:1157
486
+ msgid ""
487
+ "Buttons may be dragged to Row 1 (enabling them); or to the Placeholder "
488
+ "Container (removing them from the editor)."
489
+ msgstr ""
490
+ "Los botones pueden ser arrastrados a la Fila 1 (activándolos); o al "
491
+ "Contenedor de Placeholder (eliminándolos del editor)."
492
+
493
+ #: ../main.php:1159
494
+ msgid "Buttons may also be sorted within Row 1."
495
+ msgstr "Los botones también pueden organizarse en la Fila 1."
496
+
497
+ #: ../main.php:1161
498
+ msgid ""
499
+ "Each time a button is dropped, an ajax call is made which updates all rows. "
500
+ "This feature can be disabled with the additional option."
501
+ msgstr ""
502
+ "Cada vez que se suelta un botón, una llamada AJAX se hace que actualiza "
503
+ "todas las filas. Esta característica se puede desactivar en las opciones "
504
+ "adicionales."
505
+
506
+ #: ../main.php:1163
507
+ msgid ""
508
+ "Drag and Drop ability for all four rows of the editor is available in WP "
509
+ "Edit Pro."
510
+ msgstr ""
511
+ "La capacidad de arrastrar y soltar para las cuatro filas del editor está "
512
+ "disponible en WP Edit Pro."
513
+
514
+ #: ../main.php:1170
515
+ msgid "Icons available in Pro"
516
+ msgstr "Iconos disponibles en Pro"
517
+
518
+ #: ../main.php:1198
519
+ msgid "Developer Note"
520
+ msgstr "Nota de Desarrollador"
521
+
522
+ #: ../main.php:1203
523
+ msgid ""
524
+ "This plugin is the culmination of two years experience; many, many hours of "
525
+ "hard work and dedication; and a vast presence in the WordPress community."
526
+ msgstr ""
527
+ "Este plugin es la culminación de dos años de experiencia; muchas, muchas "
528
+ "horas de duro trabajo y dedicación; y una amplia presencia en la comunidad "
529
+ "de WordPress."
530
+
531
+ #: ../main.php:1205
532
+ msgid "If you enjoy this plugin, please show your appreciation via a "
533
+ msgstr ""
534
+ "Si le gusta este plugin, por favor, muestre su agradecimiento a través de una"
535
+
536
+ #: ../main.php:1207
537
+ msgid "PayPal Donation"
538
+ msgstr "Donación PayPal"
539
+
540
+ #: ../main.php:1209
541
+ msgid "Alternatively, the purchase of the "
542
+ msgstr "Alternativamente, la compra de la "
543
+
544
+ #: ../main.php:1211
545
+ msgid "PRO Version"
546
+ msgstr "Versión PRO"
547
+
548
+ #: ../main.php:1213
549
+ msgid ""
550
+ "offers additional features and extended functionality; while also supporting "
551
+ "the developer."
552
+ msgstr ""
553
+ "ofrece funciones adicionales y funcionalidad ampliada; mientras que también "
554
+ "apoya al desarrollador."
555
+
556
+ #: ../main.php:1222
557
+ msgid "Additional Options"
558
+ msgstr "Opciones Adicionales"
559
+
560
+ #: ../main.php:1229
561
+ msgid "Restore all buttons to default."
562
+ msgstr "Restaurar todos los botones a por defecto"
563
+
564
+ #: ../main.php:1231
565
+ msgid "Reset Buttons"
566
+ msgstr "Restaurar Botones"
567
+
568
+ #: ../main.php:1235
569
+ msgid "Disable ajax saving of buttons."
570
+ msgstr "Deshabilitar salvar con ajax en los botones."
571
+
572
+ #: ../main.php:1241
573
+ msgid "Save Button Options"
574
+ msgstr "Opciones de Botón de Guardado "
575
+
576
+ #: ../main.php:1257
577
+ msgid "TinyMCE Options"
578
+ msgstr "Opciones TinyMCE "
579
+
580
+ #: ../main.php:1266
581
+ msgid "Enable editor menu bar."
582
+ msgstr "Habilitar la barra menú del editor."
583
+
584
+ #: ../main.php:1273
585
+ msgid "Enable editor context menu."
586
+ msgstr "Habilitar el menú contextual del editor"
587
+
588
+ #: ../main.php:1280
589
+ msgid "Save TinyMCE Options"
590
+ msgstr "Guardar Opciones TinyMCE"
591
+
592
+ #: ../main.php:1303
593
+ msgid "Global Options"
594
+ msgstr "Opciones Globales"
595
+
596
+ #: ../main.php:1305
597
+ msgid "These options control various items used throughout the plugin."
598
+ msgstr "Estas opciones controlan varios elementos utilizados en el plugin."
599
+
600
+ #: ../main.php:1317
601
+ msgid "jQuery Theme"
602
+ msgstr "Tema jQuery"
603
+
604
+ #: ../main.php:1330
605
+ msgid "Selects the jQuery theme for plugin alerts and notices."
606
+ msgstr "Seleccione el tema de jQuery para las alertas y avisos del plugin."
607
+
608
+ #: ../main.php:1333
609
+ msgid "Disable Admin Links"
610
+ msgstr "Deshabilitar los Enlaces de Admin"
611
+
612
+ #: ../main.php:1336
613
+ msgid "Disables the WP Edit top admin bar links."
614
+ msgstr ""
615
+ "Deshabilitar los enlaces de la barra de administración superior de WP Edit "
616
+
617
+ #: ../main.php:1342
618
+ msgid "Save Global Options"
619
+ msgstr "Guardar Opciones Globales"
620
+
621
+ #: ../main.php:1354
622
+ msgid "General Options"
623
+ msgstr "Opciones Generales"
624
+
625
+ #: ../main.php:1355
626
+ msgid "General plugin options."
627
+ msgstr "Opciones Generales del Plugin"
628
+
629
+ #: ../main.php:1370
630
+ msgid "Linebreak Shortcode"
631
+ msgstr "Código corto de salto de línea "
632
+
633
+ #: ../main.php:1373
634
+ msgid "Use the [break] shortcode to insert linebreaks in the editor."
635
+ msgstr ""
636
+ "Utilice el código corto [pausa] para insertar saltos de línea en el editor."
637
+
638
+ #: ../main.php:1376
639
+ msgid "Shortcodes in Widgets"
640
+ msgstr "Códigos Cortos en Widgets"
641
+
642
+ #: ../main.php:1379
643
+ msgid "Use shortcodes in widget areas."
644
+ msgstr "Utilice códigos cortos en las áreas de widget"
645
+
646
+ #: ../main.php:1382
647
+ msgid "Shortcodes in Excerpts"
648
+ msgstr "Extractos de código corto"
649
+
650
+ #: ../main.php:1385
651
+ msgid "Use shortcodes in excerpt areas."
652
+ msgstr "Utilice códigos cortos en áreas de extracto."
653
+
654
+ #: ../main.php:1388
655
+ msgid "WP Edit Post Excerpt"
656
+ msgstr "Extracto de Post de WP Edit "
657
+
658
+ #: ../main.php:1391
659
+ msgid "Add the WP Edit editor to the Post Excerpt area."
660
+ msgstr "Añadir el editor de WP Edit al área de Extracto de Post."
661
+
662
+ #: ../main.php:1394
663
+ msgid "WP Edit Page Excerpt"
664
+ msgstr "Extracto de Página de WP Edit "
665
+
666
+ #: ../main.php:1397
667
+ msgid "Add the WP Edit editor to the Page Excerpt area."
668
+ msgstr "Adicione el editor de WP Edit al área de Extracto de Página."
669
+
670
+ #: ../main.php:1400
671
+ msgid "Profile Editor"
672
+ msgstr "Editor del Perfil"
673
+
674
+ #: ../main.php:1403
675
+ msgid "Use modified editor in profile biography field."
676
+ msgstr "Utilice el editor modificado en el campo biografía del perfil."
677
+
678
+ #: ../main.php:1406
679
+ msgid "PHP Widgets"
680
+ msgstr "Widgets PHP "
681
+
682
+ #: ../main.php:1409
683
+ msgid "Adds a new widget for PHP code."
684
+ msgstr "Añada un nuevo widget para el código PHP."
685
+
686
+ #: ../main.php:1415
687
+ msgid "Save General Options"
688
+ msgstr "Guardar Opciones Generales"
689
+
690
+ #: ../main.php:1428
691
+ msgid "Posts/pages Options"
692
+ msgstr "Opciones de Post/Páginas"
693
+
694
+ #: ../main.php:1429
695
+ msgid "These options apply specifically to posts and pages."
696
+ msgstr "Estas opciones se aplican específicamente a los posts y las páginas."
697
+
698
+ #: ../main.php:1449
699
+ msgid "Post/Page Default Title"
700
+ msgstr "Título por Defecto del Post/Página"
701
+
702
+ #: ../main.php:1452
703
+ msgid "Change the default \"add new\" post/page title field."
704
+ msgstr ""
705
+ "Cambie el valor predeterminado \"Añadir nuevo\" del campo del título de la "
706
+ "página/post."
707
+
708
+ #: ../main.php:1455
709
+ msgid "Column Shortcodes"
710
+ msgstr "Códigos Cortos de Columna"
711
+
712
+ #: ../main.php:1458
713
+ msgid "Enable the column shortcodes functionality."
714
+ msgstr "Habilitar la funcionalidad de códigos cortos de columna."
715
+
716
+ #: ../main.php:1461
717
+ msgid "Disable wpautop()"
718
+ msgstr "Deshabilitar wpautop()"
719
+
720
+ #: ../main.php:1464
721
+ msgid "Disable the filter responsible for removing p and br tags."
722
+ msgstr ""
723
+ "Desactivar el filtro responsable de la eliminación de las etiquetas p y br."
724
+
725
+ #: ../main.php:1470
726
+ msgid "Page Revisions"
727
+ msgstr "Revisiones de Páginas"
728
+
729
+ #: ../main.php:1473
730
+ msgid "Max Post Revisions"
731
+ msgstr "Revisiones de Post Máx"
732
+
733
+ #: ../main.php:1476
734
+ msgid "Set max number of Post Revisions to store in database."
735
+ msgstr ""
736
+ "Establecer el número máximo de Revisiones de Posts a almacenar en la base de "
737
+ "datos."
738
+
739
+ #: ../main.php:1479
740
+ msgid "Max Page Revisions"
741
+ msgstr "Revisiones de Páginas Máximas "
742
+
743
+ #: ../main.php:1482
744
+ msgid "Set max number of Page Revisions to store in database."
745
+ msgstr ""
746
+ "Establecer el número máximo de revisiones de la página para almacenar la "
747
+ "base de datos."
748
+
749
+ #: ../main.php:1485
750
+ msgid "Delete Revisions"
751
+ msgstr "Eliminar Revisiones"
752
+
753
+ #: ../main.php:1488
754
+ msgid "Delete all database revisions."
755
+ msgstr "Eliminar todas las revisiones de la base de datos"
756
+
757
+ #: ../main.php:1491
758
+ msgid "Revisions DB Size"
759
+ msgstr "Tamaño de las Revisiones de la BD"
760
+
761
+ #: ../main.php:1500
762
+ msgid "Current size of revisions stored in database:"
763
+ msgstr "Tamaño actual de las revisiones almacenadas en la base de datos:"
764
+
765
+ #: ../main.php:1508
766
+ msgid "Hide Posts and Pages"
767
+ msgstr "Ocultar Posts y Páginas"
768
+
769
+ #: ../main.php:1511
770
+ msgid "Hide Admin Posts"
771
+ msgstr "Ocultar los Posts del Admin "
772
+
773
+ #: ../main.php:1514
774
+ msgid "Hide selected posts from admin view."
775
+ msgstr "Ocultar los post seleccionados desde la vista de administración."
776
+
777
+ #: ../main.php:1517
778
+ msgid "Hide Admin Pages"
779
+ msgstr "Ocultar Páginas de Administración"
780
+
781
+ #: ../main.php:1520
782
+ msgid "Hide selected pages from admin view."
783
+ msgstr "Ocultar páginas seleccionadas de la vista administrativa."
784
+
785
+ #: ../main.php:1526
786
+ msgid "Save Posts/Pages Options"
787
+ msgstr "Guardar Opciones de Posts/Páginas"
788
+
789
+ #: ../main.php:1538
790
+ msgid "Editor Options"
791
+ msgstr "Opciones del Editor"
792
+
793
+ #: ../main.php:1539
794
+ msgid ""
795
+ "These options will override the initial editor defaults, which will load the "
796
+ "editor using the values below."
797
+ msgstr ""
798
+ "Estas opciones tienen prioridad sobre los valores por defecto del editor "
799
+ "inicial y se cargarán en el editor utilizando los valores de abajo."
800
+
801
+ #: ../main.php:1559
802
+ msgid "Enable Editor Settings"
803
+ msgstr "Habilitar los Ajustes del Editor"
804
+
805
+ #: ../main.php:1562
806
+ msgid "Executes the values set below when initiating the content editor."
807
+ msgstr ""
808
+ "Ejecuta los valores establecidos a continuación al iniciar el editor de "
809
+ "contenidos."
810
+
811
+ #: ../main.php:1571
812
+ msgid "Editor Font"
813
+ msgstr "Fuente del Editor"
814
+
815
+ #: ../main.php:1574
816
+ msgid "Font Family (ex. Verdana, Arial, Helvetica, sans-serif)"
817
+ msgstr "Familia de la Fuente (e.j. Verdana, Arial, Helvetica, sans-serif)"
818
+
819
+ #: ../main.php:1577
820
+ msgid "Editor Font Color"
821
+ msgstr "Color de la Fuente del Editor"
822
+
823
+ #: ../main.php:1580
824
+ msgid "Hex Number (ex. 000000)"
825
+ msgstr "Número Hex (e.j. 000000)"
826
+
827
+ #: ../main.php:1583
828
+ msgid "Editor Font Size"
829
+ msgstr "Tamaño de la Fuente del Editor"
830
+
831
+ #: ../main.php:1586
832
+ msgid "Size (ex. 13px)"
833
+ msgstr "Tamaño (e.j. 13px)"
834
+
835
+ #: ../main.php:1589
836
+ msgid "Editor Background Color"
837
+ msgstr "Modificar Color de Fondo"
838
+
839
+ #: ../main.php:1592
840
+ msgid "Hex Number (ex. FFFFFF)"
841
+ msgstr "Número Hex (e.j. FFFFFF)"
842
+
843
+ #: ../main.php:1595
844
+ msgid "Line Height"
845
+ msgstr "Altura de la Línea"
846
+
847
+ #: ../main.php:1598
848
+ msgid "Size (ex. 19px)"
849
+ msgstr "Tamaño (e.j. 19px)"
850
+
851
+ #: ../main.php:1601
852
+ msgid "Body Padding"
853
+ msgstr "Espaciado del Cuerpo"
854
+
855
+ #: ../main.php:1604
856
+ msgid "Size (ex. 14px)"
857
+ msgstr "Tamaño (e.j. 14px)"
858
+
859
+ #: ../main.php:1607
860
+ msgid "Body Margin"
861
+ msgstr "Margen del Cuerpo"
862
+
863
+ #: ../main.php:1610
864
+ msgid "Size (ex. 10px)"
865
+ msgstr "Tamaño (e.j. 10px)"
866
+
867
+ #: ../main.php:1613
868
+ msgid "Text Indent"
869
+ msgstr "Sangría"
870
+
871
+ #: ../main.php:1616
872
+ msgid "Size (ex. 20px)"
873
+ msgstr "Tamaño (e.j. 20px)"
874
+
875
+ #: ../main.php:1619
876
+ msgid "Text Direction"
877
+ msgstr "Dirección del Texto"
878
+
879
+ #: ../main.php:1622
880
+ msgid "Direction (ex. ltr)"
881
+ msgstr "Dirección (e.j. Itr)"
882
+
883
+ #: ../main.php:1629
884
+ msgid "Save Editor Options"
885
+ msgstr "Guardar las Opciones del Editor"
886
+
887
+ #: ../main.php:1630
888
+ msgid "Restore Settings"
889
+ msgstr "Restaurar Ajustes "
890
+
891
+ #: ../main.php:1643
892
+ msgid "These settings will enable various fonts in the editor."
893
+ msgstr "Estos ajustes permitirán diversas fuentes en el editor."
894
+
895
+ #: ../main.php:1656
896
+ msgid "Activate Google Fonts"
897
+ msgstr "Fuentes de Google Activas"
898
+
899
+ #: ../main.php:1659
900
+ msgid "Turns on/off Google Webfonts."
901
+ msgstr "Activar/desactivar Google Webfonts."
902
+
903
+ #: ../main.php:1668
904
+ msgid "Build Font List"
905
+ msgstr "Construir Lista de Fuentes"
906
+
907
+ #: ../main.php:1673
908
+ msgid "Step 1:"
909
+ msgstr "Paso 1:"
910
+
911
+ #: ../main.php:1675
912
+ msgid "Visit "
913
+ msgstr "Visitar"
914
+
915
+ #: ../main.php:1677
916
+ msgid "Google Webfonts"
917
+ msgstr "Google Webfonts"
918
+
919
+ #: ../main.php:1679
920
+ msgid "to see how fonts are displayed in the browser."
921
+ msgstr "para ver cómo se muestran los tipos de letra en el navegador."
922
+
923
+ #: ../main.php:1682
924
+ msgid "Step 2:"
925
+ msgstr "Paso 2:"
926
+
927
+ #: ../main.php:1684
928
+ msgid ""
929
+ "Once desired fonts are selected, choose them (one at a time) from the "
930
+ "dropdown list below (sorted alphabetically)."
931
+ msgstr ""
932
+ "Una vez seleccionadas las fuentes que desee, elíjalas (una a la vez) en la "
933
+ "lista desplegable a continuación (ordenados alfabéticamente)."
934
+
935
+ #: ../main.php:1693
936
+ msgid "Something went wrong!"
937
+ msgstr "¡Algo fue mal!"
938
+
939
+ #: ../main.php:1714
940
+ msgid ""
941
+ "As fonts are selected, they will appear in the \"Active Fonts\" section "
942
+ "below."
943
+ msgstr ""
944
+ "Mientras se seleccionan las fuentes, estas aparecerán en la sección "
945
+ "\"Fuentes Activas\" de abajo."
946
+
947
+ #: ../main.php:1724
948
+ msgid "Active Fonts"
949
+ msgstr "Fuentes Activas"
950
+
951
+ #: ../main.php:1734
952
+ msgid "Current Font List"
953
+ msgstr "Lista de Fuentes Corrientes"
954
+
955
+ #: ../main.php:1753
956
+ msgid "Trash Bin"
957
+ msgstr "Papelera"
958
+
959
+ #: ../main.php:1757
960
+ msgid "Drag fonts here to delete..."
961
+ msgstr "Arrastrar las fuentes aquí para eliminar..."
962
+
963
+ #: ../main.php:1764
964
+ msgid "Save Font Options"
965
+ msgstr "Guardar Opciones de Fuente"
966
+
967
+ #: ../main.php:1769
968
+ msgid "Remember to save the options when finished."
969
+ msgstr "Recuerde guardar las opciones cuando haya terminado."
970
+
971
+ #: ../main.php:1787
972
+ msgid "Widget Options"
973
+ msgstr "Opciones de Widget"
974
+
975
+ #: ../main.php:1788
976
+ msgid "These options specifically affect how widgets are handled."
977
+ msgstr "Estas opciones afectan específicamente cómo se manejan los widgets."
978
+
979
+ #: ../main.php:1799
980
+ msgid "Widget Builder"
981
+ msgstr "Constructor de Widget"
982
+
983
+ #: ../main.php:1802
984
+ msgid "Enables the powerful widget builder."
985
+ msgstr "Habilitar el poderoso constructor de widget."
986
+
987
+ #: ../main.php:1811
988
+ msgid "Save Widget Options"
989
+ msgstr "Guardar Opciones de Widget"
990
+
991
+ #: ../main.php:1823
992
+ msgid "User Specific Options"
993
+ msgstr "Opciones Específicas del Usuario"
994
+
995
+ #: ../main.php:1824
996
+ msgid ""
997
+ "These options are stored in individual user meta; meaning each user can set "
998
+ "these options independlently from one another."
999
+ msgstr ""
1000
+ "Estas opciones se almacenan en un meta usuario individual; significa que "
1001
+ "cada usuario puede configurar estas opciones independientemente de otros."
1002
+
1003
+ #: ../main.php:1846
1004
+ msgid "Save Scrollbar"
1005
+ msgstr "Guardar Scrollbar"
1006
+
1007
+ #: ../main.php:1849
1008
+ msgid "Saves the editor srollbar position when editing long posts (TEXT mode)."
1009
+ msgstr ""
1010
+ "Guarda la posición del scrollbar del editor al editar posts largos (modo de "
1011
+ "texto)."
1012
+
1013
+ #: ../main.php:1852
1014
+ msgid "ID Column"
1015
+ msgstr "ID de Columna"
1016
+
1017
+ #: ../main.php:1855
1018
+ msgid "Adds a column to post/page list view for displaying the post/page ID."
1019
+ msgstr ""
1020
+ "Adiciona una columna a la vista de la lista de post/página para mostrar el "
1021
+ "ID de post/página."
1022
+
1023
+ #: ../main.php:1858
1024
+ msgid "Thumbnail Column"
1025
+ msgstr "Columna en Miniatura"
1026
+
1027
+ #: ../main.php:1861
1028
+ msgid "Adds a column to post/page list view for displaying thumbnails."
1029
+ msgstr ""
1030
+ "Adiciona una columna a la vista de lista de post/página para mostrar las "
1031
+ "miniaturas."
1032
+
1033
+ #: ../main.php:1864
1034
+ msgid "Hide TEXT Tab"
1035
+ msgstr "Ocultar la pestaña TEXTO"
1036
+
1037
+ #: ../main.php:1867
1038
+ msgid "Hide the editor TEXT tab from view."
1039
+ msgstr "Oculta la pestaña del editor de TEXTO de la vista."
1040
+
1041
+ #: ../main.php:1870
1042
+ msgid "Default VISUAL Tab"
1043
+ msgstr "Pestaña VISUAL Por Defecto "
1044
+
1045
+ #: ../main.php:1873
1046
+ msgid "Always display VISUAL tab when editor loads."
1047
+ msgstr "Mostrar siempre la pestaña VISUAL cuando se carga el editor."
1048
+
1049
+ #: ../main.php:1876
1050
+ msgid "Disable Dashboard Widget"
1051
+ msgstr "Deshabilitar Widget del Dashboard"
1052
+
1053
+ #: ../main.php:1879
1054
+ msgid "Disables Ultimate Tinymce Pro News Feed dashboard widget."
1055
+ msgstr "Deshabilita el widget del dashboard de Ultimate Tinymce Pro News Feed"
1056
+
1057
+ #: ../main.php:1885
1058
+ msgid "Post/Page Highlight Colors"
1059
+ msgstr "Colores Resaltados de Post/Página "
1060
+
1061
+ #: ../main.php:1886
1062
+ msgid ""
1063
+ "These options will allow each user to customize highlight colors for each "
1064
+ "post/page status."
1065
+ msgstr ""
1066
+ "Estas opciones permitirán a cada usuario personalizar los colores claros "
1067
+ "para cada estado del post/página."
1068
+
1069
+ #: ../main.php:1887
1070
+ msgid "Meaning.. saved posts can be yellow, published posts can be blue, etc."
1071
+ msgstr ""
1072
+ "Significa…que los posts salvados pueden ser amarillos, los post publicados "
1073
+ "pueden ser azules, etc."
1074
+
1075
+ #: ../main.php:1891
1076
+ msgid "Enable Highlights"
1077
+ msgstr "Habilitar Destacados"
1078
+
1079
+ #: ../main.php:1894
1080
+ msgid "Enable the Highlight Options below."
1081
+ msgstr "Habilitar las Opciones de Destacado siguientes."
1082
+
1083
+ #: ../main.php:1897
1084
+ msgid "Draft Highlight"
1085
+ msgstr "Destacado en Borrador"
1086
+
1087
+ #: ../main.php:1902
1088
+ msgid "Pending Highlight"
1089
+ msgstr "Destacado Pendiente"
1090
+
1091
+ #: ../main.php:1907
1092
+ msgid "Published Highlight"
1093
+ msgstr "Destacado Publicado"
1094
+
1095
+ #: ../main.php:1912
1096
+ msgid "Future Highlight"
1097
+ msgstr "Destacado Futuro"
1098
+
1099
+ #: ../main.php:1917
1100
+ msgid "Private Highlight"
1101
+ msgstr "Destacado Privado"
1102
+
1103
+ #: ../main.php:1948
1104
+ msgid "Extra Options"
1105
+ msgstr "Opciones Extras"
1106
+
1107
+ #: ../main.php:1950
1108
+ msgid "Signoff Text"
1109
+ msgstr "Texto de Deslogueo"
1110
+
1111
+ #: ../main.php:1951
1112
+ msgid ""
1113
+ "Use the editor below to create a content chunk that can be inserted anywhere "
1114
+ "using the"
1115
+ msgstr ""
1116
+ "Utilice el editor a continuación para crear un fragmento de contenido que se "
1117
+ "puede insertar en cualquier lugar con el"
1118
+
1119
+ #: ../main.php:1951
1120
+ msgid "shortcode."
1121
+ msgstr "código corto."
1122
+
1123
+ #: ../main.php:1966
1124
+ msgid "QR Codes"
1125
+ msgstr "Códigos QR"
1126
+
1127
+ #: ../main.php:1968
1128
+ msgid "Please use the options below to setup your personalized QR Code."
1129
+ msgstr ""
1130
+ "Utilice las siguientes opciones para configurar su código QR ​​personalizado."
1131
+
1132
+ #: ../main.php:1975
1133
+ msgid "Enable QR Codes"
1134
+ msgstr "Habilitar Códigos QR"
1135
+
1136
+ #: ../main.php:1978
1137
+ msgid "A global option which enables all QR Code functionality."
1138
+ msgstr "Una opción global que habilita toda la funcionalidad de Código QR."
1139
+
1140
+ #: ../main.php:1981
1141
+ msgid "Enable QR Widgets"
1142
+ msgstr "Habilitar Widgets QR"
1143
+
1144
+ #: ../main.php:1984
1145
+ msgid "Adds new widget for creating QR codes."
1146
+ msgstr "Añade nuevo widget para la creación de códigos QR."
1147
+
1148
+ #: ../main.php:1993
1149
+ msgid "Design QR Code"
1150
+ msgstr "Diseñar Código QR"
1151
+
1152
+ #: ../main.php:2001
1153
+ msgid "Title Background"
1154
+ msgstr "Fondo del Título "
1155
+
1156
+ #: ../main.php:2006
1157
+ msgid "Content Background"
1158
+ msgstr "Fondo del Contenido "
1159
+
1160
+ #: ../main.php:2011
1161
+ msgid "Text Color"
1162
+ msgstr "Color del Texto"
1163
+
1164
+ #: ../main.php:2016
1165
+ msgid "QR Foreground Color"
1166
+ msgstr "Color de Primer Plano de QR"
1167
+
1168
+ #: ../main.php:2021
1169
+ msgid "QR Background Color"
1170
+ msgstr "Color de Fondo de QR"
1171
+
1172
+ #: ../main.php:2031
1173
+ msgid ""
1174
+ "This is a preview area. Changes will not be written to the database until "
1175
+ "the \"Save Changes\" button is clicked."
1176
+ msgstr ""
1177
+ "Esto es un área de vista previa. Los cambios no se escriben en la base de "
1178
+ "datos hasta que se haga clic en el botón \"Guardar cambios\"."
1179
+
1180
+ #: ../main.php:2033
1181
+ msgid "Preview! (<em>Click \"Save Changes\" to update</em>)"
1182
+ msgstr "¡Vista previa! (<em>Clic en \"Guardar Cambios\" para actualizar</em>)"
1183
+
1184
+ #: ../main.php:2043
1185
+ msgid ""
1186
+ "This is preview text. Use the editor below to create custom text for your "
1187
+ "posts/pages."
1188
+ msgstr ""
1189
+ "Este es el texto de la vista previa. Utilice el editor a continuación para "
1190
+ "crear un texto personalizado para sus posts/páginas."
1191
+
1192
+ #: ../main.php:2044
1193
+ msgid ""
1194
+ "It is strongly suggested to use highly contrasting colors for the background "
1195
+ "and foreground QR colors."
1196
+ msgstr ""
1197
+ "Es muy recomendable utilizar colores altamente contrastantes para el fondo y "
1198
+ "los colores QR de primer plano."
1199
+
1200
+ #: ../main.php:2056
1201
+ msgid "Title Text"
1202
+ msgstr "Texto del Título"
1203
+
1204
+ #: ../main.php:2061
1205
+ msgid "Content"
1206
+ msgstr "Contenido"
1207
+
1208
+ #: ../main.php:2084
1209
+ msgid "Database Options"
1210
+ msgstr "Opciones de Base de Datos"
1211
+
1212
+ #: ../main.php:2089
1213
+ msgid "Convert Options from Ultimate Tinymce"
1214
+ msgstr "Opciones de Convertir desde Ultimate Tinymce"
1215
+
1216
+ #: ../main.php:2092
1217
+ msgid "Convert any options used by Ultimate Tinymce to WP Edit."
1218
+ msgstr ""
1219
+ "Convertir cualquiera de las opciones utilizadas por Ultimate Tinymce a WP "
1220
+ "Edit."
1221
+
1222
+ #: ../main.php:2094
1223
+ msgid "Since so much has changed, not all options may convert successfully."
1224
+ msgstr ""
1225
+ "Dado que muchas cosas han cambiado, no todas las opciones se pueden "
1226
+ "convertir con éxito."
1227
+
1228
+ #: ../main.php:2096
1229
+ msgid "There will be no harm done to any other plugin or theme options."
1230
+ msgstr "No afectará otras opciones del plugin o temas."
1231
+
1232
+ #: ../main.php:2100
1233
+ msgid "Convert Options"
1234
+ msgstr "Opciones de Conversión"
1235
+
1236
+ #: ../main.php:2106
1237
+ msgid "Export WP Edit Options"
1238
+ msgstr "Export Opciones de WP Edit"
1239
+
1240
+ #: ../main.php:2108
1241
+ msgid ""
1242
+ "Export the plugin settings for this site as a .json file. This allows you to "
1243
+ "easily import the configuration into another site."
1244
+ msgstr ""
1245
+ "Exportar la configuración del plugin de este sitio como un archivo .json. "
1246
+ "Esto le permite importar fácilmente la configuración en otro sitio."
1247
+
1248
+ #: ../main.php:2113
1249
+ msgid "Export"
1250
+ msgstr "Exportar"
1251
+
1252
+ #: ../main.php:2120
1253
+ msgid "Import WP Edit Options"
1254
+ msgstr "Importar las Opciones de WP Edit"
1255
+
1256
+ #: ../main.php:2122
1257
+ msgid ""
1258
+ "Import the plugin settings from a .json file. This file can be obtained by "
1259
+ "exporting the settings on another site using the form above."
1260
+ msgstr ""
1261
+ "Importar la configuración del plugin desde un archivo .json. Este archivo se "
1262
+ "puede obtener mediante la exportación de la configuración de otro sitio "
1263
+ "utilizando el formulario de arriba."
1264
+
1265
+ #: ../main.php:2128
1266
+ msgid "Import"
1267
+ msgstr "Importar"
1268
+
1269
+ #: ../main.php:2135
1270
+ msgid "Reset WP Edit Options"
1271
+ msgstr "Restablecer las Opciones de WP Edit "
1272
+
1273
+ #: ../main.php:2137
1274
+ msgid "Reset all plugin settings to their original default states."
1275
+ msgstr ""
1276
+ "Restablecer todas las configuraciones del plugin a sus estados "
1277
+ "predeterminados originalmente"
1278
+
1279
+ #: ../main.php:2140
1280
+ msgid "Reset Settings"
1281
+ msgstr "Resetear Ajustes"
1282
+
1283
+ #: ../main.php:2147
1284
+ msgid "Uninstall WP Edit (Completely)"
1285
+ msgstr "Desinstalar WP Edit (Completo)"
1286
+
1287
+ #: ../main.php:2149
1288
+ msgid ""
1289
+ "Designed by intention, this plugin will not delete the associated database "
1290
+ "tables when activating and deactivating."
1291
+ msgstr ""
1292
+ "Diseñado intencionalmente, este plugin no eliminará las tablas de la base de "
1293
+ "datos asociadas al activar y desactivar."
1294
+
1295
+ #: ../main.php:2150
1296
+ msgid ""
1297
+ "This ensures the data is kept safe when troubleshooting other WordPress "
1298
+ "conflicts."
1299
+ msgstr ""
1300
+ "Esto asegura que los datos se mantengan seguros al solucionar otros "
1301
+ "conflictos de WordPress."
1302
+
1303
+ #: ../main.php:2151
1304
+ msgid ""
1305
+ "In order to completely uninstall the plugin, AND remove all associated "
1306
+ "database tables, please use the option below."
1307
+ msgstr ""
1308
+ "Para desinstalar completamente el plugin y eliminar todas las tablas de la "
1309
+ "base de datos asociada, por favor, utilice la opción de abajo."
1310
+
1311
+ #: ../main.php:2156
1312
+ msgid "Please confirm before proceeding"
1313
+ msgstr "Por favor confirme el procedimiento "
1314
+
1315
+ #: ../main.php:2157
1316
+ msgid "Uninstall"
1317
+ msgstr "Desinstalar"
1318
+
1319
+ #: ../main.php:2254
1320
+ msgid "Please upload a valid .json file"
1321
+ msgstr "Por favor, suba un archivo .json válido"
1322
+
1323
+ #: ../main.php:2260
1324
+ msgid "Please upload a file to import"
1325
+ msgstr "Por favor, suba un archivo para importar "
1326
+
1327
+ #: ../main.php:2313
1328
+ msgid "Disable QR for this post/page:"
1329
+ msgstr "Desactivar QR para este post/página:"
1330
+
1331
+ #: ../main.php:2316
1332
+ msgid "Disables QR only for this post/page."
1333
+ msgstr "Desabilitar QR solo para este post/página."
1334
+
1335
+ #: ../main.php:2319
1336
+ msgid "QR Title:"
1337
+ msgstr "Título QR:"
1338
+
1339
+ #: ../main.php:2324
1340
+ msgid "QR Content:"
1341
+ msgstr "Contenido QR:"
1342
+
1343
+ #: ../main.php:2347
1344
+ msgid "QR Code Options:"
1345
+ msgstr "Opciones de Código QR:"
1346
+
1347
+ #: ../main.php:2348
1348
+ msgid "These options are post/page specific."
1349
+ msgstr "Estas opciones son específicas para cada post/página."
1350
+
1351
+ #: ../main.php:2349
1352
+ msgid ""
1353
+ "They will override corresponding global options set on the admin WP Edit "
1354
+ "settings page."
1355
+ msgstr ""
1356
+ "Se anularán las opciones globales correspondientes fijadas en la página de "
1357
+ "configuración de WP Edit del admin."
1358
+
1359
+ #: ../main.php:2386
1360
+ #, php-format
1361
+ msgid ""
1362
+ "Deactivated. If required, please activate via the <a href=\"%1$s\">admin "
1363
+ "settings page</a>."
1364
+ msgstr ""
1365
+ "Desactivado. Si es necesario, por favor, active a través de la página de "
1366
+ "configuración de administración <a href=\"%1$s\">."
1367
+
1368
+ #: ../main.php:2437
1369
+ msgid "Ajax is working... but having trouble connecting with the database."
1370
+ msgstr ""
1371
+ "Ajax está trabajando... pero tiene problemas para conectarse con la base de "
1372
+ "datos."
1373
+
1374
+ #: ../user_functions.php:125
1375
+ msgid "ID"
1376
+ msgstr "ID"
1377
+
1378
+ #: ../user_functions.php:147
1379
+ msgid "Thumbnail"
1380
+ msgstr "Miniatura"
1381
+
1382
+ #: ../user_functions.php:169
1383
+ msgid "None"
1384
+ msgstr "Ninguno"
1385
+
1386
+ #: ../user_functions.php:214
1387
+ msgid "WP Edit RSS Feed"
1388
+ msgstr "WP Edit RSS Feed"
1389
+
1390
+ #: ../user_functions.php:256
1391
+ msgid "Number of posts to show:"
1392
+ msgstr "Número de posts a mostrar:"
langs/default.mo ADDED
Binary file
langs/default.po ADDED
@@ -0,0 +1,856 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Edit\n"
4
+ "POT-Creation-Date: 2014-12-27 23:36-0500\n"
5
+ "PO-Revision-Date: 2014-12-27 23:36-0500\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: Josh Lobe <support@wpeditpro.com>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.5\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: ..\n"
16
+
17
+ #: ../main.php:176
18
+ msgid "Settings"
19
+ msgstr ""
20
+
21
+ #: ../main.php:177
22
+ msgid "Go Pro!"
23
+ msgstr ""
24
+
25
+ #: ../main.php:314 ../includes/functions.php:29
26
+ msgid "WP Edit"
27
+ msgstr ""
28
+
29
+ #: ../main.php:362
30
+ msgid "WP Edit Settings"
31
+ msgstr ""
32
+
33
+ #: ../main.php:370 ../includes/functions.php:37 ../includes/functions.php:40
34
+ msgid "Buttons"
35
+ msgstr ""
36
+
37
+ #: ../main.php:371 ../includes/functions.php:46 ../includes/functions.php:49
38
+ msgid "Global"
39
+ msgstr ""
40
+
41
+ #: ../main.php:372 ../includes/functions.php:55 ../includes/functions.php:58
42
+ msgid "General"
43
+ msgstr ""
44
+
45
+ #: ../main.php:373 ../includes/functions.php:64 ../includes/functions.php:67
46
+ msgid "Posts/Pages"
47
+ msgstr ""
48
+
49
+ #: ../main.php:374 ../includes/functions.php:73 ../includes/functions.php:76
50
+ msgid "Editor"
51
+ msgstr ""
52
+
53
+ #: ../main.php:375 ../includes/functions.php:82 ../includes/functions.php:85
54
+ msgid "Extras"
55
+ msgstr ""
56
+
57
+ #: ../main.php:376 ../includes/functions.php:91 ../includes/functions.php:94
58
+ msgid "User Specific"
59
+ msgstr ""
60
+
61
+ #: ../main.php:377 ../includes/functions.php:100 ../includes/functions.php:103
62
+ msgid "Database"
63
+ msgstr ""
64
+
65
+ #: ../main.php:378 ../includes/functions.php:109 ../includes/functions.php:112
66
+ msgid "About"
67
+ msgstr ""
68
+
69
+ #: ../main.php:396
70
+ msgid "WP Edit Buttons"
71
+ msgstr ""
72
+
73
+ #: ../main.php:404
74
+ msgid "Button Rows"
75
+ msgstr ""
76
+
77
+ #: ../main.php:419
78
+ msgid "Button Container"
79
+ msgstr ""
80
+
81
+ #: ../main.php:856
82
+ msgid "Save Buttons"
83
+ msgstr ""
84
+
85
+ #: ../main.php:860
86
+ msgid "Reset Buttons"
87
+ msgstr ""
88
+
89
+ #: ../main.php:869
90
+ msgid "Buttons Tips"
91
+ msgstr ""
92
+
93
+ #: ../main.php:880
94
+ msgid "Drag/Drop"
95
+ msgstr ""
96
+
97
+ #: ../main.php:881
98
+ msgid "Multi Select"
99
+ msgstr ""
100
+
101
+ #: ../main.php:882 ../main.php:1452
102
+ msgid "Reset"
103
+ msgstr ""
104
+
105
+ #: ../main.php:886
106
+ msgid "Buttons can be dragged and dropped into desired button rows."
107
+ msgstr ""
108
+
109
+ #: ../main.php:887
110
+ msgid ""
111
+ "The \"Button Container\" is a placeholder for buttons not used in the "
112
+ "editor; these buttons will not appear when editing a post or page."
113
+ msgstr ""
114
+
115
+ #: ../main.php:890
116
+ msgid ""
117
+ "Buttons may also be selected in quantities; or multiple selections, before "
118
+ "being moved."
119
+ msgstr ""
120
+
121
+ #: ../main.php:891
122
+ msgid ""
123
+ "Clicking a button will set it as \"active\"; a yellowish highlight color. "
124
+ "Multiple buttons can be clicked and set as \"active\"."
125
+ msgstr ""
126
+
127
+ #: ../main.php:892
128
+ msgid ""
129
+ "Clicking and dragging one of the \"active\" buttons will move the entire "
130
+ "\"active\" selection."
131
+ msgstr ""
132
+
133
+ #: ../main.php:893
134
+ msgid ""
135
+ "Clicking outside the button area will remove all currently active button "
136
+ "selections."
137
+ msgstr ""
138
+
139
+ #: ../main.php:896
140
+ msgid ""
141
+ "Clicking \"Reset Buttons\" will restore the editor buttons to their original "
142
+ "default values."
143
+ msgstr ""
144
+
145
+ #: ../main.php:897
146
+ msgid ""
147
+ "All button rows will get the default WordPress button arrangements; and the "
148
+ "extra buttons will be added to the \"Button Container\"."
149
+ msgstr ""
150
+
151
+ #: ../main.php:916
152
+ msgid "Global Options"
153
+ msgstr ""
154
+
155
+ #: ../main.php:931
156
+ msgid "jQuery Theme"
157
+ msgstr ""
158
+
159
+ #: ../main.php:944
160
+ msgid "Selects the jQuery theme for plugin alerts and notices."
161
+ msgstr ""
162
+
163
+ #: ../main.php:947
164
+ msgid "Disable Admin Links"
165
+ msgstr ""
166
+
167
+ #: ../main.php:950
168
+ msgid "Disables the WP Edit top admin bar links."
169
+ msgstr ""
170
+
171
+ #: ../main.php:953
172
+ msgid "Disable Fancy Tooltips"
173
+ msgstr ""
174
+
175
+ #: ../main.php:956
176
+ msgid "Disables the fancy tooltips used on button hover."
177
+ msgstr ""
178
+
179
+ #: ../main.php:964
180
+ msgid "Save Global Options"
181
+ msgstr ""
182
+
183
+ #: ../main.php:979
184
+ msgid "General Options"
185
+ msgstr ""
186
+
187
+ #: ../main.php:998
188
+ msgid "Linebreak Shortcode"
189
+ msgstr ""
190
+
191
+ #: ../main.php:1001
192
+ msgid "Use the [break] shortcode to insert linebreaks in the editor."
193
+ msgstr ""
194
+
195
+ #: ../main.php:1004
196
+ msgid "Shortcodes in Widgets"
197
+ msgstr ""
198
+
199
+ #: ../main.php:1007
200
+ msgid "Use shortcodes in widget areas."
201
+ msgstr ""
202
+
203
+ #: ../main.php:1010
204
+ msgid "Shortcodes in Excerpts"
205
+ msgstr ""
206
+
207
+ #: ../main.php:1013
208
+ msgid "Use shortcodes in excerpt areas."
209
+ msgstr ""
210
+
211
+ #: ../main.php:1016
212
+ msgid "WP Edit Post Excerpt"
213
+ msgstr ""
214
+
215
+ #: ../main.php:1019
216
+ msgid "Add the WP Edit editor to the Post Excerpt area."
217
+ msgstr ""
218
+
219
+ #: ../main.php:1022
220
+ msgid "WP Edit Page Excerpt"
221
+ msgstr ""
222
+
223
+ #: ../main.php:1025
224
+ msgid "Add the WP Edit editor to the Page Excerpt area."
225
+ msgstr ""
226
+
227
+ #: ../main.php:1028
228
+ msgid "Profile Editor"
229
+ msgstr ""
230
+
231
+ #: ../main.php:1031
232
+ msgid "Use modified editor in profile biography field."
233
+ msgstr ""
234
+
235
+ #: ../main.php:1034
236
+ msgid "PHP Widgets"
237
+ msgstr ""
238
+
239
+ #: ../main.php:1037
240
+ msgid "Adds a new widget for PHP code."
241
+ msgstr ""
242
+
243
+ #: ../main.php:1046
244
+ msgid "Save General Options"
245
+ msgstr ""
246
+
247
+ #: ../main.php:1073
248
+ msgid "Posts/pages Options"
249
+ msgstr ""
250
+
251
+ #: ../main.php:1080
252
+ msgid "Post/Page Default Title"
253
+ msgstr ""
254
+
255
+ #: ../main.php:1083
256
+ msgid "Change the default \"add new\" post/page title field."
257
+ msgstr ""
258
+
259
+ #: ../main.php:1086
260
+ msgid "Column Shortcodes"
261
+ msgstr ""
262
+
263
+ #: ../main.php:1089
264
+ msgid "Enable the column shortcodes functionality."
265
+ msgstr ""
266
+
267
+ #: ../main.php:1092
268
+ msgid "Disable wpautop()"
269
+ msgstr ""
270
+
271
+ #: ../main.php:1095
272
+ msgid "Disable the filter responsible for removing p and br tags."
273
+ msgstr ""
274
+
275
+ #: ../main.php:1104
276
+ msgid "Page Revisions"
277
+ msgstr ""
278
+
279
+ #: ../main.php:1110
280
+ msgid "Max Post Revisions"
281
+ msgstr ""
282
+
283
+ #: ../main.php:1113
284
+ msgid ""
285
+ "Set max number of Post Revisions to store in database. (empty = unlimited)"
286
+ msgstr ""
287
+
288
+ #: ../main.php:1116
289
+ msgid "Max Page Revisions"
290
+ msgstr ""
291
+
292
+ #: ../main.php:1119
293
+ msgid ""
294
+ "Set max number of Page Revisions to store in database. (empty = unlimited)"
295
+ msgstr ""
296
+
297
+ #: ../main.php:1122
298
+ msgid "Delete Revisions"
299
+ msgstr ""
300
+
301
+ #: ../main.php:1125
302
+ msgid "Delete all database revisions."
303
+ msgstr ""
304
+
305
+ #: ../main.php:1128
306
+ msgid "Revisions DB Size"
307
+ msgstr ""
308
+
309
+ #: ../main.php:1137
310
+ msgid "Current size of revisions stored in database:"
311
+ msgstr ""
312
+
313
+ #: ../main.php:1148
314
+ msgid "Hide Posts and Pages"
315
+ msgstr ""
316
+
317
+ #: ../main.php:1154
318
+ msgid "Hide Admin Posts"
319
+ msgstr ""
320
+
321
+ #: ../main.php:1157
322
+ msgid "Hide selected posts from admin view. ID comma separated (1,5,14,256)"
323
+ msgstr ""
324
+
325
+ #: ../main.php:1160
326
+ msgid "Hide Admin Pages"
327
+ msgstr ""
328
+
329
+ #: ../main.php:1163
330
+ msgid "Hide selected pages from admin view. ID comma separated (1,5,14,256)"
331
+ msgstr ""
332
+
333
+ #: ../main.php:1171
334
+ msgid "Save Posts/Pages Options"
335
+ msgstr ""
336
+
337
+ #: ../main.php:1187
338
+ msgid "Styles Options"
339
+ msgstr ""
340
+
341
+ #: ../main.php:1191
342
+ msgid "Adds predefined styles; which can be applied to editor content."
343
+ msgstr ""
344
+
345
+ #: ../main.php:1192
346
+ msgid "Please be sure the \"Formats\" button is active in the editor."
347
+ msgstr ""
348
+
349
+ #: ../main.php:1202
350
+ msgid "Add Pre-defined Styles"
351
+ msgstr ""
352
+
353
+ #: ../main.php:1205
354
+ msgid "Adds predefined styles to the \"Formats\" dropdown button."
355
+ msgstr ""
356
+
357
+ #: ../main.php:1214
358
+ msgid "TinyMCE Options"
359
+ msgstr ""
360
+
361
+ #: ../main.php:1218
362
+ msgid ""
363
+ "These options will adjust various parts of the TinyMCE initialization "
364
+ "process."
365
+ msgstr ""
366
+
367
+ #: ../main.php:1222
368
+ msgid "Change Font to \"px\""
369
+ msgstr ""
370
+
371
+ #: ../main.php:1225
372
+ msgid ""
373
+ "Switches the default font size in the dropdown list from \"pt\" to \"px\"."
374
+ msgstr ""
375
+
376
+ #: ../main.php:1233
377
+ msgid "Save Editor Options"
378
+ msgstr ""
379
+
380
+ #: ../main.php:1249
381
+ msgid "Extra Options"
382
+ msgstr ""
383
+
384
+ #: ../main.php:1255
385
+ msgid "Signoff Text"
386
+ msgstr ""
387
+
388
+ #: ../main.php:1256
389
+ msgid ""
390
+ "Use the editor below to create a content chunk that can be inserted anywhere "
391
+ "using the"
392
+ msgstr ""
393
+
394
+ #: ../main.php:1256
395
+ msgid "shortcode."
396
+ msgstr ""
397
+
398
+ #: ../main.php:1307
399
+ msgid "User Specific Options"
400
+ msgstr ""
401
+
402
+ #: ../main.php:1312
403
+ msgid ""
404
+ "These options are stored in individual user meta; meaning each user can set "
405
+ "these options independlently from one another."
406
+ msgstr ""
407
+
408
+ #: ../main.php:1316
409
+ msgid "ID Column"
410
+ msgstr ""
411
+
412
+ #: ../main.php:1319
413
+ msgid "Adds a column to post/page list view for displaying the post/page ID."
414
+ msgstr ""
415
+
416
+ #: ../main.php:1322
417
+ msgid "Thumbnail Column"
418
+ msgstr ""
419
+
420
+ #: ../main.php:1325
421
+ msgid "Adds a column to post/page list view for displaying thumbnails."
422
+ msgstr ""
423
+
424
+ #: ../main.php:1328
425
+ msgid "Hide TEXT Tab"
426
+ msgstr ""
427
+
428
+ #: ../main.php:1331
429
+ msgid "Hide the editor TEXT tab from view."
430
+ msgstr ""
431
+
432
+ #: ../main.php:1334
433
+ msgid "Default VISUAL Tab"
434
+ msgstr ""
435
+
436
+ #: ../main.php:1337
437
+ msgid "Always display VISUAL tab when editor loads."
438
+ msgstr ""
439
+
440
+ #: ../main.php:1340
441
+ msgid "Disable Dashboard Widget"
442
+ msgstr ""
443
+
444
+ #: ../main.php:1343
445
+ msgid "Disables WP Edit Pro News Feed dashboard widget."
446
+ msgstr ""
447
+
448
+ #: ../main.php:1352
449
+ msgid "Post/Page Highlight Colors"
450
+ msgstr ""
451
+
452
+ #: ../main.php:1357
453
+ msgid ""
454
+ "These options will allow each user to customize highlight colors for each "
455
+ "post/page status."
456
+ msgstr ""
457
+
458
+ #: ../main.php:1358
459
+ msgid "Meaning.. saved posts can be yellow, published posts can be blue, etc."
460
+ msgstr ""
461
+
462
+ #: ../main.php:1362
463
+ msgid "Enable Highlights"
464
+ msgstr ""
465
+
466
+ #: ../main.php:1365
467
+ msgid "Enable the Highlight Options below."
468
+ msgstr ""
469
+
470
+ #: ../main.php:1368
471
+ msgid "Draft Highlight"
472
+ msgstr ""
473
+
474
+ #: ../main.php:1373
475
+ msgid "Pending Highlight"
476
+ msgstr ""
477
+
478
+ #: ../main.php:1378
479
+ msgid "Published Highlight"
480
+ msgstr ""
481
+
482
+ #: ../main.php:1383
483
+ msgid "Future Highlight"
484
+ msgstr ""
485
+
486
+ #: ../main.php:1388
487
+ msgid "Private Highlight"
488
+ msgstr ""
489
+
490
+ #: ../main.php:1399
491
+ msgid "Save User Specific Options"
492
+ msgstr ""
493
+
494
+ #: ../main.php:1412
495
+ msgid "Database Options"
496
+ msgstr ""
497
+
498
+ #: ../main.php:1417
499
+ msgid "Export WP Edit Options"
500
+ msgstr ""
501
+
502
+ #: ../main.php:1419
503
+ msgid ""
504
+ "Export the plugin settings for this site as a .json file. This allows you to "
505
+ "easily import the configuration into another site."
506
+ msgstr ""
507
+
508
+ #: ../main.php:1424
509
+ msgid "Export"
510
+ msgstr ""
511
+
512
+ #: ../main.php:1431
513
+ msgid "Import WP Edit Options"
514
+ msgstr ""
515
+
516
+ #: ../main.php:1433
517
+ msgid ""
518
+ "Import the plugin settings from a .json file. This file can be obtained by "
519
+ "exporting the settings on another site using the form above."
520
+ msgstr ""
521
+
522
+ #: ../main.php:1439
523
+ msgid "Import"
524
+ msgstr ""
525
+
526
+ #: ../main.php:1446
527
+ msgid "Reset WP Edit Options"
528
+ msgstr ""
529
+
530
+ #: ../main.php:1448
531
+ msgid "Reset all plugin settings to their original default states."
532
+ msgstr ""
533
+
534
+ #: ../main.php:1459
535
+ msgid "Uninstall WP Edit (Completely)"
536
+ msgstr ""
537
+
538
+ #: ../main.php:1461
539
+ msgid ""
540
+ "Designed by intention, this plugin will not delete the associated database "
541
+ "tables when activating and deactivating."
542
+ msgstr ""
543
+
544
+ #: ../main.php:1462
545
+ msgid ""
546
+ "This ensures the data is kept safe when troubleshooting other WordPress "
547
+ "conflicts."
548
+ msgstr ""
549
+
550
+ #: ../main.php:1463
551
+ msgid ""
552
+ "In order to completely uninstall the plugin, AND remove all associated "
553
+ "database tables, please use the option below."
554
+ msgstr ""
555
+
556
+ #: ../main.php:1468
557
+ msgid "Please confirm before proceeding"
558
+ msgstr ""
559
+
560
+ #: ../main.php:1469
561
+ msgid "Uninstall"
562
+ msgstr ""
563
+
564
+ #: ../main.php:1503
565
+ msgid "Information"
566
+ msgstr ""
567
+
568
+ #: ../main.php:1509
569
+ msgid "Plugin and server version information."
570
+ msgstr ""
571
+
572
+ #: ../main.php:1513
573
+ msgid "WP Edit Pro Version:"
574
+ msgstr ""
575
+
576
+ #: ../main.php:1518
577
+ msgid "WordPress Version:"
578
+ msgstr ""
579
+
580
+ #: ../main.php:1523
581
+ msgid "PHP Version:"
582
+ msgstr ""
583
+
584
+ #: ../main.php:1528
585
+ msgid "HTML Version:"
586
+ msgstr ""
587
+
588
+ #: ../main.php:1533
589
+ msgid "MySql Version:"
590
+ msgstr ""
591
+
592
+ #: ../main.php:1538
593
+ msgid "jQuery Version:"
594
+ msgstr ""
595
+
596
+ #: ../main.php:1549
597
+ msgid "Support"
598
+ msgstr ""
599
+
600
+ #: ../main.php:1554
601
+ msgid "Please use the following helpful links for plugin support."
602
+ msgstr ""
603
+
604
+ #: ../main.php:1558
605
+ msgid "Support Forum:"
606
+ msgstr ""
607
+
608
+ #: ../main.php:1560
609
+ msgid "Support Forum"
610
+ msgstr ""
611
+
612
+ #: ../main.php:1563
613
+ msgid "Knowledge Base:"
614
+ msgstr ""
615
+
616
+ #: ../main.php:1565
617
+ msgid "Knowledge Base"
618
+ msgstr ""
619
+
620
+ #: ../main.php:1574
621
+ msgid "Documentation"
622
+ msgstr ""
623
+
624
+ #: ../main.php:1579
625
+ msgid ""
626
+ "Remember, complete plugin documentation can be found on our <a target="
627
+ "\"_blank\" href=\"http://learn.wpeditpro.com\">Knowledge Base</a>."
628
+ msgstr ""
629
+
630
+ #: ../main.php:1580
631
+ msgid ""
632
+ "Visit the <a target=\"_blank\" href=\"http://learn.wpeditpro.com/category/"
633
+ "plugin-options/\">Knowledge Base Plugin Options</a> page to get started."
634
+ msgstr ""
635
+
636
+ #: ../main.php:1593 ../main.php:1605
637
+ msgid "WP Edit Pro"
638
+ msgstr ""
639
+
640
+ #: ../main.php:1598
641
+ msgid "Upgrade to WP Edit Pro today; and enjoy additional options such as:"
642
+ msgstr ""
643
+
644
+ #: ../main.php:1600
645
+ msgid "4 customizable buttons rows instead of only 2."
646
+ msgstr ""
647
+
648
+ #: ../main.php:1601
649
+ msgid "Over a dozen additional editor buttons."
650
+ msgstr ""
651
+
652
+ #: ../main.php:1602
653
+ msgid "More control and flexibility."
654
+ msgstr ""
655
+
656
+ #: ../main.php:1603
657
+ msgid ""
658
+ "Create multiple button arrangements and assign them to individual users."
659
+ msgstr ""
660
+
661
+ #: ../main.php:1612
662
+ msgid "Like this Plugin?"
663
+ msgstr ""
664
+
665
+ #: ../main.php:1617
666
+ msgid ""
667
+ "Please take a moment to rate and review this plugin on the WordPress Plugin "
668
+ "Repository."
669
+ msgstr ""
670
+
671
+ #: ../main.php:1618
672
+ msgid "Rate Plugin"
673
+ msgstr ""
674
+
675
+ #: ../main.php:1645
676
+ msgid "Plugin settings have been successfully imported."
677
+ msgstr ""
678
+
679
+ #: ../main.php:1667
680
+ msgid "Buttons have been reset successfully."
681
+ msgstr ""
682
+
683
+ #: ../main.php:1711
684
+ msgid "Buttons have been saved successfully."
685
+ msgstr ""
686
+
687
+ #: ../main.php:1792
688
+ msgid ""
689
+ "New buttons were discovered. The following buttons have been added to the "
690
+ "Button Container:"
691
+ msgstr ""
692
+
693
+ #: ../main.php:1855
694
+ msgid "The following buttons have been removed from WP Edit Pro:"
695
+ msgstr ""
696
+
697
+ #: ../main.php:1884
698
+ msgid "Global options successfully saved."
699
+ msgstr ""
700
+
701
+ #: ../main.php:1911
702
+ msgid "General options successfully saved."
703
+ msgstr ""
704
+
705
+ #: ../main.php:1944
706
+ msgid "Revisions successfully deleted"
707
+ msgstr ""
708
+
709
+ #: ../main.php:1946
710
+ msgid "No POST revisions were found to delete"
711
+ msgstr ""
712
+
713
+ #: ../main.php:1959
714
+ msgid "Message: "
715
+ msgstr ""
716
+
717
+ #: ../main.php:1961
718
+ msgid "Database size before deletions: "
719
+ msgstr ""
720
+
721
+ #: ../main.php:1963 ../main.php:1967
722
+ msgid "megabytes."
723
+ msgstr ""
724
+
725
+ #: ../main.php:1965
726
+ msgid "Database Size after deletions: "
727
+ msgstr ""
728
+
729
+ #: ../main.php:1990
730
+ msgid "Posts/Pages options successfully saved."
731
+ msgstr ""
732
+
733
+ #: ../main.php:2013
734
+ msgid "Editor options successfully saved."
735
+ msgstr ""
736
+
737
+ #: ../main.php:2034
738
+ msgid "Extra options saved."
739
+ msgstr ""
740
+
741
+ #: ../main.php:2071
742
+ msgid "User specific options saved."
743
+ msgstr ""
744
+
745
+ #: ../main.php:2086 ../main.php:2126
746
+ msgid "Sorry, your nonce did not verify."
747
+ msgstr ""
748
+
749
+ #: ../main.php:2104
750
+ msgid "Plugin settings have been restored to defaults."
751
+ msgstr ""
752
+
753
+ #: ../main.php:2118
754
+ msgid ""
755
+ "You must also check the confirm box before options will be uninstalled and "
756
+ "deleted."
757
+ msgstr ""
758
+
759
+ #: ../main.php:2237
760
+ msgid "Please upload a valid .json file"
761
+ msgstr ""
762
+
763
+ #: ../main.php:2243
764
+ msgid "Please upload a file to import"
765
+ msgstr ""
766
+
767
+ #: ../main.php:2527
768
+ msgid "Stay Informed"
769
+ msgstr ""
770
+
771
+ #: ../main.php:2529
772
+ msgid ""
773
+ "Please signup to our free <a target=\"_blank\" href=\"http://www.feedblitz."
774
+ "com/f/?Sub=950320\">Feedblitz</a> service; to receive important plugin news, "
775
+ "updates and free offers."
776
+ msgstr ""
777
+
778
+ #: ../main.php:2536
779
+ msgid "Other Plugin News"
780
+ msgstr ""
781
+
782
+ #: ../main.php:2538
783
+ msgid ""
784
+ "* A stable version of WP Edit will soon be available on our <a target="
785
+ "\"_blank\" href=\"https://wpeditpro.com\">Website</a>. The stable version "
786
+ "will contain some options not available in the free version."
787
+ msgstr ""
788
+
789
+ #: ../main.php:2540
790
+ msgid ""
791
+ "* Plugin documentation is being added to our <a target=\"_blank\" href="
792
+ "\"http://learn.wpeditpro.com\">Knowledge Base</a>. Check back frequently for "
793
+ "more tutorial articles."
794
+ msgstr ""
795
+
796
+ #: ../includes/functions.php:151
797
+ msgid "WP Edit Excerpt"
798
+ msgstr ""
799
+
800
+ #: ../includes/functions.php:183
801
+ msgid "Wp Edit Excerpt"
802
+ msgstr ""
803
+
804
+ #: ../includes/functions.php:214
805
+ msgid "Biographical Info"
806
+ msgstr ""
807
+
808
+ #: ../includes/functions.php:221
809
+ msgid ""
810
+ "Share a little biographical information to fill out your profile. This may "
811
+ "be shown publicly."
812
+ msgstr ""
813
+
814
+ #: ../includes/functions.php:258
815
+ msgid "Arbitrary text, HTML, or PHP Code"
816
+ msgstr ""
817
+
818
+ #: ../includes/functions.php:260
819
+ msgid "WP Edit PHP Widget"
820
+ msgstr ""
821
+
822
+ #: ../includes/functions.php:295
823
+ msgid "Title:"
824
+ msgstr ""
825
+
826
+ #: ../includes/functions.php:300
827
+ msgid "Automatically add paragraphs."
828
+ msgstr ""
829
+
830
+ #: ../includes/functions.php:435
831
+ msgid "Toggle wpautop"
832
+ msgstr ""
833
+
834
+ #: ../includes/functions.php:453
835
+ msgid "Select which post types have the option to disable the wpautop filter."
836
+ msgstr ""
837
+
838
+ #: ../includes/functions.php:660
839
+ msgid "ID"
840
+ msgstr ""
841
+
842
+ #: ../includes/functions.php:694
843
+ msgid "Thumbnail"
844
+ msgstr ""
845
+
846
+ #: ../includes/functions.php:705
847
+ msgid "None"
848
+ msgstr ""
849
+
850
+ #: ../includes/functions.php:743
851
+ msgid "WP Edit Pro RSS Feed"
852
+ msgstr ""
853
+
854
+ #: ../includes/functions.php:785
855
+ msgid "Number of posts to show:"
856
+ msgstr ""
langs/wpedit-sr_RS.mo ADDED
Binary file
langs/wpedit-sr_RS.po ADDED
@@ -0,0 +1,1441 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WP Edit\n"
4
+ "POT-Creation-Date: 2014-07-08 12:06-0500\n"
5
+ "PO-Revision-Date: 2014-07-20 18:21+0100\n"
6
+ "Last-Translator: Borisa Djuraskovic <borisad@webhostinghub.com>\n"
7
+ "Language-Team: Josh Lobe <joshlobe@joshlobe.com>\n"
8
+ "Language: English\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.5.7\n"
13
+ "X-Poedit-KeywordsList: __;_e\n"
14
+ "X-Poedit-Basepath: .\n"
15
+ "X-Poedit-SearchPath-0: .\n"
16
+ "X-Poedit-SearchPath-1: ..\n"
17
+
18
+ #: ../functions.php:41 ../main.php:203 ../main.php:1007
19
+ msgid "WP Edit"
20
+ msgstr "WP Edit"
21
+
22
+ #: ../functions.php:49 ../functions.php:52 ../main.php:1015
23
+ msgid "Buttons"
24
+ msgstr "Tasteri"
25
+
26
+ #: ../functions.php:58 ../functions.php:61 ../main.php:1016
27
+ msgid "Global"
28
+ msgstr "Globalno"
29
+
30
+ #: ../functions.php:67 ../functions.php:70 ../main.php:1017
31
+ msgid "General"
32
+ msgstr "Opšte"
33
+
34
+ #: ../functions.php:76 ../functions.php:79 ../main.php:1018
35
+ msgid "Posts/Pages"
36
+ msgstr "Postovi/Stranice"
37
+
38
+ #: ../functions.php:85 ../functions.php:88 ../main.php:1019
39
+ msgid "Editor"
40
+ msgstr "Uređivač"
41
+
42
+ #: ../functions.php:94 ../functions.php:97 ../main.php:1020 ../main.php:1765
43
+ msgid "Fonts"
44
+ msgstr "Fontovi"
45
+
46
+ #: ../functions.php:103 ../functions.php:106
47
+ msgid "Widgets"
48
+ msgstr "Widget-i"
49
+
50
+ #: ../functions.php:112 ../functions.php:115 ../main.php:1022
51
+ msgid "User Specific"
52
+ msgstr "Specifičan korisnik"
53
+
54
+ #: ../functions.php:121 ../functions.php:124 ../main.php:1023
55
+ msgid "Extras"
56
+ msgstr "Dodaci"
57
+
58
+ #: ../functions.php:130 ../functions.php:133 ../main.php:1024
59
+ msgid "Database"
60
+ msgstr "Baza podataka"
61
+
62
+ #: ../functions.php:172
63
+ msgid "WP Edit Excerpt"
64
+ msgstr "Odlomak WP Uređivača"
65
+
66
+ #: ../functions.php:204
67
+ msgid "Wp Edit Excerpt"
68
+ msgstr "Odlomak Wp Uređivača"
69
+
70
+ #: ../functions.php:235
71
+ msgid "Biographical Info"
72
+ msgstr "Biografski podaci"
73
+
74
+ #: ../functions.php:242
75
+ msgid ""
76
+ "Share a little biographical information to fill out your profile. This may "
77
+ "be shown publicly."
78
+ msgstr ""
79
+ "Podelite neke biografske podatke da biste popunili svoj profil. Može biti "
80
+ "javno prikazan."
81
+
82
+ #: ../functions.php:279
83
+ msgid "Arbitrary text, HTML, or PHP Code"
84
+ msgstr "Poizvoljan tekst, HTML ili PHP kod"
85
+
86
+ #: ../functions.php:281
87
+ msgid "WP Edit PHP Widget"
88
+ msgstr "WP Edit PHP Widget"
89
+
90
+ #: ../functions.php:316
91
+ msgid "Title:"
92
+ msgstr "Naziv"
93
+
94
+ #: ../functions.php:321
95
+ msgid "Automatically add paragraphs."
96
+ msgstr "Automatski dodaj paragrafe"
97
+
98
+ #: ../functions.php:487
99
+ msgid "Select which post types have the option to disable the wpautop filter."
100
+ msgstr ""
101
+ "Odaberi koje vrste post-ova imaju opciju deaktiviranja wpautop filtera."
102
+
103
+ #: ../functions.php:542
104
+ msgid "Disable wpautop:"
105
+ msgstr "Deaktiviraj wpautop:"
106
+
107
+ #: ../functions_user.php:125
108
+ msgid "ID"
109
+ msgstr "ID"
110
+
111
+ #: ../functions_user.php:147
112
+ msgid "Thumbnail"
113
+ msgstr "Sličica"
114
+
115
+ #: ../functions_user.php:169
116
+ msgid "None"
117
+ msgstr "Nijedna"
118
+
119
+ #: ../functions_user.php:214
120
+ msgid "WP Edit Pro RSS Feed"
121
+ msgstr "WP Edit Pro RSS Feed"
122
+
123
+ #: ../functions_user.php:257
124
+ msgid "Number of posts to show:"
125
+ msgstr "Broj post-ova za prikazivanje:"
126
+
127
+ #: ../main.php:296
128
+ msgid "User specific options saved."
129
+ msgstr "Specifične opcije korisnika sačuvane"
130
+
131
+ #: ../main.php:316
132
+ msgid "Additional options saved."
133
+ msgstr "Dodatne opcije sačuvane"
134
+
135
+ #: ../main.php:337
136
+ msgid "Tinymce options saved."
137
+ msgstr "Tinymce opcije sačuvane"
138
+
139
+ #: ../main.php:358
140
+ msgid "Global options successfully saved."
141
+ msgstr "Globalne opcije uspešno sačuvane."
142
+
143
+ #: ../main.php:384
144
+ msgid "General options successfully saved."
145
+ msgstr "Opšte opcije uspešno sačuvane."
146
+
147
+ #: ../main.php:417
148
+ msgid "Revisions successfully deleted"
149
+ msgstr "Revizije uspešno obrisane"
150
+
151
+ #: ../main.php:419
152
+ msgid "No POST revisions were found to delete"
153
+ msgstr "Nisu pronađene revizije POST-a za brisanje."
154
+
155
+ #: ../main.php:432
156
+ msgid "Message: "
157
+ msgstr "Poruka"
158
+
159
+ #: ../main.php:434
160
+ msgid "Database size before deletions: "
161
+ msgstr "Veličina baze podataka pre brisanja"
162
+
163
+ #: ../main.php:436 ../main.php:440
164
+ msgid "megabytes."
165
+ msgstr "megabajta"
166
+
167
+ #: ../main.php:438
168
+ msgid "Database Size after deletions: "
169
+ msgstr "Veličina baze podataka posle brisanja"
170
+
171
+ #: ../main.php:462
172
+ msgid "Posts/Pages options successfully saved."
173
+ msgstr "Opcije post-ova/stranica uspešno sačuvane"
174
+
175
+ #: ../main.php:494
176
+ msgid "Editor options successfully saved."
177
+ msgstr "Opcije uređivača uspešno sačuvane."
178
+
179
+ #: ../main.php:516
180
+ msgid "Font options successfully saved."
181
+ msgstr "Opcije fonta uspešno sačuvane."
182
+
183
+ #: ../main.php:546
184
+ msgid "Extra options saved."
185
+ msgstr "Dodatne opcije sačuvane."
186
+
187
+ #: ../main.php:573
188
+ msgid "Editor Rows configuration saved."
189
+ msgstr "Konfiguracija reda urednika sačuvana."
190
+
191
+ #: ../main.php:589
192
+ msgid ""
193
+ "You must also check the confirm box before options will be uninstalled and "
194
+ "deleted."
195
+ msgstr ""
196
+ "Morate štiklirati polje za potvrdu pre nego što deinstalirate i obrišete "
197
+ "opcije."
198
+
199
+ #: ../main.php:597 ../main.php:864
200
+ msgid "Sorry, your nonce did not verify."
201
+ msgstr "Žao nam je, vaš nonce nije verifikovan."
202
+
203
+ #: ../main.php:795
204
+ msgid "Plugin settings have successfully attempted to convert."
205
+ msgstr "Pokušaj da se konvertuju postavke plugin-a bio je uspešan. "
206
+
207
+ #: ../main.php:801
208
+ msgid "Unfortunately, no settings were found to convert."
209
+ msgstr "Nažalost, nisu nađene postavke za konvertovanje."
210
+
211
+ #: ../main.php:807
212
+ msgid " buttons added to row 1 in \"Buttons\" tab."
213
+ msgstr "tasteri dodati 1. redu na tabulatoru \"Buttons\""
214
+
215
+ #: ../main.php:810
216
+ msgid " options updated in \"Global\" tab."
217
+ msgstr "opcije ažurirane na tabulatoru \"Global\""
218
+
219
+ #: ../main.php:813
220
+ msgid " options updated in \"General\" tab."
221
+ msgstr "opcije ažurirane na tabulatoru \"General\""
222
+
223
+ #: ../main.php:816
224
+ msgid " options updated in \"Posts/Pages\" tab."
225
+ msgstr "opcije ažurirane na tabulatoru \"Posts/Pages\""
226
+
227
+ #: ../main.php:819
228
+ msgid " options updated in \"User Specific\" tab."
229
+ msgstr "opcije ažurirane na tabulatoru \"User Specific\""
230
+
231
+ #: ../main.php:822
232
+ msgid " options updated in \"Extras\" tab."
233
+ msgstr "opcije ažurirane na tabulatoru \"Extras\" "
234
+
235
+ #: ../main.php:824
236
+ msgid ""
237
+ "Delete old Ultimate Tinymce database options? (Irreversible; but results in "
238
+ "a cleaner database)"
239
+ msgstr ""
240
+ "Obriši stare ultimativne opcije Tinymce baze podataka? (Nepovratna "
241
+ "aktivnost, ali rezultira čistijom bazom podataka)"
242
+
243
+ #: ../main.php:829
244
+ msgid "Delete"
245
+ msgstr "Obriši"
246
+
247
+ #: ../main.php:830
248
+ msgid "No Thanks"
249
+ msgstr "Ne, hvala"
250
+
251
+ #: ../main.php:850
252
+ msgid "Ultimate Tinymce database options successfully deleted."
253
+ msgstr "Ultimativne opcije Tinymce baze podataka uspešno obrisane."
254
+
255
+ #: ../main.php:852
256
+ msgid "Congratulations! You are now running solid with WP Edit."
257
+ msgstr "Čestitamo! Sada se dobro snalazite sa WP uređivačem."
258
+
259
+ #: ../main.php:885
260
+ msgid "Plugin settings have been restored to defaults."
261
+ msgstr "Postavke za plugin vraćene su na podrazumevane vrednosti."
262
+
263
+ #: ../main.php:899
264
+ msgid "Plugin settings have been successfully imported."
265
+ msgstr "Postavke za plugin uspešno su uvezene."
266
+
267
+ #: ../main.php:951
268
+ msgid "Check successful. No new buttons were discovered."
269
+ msgstr "Provera je bila uspešna. Nisu otkriveni novi tasteri."
270
+
271
+ #: ../main.php:973
272
+ msgid ""
273
+ "Check successful. New buttons have been added to the \"Icon Placeholder "
274
+ "Container\""
275
+ msgstr "Provera uspešna. Novi tasteri dodati na \"Icon Placeholder Container\""
276
+
277
+ #: ../main.php:1021
278
+ msgid "Snidgets"
279
+ msgstr "Snidget-i"
280
+
281
+ #: ../main.php:1038
282
+ msgid "Drag and Drop Panel"
283
+ msgstr "Prevuci i pusti panel"
284
+
285
+ #: ../main.php:1039
286
+ msgid "Editor Rows"
287
+ msgstr "Redovi urednika"
288
+
289
+ #: ../main.php:1067 ../main.php:1165
290
+ msgid "Bold"
291
+ msgstr "Masna slova"
292
+
293
+ #: ../main.php:1068 ../main.php:1166
294
+ msgid "Italic"
295
+ msgstr "Kurziv"
296
+
297
+ #: ../main.php:1069 ../main.php:1167
298
+ msgid "Strikethrough"
299
+ msgstr "Precrtana slova"
300
+
301
+ #: ../main.php:1070 ../main.php:1168
302
+ msgid "Bullet List"
303
+ msgstr "Lista znakova za nabrajanje "
304
+
305
+ #: ../main.php:1071 ../main.php:1169
306
+ msgid "Numbered List"
307
+ msgstr "Lista brojeva za nabrajanje"
308
+
309
+ #: ../main.php:1072 ../main.php:1170
310
+ msgid "Blockquote"
311
+ msgstr "Citat"
312
+
313
+ #: ../main.php:1073 ../main.php:1171
314
+ msgid "Align Left"
315
+ msgstr "Poravnaj levo"
316
+
317
+ #: ../main.php:1074 ../main.php:1172
318
+ msgid "Align Center"
319
+ msgstr "Poravnaj u sredini"
320
+
321
+ #: ../main.php:1075 ../main.php:1173
322
+ msgid "Align Right"
323
+ msgstr "Poravnaj desno"
324
+
325
+ #: ../main.php:1076 ../main.php:1174
326
+ msgid "Link"
327
+ msgstr "Link"
328
+
329
+ #: ../main.php:1077 ../main.php:1175
330
+ msgid "Unlink"
331
+ msgstr "Odvoji"
332
+
333
+ #: ../main.php:1078 ../main.php:1176
334
+ msgid "More"
335
+ msgstr "Više"
336
+
337
+ #: ../main.php:1079 ../main.php:1177
338
+ msgid "Distraction Free"
339
+ msgstr "Bez ometanja"
340
+
341
+ #: ../main.php:1081 ../main.php:1180
342
+ msgid "Format Select"
343
+ msgstr "Odabir formata"
344
+
345
+ #: ../main.php:1082 ../main.php:1181
346
+ msgid "Underline"
347
+ msgstr "Podvuci"
348
+
349
+ #: ../main.php:1083 ../main.php:1182
350
+ msgid "Align Full"
351
+ msgstr "Poravnaj sve"
352
+
353
+ #: ../main.php:1084 ../main.php:1183
354
+ msgid "Foreground Color"
355
+ msgstr "Boja prednjeg plana"
356
+
357
+ #: ../main.php:1085 ../main.php:1184
358
+ msgid "Paste Text"
359
+ msgstr "Nalepi tekst "
360
+
361
+ #: ../main.php:1086 ../main.php:1185
362
+ msgid "Remove Format"
363
+ msgstr "Ukloni format"
364
+
365
+ #: ../main.php:1087 ../main.php:1186
366
+ msgid "Character Map"
367
+ msgstr "Mapa karaktera"
368
+
369
+ #: ../main.php:1088 ../main.php:1187
370
+ msgid "Outdent"
371
+ msgstr "Izvuci tekst "
372
+
373
+ #: ../main.php:1089 ../main.php:1188
374
+ msgid "Indent"
375
+ msgstr "Uvuci tekst"
376
+
377
+ #: ../main.php:1090 ../main.php:1189
378
+ msgid "Undo"
379
+ msgstr "Poništi poslednju komandu"
380
+
381
+ #: ../main.php:1091 ../main.php:1190
382
+ msgid "Redo"
383
+ msgstr "Vrati poslednju komandu"
384
+
385
+ #: ../main.php:1092 ../main.php:1191
386
+ msgid "Help"
387
+ msgstr "Pomoć"
388
+
389
+ #: ../main.php:1095 ../main.php:1194
390
+ msgid "Font Select"
391
+ msgstr "Odabir fonta"
392
+
393
+ #: ../main.php:1096 ../main.php:1195
394
+ msgid "Font Size Select"
395
+ msgstr "Odabir veličine fonta"
396
+
397
+ #: ../main.php:1097 ../main.php:1196
398
+ msgid "Formats"
399
+ msgstr "Formati"
400
+
401
+ #: ../main.php:1098 ../main.php:1197
402
+ msgid "Background Color Picker"
403
+ msgstr "Birač boje pozadine"
404
+
405
+ #: ../main.php:1099 ../main.php:1198
406
+ msgid "Media"
407
+ msgstr "Mediji"
408
+
409
+ #: ../main.php:1100 ../main.php:1199
410
+ msgid "Text Direction Right to Left"
411
+ msgstr "smer teksta s desna na levo"
412
+
413
+ #: ../main.php:1101 ../main.php:1200
414
+ msgid "Text Direction Left to Right"
415
+ msgstr "smer teksta s leva na desno"
416
+
417
+ #: ../main.php:1102 ../main.php:1201
418
+ msgid "Tables"
419
+ msgstr "Tabele"
420
+
421
+ #: ../main.php:1103 ../main.php:1202
422
+ msgid "Anchor"
423
+ msgstr "Anker"
424
+
425
+ #: ../main.php:1104 ../main.php:1203
426
+ msgid "HTML Code"
427
+ msgstr "HTML kod"
428
+
429
+ #: ../main.php:1105 ../main.php:1204
430
+ msgid "Emoticons"
431
+ msgstr "Emotikoni"
432
+
433
+ #: ../main.php:1106 ../main.php:1205
434
+ msgid "Horizontal Rule"
435
+ msgstr "Vodoravno pravilo"
436
+
437
+ #: ../main.php:1107 ../main.php:1206
438
+ msgid "Insert Date Time"
439
+ msgstr "Unesite vreme i datum"
440
+
441
+ #: ../main.php:1108 ../main.php:1207
442
+ msgid "Page Break"
443
+ msgstr "Prelom"
444
+
445
+ #: ../main.php:1109 ../main.php:1208
446
+ msgid "Preview"
447
+ msgstr "Pregled"
448
+
449
+ #: ../main.php:1110 ../main.php:1209
450
+ msgid "Print"
451
+ msgstr "Štampaj"
452
+
453
+ #: ../main.php:1111 ../main.php:1210
454
+ msgid "Search and Replace"
455
+ msgstr "Pretraži i zameni"
456
+
457
+ #: ../main.php:1112 ../main.php:1211
458
+ msgid "Show Blocks"
459
+ msgstr "Prikaži blokade"
460
+
461
+ #: ../main.php:1113 ../main.php:1212
462
+ msgid "Subscript"
463
+ msgstr "Indeks"
464
+
465
+ #: ../main.php:1114 ../main.php:1213
466
+ msgid "Superscript"
467
+ msgstr "Eksponent"
468
+
469
+ #: ../main.php:1115 ../main.php:1214
470
+ msgid "Paragraph Tag"
471
+ msgstr "Oznaka za paragraf"
472
+
473
+ #: ../main.php:1116 ../main.php:1215
474
+ msgid "Line Break"
475
+ msgstr "Novi red"
476
+
477
+ #: ../main.php:1117 ../main.php:1216
478
+ msgid "MailTo Link"
479
+ msgstr "Mail na link"
480
+
481
+ #: ../main.php:1118 ../main.php:1217
482
+ msgid "Lorem Ipsum"
483
+ msgstr "Lorem Ipsum"
484
+
485
+ #: ../main.php:1119 ../main.php:1218
486
+ msgid "Color Picker"
487
+ msgstr "Birač boje"
488
+
489
+ #: ../main.php:1120 ../main.php:1219
490
+ msgid "Shortcodes"
491
+ msgstr "Shortcode-ovi"
492
+
493
+ #: ../main.php:1121 ../main.php:1220
494
+ msgid "YouTube Video"
495
+ msgstr "YouTube Video"
496
+
497
+ #: ../main.php:1122 ../main.php:1221
498
+ msgid "Clker Images"
499
+ msgstr "Clker slike"
500
+
501
+ #: ../main.php:1123 ../main.php:1222
502
+ msgid "Clear Div"
503
+ msgstr "Obriši Div"
504
+
505
+ #: ../main.php:1124 ../main.php:1223
506
+ msgid "Code Magic"
507
+ msgstr "Magic kod"
508
+
509
+ #: ../main.php:1125 ../main.php:1224
510
+ msgid "Accessibility Checker"
511
+ msgstr "Kontrolor pristupačnosti"
512
+
513
+ #: ../main.php:1126 ../main.php:1225
514
+ msgid "Image"
515
+ msgstr "Slika"
516
+
517
+ #: ../main.php:1127 ../main.php:1226
518
+ msgid "Insert/Edit Advanced Link"
519
+ msgstr "Ubaci/Uredi napredni link"
520
+
521
+ #: ../main.php:1128 ../main.php:1227
522
+ msgid "Accessibility Check"
523
+ msgstr "Kontrola pristupačnosti"
524
+
525
+ #: ../main.php:1150
526
+ msgid "Button Placeholder Container"
527
+ msgstr "Taster za čuvanje mesta kontejnera"
528
+
529
+ #: ../main.php:1243
530
+ msgid ""
531
+ "Buttons may be dragged to Row 1 (enabling them); or to the Placeholder "
532
+ "Container (removing them from the editor)."
533
+ msgstr ""
534
+ "Tasteri se mogu prevući u 1. red (i aktivirati) ili do kontejnera nosioca "
535
+ "položaja (uklanjajući ih sa uređivača)"
536
+
537
+ #: ../main.php:1245
538
+ msgid "Buttons may also be sorted within Row 1."
539
+ msgstr "Tasteri se, takođe, mogu sortirati u 1. redu"
540
+
541
+ #: ../main.php:1247
542
+ msgid ""
543
+ "Each time a button is dropped, an ajax call is made which updates all rows. "
544
+ "This feature can be disabled with the additional option."
545
+ msgstr ""
546
+ "Svaki put kad se spusti taster, obavi se ajax poziv koji ažurira sve redove. "
547
+ "Ova funkcija može se deaktivirati dodatnom opcijom."
548
+
549
+ #: ../main.php:1249
550
+ msgid ""
551
+ "Drag and Drop ability for all four rows of the editor is available in WP "
552
+ "Edit Pro."
553
+ msgstr ""
554
+ "Opcija “prevuci i pusti” je na raspolaganju za sve četiri reda u okviru "
555
+ "uređivanja u WP Edit Pro."
556
+
557
+ #: ../main.php:1256
558
+ msgid "Buttons available in Pro"
559
+ msgstr "Tasteri raspoloživi u Pro verziji"
560
+
561
+ #: ../main.php:1286
562
+ msgid "Developer Note"
563
+ msgstr "Napomena programera"
564
+
565
+ #: ../main.php:1291
566
+ msgid ""
567
+ "This plugin is the culmination of two years experience; many, many hours of "
568
+ "hard work and dedication; and a vast presence in the WordPress community."
569
+ msgstr ""
570
+ "Ovaj plugin je kulminacija dve godine iskustva, mnogo, mnogo sati napornog "
571
+ "rada i posvećenosti, kao i prisustva u WordPress zajednici."
572
+
573
+ #: ../main.php:1293
574
+ msgid "If you enjoy this plugin, please show your appreciation via a "
575
+ msgstr ""
576
+ "Ako vam se dopada ovaj plugin, molimo vas da svoju zahvalnost iskažete putem"
577
+
578
+ #: ../main.php:1295
579
+ msgid "PayPal Donation"
580
+ msgstr "PayPal donacije"
581
+
582
+ #: ../main.php:1297
583
+ msgid "Alternatively, the purchase of the "
584
+ msgstr "Ili na drugi način - tako što ćete kupiti "
585
+
586
+ #: ../main.php:1299
587
+ msgid "PRO Version"
588
+ msgstr "PRO verziju"
589
+
590
+ #: ../main.php:1301
591
+ msgid ""
592
+ "offers additional features and extended functionality; while also supporting "
593
+ "the developer."
594
+ msgstr ""
595
+ "koja nudi dodatne mogućnosti i proširenu funkcionalnost; a i podržava "
596
+ "programera."
597
+
598
+ #: ../main.php:1310
599
+ msgid "Additional Options"
600
+ msgstr "Dodatne opcije"
601
+
602
+ #: ../main.php:1317
603
+ msgid "Restore all buttons to default."
604
+ msgstr "Vrati vrednosti svih tastera na podrazumevane"
605
+
606
+ #: ../main.php:1319
607
+ msgid "Reset Buttons"
608
+ msgstr "Vrati tastere na početne vrednosti"
609
+
610
+ #: ../main.php:1323
611
+ msgid "Disable ajax saving of buttons."
612
+ msgstr "Deaktiviraj ajax i uštedi tastere"
613
+
614
+ #: ../main.php:1329
615
+ msgid "Save Button Options"
616
+ msgstr "Opcije sačuvaj taster"
617
+
618
+ #: ../main.php:1345 ../main.php:1739
619
+ msgid "TinyMCE Options"
620
+ msgstr "TinyMCE opcije"
621
+
622
+ #: ../main.php:1354
623
+ msgid "Enable editor menu bar."
624
+ msgstr "Aktiviraj traku sa menijem urednika"
625
+
626
+ #: ../main.php:1361
627
+ msgid "Enable editor context menu."
628
+ msgstr "Aktiviraj kontekst meni urednika"
629
+
630
+ #: ../main.php:1368
631
+ msgid "Save TinyMCE Options"
632
+ msgstr "Sačuvaj TinyMCE opcije"
633
+
634
+ #: ../main.php:1391
635
+ msgid "Global Options"
636
+ msgstr "Globalne opcije"
637
+
638
+ #: ../main.php:1393
639
+ msgid "These options control various items used throughout the plugin."
640
+ msgstr "Ove opcije kontrolišu različite stavke koje se koriste u plugin-u."
641
+
642
+ #: ../main.php:1405
643
+ msgid "jQuery Theme"
644
+ msgstr "jQuery tema"
645
+
646
+ #: ../main.php:1418
647
+ msgid "Selects the jQuery theme for plugin alerts and notices."
648
+ msgstr "Bira jQuery temu za upozorenja i obaveštenja plugin-a."
649
+
650
+ #: ../main.php:1421
651
+ msgid "Disable Admin Links"
652
+ msgstr "Deaktiviraj linkove administratora"
653
+
654
+ #: ../main.php:1424
655
+ msgid "Disables the WP Edit top admin bar links."
656
+ msgstr ""
657
+ "Deaktivira linkove za traku sa menijem za glavnog administratora WP uređivača"
658
+
659
+ #: ../main.php:1430
660
+ msgid "Save Global Options"
661
+ msgstr "Sačuvaj globalne opcije"
662
+
663
+ #: ../main.php:1442
664
+ msgid "General Options"
665
+ msgstr "Opšte opcije"
666
+
667
+ #: ../main.php:1443
668
+ msgid "General plugin options."
669
+ msgstr "Opšte opcije plugin-a"
670
+
671
+ #: ../main.php:1458
672
+ msgid "Linebreak Shortcode"
673
+ msgstr "Shortcode za novi red"
674
+
675
+ #: ../main.php:1461
676
+ msgid "Use the [break] shortcode to insert linebreaks in the editor."
677
+ msgstr "Koristite [break] shortcode da biste ubacili nove redove u uređivač."
678
+
679
+ #: ../main.php:1464
680
+ msgid "Shortcodes in Widgets"
681
+ msgstr "Shortcode-ovi u widget-ima"
682
+
683
+ #: ../main.php:1467
684
+ msgid "Use shortcodes in widget areas."
685
+ msgstr "Koristi shortcode-ove u oblastima widget-a"
686
+
687
+ #: ../main.php:1470
688
+ msgid "Shortcodes in Excerpts"
689
+ msgstr "Shortcode-ovi u odlomcima"
690
+
691
+ #: ../main.php:1473
692
+ msgid "Use shortcodes in excerpt areas."
693
+ msgstr "Koristi shortcode-ove u oblastima odlomaka"
694
+
695
+ #: ../main.php:1476
696
+ msgid "WP Edit Post Excerpt"
697
+ msgstr "WP Edit Post Excerpt"
698
+
699
+ #: ../main.php:1479
700
+ msgid "Add the WP Edit editor to the Post Excerpt area."
701
+ msgstr "Dodaj WP Edit Post Excerpt području uređivača. "
702
+
703
+ #: ../main.php:1482
704
+ msgid "WP Edit Page Excerpt"
705
+ msgstr "WP Edit Page Excerpt"
706
+
707
+ #: ../main.php:1485
708
+ msgid "Add the WP Edit editor to the Page Excerpt area."
709
+ msgstr "Dodaj WP Edit uređivač odlomcima stranica."
710
+
711
+ #: ../main.php:1488
712
+ msgid "Profile Editor"
713
+ msgstr "Uređivač profila"
714
+
715
+ #: ../main.php:1491
716
+ msgid "Use modified editor in profile biography field."
717
+ msgstr "Koristite izmenjeni uređivač u polju biografije profila."
718
+
719
+ #: ../main.php:1494
720
+ msgid "PHP Widgets"
721
+ msgstr "PHP Widget-i"
722
+
723
+ #: ../main.php:1497
724
+ msgid "Adds a new widget for PHP code."
725
+ msgstr "Dodaje novi widget za PHP kod."
726
+
727
+ #: ../main.php:1503
728
+ msgid "Save General Options"
729
+ msgstr "Sačuvaj opšte opcije"
730
+
731
+ #: ../main.php:1516
732
+ msgid "Posts/pages Options"
733
+ msgstr "Opcije za post-ove/stranice"
734
+
735
+ #: ../main.php:1517
736
+ msgid "These options apply specifically to posts and pages."
737
+ msgstr "Ove opcije posebno se primenjuju na post-ovima i stranicama."
738
+
739
+ #: ../main.php:1537
740
+ msgid "Post/Page Default Title"
741
+ msgstr "Podrazumevani naslov post-a/stranice"
742
+
743
+ #: ../main.php:1540
744
+ msgid "Change the default \"add new\" post/page title field."
745
+ msgstr "Promeni podrazumevano polje \"dodaj novi\" post/stranicu "
746
+
747
+ #: ../main.php:1543
748
+ msgid "Column Shortcodes"
749
+ msgstr "Shortcode-ovi kolone"
750
+
751
+ #: ../main.php:1546
752
+ msgid "Enable the column shortcodes functionality."
753
+ msgstr "Aktiviraj funkciju shortcode-ova kolone"
754
+
755
+ #: ../main.php:1549
756
+ msgid "Disable wpautop()"
757
+ msgstr "Deaktiviraj wpautop()"
758
+
759
+ #: ../main.php:1552
760
+ msgid "Disable the filter responsible for removing p and br tags."
761
+ msgstr "Deaktiviraj filter za uklanjanje paragrafa i oznaka redova"
762
+
763
+ #: ../main.php:1558
764
+ msgid "Page Revisions"
765
+ msgstr "Revizije stranice"
766
+
767
+ #: ../main.php:1561
768
+ msgid "Max Post Revisions"
769
+ msgstr "Maksimalan broj revizija po postu"
770
+
771
+ #: ../main.php:1564
772
+ msgid ""
773
+ "Set max number of Post Revisions to store in database. (empty = unlimited)"
774
+ msgstr ""
775
+ "Podesite maksimalan broj revizija posta za čuvanje u bazi podataka (prazno = "
776
+ "neograničen)"
777
+
778
+ #: ../main.php:1567
779
+ msgid "Max Page Revisions"
780
+ msgstr "Maksimalan broj revizija stranice"
781
+
782
+ #: ../main.php:1570
783
+ msgid ""
784
+ "Set max number of Page Revisions to store in database. (empty = unlimited)"
785
+ msgstr ""
786
+ "Podesite maksimalan broj revizija stranica za čuvanje u bazi podataka "
787
+ "(prazno = neograničen)"
788
+
789
+ #: ../main.php:1573
790
+ msgid "Delete Revisions"
791
+ msgstr "Obriši revizije"
792
+
793
+ #: ../main.php:1576
794
+ msgid "Delete all database revisions."
795
+ msgstr "Obriši sve revizije u bazi podataka"
796
+
797
+ #: ../main.php:1579
798
+ msgid "Revisions DB Size"
799
+ msgstr "Veličina revizija u bazi podataka"
800
+
801
+ #: ../main.php:1588
802
+ msgid "Current size of revisions stored in database:"
803
+ msgstr "Trenutna veličina revizija koje se čuvaju u bazi podataka:"
804
+
805
+ #: ../main.php:1596
806
+ msgid "Hide Posts and Pages"
807
+ msgstr "Sakrij postove i stranice"
808
+
809
+ #: ../main.php:1599
810
+ msgid "Hide Admin Posts"
811
+ msgstr "Sakrij postove administratora"
812
+
813
+ #: ../main.php:1602
814
+ msgid "Hide selected posts from admin view. ID comma separated (1,5,14,256)"
815
+ msgstr ""
816
+ "Sakrij odabrane postove od administratora. ID odvojeni zarezima (1,5,14,256)"
817
+
818
+ #: ../main.php:1605
819
+ msgid "Hide Admin Pages"
820
+ msgstr "Sakrij stranice administratora"
821
+
822
+ #: ../main.php:1608
823
+ msgid "Hide selected pages from admin view. ID comma separated (1,5,14,256)"
824
+ msgstr ""
825
+ "Sakrij odabrane stranice od administratora. ID odvojeni zarezima (1,5,14,256)"
826
+
827
+ #: ../main.php:1614
828
+ msgid "Save Posts/Pages Options"
829
+ msgstr "Sačuvaj postove/Opcije stranica"
830
+
831
+ #: ../main.php:1627
832
+ msgid "Styles Options"
833
+ msgstr "Opcije stilova"
834
+
835
+ #: ../main.php:1628
836
+ msgid "Adds predefined styles; which can be applied to editor content."
837
+ msgstr ""
838
+ "Dodaje unapred definisane stilove koji se mogu primeniti na sadržaj "
839
+ "uređivača."
840
+
841
+ #: ../main.php:1629
842
+ msgid "Please be sure the \"Formats\" button is active in the editor."
843
+ msgstr "Proverite da li je taster \"Formati\" aktiviran u uređivaču."
844
+
845
+ #: ../main.php:1630
846
+ msgid "(More styles coming soon in the Pro version)"
847
+ msgstr "(Uskoro će u Pro verziji biti više raspoloživih stilova)"
848
+
849
+ #: ../main.php:1638
850
+ msgid "Add Pre-defined Styles"
851
+ msgstr "Dodaj unapred definisane stilove"
852
+
853
+ #: ../main.php:1641
854
+ msgid "Adds predefined styles to the \"Formats\" dropdown button."
855
+ msgstr "Dodaje unapred definisane stilove opadajućem tasteru \"Formati\" "
856
+
857
+ #: ../main.php:1648
858
+ msgid "Editor Options"
859
+ msgstr "Opcije za uređivač"
860
+
861
+ #: ../main.php:1649
862
+ msgid ""
863
+ "These options will override the initial editor defaults, which will load the "
864
+ "editor using the values below."
865
+ msgstr ""
866
+ "Ove opcije će poništiti početne podrazumevane vrednosti za uređivač "
867
+ "koristeći sledeće vrednosti:"
868
+
869
+ #: ../main.php:1671
870
+ msgid "Enable Editor Settings"
871
+ msgstr "Aktiviraj postavke za uređivač"
872
+
873
+ #: ../main.php:1674
874
+ msgid "Executes the values set below when initiating the content editor."
875
+ msgstr "Izvršava postavljene vrednosti pri pokretanju uređivača sadržaja."
876
+
877
+ #: ../main.php:1678
878
+ msgid "Editor Font"
879
+ msgstr "Font uređivača"
880
+
881
+ #: ../main.php:1681
882
+ msgid "Font Family (ex. Verdana, Arial, Helvetica, sans-serif)"
883
+ msgstr "Porodica fontova (npr. Verdana, Arial, Helvetica, sans-serif)"
884
+
885
+ #: ../main.php:1684
886
+ msgid "Editor Font Color"
887
+ msgstr "Boja fonta uređivača"
888
+
889
+ #: ../main.php:1687
890
+ msgid "Hex Number (ex. 000000)"
891
+ msgstr "Hex broj (npr. 000000)"
892
+
893
+ #: ../main.php:1690
894
+ msgid "Editor Font Size"
895
+ msgstr "Veličina fonta uređivača"
896
+
897
+ #: ../main.php:1693
898
+ msgid "Size (ex. 13px)"
899
+ msgstr "Veličina (npr. 13px)"
900
+
901
+ #: ../main.php:1696
902
+ msgid "Editor Background Color"
903
+ msgstr "Boja pozadine uređivača"
904
+
905
+ #: ../main.php:1699
906
+ msgid "Hex Number (ex. FFFFFF)"
907
+ msgstr "Hex broj (npr. FFFFFF)"
908
+
909
+ #: ../main.php:1702
910
+ msgid "Line Height"
911
+ msgstr "Visina reda"
912
+
913
+ #: ../main.php:1705
914
+ msgid "Size (ex. 19px)"
915
+ msgstr "Veličina (npr. 19px)"
916
+
917
+ #: ../main.php:1708
918
+ msgid "Body Padding"
919
+ msgstr "Postava teksta"
920
+
921
+ #: ../main.php:1711
922
+ msgid "Size (ex. 14px)"
923
+ msgstr "Veličina (npr. 14px)"
924
+
925
+ #: ../main.php:1714
926
+ msgid "Body Margin"
927
+ msgstr "Margina teksta"
928
+
929
+ #: ../main.php:1717
930
+ msgid "Size (ex. 10px)"
931
+ msgstr "Veličina (npr. 10px)"
932
+
933
+ #: ../main.php:1720
934
+ msgid "Text Indent"
935
+ msgstr "Uvlačenje teksta"
936
+
937
+ #: ../main.php:1723
938
+ msgid "Size (ex. 20px)"
939
+ msgstr "Veličina (npr. 20px)"
940
+
941
+ #: ../main.php:1726
942
+ msgid "Text Direction"
943
+ msgstr "Smer teksta"
944
+
945
+ #: ../main.php:1729
946
+ msgid "Direction (ex. ltr)"
947
+ msgstr "Smet (npr. od levog ka desnom)"
948
+
949
+ #: ../main.php:1733
950
+ msgid "Restore Settings"
951
+ msgstr "Vrati postavke na početne vrednosti"
952
+
953
+ #: ../main.php:1740
954
+ msgid ""
955
+ "These options will adjust various parts of the TinyMCE initialization "
956
+ "process."
957
+ msgstr ""
958
+ "Ove opcije će podesiti različite delove inicijalizacije TinyMCE procesa."
959
+
960
+ #: ../main.php:1744
961
+ msgid "Change Font to \"px\""
962
+ msgstr "Promeni Font u \"px\""
963
+
964
+ #: ../main.php:1747
965
+ msgid ""
966
+ "Switches the default font size in the dropdown list from \"pt\" to \"px\"."
967
+ msgstr ""
968
+ "Menja podrazumevanu veličinu fonta u opadajućoj listi iz \"pt\" u \"px\"."
969
+
970
+ #: ../main.php:1753
971
+ msgid "Save Editor Options"
972
+ msgstr "Sačuvaj opcije uređivača"
973
+
974
+ #: ../main.php:1766
975
+ msgid "These settings will enable various fonts in the editor."
976
+ msgstr "Ove postavke će aktivirati različite fontove u uređivaču."
977
+
978
+ #: ../main.php:1779
979
+ msgid "Activate Google Fonts"
980
+ msgstr "Aktiviraj Google fontove"
981
+
982
+ #: ../main.php:1782
983
+ msgid "Turns on/off Google Webfonts."
984
+ msgstr "Uključuje/Isključuje Google web fontove"
985
+
986
+ #: ../main.php:1791
987
+ msgid "Build Font List"
988
+ msgstr "Napravi listu fontova"
989
+
990
+ #: ../main.php:1796
991
+ msgid "Step 1:"
992
+ msgstr "Korak: 1"
993
+
994
+ #: ../main.php:1798
995
+ msgid "Visit "
996
+ msgstr "Poseti"
997
+
998
+ #: ../main.php:1800
999
+ msgid "Google Webfonts"
1000
+ msgstr "Google web fontovi"
1001
+
1002
+ #: ../main.php:1802
1003
+ msgid "to see how fonts are displayed in the browser."
1004
+ msgstr "Da biste videli kako su fontovi prikazani u pretraživaču."
1005
+
1006
+ #: ../main.php:1805
1007
+ msgid "Step 2:"
1008
+ msgstr "Korak 2"
1009
+
1010
+ #: ../main.php:1807
1011
+ msgid ""
1012
+ "Once desired fonts are selected, choose them (one at a time) from the "
1013
+ "dropdown list below (sorted alphabetically)."
1014
+ msgstr ""
1015
+ "Kad selektujete željene fontove, odaberite ih (jedan po jedan) sa opadajuće "
1016
+ "liste (po abecednom redu) "
1017
+
1018
+ #: ../main.php:1816
1019
+ msgid "Something went wrong!"
1020
+ msgstr "Nešto nije u redu!"
1021
+
1022
+ #: ../main.php:1837
1023
+ msgid ""
1024
+ "As fonts are selected, they will appear in the \"Active Fonts\" section "
1025
+ "below."
1026
+ msgstr "Kad odaberete fontove, oni će se pojaviti u delu \"Active Fonts\"."
1027
+
1028
+ #: ../main.php:1847
1029
+ msgid "Active Fonts"
1030
+ msgstr "Aktivni fontovi"
1031
+
1032
+ #: ../main.php:1857
1033
+ msgid "Current Font List"
1034
+ msgstr "Trenutna lista fontova"
1035
+
1036
+ #: ../main.php:1876
1037
+ msgid "Trash Bin"
1038
+ msgstr "Korpa za otpatke"
1039
+
1040
+ #: ../main.php:1880
1041
+ msgid "Drag fonts here to delete..."
1042
+ msgstr "Ovde dovucite fontove za brisanje"
1043
+
1044
+ #: ../main.php:1887
1045
+ msgid "Save Font Options"
1046
+ msgstr "Sačuvaj opcije fonta"
1047
+
1048
+ #: ../main.php:1892
1049
+ msgid "Remember to save the options when finished."
1050
+ msgstr "Ne zaboravite da sačuvate opcije kad završite"
1051
+
1052
+ #: ../main.php:1910
1053
+ msgid "Snidget Options"
1054
+ msgstr "Snidget Opcije"
1055
+
1056
+ #: ../main.php:1911
1057
+ msgid "These options specifically affect how snidgets are handled."
1058
+ msgstr "Ove opcije odnose se na upravljanje snidget-ima"
1059
+
1060
+ #: ../main.php:1922
1061
+ msgid "Snidget Builder"
1062
+ msgstr "Snidget graditelj"
1063
+
1064
+ #: ../main.php:1925
1065
+ msgid "Enables the powerful snidget builder."
1066
+ msgstr "Aktivira moćni graditelj snidget-a."
1067
+
1068
+ #: ../main.php:1934
1069
+ msgid "Save Widget Options"
1070
+ msgstr "Sačuvaj opcije widget-a"
1071
+
1072
+ #: ../main.php:1946
1073
+ msgid "User Specific Options"
1074
+ msgstr "Specifične opcije korisnika"
1075
+
1076
+ #: ../main.php:1947
1077
+ msgid ""
1078
+ "These options are stored in individual user meta; meaning each user can set "
1079
+ "these options independlently from one another."
1080
+ msgstr ""
1081
+ "Ove opcije čuvaju se u individualnom korisničkom meta; što znači da svaki "
1082
+ "korisnik može podesiti ove opcije nezavisno jednu od druge."
1083
+
1084
+ #: ../main.php:1969
1085
+ msgid "Save Scrollbar"
1086
+ msgstr "Sačuvaj traku za skrolovanje"
1087
+
1088
+ #: ../main.php:1972
1089
+ msgid "Saves the editor srollbar position when editing long posts (TEXT mode)."
1090
+ msgstr ""
1091
+ "Čuva poziciju trake za skrolovanje uređivača kad se uređuju dugački post-ovi "
1092
+ "(tekstualni režim)"
1093
+
1094
+ #: ../main.php:1975
1095
+ msgid "ID Column"
1096
+ msgstr "ID kolone"
1097
+
1098
+ #: ../main.php:1978
1099
+ msgid "Adds a column to post/page list view for displaying the post/page ID."
1100
+ msgstr ""
1101
+ "Dodaje kolonu listi post/stranica za prikazivanje ID-ja post-a/stranice"
1102
+
1103
+ #: ../main.php:1981
1104
+ msgid "Thumbnail Column"
1105
+ msgstr "Kolona sličice"
1106
+
1107
+ #: ../main.php:1984
1108
+ msgid "Adds a column to post/page list view for displaying thumbnails."
1109
+ msgstr "Dodaje kolonu listi post/stranica za prikazivanje sličica"
1110
+
1111
+ #: ../main.php:1987
1112
+ msgid "Hide TEXT Tab"
1113
+ msgstr "Sakrij tekstualni tabulator"
1114
+
1115
+ #: ../main.php:1990
1116
+ msgid "Hide the editor TEXT tab from view."
1117
+ msgstr "Sakrij tekstualni tabulator uređivača iz vida"
1118
+
1119
+ #: ../main.php:1993
1120
+ msgid "Default VISUAL Tab"
1121
+ msgstr "Podrazumevani VIZUELNI tabulator"
1122
+
1123
+ #: ../main.php:1996
1124
+ msgid "Always display VISUAL tab when editor loads."
1125
+ msgstr "Uveč prikaži VIZUELNI tabulator kad se učita uređivač"
1126
+
1127
+ #: ../main.php:1999
1128
+ msgid "Disable Dashboard Widget"
1129
+ msgstr "Deaktiviraj widget komandne table"
1130
+
1131
+ #: ../main.php:2002
1132
+ msgid "Disables WP Edit Pro News Feed dashboard widget."
1133
+ msgstr "Deaktivira WP Edit Pro News Feed widget komandne table"
1134
+
1135
+ #: ../main.php:2008
1136
+ msgid "Post/Page Highlight Colors"
1137
+ msgstr "Boje markera post-a/stranice"
1138
+
1139
+ #: ../main.php:2009
1140
+ msgid ""
1141
+ "These options will allow each user to customize highlight colors for each "
1142
+ "post/page status."
1143
+ msgstr ""
1144
+ "Ove opcije će omogućiti svakom korisniku da podesi boje markera za svaki "
1145
+ "status post-a/stranice"
1146
+
1147
+ #: ../main.php:2010
1148
+ msgid "Meaning.. saved posts can be yellow, published posts can be blue, etc."
1149
+ msgstr ""
1150
+ "Znači… Sačuvani post-ovi mogu biti žuti, objavljeni post-ovi mogu biti plavi "
1151
+ "itd."
1152
+
1153
+ #: ../main.php:2014
1154
+ msgid "Enable Highlights"
1155
+ msgstr "Aktiviraj markiranje"
1156
+
1157
+ #: ../main.php:2017
1158
+ msgid "Enable the Highlight Options below."
1159
+ msgstr "Aktiviraj sledeće opcije markiranja"
1160
+
1161
+ #: ../main.php:2020
1162
+ msgid "Draft Highlight"
1163
+ msgstr "Markiranje skice"
1164
+
1165
+ #: ../main.php:2025
1166
+ msgid "Pending Highlight"
1167
+ msgstr "Markiranje na čekanju"
1168
+
1169
+ #: ../main.php:2030
1170
+ msgid "Published Highlight"
1171
+ msgstr "Objavljeno markiranje"
1172
+
1173
+ #: ../main.php:2035
1174
+ msgid "Future Highlight"
1175
+ msgstr "Buduće markiranje"
1176
+
1177
+ #: ../main.php:2040
1178
+ msgid "Private Highlight"
1179
+ msgstr "Tajno markiranje"
1180
+
1181
+ #: ../main.php:2071
1182
+ msgid "Extra Options"
1183
+ msgstr "Dodatne opcije"
1184
+
1185
+ #: ../main.php:2073
1186
+ msgid "Signoff Text"
1187
+ msgstr "Završni tekst"
1188
+
1189
+ #: ../main.php:2074
1190
+ msgid ""
1191
+ "Use the editor below to create a content chunk that can be inserted anywhere "
1192
+ "using the"
1193
+ msgstr ""
1194
+ "Koristite uređivač da kreirate deo sadržaja koji se može ubaciti bilo gde uz"
1195
+
1196
+ #: ../main.php:2074
1197
+ msgid "shortcode."
1198
+ msgstr "shortcode"
1199
+
1200
+ #: ../main.php:2089
1201
+ msgid "QR Codes"
1202
+ msgstr "QR Codes"
1203
+
1204
+ #: ../main.php:2091
1205
+ msgid "Please use the options below to setup your personalized QR Code."
1206
+ msgstr ""
1207
+ "Koristite sledeće opcije da biste postavili svoj personalizovani QR kod"
1208
+
1209
+ #: ../main.php:2098
1210
+ msgid "Enable QR Codes"
1211
+ msgstr "Aktiviraj QR kodove"
1212
+
1213
+ #: ../main.php:2101
1214
+ msgid "A global option which enables all QR Code functionality."
1215
+ msgstr "Globalna opcija koja aktivira funkcionalnost QR koda"
1216
+
1217
+ #: ../main.php:2104
1218
+ msgid "Enable QR Widgets"
1219
+ msgstr "Aktiviraj QR widget-e"
1220
+
1221
+ #: ../main.php:2107
1222
+ msgid "Adds new widget for creating QR codes."
1223
+ msgstr "Dodaje nove widget-e za kreiranje QR kodova"
1224
+
1225
+ #: ../main.php:2116
1226
+ msgid "Design QR Code"
1227
+ msgstr "Dizajn QR koda"
1228
+
1229
+ #: ../main.php:2124
1230
+ msgid "Title Background"
1231
+ msgstr "Naziv pozadine"
1232
+
1233
+ #: ../main.php:2129
1234
+ msgid "Content Background"
1235
+ msgstr "Sadržaj pozadina"
1236
+
1237
+ #: ../main.php:2134
1238
+ msgid "Text Color"
1239
+ msgstr "Boja teksta"
1240
+
1241
+ #: ../main.php:2139
1242
+ msgid "QR Foreground Color"
1243
+ msgstr "QR boja prvog plana"
1244
+
1245
+ #: ../main.php:2144
1246
+ msgid "QR Background Color"
1247
+ msgstr "QR boja pozadine"
1248
+
1249
+ #: ../main.php:2154
1250
+ msgid ""
1251
+ "This is a preview area. Changes will not be written to the database until "
1252
+ "the \"Save Changes\" button is clicked."
1253
+ msgstr ""
1254
+ "Ovo je područje pregleda. Promene neće biti upisane u bazu podataka sve dok "
1255
+ "ne kliknete na taster \"Sačuvaj izmene\""
1256
+
1257
+ #: ../main.php:2156
1258
+ msgid "Preview! (<em>Click \"Save Changes\" to update</em>)"
1259
+ msgstr "Pregled (<em>Click \"Sačuvaj izmene\" da biste ih ažurirali</em>)"
1260
+
1261
+ #: ../main.php:2166
1262
+ msgid ""
1263
+ "This is preview text. Use the editor below to create custom text for your "
1264
+ "posts/pages."
1265
+ msgstr ""
1266
+ "Ovo je tekst pregleda. Koristite uređivač da biste kreirali podrazumevani "
1267
+ "tekst za svoje post-ove/stranice."
1268
+
1269
+ #: ../main.php:2167
1270
+ msgid ""
1271
+ "It is strongly suggested to use highly contrasting colors for the background "
1272
+ "and foreground QR colors."
1273
+ msgstr ""
1274
+ "Preporučujemo vam da koristite boje visokog kontrasta za QR boje pozadine i "
1275
+ "prvog plana."
1276
+
1277
+ #: ../main.php:2179
1278
+ msgid "Title Text"
1279
+ msgstr "Tekst naslova"
1280
+
1281
+ #: ../main.php:2184
1282
+ msgid "Content"
1283
+ msgstr "Sadržaj"
1284
+
1285
+ #: ../main.php:2207
1286
+ msgid "Database Options"
1287
+ msgstr "Opcije baze podataka"
1288
+
1289
+ #: ../main.php:2212
1290
+ msgid "Convert Options from Ultimate Tinymce"
1291
+ msgstr "Konvertujte opcije iz Ultimate Tinymce-a"
1292
+
1293
+ #: ../main.php:2215
1294
+ msgid "Convert any options used by Ultimate Tinymce to WP Edit."
1295
+ msgstr "Konvertujte opcije koje je koristio Ultimate Tinymce za WP uređivanje."
1296
+
1297
+ #: ../main.php:2217
1298
+ msgid "Since so much has changed, not all options may convert successfully."
1299
+ msgstr ""
1300
+ "Pošto je previše opcija promenjeno, možda se neće sve opcije uspešno "
1301
+ "konvertovati."
1302
+
1303
+ #: ../main.php:2219
1304
+ msgid "There will be no harm done to any other plugin or theme options."
1305
+ msgstr "Nijedan drugi plugin, niti opcije teme neće pretrpeti oštećenja."
1306
+
1307
+ #: ../main.php:2223
1308
+ msgid "Convert Options"
1309
+ msgstr "Konvertuj opcije"
1310
+
1311
+ #: ../main.php:2229
1312
+ msgid "Export WP Edit Options"
1313
+ msgstr "Izvezi opcije WP uređivača"
1314
+
1315
+ #: ../main.php:2231
1316
+ msgid ""
1317
+ "Export the plugin settings for this site as a .json file. This allows you to "
1318
+ "easily import the configuration into another site."
1319
+ msgstr ""
1320
+ "Izvezi postavke plugin-a za ovaj site kao .json datoteku. To vam omogućava "
1321
+ "da lako uvezete konfiguraciju na drugi site. "
1322
+
1323
+ #: ../main.php:2236
1324
+ msgid "Export"
1325
+ msgstr "Izvezi"
1326
+
1327
+ #: ../main.php:2243
1328
+ msgid "Import WP Edit Options"
1329
+ msgstr "Uvezi WP Edit Opcije"
1330
+
1331
+ #: ../main.php:2245
1332
+ msgid ""
1333
+ "Import the plugin settings from a .json file. This file can be obtained by "
1334
+ "exporting the settings on another site using the form above."
1335
+ msgstr ""
1336
+ "Uvezi plugin postavke iz .json datoteke. Ova datoteka može se dobiti izvozom "
1337
+ "postavki na drugi site uz pomoć gornjeg obrasca. "
1338
+
1339
+ #: ../main.php:2251
1340
+ msgid "Import"
1341
+ msgstr "Uvezi"
1342
+
1343
+ #: ../main.php:2258
1344
+ msgid "Reset WP Edit Options"
1345
+ msgstr "Ponovo podesi opcije WP uređivača"
1346
+
1347
+ #: ../main.php:2260
1348
+ msgid "Reset all plugin settings to their original default states."
1349
+ msgstr ""
1350
+ "Ponovo podesi sve postavke plugin-a na njihove originalne, podrazumevane "
1351
+ "vrednosti."
1352
+
1353
+ #: ../main.php:2263
1354
+ msgid "Reset Settings"
1355
+ msgstr "Ponovo podesi postavke"
1356
+
1357
+ #: ../main.php:2270
1358
+ msgid "Uninstall WP Edit (Completely)"
1359
+ msgstr "Deinstaliraj WP uređivač (potpuno)"
1360
+
1361
+ #: ../main.php:2272
1362
+ msgid ""
1363
+ "Designed by intention, this plugin will not delete the associated database "
1364
+ "tables when activating and deactivating."
1365
+ msgstr ""
1366
+ "Ovaj plugin namerno je dizajniran tako da neće obrisati tabele pridruženih "
1367
+ "baza podataka prilikom aktiviranja i deaktiviranja."
1368
+
1369
+ #: ../main.php:2273
1370
+ msgid ""
1371
+ "This ensures the data is kept safe when troubleshooting other WordPress "
1372
+ "conflicts."
1373
+ msgstr ""
1374
+ "Na ovaj način, podaci se čuvaju na sigirnom kad se rešavanje problema suoči "
1375
+ "sa WordPress-om."
1376
+
1377
+ #: ../main.php:2274
1378
+ msgid ""
1379
+ "In order to completely uninstall the plugin, AND remove all associated "
1380
+ "database tables, please use the option below."
1381
+ msgstr ""
1382
+ "Da biste potpuno deinstalirali plugin I uklonili sve prateće baze podataka, "
1383
+ "koristite sledeću opciju."
1384
+
1385
+ #: ../main.php:2279
1386
+ msgid "Please confirm before proceeding"
1387
+ msgstr "Potvrdite pre nego što se operacija nastavi"
1388
+
1389
+ #: ../main.php:2280
1390
+ msgid "Uninstall"
1391
+ msgstr "Deinstaliraj"
1392
+
1393
+ #: ../main.php:2377
1394
+ msgid "Please upload a valid .json file"
1395
+ msgstr "Molimo vas, otpremite validnu .json datoteku "
1396
+
1397
+ #: ../main.php:2383
1398
+ msgid "Please upload a file to import"
1399
+ msgstr "Otpremite datoteku za uvoz"
1400
+
1401
+ #: ../main.php:2430
1402
+ msgid "Ajax is working... but having trouble connecting with the database."
1403
+ msgstr "Ajax radi… ali ima problema pri povezivanju sa bazom podataka."
1404
+
1405
+ #: ../main.php:2634
1406
+ msgid "Stay Informed"
1407
+ msgstr "Budite u toku"
1408
+
1409
+ #: ../main.php:2636
1410
+ msgid ""
1411
+ "Please signup to our free <a target=\"_blank\" href=\"http://www.feedblitz."
1412
+ "com/f/?Sub=950320\">Feedblitz</a> service; to receive important plugin news, "
1413
+ "updates and free offers."
1414
+ msgstr ""
1415
+ "Pretplatite se na besplatnu<a target=\"_blank\" href=\"http://www.feedblitz."
1416
+ "com/f/?Sub=950320\"> Feedblitz</a> uslugu da biste dobijali važne novosti o "
1417
+ "plugin-u, ažuriranju i besplatnim ponudama."
1418
+
1419
+ #: ../main.php:2643
1420
+ msgid "Other Plugin News"
1421
+ msgstr "Novosti o ostalim plugin-ovima"
1422
+
1423
+ #: ../main.php:2645
1424
+ msgid ""
1425
+ "* A stable version of WP Edit will soon be available on our <a target="
1426
+ "\"_blank\" href=\"http://wpeditpro.com\">website</a>. The stable version "
1427
+ "will contain some options not available in the free version."
1428
+ msgstr ""
1429
+ "*Stabilna WP Edit verzija uskoro će biti raspoloživa na našem<a target="
1430
+ "\"_blank\" href=\"http://wpeditpro.com\"> web site-u</a>. Stabilna verzija "
1431
+ "sadržaće neke opcije kojih nema u besplatnoj verziji."
1432
+
1433
+ #: ../main.php:2647
1434
+ msgid ""
1435
+ "* Plugin documentation is being added to our <a target=\"_blank\" href="
1436
+ "\"http://learn.wpeditpro.com\">Knowledge Base</a>. Check back frequently for "
1437
+ "more tutorial articles."
1438
+ msgstr ""
1439
+ "* Dokumentacija o plugin-u dodata je našoj<a target=\"_blank\" href=\"http://"
1440
+ "learn.wpeditpro.com\"> bazi znanja</a>. Često je proveravajte jer će se na "
1441
+ "njoj pojavljivati uputstva za rad."
main.php ADDED
@@ -0,0 +1,2729 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Plugin Name: WP Edit
4
+ * Plugin URI: https://wpeditpro.com
5
+ * Description: Ultimate WordPress Content Editing.
6
+ * Version: 3.6
7
+ * Author: Josh Lobe
8
+ * Author URI: https://wpeditpro.com
9
+ * License: GPL2
10
+ * Text Domain: wp-edit
11
+ * Domain Path: /langs
12
+ */
13
+
14
+ /*
15
+ ****************************************************************
16
+ Define plugin url
17
+ ****************************************************************
18
+ */
19
+ define('WPEDIT_PLUGIN_URL', plugins_url('', __FILE__).'/');
20
+ define('WPEDIT_PLUGIN_PATH', plugin_dir_path(__FILE__));
21
+
22
+
23
+ /*
24
+ ****************************************************************
25
+ Begin Plugin Class
26
+ ****************************************************************
27
+ */
28
+ class wp_edit_class {
29
+
30
+ /*
31
+ ****************************************************************
32
+ Define WP Edit Plugin Options
33
+ ****************************************************************
34
+ */
35
+ public $global_options_buttons = array(
36
+ 'toolbar1' => 'bold italic strikethrough bullist numlist blockquote alignleft aligncenter alignright link unlink wp_more hr',
37
+ 'toolbar2' => 'formatselect underline alignjustify forecolor pastetext removeformat charmap outdent indent undo redo wp_help',
38
+ 'toolbar3' => '',
39
+ 'toolbar4' => '',
40
+ 'tmce_container' => 'fontselect fontsizeselect styleselect backcolor media rtl ltr table anchor code emoticons inserttime wp_page preview print searchreplace visualblocks subscript superscript image_orig advlink acheck abbr columnShortcodes nonbreaking eqneditor'
41
+ );
42
+ public $global_options_global = array(
43
+ 'jquery_theme' => 'smoothness',
44
+ 'disable_admin_links' => '0',
45
+ 'disable_fancy_tooltips' => '0'
46
+ );
47
+ public $global_options_general = array(
48
+ 'linebreak_shortcode' => '0',
49
+ 'shortcodes_in_widgets' => '0',
50
+ 'shortcodes_in_excerpts' => '0',
51
+ 'post_excerpt_editor' => '0',
52
+ 'page_excerpt_editor' => '0',
53
+ 'profile_editor' => '0'
54
+ );
55
+ public $global_options_posts = array(
56
+ 'post_title_field' => 'Enter title here',
57
+ 'max_post_revisions' => '',
58
+ 'max_page_revisions' => '',
59
+ 'delete_revisions' => '0',
60
+ 'hide_admin_posts' => '',
61
+ 'hide_admin_pages' => '',
62
+ 'disable_wpautop' => '0',
63
+ 'column_shortcodes' => '0'
64
+ );
65
+ public $global_options_editor = array(
66
+ 'editor_add_pre_styles' => '0',
67
+ 'default_editor_fontsize_type' => 'pt',
68
+ 'default_editor_fontsize_values' => ''
69
+ );
70
+ public $global_options_extras = array(
71
+ 'signoff_text' => 'Please enter text here...'
72
+ );
73
+ public $global_options_user_specific = array(
74
+ 'id_column' => '0',
75
+ 'thumbnail_column' => '0',
76
+ 'hide_text_tab' => '0',
77
+ 'default_visual_tab' => '0',
78
+ 'dashboard_widget' => '0',
79
+ 'enable_highlights' => '0',
80
+
81
+ 'draft_highlight' => '#FFFFFF',
82
+ 'pending_highlight' => '#FFFFFF',
83
+ 'published_highlight' => '#FFFFFF',
84
+ 'future_highlight' => '#FFFFFF',
85
+ 'private_highlight' => '#FFFFFF'
86
+ );
87
+
88
+ // Prepare global settings array (for future use)
89
+ public $wpedit_options_array = array();
90
+
91
+ /*
92
+ ****************************************************************
93
+ Class construct
94
+ ****************************************************************
95
+ */
96
+ public function __construct() {
97
+
98
+ register_activation_hook( __FILE__, array( $this, 'plugin_activate' ) ); // Plugin activation hook
99
+
100
+ add_action('plugins_loaded', array($this, 'wp_edit_load_translation')); // Language localization
101
+
102
+ add_filter('plugin_action_links_'.plugin_basename(__FILE__), array($this, 'plugin_settings_link')); // Set plugin settings links
103
+
104
+ add_action('admin_init', array($this, 'upgrade_notice')); // Dismissable upgrade notice
105
+
106
+ add_action('admin_menu', array($this, 'add_page')); // Register main admin page
107
+ add_action('admin_init', array($this, 'process_activation_redirect')); // Redirect after plugin activation
108
+ add_action('admin_init', array($this, 'process_settings_export')); // Export db options
109
+ add_action('admin_init', array($this, 'process_settings_import')); // Import db options
110
+
111
+ add_action('before_wp_tiny_mce', array($this, 'before_wp_tiny_mce')); // Add dashicons to tinymce
112
+ add_filter('tiny_mce_before_init', array($this, 'wp_edit_tiny_mce_before_init')); // Before tinymce initialization
113
+ add_action('init', array($this, 'wp_edit_init_tinymce')); // Tinymce initialization
114
+
115
+ add_filter('htmledit_pre', array($this, 'htlmedit_pre'), 999); // Filter html content if wpautop is disabled
116
+
117
+ $plugin_file = basename( __FILE__ );
118
+ $plugin_folder = basename( dirname( __FILE__ ) );
119
+ $plugin_hook = "in_plugin_update_message-{$plugin_folder}/{$plugin_file}";
120
+ add_action($plugin_hook, array($this, 'wpedit_plugin_update_cb'), 10, 2); // Plugin update message
121
+ add_action('admin_footer', array($this, 'wpedit_plugin_update_js')); // Plugin update message javascript
122
+ }
123
+
124
+ /*
125
+ ****************************************************************
126
+ Activation hook
127
+ ****************************************************************
128
+ */
129
+ public function plugin_activate() {
130
+
131
+ global $current_user;
132
+
133
+ // Get DB values
134
+ $options_buttons = get_option('wp_edit_buttons');
135
+ $options_global = get_option('wp_edit_global');
136
+ $options_general = get_option('wp_edit_general');
137
+ $options_posts = get_option('wp_edit_posts');
138
+ $options_editor = get_option('wp_edit_editor');
139
+ $options_extras = get_option('wp_edit_extras');
140
+ $options_user_specific = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
141
+
142
+ // Check if DB value exists.. if YES, then keep value.. if NO, then replace with protected defaults
143
+ $options_buttons = $options_buttons ? $options_buttons : $this->global_options_buttons;
144
+ $options_global = $options_global ? $options_global : $this->global_options_global;
145
+ $options_general = $options_general ? $options_general : $this->global_options_general;
146
+ $options_posts = $options_posts ? $options_posts : $this->global_options_posts;
147
+ $options_editor = $options_editor ? $options_editor : $this->global_options_editor;
148
+ $options_extras = $options_extras ? $options_extras : $this->global_options_extras;
149
+ $options_user_specific = $options_user_specific ? $options_user_specific : $this->global_options_user_specific;
150
+
151
+ // Set DB values
152
+ update_option('wp_edit_buttons', $options_buttons);
153
+ update_option('wp_edit_global', $options_global);
154
+ update_option('wp_edit_general', $options_general);
155
+ update_option('wp_edit_posts', $options_posts);
156
+ update_option('wp_edit_editor', $options_editor);
157
+ update_option('wp_edit_extras', $options_extras);
158
+ update_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', $options_user_specific);
159
+
160
+ // Add option for redirect
161
+ add_option('wp_edit_activation_redirect', true);
162
+ }
163
+
164
+ /*
165
+ ****************************************************************
166
+ Language localization
167
+ ****************************************************************
168
+ */
169
+ public function wp_edit_load_translation() {
170
+
171
+ load_plugin_textdomain( 'wp-edit' );
172
+ }
173
+
174
+ /*
175
+ ****************************************************************
176
+ Plugin settings links
177
+ ****************************************************************
178
+ */
179
+ public function plugin_settings_link($links) {
180
+
181
+ $settings_link = '<a href="admin.php?page=wp_edit_options">'.__('Settings', 'wp-edit').'</a>';
182
+ $settings_link2 = '<a target="_blank" href="https://wpeditpro.com">'.__('Go Pro!', 'wp-edit').'</a>';
183
+ array_push( $links, $settings_link, $settings_link2 );
184
+ return $links;
185
+ }
186
+
187
+ /*
188
+ ****************************************************************
189
+ Dismissable upgrade notice
190
+ ****************************************************************
191
+ */
192
+ public function upgrade_notice() {
193
+
194
+ // Define variables
195
+ global $pagenow;
196
+ global $current_user;
197
+ $userid = $current_user->ID;
198
+
199
+ // Check if plugin install date is set in database
200
+ $opt_install = get_option('wp_edit_install');
201
+ if($opt_install === false) {
202
+
203
+ // Set install date to today
204
+ update_option('wp_edit_install', date('Y-m-d'));
205
+ }
206
+
207
+ // Compare install date with today
208
+ $date_install = isset($opt_install) ? $opt_install : date('Y-m-d');
209
+
210
+ // If install date is more than 30 days old...
211
+ if(strtotime($date_install) < strtotime('-30 days')){
212
+
213
+ // If we are only on plugins.php admin page...
214
+ if($pagenow === 'plugins.php') {
215
+
216
+ // If the user clicked to dismiss notice...
217
+ if ( isset( $_GET['dismiss_wpedit_ug_notice'] ) && 'yes' == $_GET['dismiss_wpedit_ug_notice'] ) {
218
+
219
+ // Update user meta
220
+ add_user_meta( $userid, 'ignore_wpedit_ag_notice', 'yes', true );
221
+ }
222
+
223
+ // If user meta is not set...
224
+ if ( !get_user_meta( $userid, 'ignore_wpedit_ag_notice' ) ) {
225
+
226
+ // Alert plugin update message
227
+ function wpedit_wordpress_version_notice() {
228
+
229
+ global $pagenow;
230
+
231
+ echo '<style type="text/css">';
232
+ echo '.wpedit_plugins_page_banner {
233
+ border: 1px solid #d4d4d4;
234
+ margin: 12px 0;
235
+ background: #FFF;
236
+ position: relative;
237
+ overflow: hidden
238
+ }
239
+ .wpedit_plugins_page_banner .text {
240
+ color: #000;
241
+ font-size: 15px;
242
+ line-height: 26px;
243
+ margin: 18px 18px 14px;
244
+ float: left;
245
+ width: auto;
246
+ max-width: 80%;
247
+ }
248
+ .wpedit_plugins_page_banner .text span {
249
+ font-size: 12px;
250
+ opacity: 0.7;
251
+ }
252
+ .wpedit_plugins_page_banner .button {
253
+ float: left;
254
+ border: none;
255
+ font-size: 14px;
256
+ margin: 18px 0 18px 16px;
257
+ padding: 12px 0;
258
+ color: #FFF;
259
+ text-shadow: none;
260
+ font-weight: bold;
261
+ background: #0074A2;
262
+ -moz-border-radius: 3px;
263
+ border-radius: 3px;
264
+ -webkit-border-radius: 3px;
265
+ text-decoration: none;
266
+ height: 50px;
267
+ text-align: center;
268
+ text-transform: uppercase;
269
+ width: 147px;
270
+ box-shadow: none;
271
+ line-height: 26px;
272
+ }
273
+ .wpedit_plugins_page_banner .button:hover,
274
+ .wpedit_plugins_page_banner .button:focus {
275
+ background: #222;
276
+ color: #FFF;
277
+ }
278
+ .wpedit_plugins_page_banner .icon {
279
+ float: right;
280
+ margin: 12px 8px 8px 0;
281
+ }
282
+ .wpedit_plugins_page_banner .close_icon {
283
+ float: right;
284
+ margin: 8px;
285
+ cursor: pointer;
286
+ }';
287
+ echo '</style>';
288
+
289
+ echo '<div class="updated" style="padding: 0; margin: 0; border: none; background: none;">
290
+ <div class="wpedit_plugins_page_banner">
291
+ <a href="'.$pagenow.'?dismiss_wpedit_ug_notice=yes"><img class="close_icon" title="" src="'. plugins_url( 'images/close_banner.png', __FILE__ ) .'" alt=""/></a>
292
+ <div class="button_div">
293
+ <a class="button" target="_blank" href="https://wpeditpro.com">Learn More</a>
294
+ </div>
295
+ <div class="text">
296
+ It\'s time to consider upgrading <strong>WP Edit</strong> to the <strong>PRO</strong> version.<br />
297
+ <span>Extend standard plugin functionality with new, enhanced options.</span>
298
+ </div>
299
+ <div class="icon">
300
+ <img title="" src="'.plugins_url( 'images/banner.png', __FILE__ ).'" alt=""/>
301
+ </div>
302
+ </div>
303
+ </div>';
304
+ }
305
+ add_action('admin_notices', 'wpedit_wordpress_version_notice');
306
+ }
307
+ }
308
+ }
309
+ }
310
+
311
+
312
+ /*
313
+ ****************************************************************
314
+ Page Functions
315
+ ****************************************************************
316
+ */
317
+ public function add_page() {
318
+
319
+ $wp_edit_page = add_menu_page(__('WP Edit', 'wp-edit'), __('WP Edit', 'wp-edit'), 'manage_options', 'wp_edit_options', array($this, 'options_do_page'));
320
+ add_action('admin_print_scripts-'.$wp_edit_page, array($this, 'admin_scripts'));
321
+ add_action('admin_print_styles-'.$wp_edit_page, array($this, 'admin_styles'));
322
+ add_action('load-'.$wp_edit_page, array($this, 'load_page'));
323
+ }
324
+ public function admin_scripts() {
325
+
326
+ wp_enqueue_script('jquery-ui-core');
327
+ wp_enqueue_script('jquery-ui-sortable');
328
+ wp_enqueue_script('jquery-ui-dialog');
329
+ wp_enqueue_script('jquery-ui-tooltip');
330
+ wp_enqueue_script('jquery-ui-tabs');
331
+ wp_enqueue_script('wp-color-picker');
332
+
333
+ wp_register_script( 'wp_edit_js', plugin_dir_url( __FILE__ ) . 'js/admin.js', array() ); // Main Admin Page Script File
334
+ wp_enqueue_script( 'wp_edit_js' );
335
+
336
+ // Pass WP variables to main JS script
337
+ $wp_vars = array( 'jwl_plugin_url' => plugin_dir_url( __FILE__ ));
338
+ wp_localize_script( 'wp_edit_js', 'jwlWpVars', $wp_vars); // Set wp-content
339
+ }
340
+ public function admin_styles() {
341
+
342
+ $options = get_option('wp_edit_global');
343
+ $select_theme = isset($options['jquery_theme']) ? $options['jquery_theme'] : 'smoothness';
344
+
345
+ wp_enqueue_style( 'wp-color-picker' );
346
+ wp_enqueue_style('dashicons');
347
+
348
+ ?><link rel="stylesheet" href="//code.jquery.com/ui/1.10.3/themes/<?php echo $select_theme; ?>/jquery-ui.css"><?php
349
+ ?><link rel="stylesheet" href="<?php echo includes_url().'js/tinymce/skins/lightgray/skin.min.css' ?>"><?php
350
+
351
+ wp_register_style('wp_edit_css', plugin_dir_url( __FILE__ ) . ('css/admin.css'), array()); // css for admin panel presentation
352
+ wp_enqueue_style('wp_edit_css');
353
+ }
354
+
355
+
356
+ /*
357
+ ****************************************************************
358
+ Display Page
359
+ ****************************************************************
360
+ */
361
+ public function options_do_page() {
362
+
363
+ ?>
364
+ <div class="wrap">
365
+
366
+ <div id="icon-themes" class="icon32"></div>
367
+ <h2><?php _e('WP Edit Settings', 'wp-edit'); ?></h2>
368
+
369
+ <?php
370
+ settings_errors();
371
+ $active_tab = isset($_GET['tab']) ? $_GET['tab'] : 'buttons';
372
+ ?>
373
+
374
+ <h2 class="nav-tab-wrapper">
375
+ <a href="?page=wp_edit_options&tab=buttons" class="nav-tab <?php echo $active_tab == 'buttons' ? 'nav-tab-active' : ''; ?>"><?php _e('Buttons', 'wp-edit'); ?></a>
376
+ <a href="?page=wp_edit_options&tab=global" class="nav-tab <?php echo $active_tab == 'global' ? 'nav-tab-active' : ''; ?>"><?php _e('Global', 'wp-edit'); ?></a>
377
+ <a href="?page=wp_edit_options&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General', 'wp-edit'); ?></a>
378
+ <a href="?page=wp_edit_options&tab=posts" class="nav-tab <?php echo $active_tab == 'posts' ? 'nav-tab-active' : ''; ?>"><?php _e('Posts/Pages', 'wp-edit'); ?></a>
379
+ <a href="?page=wp_edit_options&tab=editor" class="nav-tab <?php echo $active_tab == 'editor' ? 'nav-tab-active' : ''; ?>"><?php _e('Editor', 'wp-edit'); ?></a>
380
+ <a href="?page=wp_edit_options&tab=extras" class="nav-tab <?php echo $active_tab == 'extras' ? 'nav-tab-active' : ''; ?>"><?php _e('Extras', 'wp-edit'); ?></a>
381
+ <a href="?page=wp_edit_options&tab=user_specific" class="nav-tab <?php echo $active_tab == 'user_specific' ? 'nav-tab-active' : ''; ?>"><?php _e('User Specific', 'wp-edit'); ?></a>
382
+ <a href="?page=wp_edit_options&tab=database" class="nav-tab <?php echo $active_tab == 'database' ? 'nav-tab-active' : ''; ?>"><?php _e('Database', 'wp-edit'); ?></a>
383
+ <a href="?page=wp_edit_options&tab=about" class="nav-tab <?php echo $active_tab == 'about' ? 'nav-tab-active' : ''; ?>"><?php _e('About', 'wp-edit'); ?></a>
384
+ </h2>
385
+
386
+ <?php
387
+ /*
388
+ ****************************************************************
389
+ Buttons Tab
390
+ ****************************************************************
391
+ */
392
+ if($active_tab == 'buttons'){
393
+
394
+ $options_buttons = get_option('wp_edit_buttons');
395
+
396
+ echo '<div class="main_container">';
397
+
398
+ echo '<div id="main_buttons_container" class="main_buttons_container_float">';
399
+
400
+ echo '<h3>';
401
+ _e('WP Edit Buttons', 'wp-edit');
402
+ echo '</h3>';
403
+ ?>
404
+
405
+ <div class="metabox-holder">
406
+ <div class="postbox">
407
+
408
+ <div class="inside wpep_act_button_area" id="inside_button_hover">
409
+ <h3 style="margin-left:-13px;"><?php _e('Button Rows', 'wp-edit'); ?></h3>
410
+
411
+ <?php
412
+ $no_tooltips = false;
413
+
414
+ $options_global = get_option('wp_edit_global');
415
+ if(isset($options_global['disable_fancy_tooltips']) && $options_global['disable_fancy_tooltips'] === '1') {
416
+
417
+ $no_tooltips = true;
418
+ }
419
+
420
+ // Loop all buttons and create sortable divs
421
+ foreach ($options_buttons as $toolbar => $icons) {
422
+
423
+ if($toolbar === 'tmce_container') {
424
+ ?><h3 style="margin-left:-13px;"><?php _e('Button Container', 'wp-edit'); ?></h3><?php
425
+ }
426
+
427
+ // Disregard rows 3 and 4
428
+ if($toolbar === 'toolbar1' || $toolbar === 'toolbar2' || $toolbar === 'tmce_container') {
429
+
430
+
431
+ echo '<div id="'.$toolbar.'" class="ui-state-default sortable">';
432
+
433
+ // Create array of icons
434
+ if(!empty($icons)) {
435
+ $icons = explode(' ', $icons);
436
+ }
437
+
438
+ // Loop icons (if is array)
439
+ if(is_array($icons)) {
440
+ foreach ($icons as $icon) {
441
+
442
+ $class = ''; $title = ''; $text = ''; $style = ''; $tooltip = array('title' => '', 'content' => '');
443
+
444
+ // WP Buttons included by default
445
+ if($icon === 'bold') {
446
+ $class = 'dashicons dashicons-editor-bold';
447
+ $title = 'Bold';
448
+ $tooltip['title'] = 'Bold';
449
+ $tooltip['content'] = '<p>Apply <strong>bold</strong> to editor text.</p>';
450
+ }
451
+ if($icon === 'italic') {
452
+ $class = 'dashicons dashicons-editor-italic';
453
+ $title = 'Italic';
454
+ $tooltip['title'] = 'Italic';
455
+ $tooltip['content'] = '<p>Apply <em>italic</em> to editor text.</p>';
456
+ }
457
+ if($icon === 'strikethrough') {
458
+ $class = 'dashicons dashicons-editor-strikethrough';
459
+ $title = 'Strikethrough';
460
+ $tooltip['title'] = 'Strikethrough';
461
+ $tooltip['content'] = '<p>Apply <strike>strikethrough</strike> to editor text.</p>';
462
+ }
463
+ if($icon === 'bullist') {
464
+ $class = 'dashicons dashicons-editor-ul';
465
+ $title = 'Bullet List';
466
+ $tooltip['title'] = 'Bullet List';
467
+ $tooltip['content'] = '<p>Create a list of bulleted items.</p>';
468
+ }
469
+ if($icon === 'numlist') {
470
+ $class = 'dashicons dashicons-editor-ol';
471
+ $title = 'Numbered List';
472
+ $tooltip['title'] = 'Numbered List';
473
+ $tooltip['content'] = '<p>Create a list of numbered items.</p>';
474
+ }
475
+ if($icon === 'blockquote') {
476
+ $class = 'dashicons dashicons-editor-quote';
477
+ $title = 'Blockquote';
478
+ $tooltip['title'] = 'Blockquote';
479
+ $tooltip['content'] = '<p>Insert a block level quotation.</p>';
480
+ }
481
+ if($icon === 'hr') {
482
+ $class = 'dashicons dashicons-minus';
483
+ $title = 'Horizontal Rule';
484
+ $tooltip['title'] = 'Horizontal Rule';
485
+ $tooltip['content'] = '<p>Insert a horizontal rule.</p>';
486
+ }
487
+ if($icon === 'alignleft') {
488
+ $class = 'dashicons dashicons-editor-alignleft';
489
+ $title = 'Align Left';
490
+ $tooltip['title'] = 'Align Left';
491
+ $tooltip['content'] = '<p>Align editor content to the left side of the editor.</p>';
492
+ }
493
+ if($icon === 'aligncenter') {
494
+ $class = 'dashicons dashicons-editor-aligncenter';
495
+ $title = 'Align Center';
496
+ $tooltip['title'] = 'Align Center';
497
+ $tooltip['content'] = '<p>Align editor content to the center of the editor.</p>';
498
+ }
499
+ if($icon === 'alignright') {
500
+ $class = 'dashicons dashicons-editor-alignright';
501
+ $title = 'Align Right';
502
+ $tooltip['title'] = 'Align Right';
503
+ $tooltip['content'] = '<p>Align editor content to the right side of the editor.</p>';
504
+ }
505
+ if($icon === 'link') {
506
+ $class = 'dashicons dashicons-admin-links';
507
+ $title = 'Link';
508
+ $tooltip['title'] = 'Link';
509
+ $tooltip['content'] = '<p>Insert a link around currently selected content.</p>';
510
+ }
511
+ if($icon === 'unlink') {
512
+ $class = 'dashicons dashicons-editor-unlink';
513
+ $title = 'Unlink';
514
+ $tooltip['title'] = 'Unlink';
515
+ $tooltip['content'] = '<p>Remove the link around currently selected content.</p>';
516
+ }
517
+ if($icon === 'wp_more') {
518
+ $class = 'dashicons dashicons-editor-insertmore';
519
+ $title = 'More';
520
+ $tooltip['title'] = 'More';
521
+ $tooltip['content'] = '<p>Inserts the read_more() WordPress function; commonly used for excerpts.</p>';
522
+ }
523
+
524
+ if($icon === 'formatselect') {
525
+ $title = 'Format Select';
526
+ $text = 'Paragraph';
527
+ $tooltip['title'] = 'Paragraph';
528
+ $tooltip['content'] = '<p>Adds the Format Select dropdown button; used to select different styles.</p>';
529
+ }
530
+ if($icon === 'underline') {
531
+ $class = 'dashicons dashicons-editor-underline';
532
+ $title = 'Underline';
533
+ $tooltip['title'] = 'Underline';
534
+ $tooltip['content'] = '<p>Apply <u>underline</u> to editor text.</p>';
535
+ }
536
+ if($icon === 'alignjustify') {
537
+ $class = 'dashicons dashicons-editor-justify';
538
+ $title = 'Align Full';
539
+ $tooltip['title'] = 'Align Full';
540
+ $tooltip['content'] = '<p>Align selected content to full width of the page.</p>';
541
+ }
542
+ if($icon === 'forecolor') {
543
+ $class = 'dashicons dashicons-editor-textcolor';
544
+ $title = 'Foreground Color';
545
+ $tooltip['title'] = 'Foreground Color';
546
+ $tooltip['content'] = '<p>Change the foreground color of selected content; commonly used to change text color.</p>';
547
+ }
548
+ if($icon === 'pastetext') {
549
+ $class = 'dashicons dashicons-editor-paste-text';
550
+ $title = 'Paste Text';
551
+ $tooltip['title'] = 'Paste Text';
552
+ $tooltip['content'] = '<p>Paste content as plain text.</p>';
553
+ }
554
+ if($icon === 'removeformat') {
555
+ $class = 'dashicons dashicons-editor-removeformatting';
556
+ $title = 'Remove Format';
557
+ $tooltip['title'] = 'Remove Format';
558
+ $tooltip['content'] = '<p>Remove all current formatting from selected content.</p>';
559
+ }
560
+ if($icon === 'charmap') {
561
+ $class = 'dashicons dashicons-editor-customchar';
562
+ $title = 'Character Map';
563
+ $tooltip['title'] = 'Character Map';
564
+ $tooltip['content'] = '<p>Display a characted map used for inserting special characters.</p>';
565
+ }
566
+ if($icon === 'outdent') {
567
+ $class = 'dashicons dashicons-editor-outdent';
568
+ $title = 'Outdent';
569
+ $tooltip['title'] = 'Outdent';
570
+ $tooltip['content'] = '<p>Outdent selected content; primary used for paragraph elements.</p>';
571
+ }
572
+ if($icon === 'indent') {
573
+ $class = 'dashicons dashicons-editor-indent';
574
+ $title = 'Indent';
575
+ $tooltip['title'] = 'Indent';
576
+ $tooltip['content'] = '<p>Indent selected content; primary used for paragraph elements.</p>';
577
+ }
578
+ if($icon === 'undo') {
579
+ $class = 'dashicons dashicons-undo';
580
+ $title = 'Undo';
581
+ $tooltip['title'] = 'Undo';
582
+ $tooltip['content'] = '<p>Undo last editor action.</p>';
583
+ }
584
+ if($icon === 'redo') {
585
+ $class = 'dashicons dashicons-redo';
586
+ $title = 'Redo';
587
+ $tooltip['title'] = 'Redo';
588
+ $tooltip['content'] = '<p>Redo last editor action.</p>';
589
+ }
590
+ if($icon === 'wp_help') {
591
+ $class = 'dashicons dashicons-editor-help';
592
+ $title = 'Help';
593
+ $tooltip['title'] = 'Help';
594
+ $tooltip['content'] = '<p>Displays helpful information such as editor information and keyboard shortcuts.</p>';
595
+ }
596
+
597
+ // WP Buttons not included by default
598
+ if($icon === 'fontselect') {
599
+ $title = 'Font Select';
600
+ $text = 'Font Family';
601
+ $tooltip['title'] = 'Font Select';
602
+ $tooltip['content'] = '<p>Apply various fonts to the editor selection.</p><p>Also displays fonts from Google Fonts options (if activated).</p>';
603
+ }
604
+ if($icon === 'fontsizeselect') {
605
+ $title = 'Font Size Select';
606
+ $text = 'Font Sizes';
607
+ $tooltip['title'] = 'Font Size Select';
608
+ $tooltip['content'] = '<p>Apply various font sizes to the editor selection.</p><p>Default values can be switched from "pt" to "px" via the Editor tab.</p>';
609
+ }
610
+ if($icon === 'styleselect') {
611
+ $title = 'Formats';
612
+ $text = 'Formats';
613
+ $tooltip['title'] = 'Formats';
614
+ $tooltip['content'] = '<p>Displays quick access to formats like "Headings", "Inline", "Blocks" and "Alignment".</p><p>Any custom styles created (Styles Tab) will also be shown here.</p>';
615
+ }
616
+ if($icon === 'backcolor') {
617
+ $title = 'Background Color Picker';
618
+ $text = '<i class="mce-ico mce-i-backcolor"></i>';
619
+ $tooltip['title'] = 'Background Color Picker';
620
+ $tooltip['content'] = '<p>Change the background color of selected content; commonly used for high-lighting text.</p>';
621
+ }
622
+ if($icon === 'media') {
623
+ $class = 'dashicons dashicons-format-video';
624
+ $title = 'Media';
625
+ $tooltip['title'] = 'Media';
626
+ $tooltip['content'] = '<p>Insert media from an external resource (by link); or embed media content into editor.</p>';
627
+ }
628
+ if($icon === 'rtl') {
629
+ $title = 'Text Direction Right to Left';
630
+ $text = '<i class="mce-ico mce-i-rtl"></i>';
631
+ $tooltip['title'] = 'Text Direction Right to Left';
632
+ $tooltip['content'] = '<p>Forces the text direction from right to left on selected block element.</p>';
633
+ }
634
+ if($icon === 'ltr') {
635
+ $title = 'Text Direction Left to Right';
636
+ $text = '<i class="mce-ico mce-i-ltr"></i>';
637
+ $tooltip['title'] = 'Text Direction Left to Right';
638
+ $tooltip['content'] = '<p>Forces the text direction from left to right on selected block element.</p>';
639
+ }
640
+ if($icon === 'table') {
641
+ $title = 'Tables';
642
+ $text = '<i class="mce-ico mce-i-table"></i>';
643
+ $tooltip['title'] = 'Tables';
644
+ $tooltip['content'] = '<p>Insert, edit and modify html tables.</p>';
645
+ }
646
+ if($icon === 'anchor') {
647
+ $title = 'Anchor';
648
+ $text = '<i class="mce-ico mce-i-anchor"></i>';
649
+ $tooltip['title'] = 'Anchor';
650
+ $tooltip['content'] = '<p>Create an anchor link on the page.</p>';
651
+ }
652
+ if($icon === 'code') {
653
+ $title = 'HTML Code';
654
+ $text = '<i class="mce-ico mce-i-code"></i>';
655
+ $tooltip['title'] = 'HTML Code';
656
+ $tooltip['content'] = '<p>Displays the html code of the editor content; in a popup window.</p><p>This can be helpful when editing code is necessary, but switching editor views is undesirable.</p><p>Also, the "Code Magic" button provides a much better interface.</p>';
657
+ }
658
+ if($icon === 'emoticons') {
659
+ $title = 'Emoticons';
660
+ $text = '<i class="mce-ico mce-i-emoticons"></i>';
661
+ $tooltip['title'] = 'Emoticons';
662
+ $tooltip['content'] = '<p>Opens an overlay window with access to common emoticons.</p>';
663
+ }
664
+ if($icon === 'inserttime') {
665
+ $title = 'Insert Date Time';
666
+ $text = '<i class="mce-ico mce-i-insertdatetime"></i>';
667
+ $tooltip['title'] = 'Insert Date Time';
668
+ $tooltip['content'] = '<p>Inserts the current date and time into the content editor.</p><p>The date format can be adjusted using the "Configuration" tab.</p>';
669
+ }
670
+ if($icon === 'wp_page') {
671
+ $title = 'Page Break';
672
+ $text = '<i class="mce-ico mce-i-pagebreak"></i>';
673
+ $tooltip['title'] = 'Page Break';
674
+ $tooltip['content'] = '<p>Inserts a page break; which can created "paged" sections of the content.</p>';
675
+ }
676
+ if($icon === 'preview') {
677
+ $title = 'Preview';
678
+ $text = '<i class="mce-ico mce-i-preview"></i>';
679
+ $tooltip['title'] = 'Preview';
680
+ $tooltip['content'] = '<p>A quick preview of the editor content.</p>';
681
+ }
682
+ if($icon === 'print') {
683
+ $title = 'Print';
684
+ $text = '<i class="mce-ico mce-i-print"></i>';
685
+ $tooltip['title'] = 'Print';
686
+ $tooltip['content'] = '<p>Print the editor content directly to a printer.</p>';
687
+ }
688
+ if($icon === 'searchreplace') {
689
+ $title = 'Search and Replace';
690
+ $text = '<i class="mce-ico mce-i-searchreplace"></i>';
691
+ $tooltip['title'] = 'Search and Replace';
692
+ $tooltip['content'] = '<p>Search and/or replace the editor content with specific characters.</p>';
693
+ }
694
+ if($icon === 'visualblocks') {
695
+ $title = 'Show Blocks';
696
+ $text = '<i class="mce-ico mce-i-visualblocks"></i>';
697
+ $tooltip['title'] = 'Show Blocks';
698
+ $tooltip['content'] = '<p>Shows all block level editor elements with a light border.</p>';
699
+ }
700
+ if($icon === 'subscript') {
701
+ $title = 'Subscript';
702
+ $text = '<i class="mce-ico mce-i-subscript"></i>';
703
+ $tooltip['title'] = 'Subscript';
704
+ $tooltip['content'] = '<p>Adds a <sub>subscript</sub> to selected editor content (mainly used with text).</p>';
705
+ }
706
+ if($icon === 'superscript') {
707
+ $title = 'Superscript';
708
+ $text = '<i class="mce-ico mce-i-superscript"></i>';
709
+ $tooltip['title'] = 'Superscript';
710
+ $tooltip['content'] = '<p>Adds a <sup>superscript</sup> to selected editor content (mainly used with text).</p>';
711
+ }
712
+ if($icon === 'image_orig') {
713
+ $class = 'dashicons dashicons-format-image';
714
+ $title = 'Image';
715
+ $tooltip['title'] = 'Image';
716
+ $tooltip['content'] = '<p>Insert images (by link).</p>';
717
+ }
718
+ if($icon === 'p_tags_button') {
719
+ $title = 'Paragraph Tag';
720
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/ptags/p_tag.png);width:20px;height:20px;';
721
+ $tooltip['title'] = 'Paragraph Tag';
722
+ $tooltip['content'] = '<p>Insert paragraph tags (along with attributes); which will not be removed from the editor.</p>';
723
+ }
724
+ if($icon === 'line_break_button') {
725
+ $title = 'Line Break';
726
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/linebreak/line_break.png);width:20px;height:20px;';
727
+ $tooltip['title'] = 'Line Break';
728
+ $tooltip['content'] = '<p>Insert line breaks; which will not be removed from the editor.</p><p>This is done by adding a class of "none" to the tag.</p>';
729
+ }
730
+ if($icon === 'mailto') {
731
+ $title = 'MailTo Link';
732
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/mailto/mailto.gif);width:20px;height:20px;';
733
+ $tooltip['title'] = 'MailTo Link';
734
+ $tooltip['content'] = '<p>Turns an email address into an active mail link.</p><p>When clicked, it will open the users default mail client to send a message.</p>';
735
+ }
736
+ if($icon === 'loremipsum') {
737
+ $title = 'Lorem Ipsum';
738
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/loremipsum/loremipsum.png);width:20px;height:20px;';
739
+ $tooltip['title'] = 'Lorem Ipsum';
740
+ $tooltip['content'] = '<p>Esaily insert placeholder text into the editor.</p><p>Select from multiple languages; and choose the number of elements to add.</p>';
741
+ }
742
+ if($icon === 'shortcodes') {
743
+ $title = 'Shortcodes';
744
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/shortcodes/shortcodes.gif);width:20px;height:20px;';
745
+ $tooltip['title'] = 'Shortcodes';
746
+ $tooltip['content'] = '<p>Gathers all available shortcodes and adds them to a dropdown list; for easy editor insertion.</p><p>Note: The shortcodes gathered here do not include any shortcode attributes.</p><p>If shortcode attributes are necessary, they will need to be entered into the shortcode manually.</p>';
747
+ }
748
+ if($icon === 'youTube') {
749
+ $title = 'YouTube Video';
750
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/youTube/images/youtube.png);width:20px;height:20px;';
751
+ $tooltip['title'] = 'YouTube Video';
752
+ $tooltip['content'] = '<p>Browse and insert YouTube videos without ever leaving the editor.</p><p>A custom interface allows browsing YouTube videos directly from the editor.</p>';
753
+ }
754
+ if($icon === 'clker') {
755
+ $title = 'Clker Images';
756
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/clker/img/clker.png);width:20px;height:20px;';
757
+ $tooltip['title'] = 'Clker Images';
758
+ $tooltip['content'] = '<p>Browse and insert images from the Clker.com website.</p>';
759
+ }
760
+ if($icon === 'cleardiv') {
761
+ $title = 'Clear Div';
762
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/cleardiv/images/cleardiv.png);width:20px;height:20px;';
763
+ $tooltip['title'] = 'Clear Div';
764
+ $tooltip['content'] = '<p>Clear editor divs. Selections include "left", "right" and "both".</p>';
765
+ }
766
+ if($icon === 'codemagic') {
767
+ $title = 'Code Magic';
768
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/codemagic/images/codemagic.png);width:20px;height:20px;';
769
+ $tooltip['title'] = 'Code Magic';
770
+ $tooltip['content'] = '<p>An advanced html code editor; view and edit the html code from an overlay window.</p><p>Includes syntax highlighting; search and replace; and proper element spacing.</p><p>This is a great option when editing html code is necessary; but swtiching editor views is undesirable.</p>';
771
+ }
772
+ if($icon === 'acheck') {
773
+ $title = 'Accessibility Checker';
774
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/acheck/img//acheck.png);width:20px;height:20px;';
775
+ $tooltip['title'] = 'Accessibility Checker';
776
+ $tooltip['content'] = '<p>Checks the editor content for accessibility by other devices.</p>';
777
+ }
778
+ if($icon === 'advlink') {
779
+ $title = 'Insert/Edit Advanced Link';
780
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/advlink/images/advlink.png);width:20px;height:20px;';
781
+ $tooltip['title'] = 'Insert/Edit Advanced Link';
782
+ $tooltip['content'] = '<p>Insert and edit links; along with various atttributes.</p><p>Populates with all posts and pages; so linking to current content is a one-click process.</p><p>Also includes javascript attributes (onclick, onmouseover, etc.); which can be used for executing javascript functions.</p>';
783
+ }
784
+ if($icon === 'advhr') {
785
+ $title = 'Advanced Horizontal Line';
786
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/advhr/images/advhr.png);width:20px;height:20px;';
787
+ $tooltip['title'] = 'Advanced Horizontal Line';
788
+ $tooltip['content'] = '<p>Modify various options of the horizontal line; like shadow and width.</p>';
789
+ }
790
+ if($icon === 'advimage') {
791
+ $title = 'Advanced Insert/Edit Image';
792
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/advimage/images//advimage.png);width:20px;height:20px;';
793
+ $tooltip['title'] = 'Advanced Insert/Edit Image';
794
+ $tooltip['content'] = '<p>Insert/Edit images with more control.</p><p>Define image attributes, image margin, image padding and image border.</p><p>Also includes javascript attributes (onclick, onmouseover, etc.); which can be used for executing javascript functions.</p>';
795
+ }
796
+ if($icon === 'formatPainter') {
797
+ $class = 'dashicons dashicons-admin-appearance';
798
+ $title = 'Format Painter';
799
+ $tooltip['title'] = 'Format Painter';
800
+ $tooltip['content'] = '<p>Copies styling from one element; and applies the same styling to another element.</p>';
801
+ }
802
+ if($icon === 'googleImages') {
803
+ $title = 'Google Images';
804
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/googleImages/images/googleImages.png);width:20px;height:20px;';
805
+ $tooltip['title'] = 'Google Images';
806
+ $tooltip['content'] = '<p>Browse and insert Google images without ever leaving the content editor.</p>';
807
+ }
808
+ if($icon === 'abbr') {
809
+ $title = 'Abbreviation';
810
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/abbr/abbr.png);width:20px;height:20px;';
811
+ $tooltip['title'] = 'Abbreviation';
812
+ $tooltip['content'] = '<p>Add an abbreviation to selected editor content.</p>';
813
+ }
814
+ if($icon === 'imgmap') {
815
+ $title = 'Image Map';
816
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/imgmap/images/imgmap.png);width:20px;height:20px;';
817
+ $tooltip['title'] = 'Image Map';
818
+ $tooltip['content'] = '<p>Create an image map from an image.</p><p>Allows multiple "hot spots" on a single image. Each "hot spot" can link to a different url.</p>';
819
+ }
820
+ if($icon === 'columnShortcodes') {
821
+ $class = 'dashicons dashicons-schedule';
822
+ $title = 'Column Shortcodes';
823
+ $tooltip['title'] = 'Column Shortcodes';
824
+ $tooltip['content'] = '<p>A tool for easily inserting column shortcode templates.</p>';
825
+ }
826
+ if($icon === 'nonbreaking') {
827
+ $title = 'Nonbreaking Space';
828
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/nonbreaking/nonbreaking.png);width:20px;height:20px;';
829
+ $tooltip['title'] = 'Nonbreaking Space';
830
+ $tooltip['content'] = '<p>Insert a nonbreaking space; which will not be removed from the editor.</p>';
831
+ }
832
+ if($icon === 'eqneditor') {
833
+ $title = 'CodeCogs Equation Editor';
834
+ $style='background-image:url('.WPEDIT_PLUGIN_URL.'plugins/eqneditor/img/eqneditor.png);width:20px;height:20px;';
835
+ $tooltip['title'] = 'CodeCogs Equation Editor';
836
+ $tooltip['content'] = '<p>Create complex math equations from a simple interface.</p>';
837
+ }
838
+
839
+ // Process tooltips
840
+ $tooltip_title = isset($tooltip['title']) ? $tooltip['title'] : 'Title not found';
841
+ $tooltip_content = isset($tooltip['content']) ? $tooltip['content'] : '<p>Content not found. Please report to the plugin developer.</p>';
842
+
843
+ // Are we displaying fancy tooltips?
844
+
845
+ $tooltip_att = ($no_tooltips === false) ? 'data-tooltip="<h4 class=\'data_tooltip_title\'>'.htmlspecialchars($tooltip_title).'</h4><hr />'.htmlspecialchars($tooltip_content).'" ' : '';
846
+
847
+ // Display button
848
+ echo '<div '.$tooltip_att.' id="'.$icon.'" class="ui-state-default draggable '.$class.'" title="'.$title.'"><span style="'.esc_attr($style).'">'.$text.'</span></div>';
849
+ }
850
+ }
851
+ echo '</div>'; // End foreach .sortable
852
+ } // End not rows 3 and 4
853
+ }
854
+ ?>
855
+ </div> <!-- End #inside_button_hover -->
856
+ </div> <!-- End .postbox -->
857
+ </div> <!-- End .metabox -->
858
+ </div> <!-- End .main_buttons_container_float -->
859
+ <?php
860
+
861
+ // Build input for passing button arrangements
862
+ echo '<form method="post" action="">';
863
+
864
+ echo '<input type="hidden" class="get_sorted_array" name="get_sorted_array_results" value="" />';
865
+
866
+ // Submit save buttons
867
+ echo '<input type="submit" value="'.__('Save Buttons', 'wp-edit').'" name="wpep_save_buttons" class="button-primary" />';
868
+
869
+ // Submit reset buttons
870
+ echo '<span style="margin-left:10px;"></span>';
871
+ echo '<input type="button" value="'.__('Reset Buttons', 'wp-edit').'" class="button-primary reset_dd_buttons" />';
872
+ echo '<input type="submit" name="wpep_reset_buttons" class="button-primary wpep_reset_buttons" style="display:none;" />';
873
+
874
+ echo '</form>';
875
+ echo '</div>';
876
+
877
+ echo '<div class="main_container">';
878
+
879
+ echo '<h3>';
880
+ _e('Buttons Tips', 'wp-edit');
881
+ echo '</h3>';
882
+ ?>
883
+
884
+ <div class="metabox-holder">
885
+ <div class="postbox">
886
+ <div class="inside">
887
+
888
+ <div id="button_help_tabs">
889
+
890
+ <ul>
891
+ <li><a href="#dragdrop"><?php _e('Drag/Drop', 'wp-edit'); ?></a></li>
892
+ <li><a href="#multiselect"><?php _e('Multi Select', 'wp-edit'); ?></a></li>
893
+ <li><a href="#reset"><?php _e('Reset', 'wp-edit'); ?></a></li>
894
+ </ul>
895
+
896
+ <div id="dragdrop">
897
+ <p><?php _e('Buttons can be dragged and dropped into desired button rows.', 'wp-edit'); ?></p>
898
+ <p><?php _e('The "Button Container" is a placeholder for buttons not used in the editor; these buttons will not appear when editing a post or page.', 'wp-edit'); ?></p>
899
+ </div>
900
+ <div id="multiselect">
901
+ <p><?php _e('Buttons may also be selected in quantities; or multiple selections, before being moved.', 'wp-edit'); ?></p>
902
+ <p><?php _e('Clicking a button will set it as "active"; a yellowish highlight color. Multiple buttons can be clicked and set as "active".', 'wp-edit'); ?></p>
903
+ <p><?php _e('Clicking and dragging one of the "active" buttons will move the entire "active" selection.', 'wp-edit'); ?></p>
904
+ <p><?php _e('Clicking outside the button area will remove all currently active button selections.', 'wp-edit'); ?></p>
905
+ </div>
906
+ <div id="reset">
907
+ <p><?php _e('Clicking "Reset Buttons" will restore the editor buttons to their original default values.', 'wp-edit'); ?></p>
908
+ <p><?php _e('All button rows will get the default WordPress button arrangements; and the extra buttons will be added to the "Button Container".', 'wp-edit'); ?></p>
909
+ </div>
910
+ </div>
911
+ </div>
912
+ </div>
913
+ </div>
914
+ <?php
915
+ echo '</div>';
916
+ }
917
+ /*
918
+ ****************************************************************
919
+ Global Tab
920
+ ****************************************************************
921
+ */
922
+ else if($active_tab == 'global') {
923
+
924
+ echo '<div class="main_container">';
925
+
926
+ ?>
927
+ <h3><?php _e('Global Options', 'wp-edit'); ?></h3>
928
+ <form method="post" action="">
929
+ <div class="metabox-holder">
930
+ <div class="postbox">
931
+ <div class="inside">
932
+
933
+ <?php
934
+ $options_global = get_option('wp_edit_global');
935
+ $jquery_theme = isset($options_global['jquery_theme']) ? $options_global['jquery_theme'] : 'smoothness';
936
+ $disable_admin_links = isset($options_global['disable_admin_links']) && $options_global['disable_admin_links'] === '1' ? 'checked="checked"' : '';
937
+ $disable_fancy_tooltips = isset($options_global['disable_fancy_tooltips']) && $options_global['disable_fancy_tooltips'] === '1' ? 'checked="checked"' : '';
938
+ ?>
939
+
940
+ <table cellpadding="10">
941
+ <tbody>
942
+ <tr><td><?php _e('jQuery Theme', 'wp-edit'); ?></td>
943
+ <td>
944
+
945
+ <select id="jquery_theme" name="jquery_theme"/>
946
+ <?php
947
+ $jquery_themes = array('base','black-tie','blitzer','cupertino','dark-hive','dot-luv','eggplant','excite-bike','flick','hot-sneaks','humanity','le-frog','mint-choc','overcast','pepper-grinder','redmond','smoothness','south-street','start','sunny','swanky-purse','trontastic','ui-darkness','ui-lightness','vader');
948
+
949
+ foreach($jquery_themes as $jquery_theme) {
950
+ $selected = ($options_global['jquery_theme']==$jquery_theme) ? 'selected="selected"' : '';
951
+ echo "<option value='$jquery_theme' $selected>$jquery_theme</option>";
952
+ }
953
+ ?>
954
+ </select>
955
+ <label for="jquery_theme"> <?php _e('Selects the jQuery theme for plugin alerts and notices.', 'wp-edit'); ?></label>
956
+ </td>
957
+ </tr>
958
+ <tr><td><?php _e('Disable Admin Links', 'wp-edit'); ?></td>
959
+ <td>
960
+ <input id="disable_admin_links" type="checkbox" value="1" name="disable_admin_links" <?php echo $disable_admin_links; ?> />
961
+ <label for="disable_admin_links"><?php _e('Disables the WP Edit top admin bar links.', 'wp-edit'); ?></label>
962
+ </td>
963
+ </tr>
964
+ <tr><td><?php _e('Disable Fancy Tooltips', 'wp-edit'); ?></td>
965
+ <td>
966
+ <input id="disable_fancy_tooltips" type="checkbox" value="1" name="disable_fancy_tooltips" <?php echo $disable_fancy_tooltips; ?> />
967
+ <label for="disable_fancy_tooltips"><?php _e('Disables the fancy tooltips used on button hover.', 'wp-edit'); ?></label>
968
+ </td>
969
+ </tr>
970
+ </tbody>
971
+ </table>
972
+ </div>
973
+ </div>
974
+ </div>
975
+ <input type="submit" value="<?php _e('Save Global Options', 'wp-edit'); ?>" class="button button-primary" id="submit_global" name="submit_global">
976
+ </form>
977
+ <?php
978
+ echo '</div>';
979
+ }
980
+ /*
981
+ ****************************************************************
982
+ General Tab
983
+ ****************************************************************
984
+ */
985
+ else if($active_tab == 'general'){
986
+
987
+ echo '<div class="main_container">';
988
+
989
+ ?>
990
+ <h3><?php _e('General Options', 'wp-edit'); ?></h3>
991
+ <form method="post" action="">
992
+ <div class="metabox-holder">
993
+ <div class="postbox">
994
+ <div class="inside">
995
+
996
+ <?php
997
+ $options_general = get_option('wp_edit_general');
998
+ $linebreak_shortcode = isset($options_general['linebreak_shortcode']) && $options_general['linebreak_shortcode'] === '1' ? 'checked="checked"' : '';
999
+ $shortcodes_in_widgets = isset($options_general['shortcodes_in_widgets']) && $options_general['shortcodes_in_widgets'] === '1' ? 'checked="checked"' : '';
1000
+ $shortcodes_in_excerpts = isset($options_general['shortcodes_in_excerpts']) && $options_general['shortcodes_in_excerpts'] === '1' ? 'checked="checked"' : '';
1001
+ $post_excerpt_editor = isset($options_general['post_excerpt_editor']) && $options_general['post_excerpt_editor'] === '1' ? 'checked="checked"' : '';
1002
+ $page_excerpt_editor = isset($options_general['page_excerpt_editor']) && $options_general['page_excerpt_editor'] === '1' ? 'checked="checked"' : '';
1003
+ $profile_editor = isset($options_general['profile_editor']) && $options_general['profile_editor'] === '1' ? 'checked="checked"' : '';
1004
+ ?>
1005
+
1006
+ <table cellpadding="8">
1007
+ <tbody>
1008
+ <tr><td><?php _e('Linebreak Shortcode', 'wp-edit'); ?></td>
1009
+ <td>
1010
+ <input id="linebreak_shortcode" type="checkbox" value="1" name="linebreak_shortcode" <?php echo $linebreak_shortcode; ?> />
1011
+ <label for="linebreak_shortcode"><?php _e('Use the [break] shortcode to insert linebreaks in the editor.', 'wp-edit'); ?></label>
1012
+ </td>
1013
+ </tr>
1014
+ <tr><td><?php _e('Shortcodes in Widgets', 'wp-edit'); ?></td>
1015
+ <td>
1016
+ <input id="shortcodes_in_widgets" type="checkbox" value="1" name="shortcodes_in_widgets" <?php echo $shortcodes_in_widgets; ?> />
1017
+ <label for="shortcodes_in_widgets"><?php _e('Use shortcodes in widget areas.', 'wp-edit'); ?></label>
1018
+ </td>
1019
+ </tr>
1020
+ <tr><td><?php _e('Shortcodes in Excerpts', 'wp-edit'); ?></td>
1021
+ <td>
1022
+ <input id="shortcodes_in_excerpts" type="checkbox" value="1" name="shortcodes_in_excerpts" <?php echo $shortcodes_in_excerpts; ?> />
1023
+ <label for="shortcodes_in_excerpts"><?php _e('Use shortcodes in excerpt areas.', 'wp-edit'); ?></label>
1024
+ </td>
1025
+ </tr>
1026
+ <tr><td><?php _e('WP Edit Post Excerpt', 'wp-edit'); ?></td>
1027
+ <td>
1028
+ <input id="post_excerpt_editor" type="checkbox" value="1" name="post_excerpt_editor" <?php echo $post_excerpt_editor; ?> />
1029
+ <label for="post_excerpt_editor"><?php _e('Add the WP Edit editor to the Post Excerpt area.', 'wp-edit'); ?></label>
1030
+ </td>
1031
+ </tr>
1032
+ <tr><td><?php _e('WP Edit Page Excerpt', 'wp-edit'); ?></td>
1033
+ <td>
1034
+ <input id="page_excerpt_editor" type="checkbox" value="1" name="page_excerpt_editor" <?php echo $page_excerpt_editor; ?> />
1035
+ <label for="page_excerpt_editor"><?php _e('Add the WP Edit editor to the Page Excerpt area.', 'wp-edit'); ?></label>
1036
+ </td>
1037
+ </tr>
1038
+ <tr><td><?php _e('Profile Editor', 'wp-edit'); ?></td>
1039
+ <td class="jwl_user_cell">
1040
+ <input id="profile_editor" type="checkbox" value="1" name="profile_editor" <?php echo $profile_editor; ?> />
1041
+ <label for="profile_editor"><?php _e('Use modified editor in profile biography field.', 'wp-edit'); ?></label>
1042
+ </td>
1043
+ </tr>
1044
+ </tbody>
1045
+ </table>
1046
+ </div>
1047
+ </div>
1048
+ </div>
1049
+
1050
+ <input type="submit" value="<?php _e('Save General Options', 'wp-edit'); ?>" class="button button-primary" id="submit_general" name="submit_general">
1051
+ </form>
1052
+ <?php
1053
+ echo '</div>';
1054
+ }
1055
+ /*
1056
+ ****************************************************************
1057
+ Posts/Pages Tab
1058
+ ****************************************************************
1059
+ */
1060
+ else if($active_tab == 'posts'){
1061
+
1062
+ $options_posts = get_option('wp_edit_posts');
1063
+
1064
+ $post_title_field = isset($options_posts['post_title_field']) ? $options_posts['post_title_field'] : 'Enter title here';
1065
+ $column_shortcodes = isset($options_posts['column_shortcodes']) && $options_posts['column_shortcodes'] === '1' ? 'checked="checked"' : '';
1066
+ $disable_wpautop = isset($options_posts['disable_wpautop']) && $options_posts['disable_wpautop'] === '1' ? 'checked="checked"' : '';
1067
+
1068
+ $max_post_revisions = isset($options_posts['max_post_revisions']) ? $options_posts['max_post_revisions'] : '';
1069
+ $max_page_revisions = isset($options_posts['max_page_revisions']) ? $options_posts['max_page_revisions'] : '';
1070
+
1071
+ $hide_admin_posts = isset($options_posts['hide_admin_posts']) ? $options_posts['hide_admin_posts'] : '';
1072
+ $hide_admin_pages = isset($options_posts['hide_admin_pages']) ? $options_posts['hide_admin_pages'] : '';
1073
+
1074
+ echo '<div class="main_container">';
1075
+
1076
+ ?>
1077
+ <h3><?php _e('Posts/pages Options', 'wp-edit'); ?></h3>
1078
+ <form method="post" action="">
1079
+ <div class="metabox-holder">
1080
+ <div class="postbox">
1081
+ <div class="inside">
1082
+ <table cellpadding="8">
1083
+ <tbody>
1084
+ <tr><td><?php _e('Post/Page Default Title', 'wp-edit'); ?></td>
1085
+ <td>
1086
+ <input type="text" name="post_title_field" value="<?php echo $post_title_field ?>" />
1087
+ <label for="post_title_field"><?php _e('Change the default "add new" post/page title field.', 'wp-edit'); ?></label>
1088
+ </td>
1089
+ </tr>
1090
+ <tr><td><?php _e('Column Shortcodes', 'wp-edit'); ?></td>
1091
+ <td>
1092
+ <input id="column_shortcodes" type="checkbox" value="1" name="column_shortcodes" <?php echo $column_shortcodes; ?> />
1093
+ <label for="column_shortcodes"><?php _e('Enable the column shortcodes functionality.', 'wp-edit'); ?></label>
1094
+ </td>
1095
+ </tr>
1096
+ <tr><td><?php _e('Disable wpautop()', 'wp-edit'); ?></td>
1097
+ <td>
1098
+ <input id="disable_wpautop" type="checkbox" value="1" name="disable_wpautop" <?php echo $disable_wpautop; ?> />
1099
+ <label for="disable_wpautop"><?php _e('Disable the filter responsible for removing p and br tags.', 'wp-edit'); ?></label>
1100
+ </td>
1101
+ </tr>
1102
+ </tbody>
1103
+ </table>
1104
+ </div>
1105
+ </div>
1106
+ </div>
1107
+
1108
+ <h3><?php _e('Page Revisions', 'wp-edit'); ?></h3>
1109
+ <div class="metabox-holder">
1110
+ <div class="postbox">
1111
+ <div class="inside">
1112
+ <table cellpadding="8">
1113
+ <tbody>
1114
+ <tr><td><?php _e('Max Post Revisions', 'wp-edit'); ?></td>
1115
+ <td>
1116
+ <input type="text" name="max_post_revisions" value="<?php echo $max_post_revisions ?>" />
1117
+ <label for="max_post_revisions"><?php _e('Set max number of Post Revisions to store in database. (empty = unlimited)', 'wp-edit'); ?></label>
1118
+ </td>
1119
+ </tr>
1120
+ <tr><td><?php _e('Max Page Revisions', 'wp-edit'); ?></td>
1121
+ <td>
1122
+ <input type="text" name="max_page_revisions" value="<?php echo $max_page_revisions ?>" />
1123
+ <label for="max_page_revisions"><?php _e('Set max number of Page Revisions to store in database. (empty = unlimited)', 'wp-edit'); ?></label>
1124
+ </td>
1125
+ </tr>
1126
+ <tr><td><?php _e('Delete Revisions', 'wp-edit'); ?></td>
1127
+ <td>
1128
+ <input id="delete_revisions" type="checkbox" value="1" name="delete_revisions" />
1129
+ <label for="delete_revisions"><?php _e('Delete all database revisions.', 'wp-edit'); ?></label>
1130
+ </td>
1131
+ </tr>
1132
+ <tr><td><?php _e('Revisions DB Size', 'wp-edit'); ?></td>
1133
+ <td>
1134
+ <?php
1135
+ global $wpdb;
1136
+ $query = $wpdb->get_results( "SELECT * FROM $wpdb->posts WHERE post_type = 'revision'", ARRAY_A );
1137
+ $lengths = 0;
1138
+ foreach ($query as $row) {
1139
+ $lengths += strlen($row['post_content']);
1140
+ }
1141
+ _e('Current size of revisions stored in database:', 'wp-edit');
1142
+ echo ' <strong>'.number_format($lengths/(1024*1024),3).' mb</strong>';
1143
+ ?>
1144
+ </td>
1145
+ </tr>
1146
+ </tbody>
1147
+ </table>
1148
+ </div>
1149
+ </div>
1150
+ </div>
1151
+
1152
+ <h3><?php _e('Hide Posts and Pages', 'wp-edit'); ?></h3>
1153
+ <div class="metabox-holder">
1154
+ <div class="postbox">
1155
+ <div class="inside">
1156
+ <table cellpadding="8">
1157
+ <tbody>
1158
+ <tr><td><?php _e('Hide Admin Posts', 'wp-edit'); ?></td>
1159
+ <td>
1160
+ <input type="text" name="hide_admin_posts" value="<?php echo $hide_admin_posts ?>" />
1161
+ <label for="hide_admin_posts"><?php _e('Hide selected posts from admin view. ID comma separated (1,5,14,256)', 'wp-edit'); ?></label>
1162
+ </td>
1163
+ </tr>
1164
+ <tr><td><?php _e('Hide Admin Pages', 'wp-edit'); ?></td>
1165
+ <td>
1166
+ <input type="text" name="hide_admin_pages" value="<?php echo $hide_admin_pages ?>" />
1167
+ <label for="hide_admin_pages"><?php _e('Hide selected pages from admin view. ID comma separated (1,5,14,256)', 'wp-edit'); ?></label>
1168
+ </td>
1169
+ </tr>
1170
+ </tbody>
1171
+ </table>
1172
+ </div>
1173
+ </div>
1174
+ </div>
1175
+ <input type="submit" value="<?php _e('Save Posts/Pages Options', 'wp-edit'); ?>" class="button button-primary" id="submit_posts" name="submit_posts">
1176
+ </form>
1177
+ <?php
1178
+ echo '</div>';
1179
+ }
1180
+ /*
1181
+ ****************************************************************
1182
+ Editor Tab
1183
+ ****************************************************************
1184
+ */
1185
+ else if($active_tab == 'editor'){
1186
+
1187
+ ?>
1188
+ <form method="post" action="">
1189
+ <div class="main_container">
1190
+
1191
+ <h3><?php _e('Styles Options', 'wp-edit'); ?></h3>
1192
+ <div class="metabox-holder">
1193
+ <div class="postbox">
1194
+ <div class="inside">
1195
+ <p style="margin-left:10px;"><?php _e('Adds predefined styles; which can be applied to editor content.', 'wp-edit'); ?><br />
1196
+ <?php _e('Please be sure the "Formats" button is active in the editor.', 'wp-edit'); ?></p>
1197
+
1198
+ <?php
1199
+ $options_editor = get_option('wp_edit_editor');
1200
+ $editor_add_pre_styles = isset($options_editor['editor_add_pre_styles']) && $options_editor['editor_add_pre_styles'] === '1' ? 'checked="checked"' : '';
1201
+ $default_editor_fontsize_type = isset($options_editor['default_editor_fontsize_type']) ? $options_editor['default_editor_fontsize_type'] : 'pt';
1202
+ $default_editor_fontsize_values = isset($options_editor['default_editor_fontsize_values']) ? $options_editor['default_editor_fontsize_values'] : '';
1203
+ ?>
1204
+
1205
+ <table cellpadding="8">
1206
+ <tbody>
1207
+ <tr><td><?php _e('Add Pre-defined Styles', 'wp-edit'); ?></td>
1208
+ <td>
1209
+ <input id="editor_add_pre_styles" type="checkbox" value="1" name="editor_add_pre_styles" <?php echo $editor_add_pre_styles; ?> />
1210
+ <label for="editor_add_pre_styles"><?php _e('Adds predefined styles to the "Formats" dropdown button.', 'wp-edit'); ?></label>
1211
+ </td>
1212
+ </tr>
1213
+ </tbody>
1214
+ </table>
1215
+ </div>
1216
+ </div>
1217
+ </div>
1218
+
1219
+ <h3><?php _e('TinyMCE Options', 'wp-edit'); ?></h3>
1220
+ <div class="metabox-holder">
1221
+ <div class="postbox">
1222
+ <div class="inside">
1223
+ <p style="margin-left:10px;"><?php _e('These options will adjust various parts of the TinyMCE initialization process.', 'wp-edit'); ?></p>
1224
+
1225
+ <table cellpadding="8">
1226
+ <tbody>
1227
+ <tr><td><?php _e('Dropdown Editor Font-Size Type', 'wp-edit'); ?></td>
1228
+ <td>
1229
+ <input type="radio" name="default_editor_fontsize_type" value="px" <?php if($default_editor_fontsize_type === 'px') echo 'checked="checked"'; ?> /> <?php _e('px', 'wp-edit'); ?><span style="margin-left:10px;"></span>
1230
+ <input type="radio" name="default_editor_fontsize_type" value="pt" <?php if($default_editor_fontsize_type === 'pt') echo 'checked="checked"'; ?> /> <?php _e('pt', 'wp-edit'); ?><span style="margin-left:10px;"></span>
1231
+ <input type="radio" name="default_editor_fontsize_type" value="em" <?php if($default_editor_fontsize_type === 'em') echo 'checked="checked"'; ?> /> <?php _e('em', 'wp-edit'); ?><span style="margin-left:10px;"></span>
1232
+ <input type="radio" name="default_editor_fontsize_type" value="percent" <?php if($default_editor_fontsize_type === 'percent') echo 'checked="checked"'; ?> /> <?php _e('%', 'wp-edit'); ?><br />
1233
+
1234
+ <?php _e('Select the editor font size type displayed in the "Font Size" button dropdown menu.', 'wp-edit'); ?>
1235
+ </td>
1236
+ </tr>
1237
+ <tr><td style="vertical-align:top;"><?php _e('Dropdown Editor Font-Size Type Values', 'wp-edit'); ?></td>
1238
+ <td>
1239
+ <input type="text" name="default_editor_fontsize_values" value="<?php echo $default_editor_fontsize_values; ?>" /><br />
1240
+ <?php _e('Define available font-size values for Font Size dropdown box.', 'wp-edit'); ?><br />
1241
+ <?php _e('Values should be space separated; and end with the chosen font size type (selected above).', 'wp-edit'); ?><br />
1242
+ <?php _e('For Example: If <strong>em</strong> is selected; possible values could be <strong>1em 1.1em 1.2em</strong> etc.', 'wp-edit'); ?>
1243
+ </td>
1244
+ </tr>
1245
+ </tbody>
1246
+ </table>
1247
+ </div>
1248
+ </div>
1249
+ </div>
1250
+ <input type="submit" value="<?php _e('Save Editor Options', 'wp-edit'); ?>" class="button button-primary" id="submit_editor" name="submit_editor">
1251
+ </div>
1252
+ </form>
1253
+ <?php
1254
+ }
1255
+ /*
1256
+ ****************************************************************
1257
+ Extras Tab
1258
+ ****************************************************************
1259
+ */
1260
+ else if($active_tab == 'extras') {
1261
+
1262
+ ?>
1263
+ <form method="post" action="">
1264
+ <div class="main_container">
1265
+
1266
+ <h3><?php _e('Extra Options', 'wp-edit'); ?></h3>
1267
+
1268
+ <div class="metabox-holder">
1269
+ <div class="postbox">
1270
+ <div class="inside">
1271
+
1272
+ <h3><?php _e('Signoff Text', 'wp-edit'); ?></h3>
1273
+ <p style="margin-left:10px;"><?php _e('Use the editor below to create a content chunk that can be inserted anywhere using the', 'wp-edit'); ?> <strong>[signoff]</strong> <?php _e('shortcode.', 'wp-edit'); ?></p>
1274
+
1275
+ <table cellpadding="8" width="100%">
1276
+ <tbody>
1277
+ <tr><td>
1278
+ <?php
1279
+ $options_extras = get_option('wp_edit_extras');
1280
+ $content = isset($options_extras['signoff_text']) ? $options_extras['signoff_text'] : 'Please enter text here...';
1281
+ $editor_id = 'wp_edit_signoff';
1282
+ $args = array('textarea_rows' => 10, 'width' => '100px');
1283
+ wp_editor( $content, $editor_id, $args );
1284
+ ?>
1285
+ </td></tr>
1286
+ </tbody>
1287
+ </table>
1288
+ </div>
1289
+ </div>
1290
+ </div>
1291
+
1292
+ <input type="submit" value="Save Extras Options" class="button button-primary" id="submit_extras" name="submit_extras">
1293
+ </div>
1294
+ </form>
1295
+ <?php
1296
+ }
1297
+ /*
1298
+ ****************************************************************
1299
+ User Specific Tab
1300
+ ****************************************************************
1301
+ */
1302
+ else if($active_tab == 'user_specific') {
1303
+
1304
+ global $current_user;
1305
+ $options_user_meta = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
1306
+
1307
+ $id_column = isset($options_user_meta['id_column']) && $options_user_meta['id_column'] === '1' ? 'checked="checked"' : '';
1308
+ $thumbnail_column = isset($options_user_meta['thumbnail_column']) && $options_user_meta['thumbnail_column'] === '1' ? 'checked="checked"' : '';
1309
+ $hide_text_tab = isset($options_user_meta['hide_text_tab']) && $options_user_meta['hide_text_tab'] === '1' ? 'checked="checked"' : '';
1310
+ $default_visual_tab = isset($options_user_meta['default_visual_tab']) && $options_user_meta['default_visual_tab'] === '1' ? 'checked="checked"' : '';
1311
+ $dashboard_widget = isset($options_user_meta['dashboard_widget']) && $options_user_meta['dashboard_widget'] === '1' ? 'checked="checked"' : '';
1312
+
1313
+ $enable_highlights = isset($options_user_meta['enable_highlights']) && $options_user_meta['enable_highlights'] === '1' ? 'checked="checked"' : '';
1314
+ $draft_highlight = isset($options_user_meta['draft_highlight']) ? $options_user_meta['draft_highlight'] : '#FFFFFF';
1315
+ $pending_highlight = isset($options_user_meta['pending_highlight']) ? $options_user_meta['pending_highlight'] : '#FFFFFF';
1316
+ $published_highlight = isset($options_user_meta['published_highlight']) ? $options_user_meta['published_highlight'] : '#FFFFFF';
1317
+ $future_highlight = isset($options_user_meta['future_highlight']) ? $options_user_meta['future_highlight'] : '#FFFFFF';
1318
+ $private_highlight = isset($options_user_meta['private_highlight']) ? $options_user_meta['private_highlight'] : '#FFFFFF';
1319
+ ?>
1320
+
1321
+ <form method="post" action="">
1322
+ <div class="main_container">
1323
+
1324
+ <h3><?php _e('User Specific Options', 'wp-edit'); ?></h3>
1325
+ <div class="metabox-holder">
1326
+ <div class="postbox">
1327
+ <div class="inside">
1328
+
1329
+ <p style="margin-left:10px;"><?php _e('These options are stored in individual user meta; meaning each user can set these options independently from one another.', 'wp-edit'); ?></p>
1330
+
1331
+ <table cellpadding="8">
1332
+ <tbody>
1333
+ <tr><td><?php _e('ID Column', 'wp-edit'); ?></td>
1334
+ <td>
1335
+ <input id="id_column" type="checkbox" value="1" name="wp_edit_user_specific[id_column]" <?php echo $id_column; ?> />
1336
+ <label for="id_column"><?php _e('Adds a column to post/page list view for displaying the post/page ID.', 'wp-edit'); ?></label>
1337
+ </td>
1338
+ </tr>
1339
+ <tr><td><?php _e('Thumbnail Column', 'wp-edit'); ?></td>
1340
+ <td>
1341
+ <input id="thumbnail_column" type="checkbox" value="1" name="wp_edit_user_specific[thumbnail_column]" <?php echo $thumbnail_column; ?> />
1342
+ <label for="thumbnail_column"><?php _e('Adds a column to post/page list view for displaying thumbnails.', 'wp-edit'); ?></label>
1343
+ </td>
1344
+ </tr>
1345
+ <tr><td><?php _e('Hide TEXT Tab', 'wp-edit'); ?></td>
1346
+ <td>
1347
+ <input id="hide_text_tab" type="checkbox" value="1" name="wp_edit_user_specific[hide_text_tab]" <?php echo $hide_text_tab; ?> />
1348
+ <label for="hide_text_tab"><?php _e('Hide the editor TEXT tab from view.', 'wp-edit'); ?></label>
1349
+ </td>
1350
+ </tr>
1351
+ <tr><td><?php _e('Default VISUAL Tab', 'wp-edit'); ?></td>
1352
+ <td>
1353
+ <input id="default_visual_tab" type="checkbox" value="1" name="wp_edit_user_specific[default_visual_tab]" <?php echo $default_visual_tab; ?> />
1354
+ <label for="default_visual_tab"><?php _e('Always display VISUAL tab when editor loads.', 'wp-edit'); ?></label>
1355
+ </td>
1356
+ </tr>
1357
+ <tr><td><?php _e('Disable Dashboard Widget', 'wp-edit'); ?></td>
1358
+ <td>
1359
+ <input id="dashboard_widget" type="checkbox" value="1" name="wp_edit_user_specific[dashboard_widget]" <?php echo $dashboard_widget; ?> />
1360
+ <label for="dashboard_widget"><?php _e('Disables WP Edit Pro News Feed dashboard widget.', 'wp-edit'); ?></label>
1361
+ </td>
1362
+ </tr>
1363
+ </tbody>
1364
+ </table>
1365
+ </div>
1366
+ </div>
1367
+ </div>
1368
+
1369
+ <h3><?php _e('Post/Page Highlight Colors', 'wp-edit'); ?></h3>
1370
+ <div class="metabox-holder">
1371
+ <div class="postbox">
1372
+ <div class="inside">
1373
+
1374
+ <p style="margin-left:10px;"><?php _e('These options will allow each user to customize highlight colors for each post/page status.', 'wp-edit'); ?><br />
1375
+ <?php _e('Meaning.. saved posts can be yellow, published posts can be blue, etc.', 'wp-edit'); ?></p>
1376
+
1377
+ <table cellpadding="8">
1378
+ <tbody>
1379
+ <tr><td><?php _e('Enable Highlights', 'wp-edit'); ?></td>
1380
+ <td>
1381
+ <input id="enable_highlights" type="checkbox" value="1" name="wp_edit_user_specific[enable_highlights]" <?php echo $enable_highlights; ?> />
1382
+ <label for="enable_highlights"><?php _e('Enable the Highlight Options below.', 'wp-edit'); ?></label>
1383
+ </td>
1384
+ </tr>
1385
+ <tr><td><?php _e('Draft Highlight', 'wp-edit'); ?></td>
1386
+ <td class="jwl_user_cell">
1387
+ <input id="draft_highlight" type="text" name="wp_edit_user_specific[draft_highlight]" class="color_field" value="<?php echo $draft_highlight; ?>" />
1388
+ </td>
1389
+ </tr>
1390
+ <tr><td><?php _e('Pending Highlight', 'wp-edit'); ?></td>
1391
+ <td class="jwl_user_cell">
1392
+ <input id="pending_highlight" type="text" name="wp_edit_user_specific[pending_highlight]" class="color_field" value="<?php echo $pending_highlight; ?>" />
1393
+ </td>
1394
+ </tr>
1395
+ <tr><td><?php _e('Published Highlight', 'wp-edit'); ?></td>
1396
+ <td class="jwl_user_cell">
1397
+ <input id="published_highlight" type="text" name="wp_edit_user_specific[published_highlight]" class="color_field" value="<?php echo $published_highlight; ?>" />
1398
+ </td>
1399
+ </tr>
1400
+ <tr><td><?php _e('Future Highlight', 'wp-edit'); ?></td>
1401
+ <td class="jwl_user_cell">
1402
+ <input id="future_highlight" type="text" name="wp_edit_user_specific[future_highlight]" class="color_field" value="<?php echo $future_highlight; ?>" />
1403
+ </td>
1404
+ </tr>
1405
+ <tr><td><?php _e('Private Highlight', 'wp-edit'); ?></td>
1406
+ <td class="jwl_user_cell">
1407
+ <input id="private_highlight" type="text" name="wp_edit_user_specific[private_highlight]" class="color_field" value="<?php echo $private_highlight; ?>" />
1408
+ </td>
1409
+ </tr>
1410
+ </tbody>
1411
+ </table>
1412
+ </div>
1413
+ </div>
1414
+ </div>
1415
+
1416
+ <input type="submit" value="<?php _e('Save User Specific Options', 'wp-edit'); ?>" class="button button-primary" id="submit_user_specific" name="submit_user_specific">
1417
+ </div>
1418
+ </form><?php
1419
+ }
1420
+ /*
1421
+ ****************************************************************
1422
+ Database Tab
1423
+ ****************************************************************
1424
+ */
1425
+ else if($active_tab == 'database') {
1426
+ ?>
1427
+ <div class="main_container">
1428
+
1429
+ <h3><?php _e('Database Options', 'wp-edit'); ?></h3>
1430
+
1431
+ <div class="metabox-holder">
1432
+
1433
+ <div class="postbox">
1434
+ <h3><span><?php _e('Export WP Edit Options', 'wp-edit'); ?></span></h3>
1435
+ <div class="inside">
1436
+ <p><?php _e('Export the plugin settings for this site as a .json file. This allows you to easily import the configuration into another site.', 'wp-edit'); ?></p>
1437
+ <form method="post" action="">
1438
+ <p><input type="hidden" name="database_action" value="export_settings" /></p>
1439
+ <p>
1440
+ <?php wp_nonce_field( 'database_action_export_nonce', 'database_action_export_nonce' ); ?>
1441
+ <?php submit_button( __('Export', 'wp-edit'), 'primary', 'submit', false ); ?>
1442
+ </p>
1443
+ </form>
1444
+ </div><!-- .inside -->
1445
+ </div><!-- .postbox -->
1446
+
1447
+ <div class="postbox">
1448
+ <h3><span><?php _e('Import WP Edit Options', 'wp-edit'); ?></span></h3>
1449
+ <div class="inside">
1450
+ <p><?php _e('Import the plugin settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', 'wp-edit'); ?></p>
1451
+ <form method="post" enctype="multipart/form-data">
1452
+ <p><input type="file" name="import_file"/></p>
1453
+ <p>
1454
+ <input type="hidden" name="database_action" value="import_settings" />
1455
+ <?php wp_nonce_field( 'database_action_import_nonce', 'database_action_import_nonce' ); ?>
1456
+ <?php submit_button( __('Import', 'wp-edit'), 'primary', 'submit', false ); ?>
1457
+ </p>
1458
+ </form>
1459
+ </div><!-- .inside -->
1460
+ </div><!-- .postbox -->
1461
+
1462
+ <div class="postbox">
1463
+ <h3><span><?php _e('Reset WP Edit Options', 'wp-edit'); ?></span></h3>
1464
+ <div class="inside">
1465
+ <p><?php _e('Reset all plugin settings to their original default states.', 'wp-edit'); ?></p>
1466
+ <form method="post" action="">
1467
+ <?php wp_nonce_field( 'reset_db_values_nonce', 'reset_db_values_nonce' ); ?>
1468
+ <input class="button-primary reset_db_values" name="reset_db_values" type="submit" style="display:none;" />
1469
+ <input class="button-primary reset_db_values_confirm" name="reset_db_values_confirm" type="button" value="<?php _e('Reset', 'wp-edit'); ?>" />
1470
+ </p>
1471
+ </form>
1472
+ </div><!-- .inside -->
1473
+ </div><!-- .postbox -->
1474
+
1475
+ <div class="postbox">
1476
+ <h3><span><?php _e('Uninstall WP Edit (Completely)', 'wp-edit'); ?></span></h3>
1477
+ <div class="inside">
1478
+ <p><?php _e('Designed by intention, this plugin will not delete the associated database tables when activating and deactivating.', 'wp-edit'); ?><br />
1479
+ <?php _e('This ensures the data is kept safe when troubleshooting other WordPress conflicts.', 'wp-edit'); ?><br />
1480
+ <?php _e('In order to completely uninstall the plugin, AND remove all associated database tables, please use the option below.', 'wp-edit'); ?><br />
1481
+ </p>
1482
+ <form method="post" action="">
1483
+ <?php wp_nonce_field('wp_edit_uninstall_nonce_check','wp_edit_uninstall_nonce'); ?>
1484
+ <input id="plugin" name="plugin" type="hidden" value="wp-edit/main.php" />
1485
+ <input name="uninstall_confirm" id="uninstall_confirm" type="checkbox" value="1" /><label for="uninstall_confirm"></label> <strong><?php _e('Please confirm before proceeding','wp-edit'); ?><br /><br /></strong>
1486
+ <input class="button-primary" name="uninstall" type="submit" value="<?php _e('Uninstall','wp-edit'); ?>" />
1487
+ </form>
1488
+ </div><!-- .inside -->
1489
+ </div><!-- .postbox -->
1490
+
1491
+ </div><!-- .metabox-holder -->
1492
+ </div><!-- .main_container -->
1493
+ <?php
1494
+ }
1495
+ /*
1496
+ ****************************************************************
1497
+ Database Tab
1498
+ ****************************************************************
1499
+ */
1500
+ else if($active_tab == 'about') {
1501
+
1502
+ // Get mysql version number (scrape php_info module)
1503
+ ob_start();
1504
+ phpinfo(INFO_MODULES);
1505
+ $info = ob_get_contents();
1506
+ ob_end_clean();
1507
+ $info = stristr($info, 'Client API version');
1508
+ preg_match('/[1-9].[0-9].[1-9][0-9]/', $info, $match);
1509
+ $sql_version = $match[0];
1510
+
1511
+ // Get plugin info
1512
+ $url = WPEDIT_PLUGIN_PATH.'main.php';
1513
+ $plugin_data = get_plugin_data( $url );
1514
+
1515
+ global $wp_version;
1516
+
1517
+ echo '<div class="main_container">';
1518
+
1519
+ ?>
1520
+ <h3><?php _e('Information','wp-edit'); ?></h3>
1521
+
1522
+ <div class="metabox-holder">
1523
+ <div class="postbox">
1524
+ <div class="inside">
1525
+
1526
+ <p><?php _e('Plugin and server version information.', 'wp-edit'); ?></p>
1527
+
1528
+ <table class="table table-bordered" cellpadding="3" style="width:50%;">
1529
+ <tbody>
1530
+ <tr><td><?php _e('WP Edit Pro Version:','wp-edit'); ?></td>
1531
+ <td>
1532
+ <?php echo $plugin_data['Version']; ?>
1533
+ </td>
1534
+ </tr>
1535
+ <tr><td><?php _e('WordPress Version:','wp-edit'); ?></td>
1536
+ <td>
1537
+ <?php echo $wp_version; ?>
1538
+ </td>
1539
+ </tr>
1540
+ <tr><td><?php _e('PHP Version:','wp-edit'); ?></td>
1541
+ <td>
1542
+ <?php echo phpversion(); ?>
1543
+ </td>
1544
+ </tr>
1545
+ <tr><td><?php _e('HTML Version:','wp-edit'); ?></td>
1546
+ <td>
1547
+ <span class="wpep_html_version"></span>
1548
+ </td>
1549
+ </tr>
1550
+ <tr><td><?php _e('MySql Version:','wp-edit'); ?></td>
1551
+ <td>
1552
+ <?php echo $sql_version; ?>
1553
+ </td>
1554
+ </tr>
1555
+ <tr><td><?php _e('jQuery Version:','wp-edit'); ?></td>
1556
+ <td>
1557
+ <?php echo $GLOBALS['wp_scripts']->registered['jquery-core']->ver; ?>
1558
+ </td>
1559
+ </tr>
1560
+ </tbody>
1561
+ </table>
1562
+ </div>
1563
+ </div>
1564
+ </div>
1565
+
1566
+ <h3><?php _e('Support','wp-edit'); ?></h3>
1567
+ <div class="metabox-holder">
1568
+ <div class="postbox">
1569
+ <div class="inside">
1570
+
1571
+ <p><?php _e('Please use the following helpful links for plugin support.', 'wp-edit'); ?></p>
1572
+
1573
+ <table class="table table-bordered" cellpadding="3" style="width:30%;">
1574
+ <tbody>
1575
+ <tr><td><?php _e('Support Forum:','wp-edit'); ?></td>
1576
+ <td>
1577
+ <?php echo '<a target="_blank" href="http://forum.wpeditpro.com">'.__('Support Forum', 'wp-edit').'</a>'; ?>
1578
+ </td>
1579
+ </tr>
1580
+ <tr><td><?php _e('Knowledge Base:','wp-edit'); ?></td>
1581
+ <td>
1582
+ <?php echo '<a target="_blank" href="http://learn.wpeditpro.com">'.__('Knowledge Base', 'wp-edit').'</a>'; ?>
1583
+ </td>
1584
+ </tr>
1585
+ </tbody>
1586
+ </table>
1587
+ </div>
1588
+ </div>
1589
+ </div>
1590
+
1591
+ <h3><?php _e('Documentation','wp-edit'); ?></h3>
1592
+ <div class="metabox-holder">
1593
+ <div class="postbox">
1594
+ <div class="inside">
1595
+
1596
+ <p><?php _e('Remember, complete plugin documentation can be found on our <a target="_blank" href="http://learn.wpeditpro.com">Knowledge Base</a>.', 'wp-edit'); ?></p>
1597
+ <p><?php _e('Visit the <a target="_blank" href="http://learn.wpeditpro.com/category/plugin-options/">Knowledge Base Plugin Options</a> page to get started.','wp-edit'); ?></p>
1598
+ </div>
1599
+ </div>
1600
+ </div>
1601
+ <?php
1602
+ echo '</div>';
1603
+ }
1604
+ ?>
1605
+ </div><!-- .wrap -->
1606
+
1607
+ <div id="right_column_metaboxes">
1608
+
1609
+ <div class="main_container">
1610
+ <h3><?php _e('WP Edit Pro', 'wp-edit'); ?></h3>
1611
+ <div class="metabox-holder">
1612
+ <div class="postbox">
1613
+ <div class="inside">
1614
+
1615
+ <p><?php _e('Upgrade to WP Edit Pro today; and enjoy additional options such as:', 'wp-edit'); ?></p>
1616
+ <ul class="wpep_pro_upgrade_list">
1617
+ <li><span class="dashicons dashicons-yes"></span><?php _e('4 customizable button rows instead of only 2.', 'wp-edit'); ?></li>
1618
+ <li><span class="dashicons dashicons-yes"></span><?php _e('Create multiple button arrangements.', 'wp-edit'); ?></li>
1619
+ <li><span class="dashicons dashicons-yes"></span><?php _e('Limit users over what buttons they can access.', 'wp-edit'); ?></li>
1620
+ <li><span class="dashicons dashicons-yes"></span><?php _e('Powerful "Snidget" Builder.', 'wp-edit'); ?></li>
1621
+ <li><span class="dashicons dashicons-yes"></span><?php _e('Over 30 additional options and settings.', 'wp-edit'); ?></li>
1622
+ <li><span class="dashicons dashicons-yes"></span><?php _e('Over a dozen additional editor buttons (Image maps, YouTube Videos, and many more!).', 'wp-edit'); ?></li>
1623
+ </ul>
1624
+ <a href="https://wpeditpro.com" target="_blank" class="button-primary"><?php _e('WP Edit Pro', 'wp-edit'); ?></a>
1625
+ </div>
1626
+ </div>
1627
+ </div>
1628
+ </div>
1629
+
1630
+ <div class="main_container">
1631
+ <h3><?php _e('Like this Plugin?', 'wp-edit'); ?></h3>
1632
+ <div class="metabox-holder">
1633
+ <div class="postbox">
1634
+ <div class="inside">
1635
+
1636
+ <p><?php _e('Please take a moment to rate and review this plugin on the WordPress Plugin Repository.', 'wp-edit'); ?></p>
1637
+ <p><a href="https://wordpress.org/plugins/wp-edit/" target="_blank" class="button-primary"><?php _e('Rate Plugin', 'wp-edit'); ?></a></p>
1638
+ </div>
1639
+ </div>
1640
+ </div>
1641
+ </div>
1642
+ </div>
1643
+
1644
+ <div style="clear:both;"></div>
1645
+ <?php
1646
+ }
1647
+
1648
+
1649
+ /*
1650
+ ****************************************************************
1651
+ Load/Save Page
1652
+ ****************************************************************
1653
+ */
1654
+ public function load_page() {
1655
+
1656
+ /*
1657
+ ****************************************************************
1658
+ If Import Settings was successful... let's alert a message
1659
+ ****************************************************************
1660
+ */
1661
+ if(isset($_GET['import']) && $_GET['import'] === 'true') {
1662
+
1663
+ echo '<div id="message" class="updated"><p>';
1664
+ _e('Plugin settings have been successfully imported.' ,'wp-edit');
1665
+ echo '</p></div>';
1666
+ }
1667
+
1668
+ /*
1669
+ ****************************************************************
1670
+ If Buttons Tab options are submitted
1671
+ ****************************************************************
1672
+ */
1673
+ if(isset($_POST['wpep_reset_buttons'])) {
1674
+
1675
+ // Check if DB value exists.. if YES, then keep value.. if NO, then replace with protected defaults
1676
+ $options_buttons = $this->global_options_buttons;
1677
+
1678
+ // Set DB values
1679
+ update_option('wp_edit_buttons', $options_buttons);
1680
+
1681
+ // Alert user
1682
+ function wpe_reset_buttons_from_input(){
1683
+
1684
+ echo '<div class="updated">';
1685
+ echo '<p>';
1686
+ _e('Buttons have been reset successfully.','wp-edit');
1687
+ echo '</p>';
1688
+ echo '</div>';
1689
+ }
1690
+ add_action('admin_notices', 'wpe_reset_buttons_from_input');
1691
+ }
1692
+
1693
+ if(isset($_POST['wpep_save_buttons'])) {
1694
+
1695
+ if(isset($_POST['get_sorted_array_results']) && ($_POST['get_sorted_array_results'] != '')) {
1696
+
1697
+ //***************************************************
1698
+ // Get buttons from hidden div and update database
1699
+ //***************************************************
1700
+ $post_buttons = $_POST['get_sorted_array_results'];
1701
+ $final_button_array = array();
1702
+
1703
+ // Explode first set of containers (breaks into "toolbar1:bold,italic,etc."
1704
+ $explode_containers = explode('*', $post_buttons);
1705
+
1706
+ // Loop each container
1707
+ foreach($explode_containers as $container) {
1708
+
1709
+ // Get rid of first container (empty)
1710
+ if($container != '') {
1711
+
1712
+ // Explode each container
1713
+ $explode_each_container = explode(':', $container);
1714
+ // Replace commas (from js array) with spaces
1715
+ $explode_each_container = str_replace(',', ' ', $explode_each_container);
1716
+
1717
+ // Push key (container) and value (buttons) to final array
1718
+ $final_button_array[$explode_each_container[0]] = $explode_each_container[1];
1719
+ }
1720
+ }
1721
+
1722
+ // Update database buttons
1723
+ update_option('wp_edit_buttons', $final_button_array);
1724
+
1725
+ // Alert user
1726
+ function wpe_save_buttons_from_input(){
1727
+
1728
+ echo '<div class="updated">';
1729
+ echo '<p>';
1730
+ _e('Buttons have been saved successfully.','wp-edit');
1731
+ echo '</p>';
1732
+ echo '</div>';
1733
+ }
1734
+ add_action('admin_notices', 'wpe_save_buttons_from_input');
1735
+ }
1736
+
1737
+ //***************************************************
1738
+ // Check for new buttons
1739
+ //***************************************************
1740
+ /*** Get page buttons ***/
1741
+ $buttons = '';
1742
+ $active_buttons = $_POST['get_sorted_array_results']; // Get each button container value (string)
1743
+ $explode1 = explode('*', $active_buttons); // Explode into button containers (toolbar1:bold,italic,etc)
1744
+ $final_buttons = '';
1745
+
1746
+ foreach($explode1 as $value) {
1747
+
1748
+ $explode2 = explode(':', $value); // Explodes from (toolbar1:bold,italic,link,etc)
1749
+ $button_string = isset($explode2[1]) ? $explode2[1] : ''; // Get second array item (buttons (comma separated))
1750
+
1751
+ if(!empty($button_string)) { // If the buttons string is not empty
1752
+
1753
+ $final_buttons .= $button_string.','; // Create long string of comma separated butttons
1754
+ }
1755
+ }
1756
+
1757
+ // Right trim comma from string
1758
+ $final_buttons = rtrim($final_buttons, ',');
1759
+
1760
+ // Create array of all buttons on page ((bold)(italic)(etc))
1761
+ $page_array = array_filter(explode(',', $final_buttons));
1762
+
1763
+
1764
+ /*** Get default buttons ***/
1765
+ // Get all buttons from initialization code (including any new buttons)
1766
+ $new_wp_edit_class_buttons = new wp_edit_class();
1767
+ $options_buttons = $new_wp_edit_class_buttons->global_options_buttons;
1768
+ $buttons_option = '';
1769
+
1770
+ // Loop each container and extract buttons
1771
+ foreach($options_buttons as $option) {
1772
+
1773
+ $buttons_option .= ' ' . $option; // The list of initialization buttons (as string)
1774
+ }
1775
+
1776
+ // Trim whitespace from left of $buttons_option string (space separated)
1777
+ $buttons_option = ltrim($buttons_option);
1778
+
1779
+ // Explode space separated string into array
1780
+ $buttons_option_array = array_filter(explode(' ', $buttons_option));
1781
+
1782
+ /*** Compare arrays ***/
1783
+ $array_diff = array_diff($buttons_option_array, $page_array);
1784
+
1785
+ // If new buttons were discovered
1786
+ if(!empty($array_diff)) {
1787
+
1788
+ // Get each button name from array difference
1789
+ global $each_button_trim;
1790
+ $each_button = '';
1791
+ foreach($array_diff as $button) { // Loop array to get each button name
1792
+
1793
+ $each_button .= ' '.$button;
1794
+ }
1795
+ // Remove white space from far left of string
1796
+ $each_button_trim = ltrim($each_button);
1797
+
1798
+
1799
+ // Get buttons option and append new buttons to tmce container
1800
+ $db_buttons = get_option('wp_edit_buttons');
1801
+ $db_buttons['tmce_container'] = $db_buttons['tmce_container'].$each_button;
1802
+
1803
+ // Update database
1804
+ update_option('wp_edit_buttons', $db_buttons);
1805
+
1806
+ // Alert user
1807
+ function wpe_alert_user_new_buttons() {
1808
+
1809
+ global $each_button_trim;
1810
+ echo '<div id="message" class="updated"><p>';
1811
+ _e('New buttons were discovered. The following buttons have been added to the Button Container:','wp-edit');
1812
+ echo '<br /><strong>'.$each_button_trim.'</strong>';
1813
+ echo '</p></div>';
1814
+ }
1815
+ add_action('admin_notices', 'wpe_alert_user_new_buttons');
1816
+ }
1817
+
1818
+ //*************************************************************************************************
1819
+ // Check saved database buttons against plugin default buttons.
1820
+ // - Will remove any buttons from rows if they are no longer supported by plugin.
1821
+ //*************************************************************************************************
1822
+
1823
+ // Get user saved buttons
1824
+ $options_buttons = get_option('wp_edit_buttons');
1825
+ // Get default plugin buttons
1826
+ $new_wp_edit_class_buttons = new wp_edit_class();
1827
+ $plugin_buttons = $new_wp_edit_class_buttons->global_options_buttons;
1828
+
1829
+ // Merge all default plugin buttons into single array
1830
+ $all_array = '';
1831
+ foreach($plugin_buttons as $slot_array) {
1832
+
1833
+ if(!empty($slot_array) && $slot_array != '') { // Skip containter array if empty
1834
+ $all_array .= $slot_array.' '; // Create single string of all default plugin buttons
1835
+ }
1836
+ }
1837
+ $all_array = rtrim($all_array, ' '); // Remove trailing right space
1838
+ $plugin_array = explode(' ', $all_array); // Explode at spaces to make single array (this is an array of all current plugin buttons)
1839
+
1840
+ // Create arrays of user saved buttons
1841
+ global $tot_array;
1842
+ $val_array = array();
1843
+ $tot_array = array(); // Used to display results to user
1844
+ foreach($options_buttons as $cont=>$val) { // Break down array
1845
+
1846
+ if(!empty($val) && $val !='') { // Skip container if empty
1847
+ $val_array = explode(' ', $val); // Explode at spaces into array (this is multiarray of each container array of user buttons)
1848
+
1849
+ $rem_array = array(); // Setup removal array
1850
+ foreach($val_array as $item) {
1851
+ if(!in_array($item, $plugin_array)) {
1852
+ // Removed array items
1853
+ $rem_array[] = $item;
1854
+ $tot_array[] = $item;
1855
+ }
1856
+ }
1857
+
1858
+ if($rem_array) {
1859
+
1860
+ $old_opts = $options_buttons[$cont]; // Get option from database values
1861
+ $old_opts = explode(' ', $old_opts); // Explode to array
1862
+ $new_opt_array = array_diff($old_opts, $rem_array); // Compare arrays to remove non-supported buttons
1863
+ $new_opt_array = implode(' ', $new_opt_array); // Implode back to string
1864
+ $options_buttons[$cont] = $new_opt_array; // Set container to new string
1865
+
1866
+ // Update buttons options
1867
+ update_option('wp_edit_buttons', $options_buttons);
1868
+
1869
+ function wpe_remove_buttons_notice() {
1870
+
1871
+ global $tot_array;
1872
+ echo '<div class="updated"><p>';
1873
+ $tot_array = implode(', ', $tot_array);
1874
+ _e('The following buttons have been removed from WP Edit Pro:', 'wp-edit');
1875
+ echo '<br />';
1876
+ echo '<strong>'.$tot_array.'</strong>';
1877
+ echo '</p></div>';
1878
+ }
1879
+ add_action('admin_notices', 'wpe_remove_buttons_notice');
1880
+ }
1881
+ }
1882
+ }
1883
+ }
1884
+
1885
+
1886
+ /*
1887
+ ****************************************************************
1888
+ If Global Tab button was submitted
1889
+ ****************************************************************
1890
+ */
1891
+ if(isset($_POST['submit_global'])) {
1892
+
1893
+ $options_global = get_option('wp_edit_global');
1894
+ $options_global['jquery_theme'] = isset($_POST['jquery_theme']) ? $_POST['jquery_theme'] : 'smoothness';
1895
+ $options_global['disable_admin_links'] = isset($_POST['disable_admin_links']) ? '1' : '0';
1896
+ $options_global['disable_fancy_tooltips'] = isset($_POST['disable_fancy_tooltips']) ? '1' : '0';
1897
+
1898
+ update_option('wp_edit_global', $options_global);
1899
+
1900
+ function global_saved_notice(){
1901
+
1902
+ echo '<div class="updated"><p>';
1903
+ _e('Global options successfully saved.', 'wp-edit');
1904
+ echo '</p></div>';
1905
+ }
1906
+ add_action('admin_notices', 'global_saved_notice');
1907
+ }
1908
+
1909
+ /*
1910
+ ****************************************************************
1911
+ If General Tab button was submitted
1912
+ ****************************************************************
1913
+ */
1914
+ if(isset($_POST['submit_general'])) {
1915
+
1916
+ $options_general = get_option('wp_edit_general');
1917
+ $options_general['linebreak_shortcode'] = isset($_POST['linebreak_shortcode']) ? '1' : '0';
1918
+ $options_general['shortcodes_in_widgets'] = isset($_POST['shortcodes_in_widgets']) ? '1' : '0';
1919
+ $options_general['shortcodes_in_excerpts'] = isset($_POST['shortcodes_in_excerpts']) ? '1' : '0';
1920
+ $options_general['post_excerpt_editor'] = isset($_POST['post_excerpt_editor']) ? '1' : '0';
1921
+ $options_general['page_excerpt_editor'] = isset($_POST['page_excerpt_editor']) ? '1' : '0';
1922
+ $options_general['profile_editor'] = isset($_POST['profile_editor']) ? '1' : '0';
1923
+
1924
+ update_option('wp_edit_general', $options_general);
1925
+
1926
+ function general_saved_notice(){
1927
+
1928
+ echo '<div class="updated"><p>';
1929
+ _e('General options successfully saved.', 'wp-edit');
1930
+ echo '</p></div>';
1931
+ }
1932
+ add_action('admin_notices', 'general_saved_notice');
1933
+ }
1934
+
1935
+ /*
1936
+ ****************************************************************
1937
+ If Posts Tab button was submitted
1938
+ ****************************************************************
1939
+ */
1940
+ if(isset($_POST['submit_posts'])) {
1941
+
1942
+ // Delete database revisions
1943
+ if(isset($_POST['submit_posts']) && isset($_POST['delete_revisions'])) {
1944
+
1945
+ function wp_edit_delete_revisions_admin_notice( ){
1946
+
1947
+ global $wpdb;
1948
+
1949
+ // Get pre DB size
1950
+ $query = $wpdb->get_results( "SHOW TABLE STATUS", ARRAY_A );
1951
+ $size = 0;
1952
+ foreach ($query as $row) {
1953
+ $size += $row["Data_length"] + $row["Index_length"];
1954
+ }
1955
+ $decimals = 2;
1956
+ $mbytes = number_format($size/(1024*1024),$decimals);
1957
+
1958
+ // Delete Post Revisions from DB
1959
+ $query3_raw = "DELETE FROM wp_posts WHERE post_type = 'revision'";
1960
+ $query3 = $wpdb->query($query3_raw);
1961
+ if ($query3) {
1962
+ $deleted_rows = __('Revisions successfully deleted', 'wp-edit');
1963
+ } else {
1964
+ $deleted_rows = __('No POST revisions were found to delete', 'wp-edit');
1965
+ }
1966
+
1967
+ // Get post DB size
1968
+ $query2 = $wpdb->get_results( "SHOW TABLE STATUS", ARRAY_A );
1969
+ $size2 = 0;
1970
+ foreach ($query2 as $row2) {
1971
+ $size2 += $row2["Data_length"] + $row2["Index_length"];
1972
+ }
1973
+ $decimals2 = 2;
1974
+ $mbytes2 = number_format($size2/(1024*1024),$decimals2);
1975
+
1976
+ echo '<div class="updated"><p>';
1977
+ _e('Message: ', 'wp-edit');
1978
+ echo '<strong>'.$deleted_rows.'</strong>.</p><p>';
1979
+ _e('Database size before deletions: ', 'wp-edit');
1980
+ echo '<strong>'.$mbytes.'</strong> ';
1981
+ _e('megabytes.', 'wp-edit');
1982
+ echo '</p><p>';
1983
+ _e('Database Size after deletions: ', 'wp-edit');
1984
+ echo '<strong>'.$mbytes2.'</strong> ';
1985
+ _e('megabytes.', 'wp-edit');
1986
+ echo '</p></div>';
1987
+ }
1988
+ add_action('admin_notices', 'wp_edit_delete_revisions_admin_notice');
1989
+ }
1990
+
1991
+ $options_posts = get_option('wp_edit_posts');
1992
+
1993
+ $options_posts['post_title_field'] = isset($_POST['post_title_field']) ? sanitize_text_field($_POST['post_title_field']) : 'Enter title here';
1994
+ $options_posts['column_shortcodes'] = isset($_POST['column_shortcodes']) ? '1' : '0';
1995
+ $options_posts['disable_wpautop'] = isset($_POST['disable_wpautop']) ? '1' : '0';
1996
+
1997
+ $options_posts['max_post_revisions'] = isset($_POST['max_post_revisions']) ? sanitize_text_field($_POST['max_post_revisions']) : '';
1998
+ $options_posts['max_page_revisions'] = isset($_POST['max_page_revisions']) ? sanitize_text_field($_POST['max_page_revisions']) : '';
1999
+
2000
+ $options_posts['hide_admin_posts'] = isset($_POST['hide_admin_posts']) ? sanitize_text_field($_POST['hide_admin_posts']) : '';
2001
+ $options_posts['hide_admin_pages'] = isset($_POST['hide_admin_pages']) ? sanitize_text_field($_POST['hide_admin_pages']) : '';
2002
+
2003
+ update_option('wp_edit_posts', $options_posts);
2004
+
2005
+ function posts_saved_notice(){
2006
+
2007
+ echo '<div class="updated"><p>';
2008
+ _e('Posts/Pages options successfully saved.', 'wp-edit');
2009
+ echo '</p></div>';
2010
+ }
2011
+ add_action('admin_notices', 'posts_saved_notice');
2012
+ }
2013
+
2014
+ /*
2015
+ ****************************************************************
2016
+ If Editor button was submitted
2017
+ ****************************************************************
2018
+ */
2019
+ if(isset($_POST['submit_editor'])) {
2020
+
2021
+ $options_editor = get_option('wp_edit_editor');
2022
+
2023
+ $options_editor['editor_add_pre_styles'] = isset($_POST['editor_add_pre_styles']) ? '1' : '0';
2024
+ $options_editor['default_editor_fontsize_type'] = isset($_POST['default_editor_fontsize_type']) ? $_POST['default_editor_fontsize_type'] : 'pt';
2025
+ $options_editor['default_editor_fontsize_values'] = isset($_POST['default_editor_fontsize_values']) ? sanitize_text_field($_POST['default_editor_fontsize_values']) : '';
2026
+
2027
+ update_option('wp_edit_editor', $options_editor);
2028
+
2029
+ function editor_saved_notice(){
2030
+
2031
+ echo '<div class="updated"><p>';
2032
+ _e('Editor options successfully saved.', 'wp-edit');
2033
+ echo '</p></div>';
2034
+ }
2035
+ add_action('admin_notices', 'editor_saved_notice');
2036
+ }
2037
+
2038
+ /*
2039
+ ****************************************************************
2040
+ If Extras Tab button was submitted
2041
+ ****************************************************************
2042
+ */
2043
+ if(isset($_POST['submit_extras'])) {
2044
+
2045
+ $options_extras = get_option('wp_edit_extras');
2046
+ $options_extras['signoff_text'] = isset($_POST['wp_edit_signoff']) ? stripslashes($_POST['wp_edit_signoff']) : 'Please enter text here...';
2047
+
2048
+ update_option('wp_edit_extras', $options_extras);
2049
+
2050
+ function extras_saved_notice(){
2051
+
2052
+ echo '<div class="updated"><p>';
2053
+ _e('Extra options saved.', 'wp-edit');
2054
+ echo '</p></div>';
2055
+ }
2056
+ add_action('admin_notices', 'extras_saved_notice');
2057
+ }
2058
+
2059
+ /*
2060
+ ****************************************************************
2061
+ If user specific was submitted
2062
+ ****************************************************************
2063
+ */
2064
+ if(isset($_POST['submit_user_specific'])) {
2065
+
2066
+ // If User Specific was submitted
2067
+ $post_vars = isset($_POST['wp_edit_user_specific']) ? $_POST['wp_edit_user_specific'] : '';
2068
+
2069
+ global $current_user;
2070
+ $options_user_specific_user_meta = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
2071
+
2072
+ $options_user_specific_user_meta['id_column'] = isset($post_vars['id_column']) ? '1' : '0';
2073
+ $options_user_specific_user_meta['thumbnail_column'] = isset($post_vars['thumbnail_column']) ? '1' : '0';
2074
+ $options_user_specific_user_meta['hide_text_tab'] = isset($post_vars['hide_text_tab']) ? '1' : '0';
2075
+ $options_user_specific_user_meta['default_visual_tab'] = isset($post_vars['default_visual_tab']) ? '1' : '0';
2076
+ $options_user_specific_user_meta['dashboard_widget'] = isset($post_vars['dashboard_widget']) ? '1' : '0';
2077
+
2078
+ $options_user_specific_user_meta['enable_highlights'] = isset($post_vars['enable_highlights']) ? '1' : '0';
2079
+ $options_user_specific_user_meta['draft_highlight'] = isset($post_vars['draft_highlight']) ? $post_vars['draft_highlight'] : '';
2080
+ $options_user_specific_user_meta['pending_highlight'] = isset($post_vars['pending_highlight']) ? $post_vars['pending_highlight'] : '';
2081
+ $options_user_specific_user_meta['published_highlight'] = isset($post_vars['published_highlight']) ? $post_vars['published_highlight'] : '';
2082
+ $options_user_specific_user_meta['future_highlight'] = isset($post_vars['future_highlight']) ? $post_vars['future_highlight'] : '';
2083
+ $options_user_specific_user_meta['private_highlight'] = isset($post_vars['private_highlight']) ? $post_vars['private_highlight'] : '';
2084
+
2085
+ update_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', $options_user_specific_user_meta);
2086
+
2087
+ function user_specific_saved_notice(){
2088
+
2089
+ echo '<div class="updated"><p>';
2090
+ _e('User specific options saved.', 'wp-edit');
2091
+ echo '</p></div>';
2092
+ }
2093
+ add_action('admin_notices', 'user_specific_saved_notice');
2094
+ }
2095
+
2096
+ /*
2097
+ ****************************************************************
2098
+ If reset plugin options
2099
+ ****************************************************************
2100
+ */
2101
+ if (isset($_POST['reset_db_values'])) {
2102
+
2103
+ if ( !isset($_POST['reset_db_values_nonce'])) { // Verify nonce
2104
+
2105
+ print __('Sorry, your nonce did not verify.', 'wp-edit');
2106
+ exit;
2107
+ }
2108
+ else {
2109
+
2110
+ // Get current user
2111
+ global $current_user;
2112
+
2113
+ // Set DB values (from class vars)
2114
+ update_option('wp_edit_buttons', $this->global_options_buttons);
2115
+ update_option('wp_edit_global', $this->global_options_global);
2116
+ update_option('wp_edit_general', $this->global_options_general);
2117
+ update_option('wp_edit_posts', $this->global_options_posts);
2118
+ update_option('wp_edit_editor', $this->global_options_editor);
2119
+ update_option('wp_edit_extras', $this->global_options_extras);
2120
+ update_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', $this->global_options_user_specific);
2121
+
2122
+ echo '<div id="message" class="updated"><p>';
2123
+ _e('Plugin settings have been restored to defaults.', 'wp-edit');
2124
+ echo '</p></div>';
2125
+ }
2126
+ }
2127
+
2128
+ /*
2129
+ ****************************************************************
2130
+ If uninstall plugin was submitted
2131
+ ****************************************************************
2132
+ */
2133
+ // Display notice if trying to uninstall but forget to check box
2134
+ if (isset($_POST['uninstall'] ) && !isset($_POST['uninstall_confirm'])) {
2135
+
2136
+ echo '<div id="message" class="error"><p>';
2137
+ _e('You must also check the confirm box before options will be uninstalled and deleted.','wp-edit');
2138
+ echo '</p></div>';
2139
+ }
2140
+ // Uninstall plugin
2141
+ if (isset($_POST['uninstall'], $_POST['uninstall_confirm'] ) ) {
2142
+
2143
+ if ( !isset($_POST['wp_edit_uninstall_nonce']) || !wp_verify_nonce($_POST['wp_edit_uninstall_nonce'],'wp_edit_uninstall_nonce_check') ) { // Verify nonce
2144
+
2145
+ print __('Sorry, your nonce did not verify.', 'wp-edit');
2146
+ exit;
2147
+ }
2148
+ else {
2149
+
2150
+ global $current_user;
2151
+ delete_option('wp_edit_buttons','wp_edit_buttons');
2152
+ delete_option('wp_edit_global','wp_edit_global');
2153
+ delete_option('wp_edit_general','wp_edit_general');
2154
+ delete_option('wp_edit_posts','wp_edit_posts');
2155
+ delete_option('wp_edit_editor','wp_edit_editor');
2156
+ delete_option('wp_edit_extras','wp_edit_extras');
2157
+ delete_option('wp_edit_install','wp_edit_install');
2158
+ delete_user_meta($current_user->ID, 'aaa_wp_edit_user_meta');
2159
+ delete_user_meta($current_user->ID, 'ignore_wpedit_ag_notice');
2160
+
2161
+ // Deactivate the plugin
2162
+ $current = get_option('active_plugins');
2163
+ array_splice($current, array_search( $_POST['plugin'], $current), 1 );
2164
+ update_option('active_plugins', $current);
2165
+
2166
+ // Redirect to plugins page with 'plugin deactivated' status message
2167
+ wp_redirect( admin_url('/plugins.php?deactivate=true') );
2168
+ exit;
2169
+ }
2170
+ }
2171
+ }
2172
+
2173
+ /*
2174
+ ****************************************************************
2175
+ Admin Init
2176
+ ****************************************************************
2177
+ */
2178
+ public function process_activation_redirect() {
2179
+
2180
+ // Check for redirect option after plugin activation
2181
+ $re_url = admin_url('admin.php?page=wp_edit_options');
2182
+ if (get_option('wp_edit_activation_redirect', false)) {
2183
+
2184
+ delete_option('wp_edit_activation_redirect');
2185
+ wp_redirect($re_url);
2186
+ }
2187
+ }
2188
+
2189
+ /*
2190
+ ****************************************************************
2191
+ Export Options
2192
+ ****************************************************************
2193
+ */
2194
+ public function process_settings_export() {
2195
+
2196
+ if( empty( $_POST['database_action'] ) || 'export_settings' != $_POST['database_action'] )
2197
+ return;
2198
+
2199
+ if( ! wp_verify_nonce( $_POST['database_action_export_nonce'], 'database_action_export_nonce' ) )
2200
+ return;
2201
+
2202
+ if( ! current_user_can( 'manage_options' ) )
2203
+ return;
2204
+
2205
+ // Get DB values
2206
+ global $current_user;
2207
+
2208
+ $options_buttons = get_option('wp_edit_buttons');
2209
+ $options_global = get_option('wp_edit_global');
2210
+ $options_general = get_option('wp_edit_general');
2211
+ $options_posts = get_option('wp_edit_posts');
2212
+ $options_editor = get_option('wp_edit_editor');
2213
+ $options_extras = get_option('wp_edit_extras');
2214
+ $options_user_specific = get_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', true);
2215
+
2216
+ $options_export_array = array(
2217
+ 'wp_edit_buttons' => $options_buttons,
2218
+ 'wp_edit_global' => $options_global,
2219
+ 'wp_edit_general' => $options_general,
2220
+ 'wp_edit_posts' => $options_posts,
2221
+ 'wp_edit_editor' => $options_editor,
2222
+ 'wp_edit_extras' => $options_extras,
2223
+ 'wp_edit_user_specific' => $options_user_specific
2224
+ );
2225
+
2226
+ ignore_user_abort( true );
2227
+
2228
+ nocache_headers();
2229
+ header( 'Content-Type: application/json; charset=utf-8' );
2230
+ header( 'Content-Disposition: attachment; filename=wp_edit_settings_export-' . date( 'm-d-Y' ) . '.json' );
2231
+ header( "Expires: 0" );
2232
+
2233
+ echo json_encode( $options_export_array );
2234
+ exit;
2235
+ }
2236
+
2237
+ /*
2238
+ ****************************************************************
2239
+ Import Options
2240
+ ****************************************************************
2241
+ */
2242
+ public function process_settings_import() {
2243
+
2244
+ if( empty( $_POST['database_action'] ) || 'import_settings' != $_POST['database_action'] )
2245
+ return;
2246
+
2247
+ if( ! wp_verify_nonce( $_POST['database_action_import_nonce'], 'database_action_import_nonce' ) )
2248
+ return;
2249
+
2250
+ if( ! current_user_can( 'manage_options' ) )
2251
+ return;
2252
+
2253
+ $extension = end( explode( '.', $_FILES['import_file']['name'] ) );
2254
+
2255
+ if( $extension != 'json' ) {
2256
+ wp_die( __('Please upload a valid .json file', 'wp-edit' ) );
2257
+ }
2258
+
2259
+ $import_file = $_FILES['import_file']['tmp_name'];
2260
+
2261
+ if( empty( $import_file ) ) {
2262
+ wp_die( __('Please upload a file to import', 'wp-edit') );
2263
+ }
2264
+
2265
+ global $current_user;
2266
+
2267
+ // Retrieve the settings from the file and convert the json object to an array.
2268
+ $settings = (array) json_decode( file_get_contents( $import_file ), true );
2269
+ foreach ($settings as $key => $value) {
2270
+
2271
+ // First update user meta
2272
+ if($key === 'wp_edit_user_specific') {
2273
+
2274
+ $value = (array) $value;
2275
+ update_user_meta($current_user->ID, 'aaa_wp_edit_user_meta', $value);
2276
+ }
2277
+ // Else update other options
2278
+ else {
2279
+
2280
+ $value = (array) $value;
2281
+ update_option($key, $value);
2282
+ }
2283
+ }
2284
+
2285
+ // Redirect to database page with added parameter = true
2286
+ wp_safe_redirect( admin_url( 'admin.php?page=wp_edit_options&tab=database&import=true' ) );
2287
+ exit;
2288
+ }
2289
+
2290
+ /*
2291
+ ****************************************************************
2292
+ Before wp tinymce
2293
+ ****************************************************************
2294
+ */
2295
+ public function before_wp_tiny_mce() {
2296
+
2297
+ // Add WP dashicons css file to editor
2298
+ echo '<link rel="stylesheet" type="text/css" href="'.plugins_url().'/wp-edit/css/tinymce_dashicons.css" />';
2299
+ }
2300
+
2301
+ /*
2302
+ ****************************************************************
2303
+ Tinymce before init
2304
+ ****************************************************************
2305
+ */
2306
+ public function wp_edit_tiny_mce_before_init($init) {
2307
+
2308
+ // Initialize table ability
2309
+ if (isset($init['tools'])) {
2310
+ $init['tools'] = $init['tools'].',inserttable';
2311
+ } else {
2312
+ $init['tools'] = 'inserttable';
2313
+ }
2314
+
2315
+ // Get editor default fontsize type value
2316
+ $opts_editor = get_option('wp_edit_editor');
2317
+ $default_editor_fontsize_type = isset($opts_editor['default_editor_fontsize_type']) ? $opts_editor['default_editor_fontsize_type'] : 'pt';
2318
+
2319
+ // Pass values to editor initialization
2320
+ if($default_editor_fontsize_type === 'px') {
2321
+
2322
+ $new_px = isset($opts_editor['default_editor_fontsize_values']) && !empty($opts_editor['default_editor_fontsize_values']) ? $opts_editor['default_editor_fontsize_values'] : '6px 8px 9px 10px 11px 12px 13px 14px 15px 16px 18px 20px 22px 24px 28px 32px 48px 72px';
2323
+
2324
+ if(isset($init['fontsize_formats'])) {
2325
+ $init['fontsize_formats'] = $init['fontsize_formats'].' '.$new_px;
2326
+ } else {
2327
+ $init['fontsize_formats'] = $new_px;
2328
+ }
2329
+ }
2330
+ else if($default_editor_fontsize_type === 'pt') {
2331
+
2332
+ $new_pt = isset($opts_editor['default_editor_fontsize_values']) && !empty($opts_editor['default_editor_fontsize_values']) ? $opts_editor['default_editor_fontsize_values'] : '6pt 8pt 10pt 12pt 14pt 16pt 18pt 20pt 22pt 24pt 26pt 28pt 30pt 32pt 34pt 36pt 48pt 72pt';
2333
+
2334
+ if(isset($init['fontsize_formats'])) {
2335
+ $init['fontsize_formats'] = $init['fontsize_formats'].' '.$new_pt;
2336
+ } else {
2337
+ $init['fontsize_formats'] = $new_pt;
2338
+ }
2339
+ }
2340
+ else if($default_editor_fontsize_type === 'em') {
2341
+
2342
+ $new_em = isset($opts_editor['default_editor_fontsize_values']) && !empty($opts_editor['default_editor_fontsize_values']) ? $opts_editor['default_editor_fontsize_values'] : '.8em 1em 1.2em 1.4em 1.6em 1.8em 2em';
2343
+
2344
+ if(isset($init['fontsize_formats'])) {
2345
+ $init['fontsize_formats'] = $init['fontsize_formats'].' '.$new_em;
2346
+ } else {
2347
+ $init['fontsize_formats'] = $new_em;
2348
+ }
2349
+ }
2350
+ else if($default_editor_fontsize_type === 'percent') {
2351
+
2352
+ $new_percent = isset($opts_editor['default_editor_fontsize_values']) && !empty($opts_editor['default_editor_fontsize_values']) ? $opts_editor['default_editor_fontsize_values'] : '80% 90% 100% 110% 120%';
2353
+
2354
+ if(isset($init['fontsize_formats'])) {
2355
+ $init['fontsize_formats'] = $init['fontsize_formats'].' '.$new_percent;
2356
+ } else {
2357
+ $init['fontsize_formats'] = $new_percent;
2358
+ }
2359
+ }
2360
+
2361
+ /*
2362
+ ****************************************************************
2363
+ Additional initalization if disable wpautop is true for the post
2364
+ ****************************************************************
2365
+ */
2366
+ // Get post id and meta
2367
+ $post_id = get_the_ID();
2368
+ $post_meta = get_post_meta($post_id);
2369
+ $dis_wpautop = isset($post_meta['_jwl_disable_wpautop']) && !empty($post_meta['_jwl_disable_wpautop']) ? $post_meta['_jwl_disable_wpautop'] : false;
2370
+
2371
+ // Only initialize if the disable wpautop option is enabled in the post meta
2372
+ if ($dis_wpautop != false) {
2373
+
2374
+ $init['wpautop'] = false;
2375
+ $init['indent'] = true;
2376
+ $init['wpep_noautop'] = true;
2377
+ }
2378
+
2379
+ return $init;
2380
+ }
2381
+
2382
+ /*
2383
+ ****************************************************************
2384
+ Tinymce init
2385
+ ****************************************************************
2386
+ */
2387
+ public function wp_edit_init_tinymce() {
2388
+
2389
+ // Build extra plugins array
2390
+ add_filter('mce_external_plugins', array($this, 'wp_edit_mce_external_plugins'));
2391
+
2392
+ // Get options and set appropriate tinymce toolbars
2393
+ $options_buttons = get_option('wp_edit_buttons');
2394
+ foreach ((array)$options_buttons as $key => $value) {
2395
+
2396
+ // Magic is happening right here...
2397
+ if($key == 'tmce_container') { return; }
2398
+ if($key == 'toolbar1') { add_filter('mce_buttons', array($this, 'wp_edit_add_mce')); }
2399
+ if($key == 'toolbar2') { add_filter('mce_buttons_2', array($this, 'wp_edit_add_mce_2')); }
2400
+ }
2401
+ }
2402
+
2403
+ /*
2404
+ ****************************************************************
2405
+ Tinymce external plugins
2406
+ ****************************************************************
2407
+ */
2408
+ public function wp_edit_mce_external_plugins($plugins) {
2409
+
2410
+ $options_buttons = get_option('wp_edit_buttons');
2411
+
2412
+ // Build array of all button names found in active toolbars
2413
+ $final_options = array();
2414
+ $final_options = array_merge(explode(' ', $options_buttons['toolbar1']), explode(' ', $options_buttons['toolbar2']));
2415
+
2416
+ $plugins['table'] = plugins_url() . '/wp-edit/plugins/table/plugin.min.js';
2417
+
2418
+ if(in_array('ltr', $final_options) || in_array('rtl', $final_options)) {
2419
+ $plugins['directionality'] = plugins_url() . '/wp-edit/plugins/directionality/plugin.min.js';
2420
+ }
2421
+ if(in_array('anchor', $final_options)) {
2422
+ $plugins['anchor'] = plugins_url() . '/wp-edit/plugins/anchor/plugin.min.js';
2423
+ }
2424
+ if(in_array('code', $final_options)) {
2425
+ $plugins['code'] = plugins_url() . '/wp-edit/plugins/code/plugin.min.js';
2426
+ }
2427
+ if(in_array('emoticons', $final_options)) {
2428
+ $plugins['emoticons'] = plugins_url() . '/wp-edit/plugins/emoticons/plugin.min.js';
2429
+ }
2430
+ if(in_array('hr', $final_options)) {
2431
+ $plugins['hr'] = plugins_url() . '/wp-edit/plugins/hr/plugin.min.js';
2432
+ }
2433
+ if(in_array('inserttime', $final_options)) {
2434
+ $plugins['insertdatetime'] = plugins_url() . '/wp-edit/plugins/insertdatetime/plugin.min.js';
2435
+ }
2436
+ if(in_array('preview', $final_options)) {
2437
+ $plugins['preview'] = plugins_url() . '/wp-edit/plugins/preview/plugin.min.js';
2438
+ }
2439
+ if(in_array('print', $final_options)) {
2440
+ $plugins['print'] = plugins_url() . '/wp-edit/plugins/print/plugin.min.js';
2441
+ }
2442
+ if(in_array('searchreplace', $final_options)) {
2443
+ $plugins['searchreplace'] = plugins_url() . '/wp-edit/plugins/searchreplace/plugin.min.js';
2444
+ }
2445
+ if(in_array('visualblocks', $final_options)) {
2446
+ $plugins['visualblocks'] = plugins_url() . '/wp-edit/plugins/visualblocks/plugin.min.js';
2447
+ }
2448
+ if(in_array('image_orig', $final_options)) {
2449
+ $plugins['image_orig'] = plugins_url() . '/wp-edit/plugins/image_orig/plugin.min.js';
2450
+ }
2451
+ if(in_array('advlink', $final_options)) {
2452
+ $plugins['advlink'] = plugins_url() . '/wp-edit/plugins/advlink/plugin.js';
2453
+ }
2454
+ if(in_array('acheck', $final_options)) {
2455
+ $plugins['acheck'] = plugins_url() . '/wp-edit/plugins/acheck/plugin.js';
2456
+ }
2457
+ if(in_array('abbr', $final_options)) {
2458
+ $plugins['abbr'] = plugins_url() . '/wp-edit/plugins/abbr/plugin.js';
2459
+ }
2460
+ if(in_array('columnShortcodes', $final_options)) {
2461
+ $plugins['columnShortcodes'] = plugins_url() . '/wp-edit/plugins/columnShortcodes/plugin.js';
2462
+ }
2463
+ if(in_array('nonbreaking', $final_options)) {
2464
+ $plugins['nonbreaking'] = plugins_url() . '/wp-edit/plugins/nonbreaking/plugin.min.js';
2465
+ }
2466
+ if(in_array('eqneditor', $final_options)) {
2467
+ $plugins['eqneditor'] = plugins_url() . '/wp-edit/plugins/eqneditor/plugin.min.js';
2468
+ }
2469
+
2470
+ //*** Tinymce filter if disable wpautop is true for the post ***//
2471
+ // Get post id and meta
2472
+ $post_id = get_the_ID();
2473
+ $post_meta = get_post_meta($post_id);
2474
+ $dis_wpautop = isset($post_meta['_jwl_disable_wpautop']) && !empty($post_meta['_jwl_disable_wpautop']) ? $post_meta['_jwl_disable_wpautop'] : false;
2475
+
2476
+ // Only filter if the disable wpautop option is enabled in the post meta
2477
+ if ($dis_wpautop != false) {
2478
+
2479
+ // Custom editor code to process content html
2480
+ $plugins['wpep_noautop'] = plugins_url() . '/wp-edit/plugins/wpep_noautop/plugin.js';
2481
+ }
2482
+
2483
+ return $plugins;
2484
+ }
2485
+
2486
+ /*
2487
+ ****************************************************************
2488
+ Tinymce mce buttons
2489
+ ****************************************************************
2490
+ */
2491
+ public function wp_edit_add_mce($buttons) {
2492
+
2493
+ $options = get_option('wp_edit_buttons');
2494
+ $options_toolbar1 = $options['toolbar1'];
2495
+ $default_wp_array_toolbar1 = array('bold','italic','strikethrough','bullist','numlist','blockquote','hr','alignleft','aligncenter','alignright','link','unlink','wp_more');
2496
+ $array_back = array();
2497
+
2498
+ // First, we explode the toolbar in the database
2499
+ $options_toolbar1 = explode(' ', $options_toolbar1);
2500
+
2501
+ // Next, we get the difference between ($options['toolbar1']) and ($buttons)
2502
+ $array_diff = array_diff($buttons, $options_toolbar1);
2503
+
2504
+ // Now, we take the array and loop it to find original buttons
2505
+ if($array_diff) {
2506
+
2507
+ foreach($array_diff as $array) {
2508
+
2509
+ // If the button is NOT in the original array (WP buttons), we know it is another plugin or theme button..
2510
+ if(!in_array($array, $default_wp_array_toolbar1)) {
2511
+
2512
+ // Create the new array of additional buttons to pass back to end of toolbar
2513
+ $array_back[] = $array;
2514
+ }
2515
+ }
2516
+ }
2517
+
2518
+ // Merge the difference onto the end of our saved buttons
2519
+ $merge_buttons = array_merge($options_toolbar1, $array_back);
2520
+
2521
+ return $merge_buttons;
2522
+ }
2523
+ public function wp_edit_add_mce_2($buttons) {
2524
+
2525
+ $options = get_option('wp_edit_buttons');
2526
+ $options_toolbar2 = $options['toolbar2'];
2527
+ $default_wp_array_toolbar2 = array('formatselect','underline','alignjustify','forecolor','pastetext','removeformat','charmap','outdent','indent','undo','redo','wp_help');
2528
+ $array_back = array();
2529
+
2530
+ // First, we explode the toolbar in the database
2531
+ $options_toolbar2 = explode(' ', $options_toolbar2);
2532
+
2533
+ // Next, we get the difference between ($options['toolbar1']) and ($buttons)
2534
+ $array_diff = array_diff($buttons, $options_toolbar2);
2535
+
2536
+ // Now, we take the array and loop it to find original buttons
2537
+ if($array_diff) {
2538
+
2539
+ foreach($array_diff as $array) {
2540
+
2541
+ // If the button is NOT in the original array (WP buttons), we know it is another plugin or theme button..
2542
+ if(!in_array($array, $default_wp_array_toolbar2)) {
2543
+
2544
+ // Create the new array of additional buttons to pass back to end of toolbar
2545
+ $array_back[] = $array;
2546
+ }
2547
+ }
2548
+ }
2549
+
2550
+ // Merge the difference onto the end of our saved buttons
2551
+ $merge_buttons = array_merge($options_toolbar2, $array_back);
2552
+
2553
+ return $merge_buttons;
2554
+ }
2555
+
2556
+ public function htlmedit_pre($content) {
2557
+
2558
+ // Get post id and meta
2559
+ $post_id = get_the_ID();
2560
+ $post_meta = get_post_meta($post_id);
2561
+ $dis_wpautop = isset($post_meta['_jwl_disable_wpautop']) && !empty($post_meta['_jwl_disable_wpautop']) ? $post_meta['_jwl_disable_wpautop'] : false;
2562
+
2563
+ // Only filter if the disable wpautop option is enabled in the post meta
2564
+ if ($dis_wpautop != false) {
2565
+
2566
+ $content = str_replace( array('&amp;', '&lt;', '&gt;'), array('&', '<', '>'), $content );
2567
+ $content = wpautop( $content );
2568
+ $content = preg_replace( '/^<p>(https?:\/\/[^<> "]+?)<\/p>$/im', '$1', $content );
2569
+ $content = htmlspecialchars( $content, ENT_NOQUOTES, get_option( 'blog_charset' ) );
2570
+ }
2571
+ return $content;
2572
+ }
2573
+
2574
+ /*
2575
+ ****************************************************************
2576
+ Plugin update message
2577
+ ****************************************************************
2578
+ */
2579
+ public function wpedit_plugin_update_cb($plugin_data, $r) {
2580
+
2581
+ $admin_email = get_option('admin_email');
2582
+
2583
+ echo '<br /><br />';
2584
+ echo '<div style="border:1px solid black;border-radius:10px;">';
2585
+
2586
+ echo '<div style="width:30%;padding:10px;float:left;">';
2587
+ echo '<h3>'; _e('Stay Informed', 'wp-edit'); echo '</h3>';
2588
+ _e('Signup to our free <a target="_blank" href="http://www.feedblitz.com/f/?Sub=950320">Feedblitz</a> service; to receive important plugin news, updates and discount offers for our Pro version.', 'wp-edit');
2589
+ echo '<br /><br />';
2590
+ echo 'Email:<br /><input id="wpedit_feedblitz_signup_email" name="EMAIL" type="text" value="'.$admin_email.'" style="width:50%;margin-right:10px;" /><input id="wpedit_feedblitz_signup" type="button" value="Subscribe me! &raquo;" class="button-primary" />';
2591
+ echo '</div>';
2592
+
2593
+ echo '<div style="width:30%;padding:10px;float:left;margin-left:20px;">';
2594
+ echo '<h3>'; _e('Other Plugin News', 'wp-edit'); echo '</h3>';
2595
+ _e('* Plugin documentation is being added to our <a target="_blank" href="http://learn.wpeditpro.com">Knowledge Base</a>. Check back frequently for more tutorial articles.', 'wp-edit');
2596
+ echo '</div>';
2597
+
2598
+ echo '<div style="clear:both;"></div>';
2599
+ echo '</div>';
2600
+ }
2601
+ public function wpedit_plugin_update_js() {
2602
+
2603
+ global $pagenow;
2604
+ if($pagenow == 'plugins.php') {
2605
+
2606
+ echo "<script language='javascript'>
2607
+ jQuery(document).ready(function($) {
2608
+
2609
+ $('#wpedit_feedblitz_signup').click(function() {
2610
+
2611
+ feed_email = $('#wpedit_feedblitz_signup_email').val();
2612
+ window.open('http://www.feedblitz.com/f/?Sub=950320&Email='+feed_email);
2613
+ });
2614
+ });
2615
+ </script>";
2616
+ }
2617
+ }
2618
+
2619
+ }
2620
+ $wp_edit_class = new wp_edit_class();
2621
+
2622
+
2623
+
2624
+ /*
2625
+ ****************************************************************
2626
+ Include Plugin Functions
2627
+ ****************************************************************
2628
+ */
2629
+ include 'includes/functions.php';
2630
+
2631
+
2632
+ /*
2633
+ ****************************************************************
2634
+ Include functions for running predefined styles
2635
+ ****************************************************************
2636
+ */
2637
+ include 'includes/style_formats.php';
2638
+
2639
+
2640
+ /*
2641
+ ****************************************************************
2642
+ Pointers Class
2643
+ ****************************************************************
2644
+ */
2645
+ class wpe_admin_pointers {
2646
+
2647
+ public function __construct() {
2648
+
2649
+ add_action('admin_enqueue_scripts', array($this, 'custom_admin_pointers_header'));
2650
+ }
2651
+
2652
+ public function custom_admin_pointers_header() {
2653
+
2654
+ if ($this->custom_admin_pointers_check()) {
2655
+
2656
+ add_action('admin_print_footer_scripts', array($this, 'custom_admin_pointers_footer'));
2657
+
2658
+ wp_enqueue_script('wp-pointer');
2659
+ wp_enqueue_style('wp-pointer');
2660
+ }
2661
+ }
2662
+
2663
+ public function custom_admin_pointers_check() {
2664
+
2665
+ $admin_pointers = $this->custom_admin_pointers();
2666
+ foreach ( $admin_pointers as $pointer => $array ) {
2667
+ if ( $array['active'] )
2668
+ return true;
2669
+ }
2670
+ }
2671
+
2672
+ public function custom_admin_pointers_footer() {
2673
+
2674
+ $admin_pointers = $this->custom_admin_pointers();
2675
+ ?>
2676
+ <script type="text/javascript">
2677
+ /* <![CDATA[ */
2678
+ ( function($) {
2679
+ <?php
2680
+ foreach ( $admin_pointers as $pointer => $array ) {
2681
+ if ( $array['active'] ) {
2682
+ ?>
2683
+ $('<?php echo $array['anchor_id']; ?>').pointer({
2684
+ content: '<?php echo $array['content']; ?>',
2685
+ position: {
2686
+ edge: '<?php echo $array['edge']; ?>',
2687
+ align: '<?php echo $array['align']; ?>'
2688
+ },
2689
+ close: function() {
2690
+ $.post(ajaxurl, {
2691
+ pointer: '<?php echo $pointer; ?>',
2692
+ action: 'dismiss-wp-pointer'
2693
+ });
2694
+ }
2695
+ }).pointer('open');
2696
+ <?php
2697
+ }
2698
+ }
2699
+ ?>
2700
+ } )(jQuery);
2701
+ /* ]]> */
2702
+ </script>
2703
+ <?php
2704
+ }
2705
+
2706
+ public function custom_admin_pointers() {
2707
+
2708
+ $dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
2709
+ $version = '1_0'; // replace all periods in 1.0 with an underscore
2710
+ $prefix = 'wpe_admin_pointers_' . $version . '_';
2711
+
2712
+ $new_pointer_content = '<h3>' . __( 'WP Edit Tip' ) . '</h3>';
2713
+ $new_pointer_content .= '<p>' . __( 'If only one row of buttons is visible; try clicking the <a target="_blank" href="http://learn.wpeditpro.com/wordpress-tinymce-editor/#ipt_kb_toc_73_6">"Toolbar Toggle"</a> button to expand/collapse additional editor button rows.' ) . '</p>';
2714
+
2715
+ return array(
2716
+ $prefix . 'toggle_toolbar' => array(
2717
+ 'content' => $new_pointer_content,
2718
+ 'anchor_id' => '#wp-content-editor-container',
2719
+ 'edge' => 'bottom',
2720
+ 'align' => 'top',
2721
+ 'active' => ( ! in_array( $prefix . 'toggle_toolbar', $dismissed ) )
2722
+ )
2723
+ );
2724
+ }
2725
+ }
2726
+ //Initiate admin pointers
2727
+ $wpe_admin_pointers = new wpe_admin_pointers();
2728
+
2729
+ ?>
plugins/abbr/abbr.png ADDED
Binary file
plugins/abbr/plugin.js ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * https://wpeditpro.com
6
+ */
7
+
8
+ jQuery(document).ready(function($) {
9
+
10
+ tinymce.PluginManager.add('abbr', function(ed, url) {
11
+
12
+ ed.addButton('abbr', {
13
+
14
+ image: url + '/abbr.png',
15
+ tooltip: 'Abbreviation',
16
+ onclick: abbr
17
+ });
18
+
19
+ function abbr() {
20
+
21
+ // Set variables
22
+ var get_sel_content = tinymce.activeEditor.selection.getContent(); // Get selected content
23
+ var node = tinymce.activeEditor.selection.getNode(); // Get active node
24
+ var node_content = '';
25
+ var node_title = '';
26
+
27
+ // If node is an abbr node... get it's innerHTML and title
28
+ if(node.nodeName === 'ABBR') {
29
+
30
+ node_content = node.innerHTML; // abbreviation
31
+ node_title = node.title; // title
32
+
33
+ ed.windowManager.open({
34
+
35
+ title: 'Edit Abbreviation',
36
+ body: [{
37
+
38
+ type: 'textbox',
39
+ name: 'abbr_title',
40
+ size: 40,
41
+ label: 'ABBR Title',
42
+ value: node_title
43
+ },{
44
+
45
+ type: 'textbox',
46
+ name: 'abbr',
47
+ size: 40,
48
+ label: 'Abbreviation',
49
+ value: node_content
50
+ }],
51
+ onsubmit: function(t) {
52
+
53
+ // Clear current abbr node
54
+ tinymce.activeEditor.selection.getNode().remove();
55
+ ed.execCommand('mceInsertContent', !1, '<abbr title="'+t.data.abbr_title+'">'+t.data.abbr+'</abbr>');
56
+ }
57
+ })
58
+ }
59
+ // Else this is NOT an abbr node
60
+ else {
61
+
62
+ ed.windowManager.open({
63
+
64
+ title: 'Abbreviation',
65
+ body: [{
66
+
67
+ type: 'textbox',
68
+ name: 'abbr_selection',
69
+ label: 'Selection',
70
+ size: 40,
71
+ value: get_sel_content
72
+ },{
73
+
74
+ type: 'textbox',
75
+ name: 'abbr',
76
+ size: 40,
77
+ label: 'Abbreviation',
78
+ value: node_content
79
+ }],
80
+ onsubmit: function(t) {
81
+
82
+ ed.execCommand('mceInsertContent', !1, '<abbr title="'+t.data.abbr_selection+'">'+t.data.abbr+'</abbr>');
83
+ }
84
+ })
85
+ }
86
+ }
87
+ });
88
+ });
plugins/acheck/img/acheck.png ADDED
Binary file
plugins/acheck/plugin.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * http://ultimatetinymcepro.com
6
+ */
7
+
8
+ jQuery(document).ready(function($) {
9
+
10
+ tinymce.PluginManager.add('acheck', function(editor, url) {
11
+
12
+
13
+ // Register clker button
14
+ editor.addButton('acheck', {
15
+
16
+ image : url + '/img/acheck.png',
17
+ tooltip : 'Accessibility Checker',
18
+ onclick : acheck
19
+ });
20
+
21
+
22
+ // Run windowmanager function
23
+ function acheck() {
24
+
25
+ get_content = tinyMCE.activeEditor.getContent({format : 'raw'});
26
+
27
+ var theCode = '<html><body onLoad="document.accessform.submit();"> \n';
28
+ theCode += '<h1>Submitting Code for Accessibility Checking.....</h1>\n';
29
+ theCode += '<form action="http://achecker.ca/checker/index.php" name="accessform" method="post"> \n';
30
+ theCode += '<input type="hidden" name="gid[]" value="8" /> \n';
31
+ theCode += '<textarea name="validate_content">' + get_content + '</textarea>\n';
32
+ theCode += '<input type="submit" /></form> \n';
33
+ theCode += '</body></html> \n';
34
+ accessWin = window.open('', 'accessWin', '');
35
+ accessWin.document.writeln(theCode);
36
+ accessWin.document.close();
37
+ }
38
+
39
+ });
40
+ });
plugins/advlink/advlink.php ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ *
5
+ * @author Josh Lobe
6
+ * http://ultimatetinymcepro.com
7
+ */
8
+ ?>
9
+
10
+ <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
11
+ <script type="text/javascript" src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
12
+ <script type="text/javascript" src="includes/advlink.js"></script>
13
+ <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.7/themes/smoothness/jquery-ui.css" />
14
+ <link rel="stylesheet" href="includes/advlink.css" />
15
+
16
+ <div id="body">
17
+
18
+
19
+ <div id="options_block">
20
+
21
+ <table cellpadding="3" id="adv_link_table">
22
+ <tbody>
23
+ <tr>
24
+ <td>
25
+ <label id="advlink_link_label" for="advlink_link" title="Enter a URL for this link.">Link Url</label>
26
+ </td><td>
27
+ <input type="text" id="advlink_link" placeholder="http://example.com" />
28
+ </td>
29
+ </tr>
30
+ <tr>
31
+ <td>
32
+ <label id="advlink_title_label" for="advlink_title" title="Enter a title for this link.">Title</label>
33
+ </td><td>
34
+ <input type="text" id="advlink_title" />
35
+ </td>
36
+ </tr>
37
+ <tr>
38
+ <td>
39
+ <label id="advlink_id_label" for="advlink_id" title="Enter an ID for this link.">ID</label>
40
+ </td><td>
41
+ <input type="text" id="advlink_id" />
42
+ </td>
43
+ </tr>
44
+ <tr>
45
+ <td>
46
+ <label id="advlink_classes_label" for="advlink_classes" title="Enter space separated class names for this link.">Classes</label>
47
+ </td><td>
48
+ <input type="text" id="advlink_classes" />
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td>
53
+ <label id="advlink_style_label" for="advlink_style" title="Enter custom css for this link.">Style</label>
54
+ </td><td>
55
+ <input type="text" id="advlink_style" />
56
+ </td>
57
+ </tr>
58
+ <tr>
59
+ <td>
60
+ Target
61
+ </td><td>
62
+ <select id="advlink_target">
63
+ <option value="select">Select...</option>
64
+ <option value="_blank">_blank</option>
65
+ <option value="_self">_self</option>
66
+ <option value="_parent">_parent</option>
67
+ <option value="_top">_top</option>
68
+ </select>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td>
73
+ NoFollow
74
+ </td><td>
75
+ <input type="checkbox" id="advlink_nofollow" /><label id="advlink_nofollow_label" for="advlink_nofollow">Off</label>
76
+ </td>
77
+ </tr>
78
+ </tbody>
79
+ </table>
80
+
81
+ </div>
82
+
83
+ </div>
84
+ <br />
85
+ <button id="advlink_cancel" class="btn-default">Cancel</button> <button id="advlink_insert" class="btn-primary">Insert and Close</button>
86
+ <br /><br />
plugins/advlink/images/advlink.png ADDED
Binary file
plugins/advlink/includes/advlink.css ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * http://ultimatetinymcepro.com
6
+ */
7
+
8
+ #body {
9
+ margin: auto;
10
+ padding:20px;
11
+
12
+ background: #fbfbfb;
13
+ background: -moz-linear-gradient(top, #fbfbfb 0%, #dedede 100%);
14
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#dedede));
15
+ background: -webkit-linear-gradient(top, #fbfbfb 0%,#dedede 100%);
16
+ background: -o-linear-gradient(top, #fbfbfb 0%,#dedede 100%);
17
+ background: -ms-linear-gradient(top, #fbfbfb 0%,#dedede 100%);
18
+ background: linear-gradient(to bottom, #fbfbfb 0%,#dedede 100%);
19
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbfbfb', endColorstr='#dedede',GradientType=0 );
20
+
21
+ border: 1px solid #CCC;
22
+ border-radius: 5px;
23
+ }
24
+
25
+ .form-control {
26
+ background-color: #FFFFFF;
27
+ border: 1px solid #CCCCCC;
28
+ border-radius: 4px;
29
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
30
+ color: #555555;
31
+ font-size: 14px;
32
+ height: 34px;
33
+ line-height: 1.42857;
34
+ padding: 6px 12px;
35
+ transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
36
+ }
37
+ .form-control:focus {
38
+ border-color: #66AFE9;
39
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(102, 175, 233, 0.6);
40
+ outline: 0 none;
41
+ }
42
+
43
+ .btn-primary, .btn-default {
44
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 1px 1px rgba(0, 0, 0, 0.075);
45
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
46
+ font-weight: bold;
47
+ }
48
+ .btn-primary {
49
+ background-image: linear-gradient(to bottom, #428BCA 0px, #3071A9 100%);
50
+ background-repeat: repeat-x;
51
+ border-color: #2D6CA2;
52
+ color: #FFF;
53
+ padding: 5px 20px;
54
+ }
55
+ .btn-default {
56
+ background-image: linear-gradient(to bottom, #FFFFFF 0px, #E6E6E6 100%);
57
+ background-repeat: repeat-x;
58
+ border-color: #CCCCCC;
59
+ text-shadow: 0 1px 0 #FFFFFF;
60
+ padding: 5px 15px;
61
+ }
62
+
63
+
64
+ #advlink_insert {
65
+ float:right;
66
+ margin-right:20px;
67
+ cursor:pointer;
68
+ }
69
+ #advlink_cancel {
70
+ float:right;
71
+ margin-right:20px;
72
+ cursor:pointer;
73
+ }
74
+
75
+
76
+ .ui-button-text {
77
+ padding: 2px 10px !important;
78
+ font-size: .8em;
79
+ }
80
+
81
+ table#adv_link_table {
82
+ width:100%;
83
+ }
84
+ #advlink_link {
85
+ width:100%;
86
+ }
plugins/advlink/includes/advlink.js ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * http://wpeditpro.com
6
+ */
7
+
8
+ jQuery(document).ready(function($) {
9
+
10
+ // Declare window variable
11
+ var this_advlink_window = top.tinymce.activeEditor;
12
+
13
+ // Check if node is an a element.. and if so, populate any exisiting elements into popup window
14
+ // EDIT MODE
15
+ get_nodename = this_advlink_window.selection.getNode().nodeName;
16
+ if(get_nodename == 'A' || get_nodename == 'a') {
17
+
18
+ // Get active node
19
+ get_node = this_advlink_window.selection.getNode();
20
+ // jQuery-ify it
21
+ jq_node = $(get_node);
22
+ // Extract attributes
23
+ jq_link = jq_node.attr('href');
24
+ jq_title = jq_node.attr('title');
25
+ jq_id = jq_node.attr('id');
26
+ jq_classes = jq_node.attr('class');
27
+ jq_style = jq_node.attr('style');
28
+ jq_target = jq_node.attr('target');
29
+ jq_nofollow = jq_node.attr('rel');
30
+
31
+ // Populate attributes
32
+ if(jq_link != 'undefined') {
33
+ $('#advlink_link').val(jq_link);
34
+ }
35
+ if(jq_title != 'undefined') {
36
+ $('#advlink_title').val(jq_title);
37
+ }
38
+ if(jq_id != 'undefined') {
39
+ $('#advlink_id').val(jq_id);
40
+ }
41
+ if(jq_classes != 'undefined') {
42
+ $('#advlink_classes').val(jq_classes);
43
+ }
44
+ if(jq_style != 'undefined') {
45
+ $('#advlink_style').val(jq_style);
46
+ }
47
+ if(jq_target != 'undefined') {
48
+ $('#advlink_target').val(jq_target);
49
+ }
50
+ if(jq_nofollow == 'nofollow') {
51
+ $('#advlink_nofollow').prop('checked', true);
52
+ $('#advlink_nofollow_label').html('On');
53
+ }
54
+ }
55
+
56
+
57
+ // Action buttons
58
+ $('#advlink_cancel').click(function() {
59
+
60
+ this_advlink_window.windowManager.close();
61
+ });
62
+ $('#advlink_insert').click(function() {
63
+
64
+ // Get values from window
65
+ this_link = $('#advlink_link').val();
66
+ this_title = $('#advlink_title').val();
67
+ this_id = $('#advlink_id').val();
68
+ this_classes = $('#advlink_classes').val();
69
+ this_style = $('#advlink_style').val();
70
+ this_target = $('#advlink_target').val();
71
+
72
+ // Get checkbox values
73
+ this_nofollow = $('#advlink_nofollow').is(':checked');
74
+
75
+ // Get active selection
76
+ var get_selection = this_advlink_window.selection.getContent({format : 'text'});
77
+
78
+ // Add appropriate options if user selected
79
+ if(this_link == '' && this_title == '' && this_id == '' && this_classes == '' && this_style == '' && this_target == 'select' && this_nofollow == false) {
80
+ alert('Nothing has been changed, so nothing will be modified in the content editor.');
81
+ return false;
82
+ }
83
+
84
+
85
+ // Start link building
86
+ final_link = '<a';
87
+
88
+ // Check link url
89
+ if(this_link != '') {
90
+ final_link += ' href="'+this_link+'"';
91
+ }
92
+ // Check Title
93
+ if(this_title != '') {
94
+ final_link += ' title="'+this_title+'"';
95
+ }
96
+ // Check ID
97
+ if(this_id != '') {
98
+ final_link += ' id="'+this_id+'"';
99
+ }
100
+ // Check Classes
101
+ if(this_classes != '') {
102
+ final_link += ' class="'+this_classes+'"';
103
+ }
104
+ // Check Style
105
+ if(this_style != '') {
106
+ final_link += ' style="'+this_style+'"';
107
+ }
108
+ // Check target
109
+ if(this_target != 'select') {
110
+ final_link += ' target="'+this_target+'"';
111
+ }
112
+ // Check NoFollow
113
+ if(this_nofollow == true) {
114
+ final_link += ' rel="nofollow"';
115
+ }
116
+
117
+ // Add closing tag
118
+ final_link += '>';
119
+
120
+
121
+ // If selection is empty, we have to get node inner content to pass back to editor
122
+ if(get_selection == '') {
123
+ // Get node html
124
+ get_innerhtml = this_advlink_window.selection.getNode().innerHTML;
125
+
126
+ orig_node = this_advlink_window.selection.getNode();
127
+ this_advlink_window.dom.remove(orig_node);
128
+ }
129
+ // Else get active selection
130
+ else {
131
+ get_innerhtml = get_selection;
132
+ }
133
+ // Add html to final link
134
+ final_link += get_innerhtml;
135
+
136
+ // Build link closing tag
137
+ final_link += '</a>';
138
+
139
+ // Insert content into editor
140
+ this_advlink_window.execCommand('mceInsertContent', !1, final_link);
141
+ // Close window
142
+ this_advlink_window.windowManager.close();
143
+ });
144
+
145
+
146
+ // Style checkboxes with jquery UI button
147
+ $( "#advlink_nofollow" ).button();
148
+
149
+ // Adjust button text based on click state
150
+ $( "#advlink_nofollow" ).click(function() {
151
+
152
+ isset_advlink = $(this).is(':checked');
153
+ if(isset_advlink == true) {
154
+ $('#advlink_nofollow_label > span').html('On');
155
+ }
156
+ else {
157
+ $('#advlink_nofollow_label > span').html('Off');
158
+ }
159
+ });
160
+
161
+ });
plugins/advlink/plugin.js ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * http://ultimatetinymcepro.com
6
+ */
7
+
8
+ jQuery(document).ready(function($) {
9
+
10
+
11
+ tinymce.PluginManager.add('advlink', function(editor, url) {
12
+
13
+
14
+ editor.addButton('advlink', {
15
+
16
+ image: url + '/images/advlink.png',
17
+ tooltip: 'Insert/Edit Advanced Link',
18
+ onclick: open_advlink,
19
+ disabled: true,
20
+ onPostRender: function() {
21
+ var ctrl = this;
22
+
23
+ editor.on('click', function(e) {
24
+
25
+ // Check editor to see if a selection was made (highlihted text)
26
+ selection = editor.selection.getContent({format : 'text'});
27
+ if(selection != '') {
28
+ ctrl.disabled(false);
29
+ ctrl.active(true);
30
+ }
31
+ else {
32
+ ctrl.disabled(true);
33
+ ctrl.active(false);
34
+ }
35
+
36
+ // Check editor nodename to see if we are in an <a> tag
37
+ get_nodename = editor.selection.getNode().nodeName;
38
+ if(get_nodename == 'A' || get_nodename == 'a') {
39
+ ctrl.disabled(false);
40
+ ctrl.active(true);
41
+ }
42
+ });
43
+ }
44
+
45
+ });
46
+
47
+ function open_advlink() {
48
+
49
+ var winW = 630, winH = 460;
50
+ if (document.body && document.body.offsetWidth) {
51
+ winW = document.body.offsetWidth;
52
+ winH = document.body.offsetHeight;
53
+ }
54
+ if (document.compatMode=='CSS1Compat' &&
55
+ document.documentElement &&
56
+ document.documentElement.offsetWidth ) {
57
+ winW = document.documentElement.offsetWidth;
58
+ winH = document.documentElement.offsetHeight;
59
+ }
60
+ if (window.innerWidth && window.innerHeight) {
61
+ winW = window.innerWidth;
62
+ winH = window.innerHeight;
63
+ }
64
+
65
+ editor.windowManager.open({
66
+
67
+ title: 'Insert/Edit Advanced Link',
68
+ width: winW*.2,
69
+ height: winH*.4,
70
+ url: url+'/advlink.php'
71
+ })
72
+ }
73
+
74
+ });
75
+ });
plugins/anchor/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("anchor",function(e){function t(){var t=e.selection.getNode();e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"name",size:40,label:"Name",value:t.name||t.id},onsubmit:function(t){e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t.data.name}))}})}e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:t,stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:t})});
plugins/code/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("code",function(e){function o(){e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),value:e.getContent({source_view:!0}),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(o){e.focus(),e.undoManager.transact(function(){e.setContent(o.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}})}e.addCommand("mceCodeEditor",o),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:o}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:o})});
plugins/colorpicker/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("colorpicker",function(e){function n(n,a){function i(e){var n=new tinymce.util.Color(e),a=n.toRgb();l.fromJSON({r:a.r,g:a.g,b:a.b,hex:n.toHex().substr(1)}),t(n.toHex())}function t(e){l.find("#preview")[0].getEl().style.background=e}var l=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:a,onchange:function(){var e=this.rgb();l&&(l.find("#r").value(e.r),l.find("#g").value(e.g),l.find("#b").value(e.b),l.find("#hex").value(this.value().substr(1)),t(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,n,a=l.find("colorpicker")[0];return e=this.name(),n=this.value(),"hex"==e?(n="#"+n,i(n),void a.value(n)):(n={r:l.find("#r").value(),g:l.find("#g").value(),b:l.find("#b").value()},a.value(n),void i(n))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){n("#"+this.toJSON().hex)}});i(a)}e.settings.color_picker_callback||(e.settings.color_picker_callback=n)});
plugins/columnShortcodes/columnShortcodes.htm ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ *
3
+ *
4
+ * @author Josh Lobe
5
+ * https://wpeditpro.com
6
+ */
7
+ -->
8
+
9
+ <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>
10
+ <script type="text/javascript" src="includes/columnShortcodes.js"></script>
11
+ <link rel="stylesheet" href="includes/columnShortcodes.css" />
12
+
13
+ <div id="body" style="padding:0 20px;">
14
+
15
+ <div>
16
+ <p style="font-size:18px;">Select number of columns:</p>
17
+ <select id="select_column_number">
18
+ <option value="">Select...</option>
19
+ <option value="two">Two</option>
20
+ <option value="three">Three</option>
21
+ <option value="four">Four</option>
22
+ <option value="five">Five</option>
23
+ <option value="six">Six</option>
24
+ </select>
25
+ </div>
26
+
27
+ <div style="margin-top:20px;"></div>
28
+
29
+ <div id="populate_select_sizes">
30
+ </div>
31
+
32
+ <div style="margin-top:20px;"></div>
33
+
34
+ <div id="size_preview">
35
+ </div>
36
+ </div>
plugins/columnShortcodes/includes/columnShortcodes.css ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* ------- Fluid Columns ------- */
2
+ .jwl_one_half{width:48%;}
3
+ .jwl_one_third{width:30.66%;}
4
+ .jwl_two_third{width:65.33%;}
5
+ .jwl_one_fourth{width:22%;}
6
+ .jwl_three_fourth{width:74%;}
7
+ .jwl_one_fifth{width:16.8%;}
8
+ .jwl_two_fifth{width:37.6%;}
9
+ .jwl_three_fifth{width:58.4%;}
10
+ .jwl_four_fifth{width:67.2%;}
11
+ .jwl_one_sixth{width:13.33%;}
12
+ .jwl_five_sixth{width:82.67%;}
13
+
14
+ .jwl_one_half, .jwl_one_third, .jwl_two_third, .jwl_three_fourth, .jwl_one_fourth, .jwl_one_fifth, .jwl_two_fifth,
15
+ .jwl_three_fifth, .jwl_four_fifth, .jwl_one_sixth, .jwl_five_sixth {
16
+ position:relative;
17
+ margin-right:2%;
18
+ float:left;
19
+ border:1px solid black;
20
+ height:30px;
21
+ background-color:#CCC;
22
+ }
23
+
24
+ .last{ margin-right:0 !important; clear:right; }
25
+ .clearboth {clear:both;display:block;font-size:0;height:0;line-height:0;width:100%;}
26
+
27
+ /* ------- Added for Right to Left language support ------- */
28
+ .rtl .jwl_one_half, .rtl .jwl_one_third, .rtl .jwl_two_third, .rtl .jwl_three_fourth, .rtl .jwl_one_fourth,
29
+ .rtl .jwl_one_fifth, .rtl .jwl_two_fifth, .rtl .jwl_three_fifth, .rtl .jwl_four_fifth, .rtl .jwl_one_sixth, .rtl .jwl_five_sixth {
30
+ float: right;
31
+ margin-right: inherit;
32
+ margin-left: 4%;
33
+ }
34
+
35
+ .rtl .last {
36
+ clear: left;
37
+ margin-left: 0 !important;
38
+ margin-right: inherit;
39
+ }
40
+
41
+ .button-primary {
42
+ background: #2ea2cc;
43
+ border-color: #0074a2;
44
+ box-shadow: 0 1px 0 rgba(120, 200, 230, 0.5) inset, 0 1px 0 rgba(0, 0, 0, 0.15);
45
+ color: #fff;
46
+ text-decoration: none;
47
+ height: 30px;
48
+ line-height: 28px;
49
+ padding: 0 12px 2px;
50
+ text-align: center;
51
+ vertical-align: top;
52
+ border-radius: 3px;
53
+ border-style: solid;
54
+ border-width: 1px;
55
+ box-sizing: border-box;
56
+ cursor: pointer;
57
+ font-size: 13px;
58
+ font-weight: bold;
59
+ }
60
+ .button-primary:hover {
61
+ background: #1e8cbe;
62
+ border-color: #0074a2;
63
+ box-shadow: 0 1px 0 rgba(120, 200, 230, 0.6) inset;
64
+ color: #fff;
65
+ }
plugins/columnShortcodes/includes/columnShortcodes.js ADDED
@@ -0,0 +1,713 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+ // Select column number
4
+ $('#select_column_number').change(function() {
5
+
6
+ // Clear preview html
7
+ $('#size_preview').html('');
8
+
9
+ // Get current column selection
10
+ get_columns = $(this).val();
11
+
12
+ select_size = '<hr /><p style="font-size:18px;">Select column sizes:</p><select id="select_column_size">';
13
+
14
+ if(get_columns === 'two') {
15
+
16
+ select_size +=
17
+ '<option value="">Select...</option>'+
18
+ '<option value="1656">1/6 - 5/6</option>'+
19
+ '<option value="1545">1/5 - 4/5</option>'+
20
+ '<option value="1434">1/4 - 3/4</option>'+
21
+ '<option value="1323">1/3 - 2/3</option>'+
22
+ '<option value="1212">1/2 - 1/2</option>'+
23
+ '<option value="2313">2/3 - 1/3</option>'+
24
+ '<option value="3414">3/4 - 1/4</option>'+
25
+ '<option value="4515">4/5 - 1/5</option>'+
26
+ '<option value="5616">5/6 - 1/6</option>';
27
+ }
28
+
29
+ if(get_columns === 'three') {
30
+
31
+ select_size +=
32
+ '<option value="">Select...</option>'+
33
+ '<option value="161623">1/6 - 1/6 - 2/3</option>'+
34
+ '<option value="161312">1/6 - 1/3 - 1/2</option>'+
35
+ '<option value="161213">1/6 - 1/2 - 1/3</option>'+
36
+ '<option value="162316">1/6 - 2/3 - 1/6</option>'+
37
+ '<option value="151535">1/5 - 1/5 - 3/5</option>'+
38
+ '<option value="152525">1/5 - 2/5 - 2/5</option>'+
39
+ '<option value="153515">1/5 - 3/5 - 1/5</option>'+
40
+ '<option value="141214">1/4 - 1/2 - 1/4</option>'+
41
+ '<option value="141412">1/4 - 1/4 - 1/2</option>'+
42
+ '<option value="131313">1/3 - 1/3 - 1/3</option>'+
43
+ '<option value="131612">1/3 - 1/6 - 1/2</option>'+
44
+ '<option value="131216">1/3 - 1/2 - 1/6</option>'+
45
+ '<option value="121316">1/2 - 1/3 - 1/6</option>'+
46
+ '<option value="121613">1/2 - 1/6 - 1/3</option>'+
47
+ '<option value="121414">1/2 - 1/4 - 1/4</option>'+
48
+ '<option value="231616">2/3 - 1/6 - 1/6</option>'+
49
+ '<option value="251525">2/5 - 1/5 - 2/5</option>'+
50
+ '<option value="252515">2/5 - 2/5 - 1/5</option>'+
51
+ '<option value="351515">3/5 - 1/5 - 1/5</option>';
52
+ }
53
+
54
+ if(get_columns === 'four') {
55
+
56
+ select_size +=
57
+ '<option value="">Select...</option>'+
58
+ '<option value="16161612">1/6 - 1/6 - 1/6 - 1/2</option>'+
59
+ '<option value="16161216">1/6 - 1/6 - 1/2 - 1/6</option>'+
60
+ '<option value="16121616">1/6 - 1/2 - 1/6 - 1/6</option>'+
61
+ '<option value="16161313">1/6 - 1/6 - 1/3 - 1/3</option>'+
62
+ '<option value="16131613">1/6 - 1/3 - 1/6 - 1/3</option>'+
63
+ '<option value="16131316">1/6 - 1/3 - 1/3 - 1/6</option>'+
64
+ '<option value="15151525">1/5 - 1/5 - 1/5 - 2/5</option>'+
65
+ '<option value="15152515">1/5 - 1/5 - 2/5 - 1/5</option>'+
66
+ '<option value="15251515">1/5 - 2/5 - 1/5 - 1/5</option>'+
67
+ '<option value="14141414">1/4 - 1/4 - 1/4 - 1/4</option>'+
68
+ '<option value="13131616">1/3 - 1/3 - 1/6 - 1/6</option>'+
69
+ '<option value="13161613">1/3 - 1/6 - 1/6 - 1/3</option>'+
70
+ '<option value="13161316">1/3 - 1/6 - 1/3 - 1/6</option>'+
71
+ '<option value="12161616">1/2 - 1/6 - 1/6 - 1/6</option>'+
72
+ '<option value="25151515">2/5 - 1/5 - 1/5 - 1/5</option>';
73
+ }
74
+
75
+ if(get_columns === 'five') {
76
+
77
+ select_size +=
78
+ '<option value="">Select...</option>'+
79
+ '<option value="1515151515">1/5 - 1/5 - 1/5 - 1/5 - 1/5</option>'+
80
+ '<option value="1616161613">1/6 - 1/6 - 1/6 - 1/6 - 1/3</option>'+
81
+ '<option value="1616161316">1/6 - 1/6 - 1/6 - 1/3 - 1/6</option>'+
82
+ '<option value="1616131616">1/6 - 1/6 - 1/3 - 1/6 - 1/6</option>'+
83
+ '<option value="1613161616">1/6 - 1/3 - 1/6 - 1/6 - 1/6</option>'+
84
+ '<option value="1316161616">1/3 - 1/6 - 1/6 - 1/6 - 1/6</option>';
85
+ }
86
+
87
+ if(get_columns === 'six') {
88
+
89
+ select_size +=
90
+ '<option value="">Select...</option>'+
91
+ '<option value="161616161616">1/6 - 1/6 - 1/6 - 1/6 - 1/6 - 1/6</option>';
92
+ }
93
+
94
+ select_size += '</select>';
95
+
96
+ // Populate hidden div with select column sizes
97
+ $('#populate_select_sizes').html(select_size);
98
+ });
99
+
100
+
101
+ // Select column sizes select button change function
102
+ $(document).on('change', '#select_column_size', function() {
103
+
104
+
105
+ get_size = $(this).val();
106
+ var editor_text = '';
107
+ preview_html = '<hr /><p style="font-size:18px;">Preview:</p>';
108
+
109
+ // ********************************
110
+ // Get columns equals 'two'
111
+ // ********************************
112
+ if(get_size === '1656') {
113
+
114
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
115
+ '<div class="jwl_five_sixth last">Content</div>'+
116
+ '<div style="clear:both;"></div>'+
117
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
118
+
119
+ editor_text = '[one_sixth]CONTENT[/one_sixth][five_sixth_last]CONTENT[/five_sixth_last]';
120
+ }
121
+
122
+ if(get_size === '1545') {
123
+
124
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
125
+ '<div class="jwl_four_fifth last">Content</div>'+
126
+ '<div style="clear:both;"></div>'+
127
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
128
+
129
+ editor_text = '[one_fifth]CONTENT[/one_fifth][four_fifth_last]CONTENT[/four_fifth_last]';
130
+ }
131
+
132
+ if(get_size === '1434') {
133
+
134
+ preview_html += '<div class="jwl_one_fourth">Content</div>'+
135
+ '<div class="jwl_three_fourth last">Content</div>'+
136
+ '<div style="clear:both;"></div>'+
137
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
138
+
139
+ editor_text = '[one_fourth]CONTENT[/one_fourth][three_fourth_last]CONTENT[/three_fourth_last]';
140
+ }
141
+
142
+ if(get_size === '1323') {
143
+
144
+ preview_html += '<div class="jwl_one_third">Content</div>'+
145
+ '<div class="jwl_two_third last">Content</div>'+
146
+ '<div style="clear:both;"></div>'+
147
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
148
+
149
+ editor_text = '[one_third]CONTENT[/one_third][two_third_last]CONTENT[/two_third_last]';
150
+ }
151
+
152
+ if(get_size === '1212') {
153
+
154
+ preview_html += '<div class="jwl_one_half">Content</div>'+
155
+ '<div class="jwl_one_half last">Content</div>'+
156
+ '<div style="clear:both;"></div>'+
157
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
158
+
159
+ editor_text = '[one_half]CONTENT[/one_half][one_half_last]CONTENT[/one_half_last]';
160
+ }
161
+
162
+ if(get_size === '2313') {
163
+
164
+ preview_html += '<div class="jwl_two_third">Content</div>'+
165
+ '<div class="jwl_one_third last">Content</div>'+
166
+ '<div style="clear:both;"></div>'+
167
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
168
+
169
+ editor_text = '[two_third]CONTENT[/two_third][one_third_last]CONTENT[/one_third_last]';
170
+ }
171
+
172
+ if(get_size === '3414') {
173
+
174
+ preview_html += '<div class="jwl_three_fourth">Content</div>'+
175
+ '<div class="jwl_one_fourth last">Content</div>'+
176
+ '<div style="clear:both;"></div>'+
177
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
178
+
179
+ editor_text = '[three_fourth]CONTENT[/three_fourth][one_fourth_last]CONTENT[/one_fourth_last]';
180
+ }
181
+
182
+ if(get_size === '4515') {
183
+
184
+ preview_html += '<div class="jwl_four_fifth">Content</div>'+
185
+ '<div class="jwl_one_fifth last">Content</div>'+
186
+ '<div style="clear:both;"></div>'+
187
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
188
+
189
+ editor_text = '[four_fifth]CONTENT[/four_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
190
+ }
191
+
192
+ if(get_size === '5616') {
193
+
194
+ preview_html += '<div class="jwl_five_sixth">Content</div>'+
195
+ '<div class="jwl_one_sixth last">Content</div>'+
196
+ '<div style="clear:both;"></div>'+
197
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
198
+
199
+ editor_text = '[five_sixth]CONTENT[/five_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
200
+ }
201
+
202
+
203
+ // ********************************
204
+ // Get columns equals 'three'
205
+ // ********************************
206
+ if(get_size === '161623') {
207
+
208
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
209
+ '<div class="jwl_one_sixth">Content</div>'+
210
+ '<div class="jwl_two_third last">Content</div>'+
211
+ '<div style="clear:both;"></div>'+
212
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
213
+
214
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][two_third_last]CONTENT[/two_third_last]';
215
+ }
216
+
217
+ if(get_size === '161312') {
218
+
219
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
220
+ '<div class="jwl_one_third">Content</div>'+
221
+ '<div class="jwl_one_half last">Content</div>'+
222
+ '<div style="clear:both;"></div>'+
223
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
224
+
225
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_half_last]CONTENT[/one_half_last]';
226
+ }
227
+
228
+ if(get_size === '161213') {
229
+
230
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
231
+ '<div class="jwl_one_half">Content</div>'+
232
+ '<div class="jwl_one_third last">Content</div>'+
233
+ '<div style="clear:both;"></div>'+
234
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
235
+
236
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_half]CONTENT[/one_half][one_third_last]CONTENT[/one_third_last]';
237
+ }
238
+
239
+ if(get_size === '162316') {
240
+
241
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
242
+ '<div class="jwl_two_third">Content</div>'+
243
+ '<div class="jwl_one_sixth last">Content</div>'+
244
+ '<div style="clear:both;"></div>'+
245
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
246
+
247
+ editor_text = '[one_sixth]CONTENT[/one_sixth][two_third]CONTENT[/two_third][one_sixth_last]CONTENT[/one_sixth_last]';
248
+ }
249
+
250
+ if(get_size === '151535') {
251
+
252
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
253
+ '<div class="jwl_one_fifth">Content</div>'+
254
+ '<div class="jwl_three_fifth last">Content</div>'+
255
+ '<div style="clear:both;"></div>'+
256
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
257
+
258
+ editor_text = '[one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][three_fifth_last]CONTENT[/three_fifth_last]';
259
+ }
260
+
261
+ if(get_size === '152525') {
262
+
263
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
264
+ '<div class="jwl_two_fifth">Content</div>'+
265
+ '<div class="jwl_two_fifth last">Content</div>'+
266
+ '<div style="clear:both;"></div>'+
267
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
268
+
269
+ editor_text = '[one_fifth]CONTENT[/one_fifth][two_fifth]CONTENT[/two_fifth][two_fifth_last]CONTENT[/two_fifth_last]';
270
+ }
271
+
272
+ if(get_size === '153515') {
273
+
274
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
275
+ '<div class="jwl_three_fifth">Content</div>'+
276
+ '<div class="jwl_one_fifth last">Content</div>'+
277
+ '<div style="clear:both;"></div>'+
278
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
279
+
280
+ editor_text = '[one_fifth]CONTENT[/one_fifth][three_fifth]CONTENT[/three_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
281
+ }
282
+
283
+ if(get_size === '141214') {
284
+
285
+ preview_html += '<div class="jwl_one_fourth">Content</div>'+
286
+ '<div class="jwl_one_half">Content</div>'+
287
+ '<div class="jwl_one_fourth last">Content</div>'+
288
+ '<div style="clear:both;"></div>'+
289
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
290
+
291
+ editor_text = '[one_fourth]CONTENT[/one_fourth][one_half]CONTENT[/one_half][one_fourth_last]CONTENT[/one_fourth_last]';
292
+ }
293
+
294
+ if(get_size === '141412') {
295
+
296
+ preview_html += '<div class="jwl_one_fourth">Content</div>'+
297
+ '<div class="jwl_one_fourth">Content</div>'+
298
+ '<div class="jwl_one_half last">Content</div>'+
299
+ '<div style="clear:both;"></div>'+
300
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
301
+
302
+ editor_text = '[one_fourth]CONTENT[/one_fourth][one_fourth]CONTENT[/one_fourth][one_half_last]CONTENT[/one_half_last]';
303
+ }
304
+
305
+ if(get_size === '131313') {
306
+
307
+ preview_html += '<div class="jwl_one_third">Content</div>'+
308
+ '<div class="jwl_one_third">Content</div>'+
309
+ '<div class="jwl_one_third last">Content</div>'+
310
+ '<div style="clear:both;"></div>'+
311
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
312
+
313
+ editor_text = '[one_third]CONTENT[/one_third][one_third]CONTENT[/one_third][one_third_last]CONTENT[/one_third_last]';
314
+ }
315
+
316
+ if(get_size === '131612') {
317
+
318
+ preview_html += '<div class="jwl_one_third">Content</div>'+
319
+ '<div class="jwl_one_sixth">Content</div>'+
320
+ '<div class="jwl_one_half last">Content</div>'+
321
+ '<div style="clear:both;"></div>'+
322
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
323
+
324
+ editor_text = '[one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_half_last]CONTENT[/one_half_last]';
325
+ }
326
+
327
+ if(get_size === '131216') {
328
+
329
+ preview_html += '<div class="jwl_one_third">Content</div>'+
330
+ '<div class="jwl_one_half">Content</div>'+
331
+ '<div class="jwl_one_sixth last">Content</div>'+
332
+ '<div style="clear:both;"></div>'+
333
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
334
+
335
+ editor_text = '[one_third]CONTENT[/one_third][one_half]CONTENT[/one_half][one_sixth_last]CONTENT[/one_sixth_last]';
336
+ }
337
+
338
+ if(get_size === '121316') {
339
+
340
+ preview_html += '<div class="jwl_one_half">Content</div>'+
341
+ '<div class="jwl_one_third">Content</div>'+
342
+ '<div class="jwl_one_sixth last">Content</div>'+
343
+ '<div style="clear:both;"></div>'+
344
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
345
+
346
+ editor_text = '[one_half]CONTENT[/one_half][one_third]CONTENT[/one_third][one_sixth_last]CONTENT[/one_sixth_last]';
347
+ }
348
+
349
+ if(get_size === '121613') {
350
+
351
+ preview_html += '<div class="jwl_one_half">Content</div>'+
352
+ '<div class="jwl_one_sixth">Content</div>'+
353
+ '<div class="jwl_one_third last">Content</div>'+
354
+ '<div style="clear:both;"></div>'+
355
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
356
+
357
+ editor_text = '[one_half]CONTENT[/one_half][one_sixth]CONTENT[/one_sixth][one_third_last]CONTENT[/one_third_last]';
358
+ }
359
+
360
+ if(get_size === '121414') {
361
+
362
+ preview_html += '<div class="jwl_one_half">Content</div>'+
363
+ '<div class="jwl_one_fourth">Content</div>'+
364
+ '<div class="jwl_one_fourth last">Content</div>'+
365
+ '<div style="clear:both;"></div>'+
366
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
367
+
368
+ editor_text = '[one_half]CONTENT[/one_half][one_fourth]CONTENT[/one_fourth][one_fourth_last]CONTENT[/one_fourth_last]';
369
+ }
370
+
371
+ if(get_size === '231616') {
372
+
373
+ preview_html += '<div class="jwl_two_third">Content</div>'+
374
+ '<div class="jwl_one_sixth">Content</div>'+
375
+ '<div class="jwl_one_sixth last">Content</div>'+
376
+ '<div style="clear:both;"></div>'+
377
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
378
+
379
+ editor_text = '[two_third]CONTENT[/two_third][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
380
+ }
381
+
382
+ if(get_size === '251525') {
383
+
384
+ preview_html += '<div class="jwl_two_fifth">Content</div>'+
385
+ '<div class="jwl_one_fifth">Content</div>'+
386
+ '<div class="jwl_two_fifth last">Content</div>'+
387
+ '<div style="clear:both;"></div>'+
388
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
389
+
390
+ editor_text = '[two_fifth]CONTENT[/two_fifth][one_fifth]CONTENT[/one_fifth][two_fifth_last]CONTENT[/two_fifth_last]';
391
+ }
392
+
393
+ if(get_size === '252515') {
394
+
395
+ preview_html += '<div class="jwl_two_fifth">Content</div>'+
396
+ '<div class="jwl_two_fifth">Content</div>'+
397
+ '<div class="jwl_one_fifth last">Content</div>'+
398
+ '<div style="clear:both;"></div>'+
399
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
400
+
401
+ editor_text = '[two_fifth]CONTENT[/two_fifth][two_fifth]CONTENT[/two_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
402
+ }
403
+
404
+ if(get_size === '351515') {
405
+
406
+ preview_html += '<div class="jwl_three_fifth">Content</div>'+
407
+ '<div class="jwl_one_fifth">Content</div>'+
408
+ '<div class="jwl_one_fifth last">Content</div>'+
409
+ '<div style="clear:both;"></div>'+
410
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
411
+
412
+ editor_text = '[three_fifth]CONTENT[/three_fifth][one_fifth]CONTENT[/one_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
413
+ }
414
+
415
+
416
+ // ********************************
417
+ // Get columns equals 'four'
418
+ // ********************************
419
+ if(get_size === '16161612') {
420
+
421
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
422
+ '<div class="jwl_one_sixth">Content</div>'+
423
+ '<div class="jwl_one_sixth">Content</div>'+
424
+ '<div class="jwl_one_half last">Content</div>'+
425
+ '<div style="clear:both;"></div>'+
426
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
427
+
428
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_half_last]CONTENT[/one_half_last]';
429
+ }
430
+
431
+ if(get_size === '16161216') {
432
+
433
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
434
+ '<div class="jwl_one_sixth">Content</div>'+
435
+ '<div class="jwl_one_half">Content</div>'+
436
+ '<div class="jwl_one_sixth last">Content</div>'+
437
+ '<div style="clear:both;"></div>'+
438
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
439
+
440
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_half]CONTENT[/one_half][one_sixth_last]CONTENT[/one_sixth_last]';
441
+ }
442
+
443
+ if(get_size === '16121616') {
444
+
445
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
446
+ '<div class="jwl_one_half">Content</div>'+
447
+ '<div class="jwl_one_sixth">Content</div>'+
448
+ '<div class="jwl_one_sixth last">Content</div>'+
449
+ '<div style="clear:both;"></div>'+
450
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
451
+
452
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_half]CONTENT[/one_half][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
453
+ }
454
+
455
+ if(get_size === '16161313') {
456
+
457
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
458
+ '<div class="jwl_one_sixth">Content</div>'+
459
+ '<div class="jwl_one_third">Content</div>'+
460
+ '<div class="jwl_one_third last">Content</div>'+
461
+ '<div style="clear:both;"></div>'+
462
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
463
+
464
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_third_last]CONTENT[/one_third_last]';
465
+ }
466
+
467
+ if(get_size === '16131613') {
468
+
469
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
470
+ '<div class="jwl_one_third">Content</div>'+
471
+ '<div class="jwl_one_sixth">Content</div>'+
472
+ '<div class="jwl_one_third last">Content</div>'+
473
+ '<div style="clear:both;"></div>'+
474
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
475
+
476
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_third_last]CONTENT[/one_third_last]';
477
+ }
478
+
479
+ if(get_size === '16131316') {
480
+
481
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
482
+ '<div class="jwl_one_third">Content</div>'+
483
+ '<div class="jwl_one_third">Content</div>'+
484
+ '<div class="jwl_one_sixth last">Content</div>'+
485
+ '<div style="clear:both;"></div>'+
486
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
487
+
488
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_third]CONTENT[/one_third][one_sixth_last]CONTENT[/one_sixth_last]';
489
+ }
490
+
491
+ if(get_size === '15151525') {
492
+
493
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
494
+ '<div class="jwl_one_fifth">Content</div>'+
495
+ '<div class="jwl_one_fifth">Content</div>'+
496
+ '<div class="jwl_two_fifth last">Content</div>'+
497
+ '<div style="clear:both;"></div>'+
498
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
499
+
500
+ editor_text = '[one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][two_fifth_last]CONTENT[/two_fifth_last]';
501
+ }
502
+
503
+ if(get_size === '15152515') {
504
+
505
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
506
+ '<div class="jwl_one_fifth">Content</div>'+
507
+ '<div class="jwl_two_fifth">Content</div>'+
508
+ '<div class="jwl_one_fifth last">Content</div>'+
509
+ '<div style="clear:both;"></div>'+
510
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
511
+
512
+ editor_text = '[one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][two_fifth]CONTENT[/two_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
513
+ }
514
+
515
+ if(get_size === '15251515') {
516
+
517
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
518
+ '<div class="jwl_two_fifth">Content</div>'+
519
+ '<div class="jwl_one_fifth">Content</div>'+
520
+ '<div class="jwl_one_fifth last">Content</div>'+
521
+ '<div style="clear:both;"></div>'+
522
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
523
+
524
+ editor_text = '[one_fifth]CONTENT[/one_fifth][two_fifth]CONTENT[/two_fifth][one_fifth]CONTENT[/one_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
525
+ }
526
+
527
+ if(get_size === '14141414') {
528
+
529
+ preview_html += '<div class="jwl_one_fourth">Content</div>'+
530
+ '<div class="jwl_one_fourth">Content</div>'+
531
+ '<div class="jwl_one_fourth">Content</div>'+
532
+ '<div class="jwl_one_fourth last">Content</div>'+
533
+ '<div style="clear:both;"></div>'+
534
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
535
+
536
+ editor_text = '[one_fourth]CONTENT[/one_fourth][one_fourth]CONTENT[/one_fourth][one_fourth]CONTENT[/one_fourth][one_fourth_last]CONTENT[/one_fourth_last]';
537
+ }
538
+
539
+ if(get_size === '13131616') {
540
+
541
+ preview_html += '<div class="jwl_one_third">Content</div>'+
542
+ '<div class="jwl_one_third">Content</div>'+
543
+ '<div class="jwl_one_sixth">Content</div>'+
544
+ '<div class="jwl_one_sixth last">Content</div>'+
545
+ '<div style="clear:both;"></div>'+
546
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
547
+
548
+ editor_text = '[one_third]CONTENT[/one_third][one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
549
+ }
550
+
551
+ if(get_size === '13161613') {
552
+
553
+ preview_html += '<div class="jwl_one_third">Content</div>'+
554
+ '<div class="jwl_one_sixth">Content</div>'+
555
+ '<div class="jwl_one_sixth">Content</div>'+
556
+ '<div class="jwl_one_third last">Content</div>'+
557
+ '<div style="clear:both;"></div>'+
558
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
559
+
560
+ editor_text = '[one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_third_last]CONTENT[/one_third_last]';
561
+ }
562
+
563
+ if(get_size === '13161316') {
564
+
565
+ preview_html += '<div class="jwl_one_third">Content</div>'+
566
+ '<div class="jwl_one_sixth">Content</div>'+
567
+ '<div class="jwl_one_third">Content</div>'+
568
+ '<div class="jwl_one_sixth last">Content</div>'+
569
+ '<div style="clear:both;"></div>'+
570
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
571
+
572
+ editor_text = '[one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_sixth_last]CONTENT[/one_sixth_last]';
573
+ }
574
+
575
+ if(get_size === '12161616') {
576
+
577
+ preview_html += '<div class="jwl_one_half">Content</div>'+
578
+ '<div class="jwl_one_sixth">Content</div>'+
579
+ '<div class="jwl_one_sixth">Content</div>'+
580
+ '<div class="jwl_one_sixth last">Content</div>'+
581
+ '<div style="clear:both;"></div>'+
582
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
583
+
584
+ editor_text = '[one_half]CONTENT[/one_half][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
585
+ }
586
+
587
+ if(get_size === '25151515') {
588
+
589
+ preview_html += '<div class="jwl_two_fifth">Content</div>'+
590
+ '<div class="jwl_one_fifth">Content</div>'+
591
+ '<div class="jwl_one_fifth">Content</div>'+
592
+ '<div class="jwl_one_fifth last">Content</div>'+
593
+ '<div style="clear:both;"></div>'+
594
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
595
+
596
+ editor_text = '[two_fifth]CONTENT[/two_fifth][one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
597
+ }
598
+
599
+
600
+
601
+ // ********************************
602
+ // Get columns equals 'five'
603
+ // ********************************
604
+ if(get_size === '1515151515') {
605
+
606
+ preview_html += '<div class="jwl_one_fifth">Content</div>'+
607
+ '<div class="jwl_one_fifth">Content</div>'+
608
+ '<div class="jwl_one_fifth">Content</div>'+
609
+ '<div class="jwl_one_fifth">Content</div>'+
610
+ '<div class="jwl_one_fifth last">Content</div>'+
611
+ '<div style="clear:both;"></div>'+
612
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
613
+
614
+ editor_text = '[one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][one_fifth]CONTENT[/one_fifth][one_fifth_last]CONTENT[/one_fifth_last]';
615
+ }
616
+
617
+ if(get_size === '1616161613') {
618
+
619
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
620
+ '<div class="jwl_one_sixth">Content</div>'+
621
+ '<div class="jwl_one_sixth">Content</div>'+
622
+ '<div class="jwl_one_sixth">Content</div>'+
623
+ '<div class="jwl_one_third last">Content</div>'+
624
+ '<div style="clear:both;"></div>'+
625
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
626
+
627
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_third_last]CONTENT[/one_third_last]';
628
+ }
629
+
630
+ if(get_size === '1616161316') {
631
+
632
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
633
+ '<div class="jwl_one_sixth">Content</div>'+
634
+ '<div class="jwl_one_sixth">Content</div>'+
635
+ '<div class="jwl_one_third">Content</div>'+
636
+ '<div class="jwl_one_sixth last">Content</div>'+
637
+ '<div style="clear:both;"></div>'+
638
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
639
+
640
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_sixth_last]CONTENT[/one_sixth_last]';
641
+ }
642
+
643
+ if(get_size === '1616131616') {
644
+
645
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
646
+ '<div class="jwl_one_sixth">Content</div>'+
647
+ '<div class="jwl_one_third">Content</div>'+
648
+ '<div class="jwl_one_sixth">Content</div>'+
649
+ '<div class="jwl_one_sixth last">Content</div>'+
650
+ '<div style="clear:both;"></div>'+
651
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
652
+
653
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
654
+ }
655
+
656
+ if(get_size === '1613161616') {
657
+
658
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
659
+ '<div class="jwl_one_third">Content</div>'+
660
+ '<div class="jwl_one_sixth">Content</div>'+
661
+ '<div class="jwl_one_sixth">Content</div>'+
662
+ '<div class="jwl_one_sixth last">Content</div>'+
663
+ '<div style="clear:both;"></div>'+
664
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
665
+
666
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
667
+ }
668
+
669
+ if(get_size === '1316161616') {
670
+
671
+ preview_html += '<div class="jwl_one_third">Content</div>'+
672
+ '<div class="jwl_one_sixth">Content</div>'+
673
+ '<div class="jwl_one_sixth">Content</div>'+
674
+ '<div class="jwl_one_sixth">Content</div>'+
675
+ '<div class="jwl_one_sixth last">Content</div>'+
676
+ '<div style="clear:both;"></div>'+
677
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
678
+
679
+ editor_text = '[one_third]CONTENT[/one_third][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
680
+ }
681
+
682
+
683
+ // ********************************
684
+ // Get columns equals 'six'
685
+ // ********************************
686
+ if(get_size === '161616161616') {
687
+
688
+ preview_html += '<div class="jwl_one_sixth">Content</div>'+
689
+ '<div class="jwl_one_sixth">Content</div>'+
690
+ '<div class="jwl_one_sixth">Content</div>'+
691
+ '<div class="jwl_one_sixth">Content</div>'+
692
+ '<div class="jwl_one_sixth">Content</div>'+
693
+ '<div class="jwl_one_sixth last">Content</div>'+
694
+ '<div style="clear:both;"></div>'+
695
+ '<br /><br /><input type="button" id="submit_preview" value="Insert" class="button-primary" />';
696
+
697
+ editor_text = '[one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth]CONTENT[/one_sixth][one_sixth_last]CONTENT[/one_sixth_last]';
698
+ }
699
+
700
+ // Populate hidden div with preview
701
+ $('#size_preview').html(preview_html);
702
+
703
+
704
+ // Insert button
705
+ $(document).on('click', '#submit_preview', function() {
706
+
707
+ // Insert editor text
708
+ top.tinymce.activeEditor.execCommand('mceInsertContent', !1, editor_text);
709
+ // Close shortcodes window
710
+ top.tinymce.activeEditor.windowManager.close();
711
+ });
712
+ });
713
+ });
plugins/columnShortcodes/plugin.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // JavaScript Document
2
+ jQuery(document).ready(function($) {
3
+
4
+ tinymce.PluginManager.add( 'columnShortcodes', function( editor, url ) {
5
+
6
+ // Register button
7
+ editor.addButton( 'columnShortcodes', {
8
+
9
+ icon: 'schedule',
10
+ tooltip: 'Column Shortcodes',
11
+ onclick: columnShortcodeWindow
12
+ });
13
+
14
+
15
+
16
+ // Create function for window manager
17
+ function columnShortcodeWindow() {
18
+
19
+ editor.windowManager.open({
20
+
21
+ title: 'Column Shortcodes',
22
+ width: 900,
23
+ height: 400,
24
+ url: url+'/columnShortcodes.htm'
25
+ })
26
+ }
27
+ });
28
+ });
plugins/custom_plugins/acheck.png ADDED
Binary file
plugins/custom_plugins/advimage.png ADDED
Binary file
plugins/custom_plugins/advlink.png ADDED
Binary file
plugins/custom_plugins/cleardiv.png ADDED
Binary file
plugins/custom_plugins/clker.png ADDED
Binary file
plugins/custom_plugins/codemagic.png ADDED
Binary file
plugins/custom_plugins/color.png ADDED
Binary file
plugins/custom_plugins/formatPainter.png ADDED
Binary file
plugins/custom_plugins/googleImages.png ADDED
Binary file
plugins/custom_plugins/line_break.png ADDED
Binary file
plugins/custom_plugins/loremipsum.png ADDED
Binary file
plugins/custom_plugins/mailto.gif ADDED
Binary file
plugins/custom_plugins/p_tag.png ADDED
Binary file
plugins/custom_plugins/shortcodes.gif ADDED
Binary file
plugins/custom_plugins/youtube.png ADDED
Binary file
plugins/directionality/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("directionality",function(e){function t(t){var n,i=e.dom,a=e.selection.getSelectedBlocks();a.length&&(n=i.getAttrib(a[0],"dir"),tinymce.each(a,function(e){i.getParent(e.parentNode,"*[dir='"+t+"']",i.getRoot())||(n!=t?i.setAttrib(e,"dir",t):i.setAttrib(e,"dir",null))}),e.nodeChanged())}function n(e){var t=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
plugins/emoticons/img/smiley-cool.gif ADDED
Binary file
plugins/emoticons/img/smiley-cry.gif ADDED
Binary file
plugins/emoticons/img/smiley-embarassed.gif ADDED
Binary file
plugins/emoticons/img/smiley-foot-in-mouth.gif ADDED
Binary file
plugins/emoticons/img/smiley-frown.gif ADDED
Binary file
plugins/emoticons/img/smiley-innocent.gif ADDED
Binary file
plugins/emoticons/img/smiley-kiss.gif ADDED
Binary file
plugins/emoticons/img/smiley-laughing.gif ADDED
Binary file
plugins/emoticons/img/smiley-money-mouth.gif ADDED
Binary file
plugins/emoticons/img/smiley-sealed.gif ADDED
Binary file
plugins/emoticons/img/smiley-smile.gif ADDED
Binary file
plugins/emoticons/img/smiley-surprised.gif ADDED
Binary file
plugins/emoticons/img/smiley-tongue-out.gif ADDED
Binary file
plugins/emoticons/img/smiley-undecided.gif ADDED
Binary file
plugins/emoticons/img/smiley-wink.gif ADDED
Binary file
plugins/emoticons/img/smiley-yell.gif ADDED
Binary file
plugins/emoticons/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("emoticons",function(t,e){function n(){var t;return t='<table role="presentation" class="mce-grid">',tinymce.each(i,function(n){t+="<tr>",tinymce.each(n,function(n){var i=e+"/img/smiley-"+n+".gif";t+='<td><a href="#" data-mce-url="'+i+'" tabindex="-1"><img src="'+i+'" style="width: 18px; height: 18px"></a></td>'}),t+="</tr>"}),t+="</table>"}var i=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];t.addButton("emoticons",{type:"panelbutton",panel:{autohide:!0,html:n,onclick:function(e){var n=t.dom.getParent(e.target,"a");n&&(t.insertContent('<img src="'+n.getAttribute("data-mce-url")+'" />'),this.hide())}},tooltip:"Emoticons"})});
plugins/eqneditor/img/eqneditor.png ADDED
Binary file
plugins/eqneditor/plugin.min.js ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*
2
+ Equation Editor Plugin for TinyMCE v4
3
+ Version 2
4
+
5
+ This plugin allows equations to be created and edited from within TinyMCE.
6
+ For more information goto: http://www.codecogs.com/latex/integration/tinymce_v4/install.php
7
+
8
+ Copyright CodeCogs 2013
9
+ Written by Will Bateman.
10
+ */
11
+ CCinstance=0;
12
+ tinymce.PluginManager.add("eqneditor",function(editor, url) {
13
+
14
+ // Load necessary javscript for editor from CodeCogs
15
+ var sl = new tinymce.dom.ScriptLoader();
16
+ var host='latex.codecogs.com';
17
+
18
+ var http=('https:' == document.location.protocol ? 'https://' : 'http://');
19
+ sl.add(http+host+'/js/eq_config.js');
20
+ sl.add(http+host+'/js/eq_editor-lite-17.js');
21
+ sl.loadQueue(function(){});
22
+
23
+ // Load Additional CSS
24
+ var fileref=document.createElement("link");
25
+ fileref.setAttribute("rel", "stylesheet");
26
+ fileref.setAttribute("type", "text/css");
27
+ fileref.setAttribute("href", http+host+'/css/equation-embed.css');
28
+ document.getElementsByTagName("head")[0].appendChild(fileref);
29
+
30
+ function showDialog() {
31
+ var http = ('https:' == document.location.protocol ? 'https://' : 'http://');
32
+
33
+ CCinstance++;
34
+ win = editor.windowManager.open({
35
+ title: 'Equation Editor',
36
+ width: 615,
37
+ height: 380,
38
+ items: [
39
+ {
40
+ name:'toolbar',
41
+ type:'container',
42
+ html:'<div style="padding:10px;"><div id="CCtoolbar'+CCinstance+'"></div>'+
43
+ '<p style="margin-top:5px"><label for="CClatex'+CCinstance+'">Equation (LaTeX):</p>'+
44
+ '<textarea id="CClatex'+CCinstance+'" rows="5" style="border:1px solid #8fb6bd; width:570px; font-size:16px; padding:5px; background-color:#ffc"></textarea>'+
45
+ '<p style="margin-top:5px"><label for="CClatex'+CCinstance+'">Preview:</p>'+
46
+ '<img id="CCequation'+CCinstance+'" src="'+http+'www.codecogs.com/images/spacer.gif" /></div>'
47
+ }
48
+ ],
49
+ buttons : [
50
+ {
51
+ type:'container',
52
+ html:'<span style="font-size:11px;"><a href="http://www.codecogs.com" target="_blank" style="font-size:11px"><img src="'+http+'latex.codecogs.com/images/poweredbycc.gif" alt="Powered by CodeCogs" style="vertical-align:-7px; border:none"/></a> &nbsp; <a href="http://www.codecogs.com/latex/about.php" target="_blank" style="font-size:11px">About</a> | <a href="http://www.codecogs.com/latex/popup.php" target="_blank" style="font-size:11px">Install</a> | <a href="http://www.codecogs.com/pages/forums/forum_view.php?f=28" target="_blank" style="font-size:11px">Forum</a> | <a href="http://www.codecogs.com" target="_blank" style="font-size:11px">CodeCogs</a> &copy; 2007-2014</span>'
53
+ },
54
+ {type: "spacer", flex: 1},
55
+ {
56
+ text: 'Ok',
57
+ subtype: 'primary',
58
+ minWidth: 50,
59
+ onclick: function() {
60
+ editor.execCommand('mceInsertContent', false, EqEditor.getTextArea().exportEquation('html'));
61
+ Example.add_history(EqEditor.getTextArea().getLaTeX());
62
+ win.close();
63
+ }
64
+ },
65
+ {
66
+ text: 'Cancel',
67
+ onclick: function() { win.close();}
68
+ }
69
+ ]
70
+ });
71
+
72
+ EqEditor.embed('CCtoolbar'+CCinstance,'','efull');
73
+ EqEditor.add(new EqTextArea('CCequation'+CCinstance, 'CClatex'+CCinstance),false);
74
+
75
+ var imgElm=editor.selection.getNode();
76
+ if(imgElm.nodeName=='IMG')
77
+ {
78
+ var sName = editor.dom.getAttrib(imgElm, 'src').match( /(gif|svg)\.latex\?(.*)/ );
79
+ if(sName!=null) EqEditor.getTextArea().setText(sName[2]);
80
+ }
81
+ }
82
+
83
+
84
+ editor.addButton('eqneditor', {
85
+ title: 'Equation',
86
+ image: url+'/img/eqneditor.png',
87
+ tooltip: 'Insert Equation',
88
+ onclick: showDialog,
89
+ stateSelector: 'img[src*="latex"]'
90
+ });
91
+
92
+ // Adds a menu item to the tools menu
93
+ editor.addMenuItem('eqneditor', {
94
+ image: url+'/img/eqneditor.png',
95
+ text: 'Insert Equation',
96
+ context: 'insert',
97
+ prependToContext:true,
98
+ onclick: showDialog
99
+ });
100
+
101
+ editor.on('DblClick', function(ed, e) {
102
+ if (ed.target.nodeName.toLowerCase() == "img") {
103
+ var sName = ed.target.src.match( /(gif|svg)\.latex\?(.*)/ );
104
+ if(sName!=null) showDialog();
105
+ }
106
+ });
107
+
108
+ });
plugins/hr/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("hr",function(e){e.addCommand("InsertHorizontalRule",function(){e.execCommand("mceInsertContent",!1,"<hr />")}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});
plugins/image_orig/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("image_orig",function(e){function t(e,t){function i(e,i){n.parentNode&&n.parentNode.removeChild(n),t({width:e,height:i})}var n=document.createElement("img");n.onload=function(){i(n.clientWidth,n.clientHeight)},n.onerror=function(){i()};var a=n.style;a.visibility="hidden",a.position="fixed",a.bottom=a.left=0,a.width=a.height="auto",document.body.appendChild(n),n.src=e}function i(t){return tinymce.each(t,function(t){t.textStyle=function(){return e.formatter.getCssText({inline:"img",classes:[t.value]})}}),t}function n(t){return function(){var i=e.settings.image_list;"string"==typeof i?tinymce.util.XHR.send({url:i,success:function(e){t(tinymce.util.JSON.parse(e))}}):t(i)}}function a(n){function a(t,i,n){var a,l=[];return tinymce.each(e.settings[t]||n,function(e){var t={text:e.text||e.title,value:e.value};l.push(t),(f[i]===e.value||!a&&e.selected)&&(a=t)}),a&&!f[i]&&(f[i]=a.value,a.selected=!0),l}function l(){var t=[{text:"None",value:""}];return tinymce.each(n,function(i){t.push({text:i.text||i.title,value:e.convertURL(i.value||i.url,"src"),menu:i.menu})}),t}function o(){var e,t,i,n;e=u.find("#width")[0],t=u.find("#height")[0],i=e.value(),n=t.value(),u.find("#constrain")[0].checked()&&g&&h&&i&&n&&(g!=i?(n=Math.round(i/g*n),t.value(n)):(i=Math.round(n/h*i),e.value(i))),g=i,h=n}function s(){function t(t){function i(){t.onload=t.onerror=null,e.selection.select(t),e.nodeChanged()}t.onload=function(){f.width||f.height||y.setAttribs(t,{width:t.clientWidth,height:t.clientHeight}),i()},t.onerror=i}d(),o(),f=tinymce.extend(f,u.toJSON()),f.alt||(f.alt=""),""===f.width&&(f.width=null),""===f.height&&(f.height=null),""===f.style&&(f.style=null),f={src:f.src,alt:f.alt,width:f.width,height:f.height,style:f.style,"class":f["class"]},f["class"]||delete f["class"],e.undoManager.transact(function(){return f.src?(v?y.setAttribs(v,f):(f.id="__mcenew",e.focus(),e.selection.setContent(y.createHTML("img",f)),v=y.get("__mcenew"),y.setAttrib(v,"id",null)),void t(v)):void(v&&(y.remove(v),e.focus(),e.nodeChanged()))})}function r(e){return e&&(e=e.replace(/px$/,"")),e}function c(){m&&m.value(e.convertURL(this.value(),"src")),t(this.value(),function(e){e.width&&e.height&&(g=e.width,h=e.height,u.find("#width").value(g),u.find("#height").value(h))})}function d(){function t(e){return e.length>0&&/^[0-9]+$/.test(e)&&(e+="px"),e}if(e.settings.image_advtab){var i=u.toJSON(),n=y.parseStyle(i.style);delete n.margin,n["margin-top"]=n["margin-bottom"]=t(i.vspace),n["margin-left"]=n["margin-right"]=t(i.hspace),n["border-width"]=t(i.border),u.find("#style").value(y.serializeStyle(y.parseStyle(y.serializeStyle(n))))}}var u,g,h,m,p,f={},y=e.dom,v=e.selection.getNode();g=y.getAttrib(v,"width"),h=y.getAttrib(v,"height"),"IMG"!=v.nodeName||v.getAttribute("data-mce-object")||v.getAttribute("data-mce-placeholder")?v=null:f={src:y.getAttrib(v,"src"),alt:y.getAttrib(v,"alt"),"class":y.getAttrib(v,"class"),width:g,height:h},n&&(m={type:"listbox",label:"Image list",values:l(),value:f.src&&e.convertURL(f.src,"src"),onselect:function(e){var t=u.find("#alt");(!t.value()||e.lastControl&&t.value()==e.lastControl.text())&&t.value(e.control.text()),u.find("#src").value(e.control.value())},onPostRender:function(){m=this}}),e.settings.image_class_list&&(p={name:"class",type:"listbox",label:"Class",values:i(a("image_class_list","class"))});var b=[{name:"src",type:"filepicker",filetype:"image",label:"Source",autofocus:!0,onchange:c},m];e.settings.image_description!==!1&&b.push({name:"alt",type:"textbox",label:"Image description"}),e.settings.image_dimensions!==!1&&b.push({type:"container",label:"Dimensions",layout:"flex",direction:"row",align:"center",spacing:5,items:[{name:"width",type:"textbox",maxLength:5,size:3,onchange:o,ariaLabel:"Width"},{type:"label",text:"x"},{name:"height",type:"textbox",maxLength:5,size:3,onchange:o,ariaLabel:"Height"},{name:"constrain",type:"checkbox",checked:!0,text:"Constrain proportions"}]}),b.push(p),e.settings.image_advtab?(v&&(f.hspace=r(v.style.marginLeft||v.style.marginRight),f.vspace=r(v.style.marginTop||v.style.marginBottom),f.border=r(v.style.borderWidth),f.style=e.dom.serializeStyle(e.dom.parseStyle(e.dom.getAttrib(v,"style")))),u=e.windowManager.open({title:"Insert/edit image",data:f,bodyType:"tabpanel",body:[{title:"General",type:"form",items:b},{title:"Advanced",type:"form",pack:"start",items:[{label:"Style",name:"style",type:"textbox"},{type:"form",layout:"grid",packV:"start",columns:2,padding:0,alignH:["left","right"],defaults:{type:"textbox",maxWidth:50,onchange:d},items:[{label:"Vertical space",name:"vspace"},{label:"Horizontal space",name:"hspace"},{label:"Border",name:"border"}]}]}],onSubmit:s})):u=e.windowManager.open({title:"Insert/edit image",data:f,body:b,onSubmit:s})}e.addButton("image_orig",{icon:"image",tooltip:"Insert/edit image",onclick:n(a),stateSelector:"img:not([data-mce-object],[data-mce-placeholder])"}),e.addMenuItem("image_orig",{icon:"image",text:"Insert image",onclick:n(a),context:"insert",prependToContext:!0})});
plugins/insertdatetime/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("insertdatetime",function(e){function t(t,a){function n(e,t){if(e=""+e,e.length<t)for(var a=0;a<t-e.length;a++)e="0"+e;return e}return a=a||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+a.getFullYear()),t=t.replace("%y",""+a.getYear()),t=t.replace("%m",n(a.getMonth()+1,2)),t=t.replace("%d",n(a.getDate(),2)),t=t.replace("%H",""+n(a.getHours(),2)),t=t.replace("%M",""+n(a.getMinutes(),2)),t=t.replace("%S",""+n(a.getSeconds(),2)),t=t.replace("%I",""+((a.getHours()+11)%12+1)),t=t.replace("%p",""+(a.getHours()<12?"AM":"PM")),t=t.replace("%B",""+e.translate(u[a.getMonth()])),t=t.replace("%b",""+e.translate(m[a.getMonth()])),t=t.replace("%A",""+e.translate(c[a.getDay()])),t=t.replace("%a",""+e.translate(i[a.getDay()])),t=t.replace("%%","%")}function a(a){var n=t(a);if(e.settings.insertdatetime_element){var r;r=/%[HMSIp]/.test(a)?t("%Y-%m-%dT%H:%M"):t("%Y-%m-%d"),n='<time datetime="'+r+'">'+n+"</time>";var i=e.dom.getParent(e.selection.getStart(),"time");if(i)return e.dom.setOuterHTML(i,n),void 0}e.insertContent(n)}var n,r,i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),d=[];e.addCommand("mceInsertDate",function(){a(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){a(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("inserttime",{type:"splitbutton",title:"Insert time",onclick:function(){a(n||r)},menu:d}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){r||(r=e),d.push({text:t(e),onclick:function(){n=e,a(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Insert date/time",menu:d,context:"insert"})});
plugins/nonbreaking/nonbreaking.png ADDED
Binary file
plugins/nonbreaking/plugin.min.js ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tinymce.PluginManager.add("nonbreaking", function(n,url) {
2
+ var e = n.getParam("nonbreaking_force_tab");
3
+ if (n.addCommand("mceNonBreaking", function() {
4
+ n.insertContent(n.plugins.visualchars && n.plugins.visualchars.state ? '<span class="mce-nbsp">&nbsp;</span>' : "&nbsp;"), n.dom.setAttrib(n.dom.select("span.mce-nbsp"), "data-mce-bogus", "1")
5
+ }), n.addButton("nonbreaking", {
6
+ image: url + '/nonbreaking.png',
7
+ title: "Nonbreaking space",
8
+ cmd: "mceNonBreaking"
9
+ }), n.addMenuItem("nonbreaking", {
10
+ text: "Nonbreaking space",
11
+ cmd: "mceNonBreaking",
12
+ context: "insert"
13
+ }), e) {
14
+ var a = +e > 1 ? +e : 3;
15
+ n.on("keydown", function(e) {
16
+ if (9 == e.keyCode) {
17
+ if (e.shiftKey) return;
18
+ e.preventDefault();
19
+ for (var t = 0; a > t; t++) n.execCommand("mceNonBreaking")
20
+ }
21
+ })
22
+ }
23
+ });
plugins/preview/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("preview",function(e){var t=e.settings;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'<iframe src="javascript:\'\'" frameborder="0"></iframe>',buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var i,n=this.getEl("body").firstChild.contentWindow.document,a="";tinymce.each(e.contentCSS,function(t){a+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var d=t.body_id||"tinymce";-1!=d.indexOf("=")&&(d=e.getParam("body_id","","hash"),d=d[e.id]||d);var r=t.body_class||"";-1!=r.indexOf("=")&&(r=e.getParam("body_class","","hash"),r=r[e.id]||""),i="<!DOCTYPE html><html><head>"+a+"</head>"+'<body id="'+d+'" class="mce-content-body '+r+'">'+e.getContent()+"</body>"+"</html>",n.open(),n.write(i),n.close()}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})});
plugins/print/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("print",function(t){t.addCommand("mcePrint",function(){t.getWin().print()}),t.addButton("print",{title:"Print",cmd:"mcePrint"}),t.addShortcut("Ctrl+P","","mcePrint"),t.addMenuItem("print",{text:"Print",cmd:"mcePrint",icon:"print",shortcut:"Ctrl+P",context:"file"})});
plugins/searchreplace/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(){function e(e,t,n,a,r){function i(e,t){if(t=t||0,!e[0])throw"findAndReplaceDOMText cannot handle zero-length matches";var n=e.index;if(t>0){var a=e[t];if(!a)throw"Invalid capture group";n+=e[0].indexOf(a),e[0]=a}return[n,n+e[0].length,[e[0]]]}function d(e){var t;if(3===e.nodeType)return e.data;if(h[e.nodeName]&&!u[e.nodeName])return"";if(t="",(u[e.nodeName]||m[e.nodeName])&&(t+="\n"),e=e.firstChild)do t+=d(e);while(e=e.nextSibling);return t}function o(e,t,n){var a,r,i,d,o=[],l=0,c=e,s=t.shift(),f=0;e:for(;;){if((u[c.nodeName]||m[c.nodeName])&&l++,3===c.nodeType&&(!r&&c.length+l>=s[1]?(r=c,d=s[1]-l):a&&o.push(c),!a&&c.length+l>s[0]&&(a=c,i=s[0]-l),l+=c.length),a&&r){if(c=n({startNode:a,startNodeIndex:i,endNode:r,endNodeIndex:d,innerNodes:o,match:s[2],matchIndex:f}),l-=r.length-d,a=null,r=null,o=[],s=t.shift(),f++,!s)break}else{if((!h[c.nodeName]||u[c.nodeName])&&c.firstChild){c=c.firstChild;continue}if(c.nextSibling){c=c.nextSibling;continue}}for(;;){if(c.nextSibling){c=c.nextSibling;break}if(c.parentNode===e)break e;c=c.parentNode}}}function l(e){var t;if("function"!=typeof e){var n=e.nodeType?e:f.createElement(e);t=function(e,t){var a=n.cloneNode(!1);return a.setAttribute("data-mce-index",t),e&&a.appendChild(f.createTextNode(e)),a}}else t=e;return function(e){var n,a,r,i=e.startNode,d=e.endNode,o=e.matchIndex;if(i===d){var l=i;r=l.parentNode,e.startNodeIndex>0&&(n=f.createTextNode(l.data.substring(0,e.startNodeIndex)),r.insertBefore(n,l));var c=t(e.match[0],o);return r.insertBefore(c,l),e.endNodeIndex<l.length&&(a=f.createTextNode(l.data.substring(e.endNodeIndex)),r.insertBefore(a,l)),l.parentNode.removeChild(l),c}n=f.createTextNode(i.data.substring(0,e.startNodeIndex)),a=f.createTextNode(d.data.substring(e.endNodeIndex));for(var s=t(i.data.substring(e.startNodeIndex),o),u=[],h=0,m=e.innerNodes.length;m>h;++h){var g=e.innerNodes[h],p=t(g.data,o);g.parentNode.replaceChild(p,g),u.push(p)}var x=t(d.data.substring(0,e.endNodeIndex),o);return r=i.parentNode,r.insertBefore(n,i),r.insertBefore(s,i),r.removeChild(i),r=d.parentNode,r.insertBefore(x,d),r.insertBefore(a,d),r.removeChild(d),x}}var c,s,f,u,h,m,g=[],p=0;if(f=t.ownerDocument,u=r.getBlockElements(),h=r.getWhiteSpaceElements(),m=r.getShortEndedElements(),s=d(t)){if(e.global)for(;c=e.exec(s);)g.push(i(c,a));else c=s.match(e),g.push(i(c,a));return g.length&&(p=g.length,o(t,g,l(n))),p}}function t(t){function n(){function e(){r.statusbar.find("#next").disabled(!d(s+1).length),r.statusbar.find("#prev").disabled(!d(s-1).length)}function n(){tinymce.ui.MessageBox.alert("Could not find the specified string.",function(){r.find("#find")[0].focus()})}var a={},r=tinymce.ui.Factory.create({type:"window",layout:"flex",pack:"center",align:"center",onClose:function(){t.focus(),c.done()},onSubmit:function(t){var i,o,l,f;return t.preventDefault(),o=r.find("#case").checked(),f=r.find("#words").checked(),l=r.find("#find").value(),l.length?a.text==l&&a.caseState==o&&a.wholeWord==f?0===d(s+1).length?(n(),void 0):(c.next(),e(),void 0):(i=c.find(l,o,f),i||n(),r.statusbar.items().slice(1).disabled(0===i),e(),a={text:l,caseState:o,wholeWord:f},void 0):(c.done(!1),r.statusbar.items().slice(1).disabled(!0),void 0)},buttons:[{text:"Find",onclick:function(){r.submit()}},{text:"Replace",disabled:!0,onclick:function(){c.replace(r.find("#replace").value())||(r.statusbar.items().slice(1).disabled(!0),s=-1,a={})}},{text:"Replace all",disabled:!0,onclick:function(){c.replace(r.find("#replace").value(),!0,!0),r.statusbar.items().slice(1).disabled(!0),a={}}},{type:"spacer",flex:1},{text:"Prev",name:"prev",disabled:!0,onclick:function(){c.prev(),e()}},{text:"Next",name:"next",disabled:!0,onclick:function(){c.next(),e()}}],title:"Find and replace",items:{type:"form",padding:20,labelGap:30,spacing:10,items:[{type:"textbox",name:"find",size:40,label:"Find",value:t.selection.getNode().src},{type:"textbox",name:"replace",size:40,label:"Replace with"},{type:"checkbox",name:"case",text:"Match case",label:" "},{type:"checkbox",name:"words",text:"Whole words",label:" "}]}}).renderTo().reflow()}function a(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t}function r(n){var a,r;return r=t.dom.create("span",{"data-mce-bogus":1}),r.className="mce-match-marker",a=t.getBody(),c.done(!1),e(n,a,r,!1,t.schema)}function i(e){var t=e.parentNode;t.insertBefore(e.firstChild,e),e.parentNode.removeChild(e)}function d(e){var n,r=[];if(n=tinymce.toArray(t.getBody().getElementsByTagName("span")),n.length)for(var i=0;i<n.length;i++){var d=a(n[i]);null!==d&&d.length&&d===e.toString()&&r.push(n[i])}return r}function o(e){var n=s,a=t.dom;e=e!==!1,e?n++:n--,a.removeClass(d(s),"mce-match-marker-selected");var r=d(n);return r.length?(a.addClass(d(n),"mce-match-marker-selected"),t.selection.scrollIntoView(r[0]),n):-1}function l(e){e.parentNode.removeChild(e)}var c=this,s=-1;c.init=function(e){e.addMenuItem("searchreplace",{text:"Find and replace",shortcut:"Ctrl+F",onclick:n,separator:"before",context:"edit"}),e.addButton("searchreplace",{tooltip:"Find and replace",shortcut:"Ctrl+F",onclick:n}),e.addCommand("SearchReplace",n),e.shortcuts.add("Ctrl+F","",n)},c.find=function(e,t,n){e=e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),e=n?"\\b"+e+"\\b":e;var a=r(new RegExp(e,t?"g":"gi"));return a&&(s=-1,s=o(!0)),a},c.next=function(){var e=o(!0);-1!==e&&(s=e)},c.prev=function(){var e=o(!1);-1!==e&&(s=e)},c.replace=function(e,n,r){var o,f,u,h,m,g,p=s;for(n=n!==!1,u=t.getBody(),f=tinymce.toArray(u.getElementsByTagName("span")),o=0;o<f.length;o++){var x=a(f[o]);if(null!==x&&x.length)if(h=m=parseInt(x,10),r||h===s){for(e.length?(f[o].firstChild.nodeValue=e,i(f[o])):l(f[o]);f[++o];)if(h=a(f[o]),null!==x&&x.length){if(h!==m){o--;break}l(f[o])}n&&p--}else m>s&&f[o].setAttribute("data-mce-index",m-1)}return t.undoManager.add(),s=p,n?(g=d(p+1).length>0,c.next()):(g=d(p-1).length>0,c.prev()),!r&&g},c.done=function(e){var n,r,d,o;for(r=tinymce.toArray(t.getBody().getElementsByTagName("span")),n=0;n<r.length;n++){var l=a(r[n]);null!==l&&l.length&&(l===s.toString()&&(d||(d=r[n].firstChild),o=r[n].firstChild),i(r[n]))}if(d&&o){var c=t.dom.createRng();return c.setStart(d,0),c.setEnd(o,o.data.length),e!==!1&&t.selection.setRng(c),c}}}tinymce.PluginManager.add("searchreplace",t)}();
plugins/table/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e,t){"use strict";function n(e,t){for(var n,r=[],i=0;i<e.length;++i){if(n=s[e[i]]||o(e[i]),!n)throw"module definition dependecy not found: "+e[i];r.push(n)}t.apply(null,r)}function r(e,r,i){if("string"!=typeof e)throw"invalid module definition, module id must be defined and be a string";if(r===t)throw"invalid module definition, dependencies must be specified";if(i===t)throw"invalid module definition, definition function must be specified";n(r,function(){s[e]=i.apply(null,arguments)})}function i(e){return!!s[e]}function o(t){for(var n=e,r=t.split(/[.\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}return n}function a(n){for(var r=0;r<n.length;r++){for(var i=e,o=n[r],a=o.split(/[.\/]/),l=0;l<a.length-1;++l)i[a[l]]===t&&(i[a[l]]={}),i=i[a[l]];i[a[a.length-1]]=s[o]}}var s={},l="tinymce/tableplugin/TableGrid",c="tinymce/util/Tools",u="tinymce/Env",d="tinymce/tableplugin/Quirks",f="tinymce/util/VK",p="tinymce/tableplugin/CellSelection",m="tinymce/dom/TreeWalker",h="tinymce/tableplugin/Dialogs",g="tinymce/tableplugin/Plugin",v="tinymce/PluginManager";r(l,[c,u],function(e,n){function r(e,t){return parseInt(e.getAttribute(t)||1,10)}var i=e.each;return function(o,a){function s(){var e=0;B=[],D=0,i(["thead","tbody","tfoot"],function(t){var n=O.select("> "+t+" tr",a);i(n,function(n,o){o+=e,i(O.select("> td, > th",n),function(e,n){var i,a,s,l;if(B[o])for(;B[o][n];)n++;for(s=r(e,"rowspan"),l=r(e,"colspan"),a=o;o+s>a;a++)for(B[a]||(B[a]=[]),i=n;n+l>i;i++)B[a][i]={part:t,real:a==o&&i==n,elm:e,rowspan:s,colspan:l};D=Math.max(D,n+1)})}),e+=n.length})}function l(e,t){return e=e.cloneNode(t),e.removeAttribute("id"),e}function c(e,t){var n;return n=B[t],n?n[e]:void 0}function u(e,t,n){e&&(n=parseInt(n,10),1===n?e.removeAttribute(t,1):e.setAttribute(t,n,1))}function d(e){return e&&(O.hasClass(e.elm,"mce-item-selected")||e==H)}function f(){var e=[];return i(a.rows,function(t){i(t.cells,function(n){return O.hasClass(n,"mce-item-selected")||H&&n==H.elm?(e.push(t),!1):void 0})}),e}function p(){var e=O.createRng();e.setStartAfter(a),e.setEndAfter(a),L.setRng(e),O.remove(a)}function m(t){var r,a={};return o.settings.table_clone_elements!==!1&&(a=e.makeMap((o.settings.table_clone_elements||"strong em b i span font h1 h2 h3 h4 h5 h6 p div").toUpperCase(),/[ ,]/)),e.walk(t,function(e){var o;return 3==e.nodeType?(i(O.getParents(e.parentNode,null,t).reverse(),function(e){a[e.nodeName]&&(e=l(e,!1),r?o&&o.appendChild(e):r=o=e,o=e)}),o&&(o.innerHTML=n.ie?"&nbsp;":'<br data-mce-bogus="1" />'),!1):void 0},"childNodes"),t=l(t,!1),u(t,"rowSpan",1),u(t,"colSpan",1),r?t.appendChild(r):(!n.ie||n.ie>10)&&(t.innerHTML='<br data-mce-bogus="1" />'),t}function h(){var e=O.createRng(),t;return i(O.select("tr",a),function(e){0===e.cells.length&&O.remove(e)}),0===O.select("tr",a).length?(e.setStartBefore(a),e.setEndBefore(a),L.setRng(e),void O.remove(a)):(i(O.select("thead,tbody,tfoot",a),function(e){0===e.rows.length&&O.remove(e)}),s(),void(M&&(t=B[Math.min(B.length-1,M.y)],t&&(L.select(t[Math.min(t.length-1,M.x)].elm,!0),L.collapse(!0)))))}function g(e,t,n,r){var i,o,a,s,l;for(i=B[t][e].elm.parentNode,a=1;n>=a;a++)if(i=O.getNext(i,"tr")){for(o=e;o>=0;o--)if(l=B[t+a][o].elm,l.parentNode==i){for(s=1;r>=s;s++)O.insertAfter(m(l),l);break}if(-1==o)for(s=1;r>=s;s++)i.insertBefore(m(i.cells[0]),i.cells[0])}}function v(){i(B,function(e,t){i(e,function(e,n){var i,o,a;if(d(e)&&(e=e.elm,i=r(e,"colspan"),o=r(e,"rowspan"),i>1||o>1)){for(u(e,"rowSpan",1),u(e,"colSpan",1),a=0;i-1>a;a++)O.insertAfter(m(e),e);g(n,t,o-1,i)}})})}function y(t,n,r){var o,a,l,f,p,m,g,y,b,C,x;if(t?(o=k(t),a=o.x,l=o.y,f=a+(n-1),p=l+(r-1)):(M=P=null,i(B,function(e,t){i(e,function(e,n){d(e)&&(M||(M={x:n,y:t}),P={x:n,y:t})})}),M&&(a=M.x,l=M.y,f=P.x,p=P.y)),y=c(a,l),b=c(f,p),y&&b&&y.part==b.part){for(v(),s(),y=c(a,l).elm,u(y,"colSpan",f-a+1),u(y,"rowSpan",p-l+1),g=l;p>=g;g++)for(m=a;f>=m;m++)B[g]&&B[g][m]&&(t=B[g][m].elm,t!=y&&(C=e.grep(t.childNodes),i(C,function(e){y.appendChild(e)}),C.length&&(C=e.grep(y.childNodes),x=0,i(C,function(e){"BR"==e.nodeName&&O.getAttrib(e,"data-mce-bogus")&&x++<C.length-1&&y.removeChild(e)})),O.remove(t)));h()}}function b(e){var n,o,a,s,c,f,p,h,g;if(i(B,function(t,r){return i(t,function(t){return d(t)&&(t=t.elm,c=t.parentNode,f=l(c,!1),n=r,e)?!1:void 0}),e?!n:void 0}),n!==t){for(s=0;s<B[0].length;s++)if(B[n][s]&&(o=B[n][s].elm,o!=a)){if(e){if(n>0&&B[n-1][s]&&(h=B[n-1][s].elm,g=r(h,"rowSpan"),g>1)){u(h,"rowSpan",g+1);continue}}else if(g=r(o,"rowspan"),g>1){u(o,"rowSpan",g+1);continue}p=m(o),u(p,"colSpan",o.colSpan),f.appendChild(p),a=o}f.hasChildNodes()&&(e?c.parentNode.insertBefore(f,c):O.insertAfter(f,c))}}function C(e){var t,n;i(B,function(n){return i(n,function(n,r){return d(n)&&(t=r,e)?!1:void 0}),e?!t:void 0}),i(B,function(i,o){var a,s,l;i[t]&&(a=i[t].elm,a!=n&&(l=r(a,"colspan"),s=r(a,"rowspan"),1==l?e?(a.parentNode.insertBefore(m(a),a),g(t,o,s-1,l)):(O.insertAfter(m(a),a),g(t,o,s-1,l)):u(a,"colSpan",a.colSpan+1),n=a))})}function x(){var t=[];i(B,function(n){i(n,function(n,o){d(n)&&-1===e.inArray(t,o)&&(i(B,function(e){var t=e[o].elm,n;n=r(t,"colSpan"),n>1?u(t,"colSpan",n-1):O.remove(t)}),t.push(o))})}),h()}function w(){function e(e){var t,n;i(e.cells,function(e){var n=r(e,"rowSpan");n>1&&(u(e,"rowSpan",n-1),t=k(e),g(t.x,t.y,1,1))}),t=k(e.cells[0]),i(B[t.y],function(e){var t;e=e.elm,e!=n&&(t=r(e,"rowSpan"),1>=t?O.remove(e):u(e,"rowSpan",t-1),n=e)})}var t;t=f(),i(t.reverse(),function(t){e(t)}),h()}function _(){var e=f();return O.remove(e),h(),e}function E(){var e=f();return i(e,function(t,n){e[n]=l(t,!0)}),e}function N(e,t){var n=f(),r=n[t?0:n.length-1],o=r.cells.length;e&&(i(B,function(e){var t;return o=0,i(e,function(e){e.real&&(o+=e.colspan),e.elm.parentNode==r&&(t=1)}),t?!1:void 0}),t||e.reverse(),i(e,function(e){var n,i=e.cells.length,a;for(n=0;i>n;n++)a=e.cells[n],u(a,"colSpan",1),u(a,"rowSpan",1);for(n=i;o>n;n++)e.appendChild(m(e.cells[i-1]));for(n=o;i>n;n++)O.remove(e.cells[n]);t?r.parentNode.insertBefore(e,r):O.insertAfter(e,r)}),O.removeClass(O.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"))}function k(e){var t;return i(B,function(n,r){return i(n,function(n,i){return n.elm==e?(t={x:i,y:r},!1):void 0}),!t}),t}function S(e){M=k(e)}function T(){var e,t;return e=t=0,i(B,function(n,r){i(n,function(n,i){var o,a;d(n)&&(n=B[r][i],i>e&&(e=i),r>t&&(t=r),n.real&&(o=n.colspan-1,a=n.rowspan-1,o&&i+o>e&&(e=i+o),a&&r+a>t&&(t=r+a)))})}),{x:e,y:t}}function R(e){var t,n,r,i,o,a,s,l,c,u;if(P=k(e),M&&P){for(t=Math.min(M.x,P.x),n=Math.min(M.y,P.y),r=Math.max(M.x,P.x),i=Math.max(M.y,P.y),o=r,a=i,u=n;a>=u;u++)e=B[u][t],e.real||t-(e.colspan-1)<t&&(t-=e.colspan-1);for(c=t;o>=c;c++)e=B[n][c],e.real||n-(e.rowspan-1)<n&&(n-=e.rowspan-1);for(u=n;i>=u;u++)for(c=t;r>=c;c++)e=B[u][c],e.real&&(s=e.colspan-1,l=e.rowspan-1,s&&c+s>o&&(o=c+s),l&&u+l>a&&(a=u+l));for(O.removeClass(O.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"),u=n;a>=u;u++)for(c=t;o>=c;c++)B[u][c]&&O.addClass(B[u][c].elm,"mce-item-selected")}}function A(e,t){var n,r,i;n=k(e),r=n.y*D+n.x;do{if(r+=t,i=c(r%D,Math.floor(r/D)),!i)break;if(i.elm!=e)return L.select(i.elm,!0),O.isEmpty(i.elm)&&L.collapse(!0),!0}while(i.elm==e);return!1}var B,D,M,P,H,L=o.selection,O=L.dom;a=a||O.getParent(L.getStart(),"table"),s(),H=O.getParent(L.getStart(),"th,td"),H&&(M=k(H),P=T(),H=c(M.x,M.y)),e.extend(this,{deleteTable:p,split:v,merge:y,insertRow:b,insertCol:C,deleteCols:x,deleteRows:w,cutRows:_,copyRows:E,pasteRows:N,getPos:k,setStartCell:S,setEndCell:R,moveRelIdx:A,refresh:s})}}),r(d,[f,u,c],function(e,t,n){function r(e,t){return parseInt(e.getAttribute(t)||1,10)}var i=n.each;return function(n){function o(){function t(t){function o(e,r){var i=e?"previousSibling":"nextSibling",o=n.dom.getParent(r,"tr"),s=o[i];if(s)return g(n,r,s,e),t.preventDefault(),!0;var u=n.dom.getParent(o,"table"),d=o.parentNode,f=d.nodeName.toLowerCase();if("tbody"===f||f===(e?"tfoot":"thead")){var p=a(e,u,d,"tbody");if(null!==p)return l(e,p,r)}return c(e,o,i,u)}function a(e,t,r,i){var o=n.dom.select(">"+i,t),a=o.indexOf(r);if(e&&0===a||!e&&a===o.length-1)return s(e,t);if(-1===a){var l="thead"===r.tagName.toLowerCase()?0:o.length-1;return o[l]}return o[a+(e?-1:1)]}function s(e,t){var r=e?"thead":"tfoot",i=n.dom.select(">"+r,t);return 0!==i.length?i[0]:null}function l(e,r,i){var o=u(r,e);return o&&g(n,i,o,e),t.preventDefault(),!0}function c(e,r,i,a){var s=a[i];if(s)return d(s),!0;var l=n.dom.getParent(a,"td,th");if(l)return o(e,l,t);var c=u(r,!e);return d(c),t.preventDefault(),!1}function u(e,t){var r=e&&e[t?"lastChild":"firstChild"];return r&&"BR"===r.nodeName?n.dom.getParent(r,"td,th"):r}function d(e){n.selection.setCursorLocation(e,0)}function f(){return b==e.UP||b==e.DOWN}function p(e){var t=e.selection.getNode(),n=e.dom.getParent(t,"tr");return null!==n}function m(e){for(var t=0,n=e;n.previousSibling;)n=n.previousSibling,t+=r(n,"colspan");return t}function h(e,t){var n=0,o=0;return i(e.children,function(e,i){return n+=r(e,"colspan"),o=i,n>t?!1:void 0}),o}function g(e,t,r,i){var o=m(n.dom.getParent(t,"td,th")),a=h(r,o),s=r.childNodes[a],l=u(s,i);d(l||s)}function v(e){var t=n.selection.getNode(),r=n.dom.getParent(t,"td,th"),i=n.dom.getParent(e,"td,th");return r&&r!==i&&y(r,i)}function y(e,t){return n.dom.getParent(e,"TABLE")===n.dom.getParent(t,"TABLE")}var b=t.keyCode;if(f()&&p(n)){var C=n.selection.getNode();setTimeout(function(){v(C)&&o(!t.shiftKey&&b===e.UP,C,t)},0)}}n.on("KeyDown",function(e){t(e)})}function a(){function e(e,t){var n=t.ownerDocument,r=n.createRange(),i;return r.setStartBefore(t),r.setEnd(e.endContainer,e.endOffset),i=n.createElement("body"),i.appendChild(r.cloneContents()),0===i.innerHTML.replace(/<(br|img|object|embed|input|textarea)[^>]*>/gi,"-").replace(/<[^>]+>/g,"").length}n.on("KeyDown",function(t){var r,i,o=n.dom;(37==t.keyCode||38==t.keyCode)&&(r=n.selection.getRng(),i=o.getParent(r.startContainer,"table"),i&&n.getBody().firstChild==i&&e(r,i)&&(r=o.createRng(),r.setStartBefore(i),r.setEndBefore(i),n.selection.setRng(r),t.preventDefault()))})}function s(){n.on("KeyDown SetContent VisualAid",function(){var e;for(e=n.getBody().lastChild;e;e=e.previousSibling)if(3==e.nodeType){if(e.nodeValue.length>0)break}else if(1==e.nodeType&&("BR"==e.tagName||!e.getAttribute("data-mce-bogus")))break;e&&"TABLE"==e.nodeName&&(n.settings.forced_root_block?n.dom.add(n.getBody(),n.settings.forced_root_block,n.settings.forced_root_block_attrs,t.ie&&t.ie<11?"&nbsp;":'<br data-mce-bogus="1" />'):n.dom.add(n.getBody(),"br",{"data-mce-bogus":"1"}))}),n.on("PreProcess",function(e){var t=e.node.lastChild;t&&("BR"==t.nodeName||1==t.childNodes.length&&("BR"==t.firstChild.nodeName||"\xa0"==t.firstChild.nodeValue))&&t.previousSibling&&"TABLE"==t.previousSibling.nodeName&&n.dom.remove(t)})}function l(){function e(e,t,n,r){var i=3,o=e.dom.getParent(t.startContainer,"TABLE"),a,s,l;return o&&(a=o.parentNode),s=t.startContainer.nodeType==i&&0===t.startOffset&&0===t.endOffset&&r&&("TR"==n.nodeName||n==a),l=("TD"==n.nodeName||"TH"==n.nodeName)&&!r,s||l}function t(){var t=n.selection.getRng(),r=n.selection.getNode(),i=n.dom.getParent(t.startContainer,"TD,TH");if(e(n,t,r,i)){i||(i=r);for(var o=i.lastChild;o.lastChild;)o=o.lastChild;3==o.nodeType&&(t.setEnd(o,o.data.length),n.selection.setRng(t))}}n.on("KeyDown",function(){t()}),n.on("MouseDown",function(e){2!=e.button&&t()})}function c(){n.on("keydown",function(t){if((t.keyCode==e.DELETE||t.keyCode==e.BACKSPACE)&&!t.isDefaultPrevented()){var r=n.dom.getParent(n.selection.getStart(),"table");if(r){for(var i=n.dom.select("td,th",r),o=i.length;o--;)if(!n.dom.hasClass(i[o],"mce-item-selected"))return;t.preventDefault(),n.execCommand("mceTableDelete")}}})}c(),t.webkit&&(o(),l()),t.gecko&&(a(),s()),t.ie>10&&(a(),s())}}),r(p,[l,m,c],function(e,t,n){return function(r){function i(e){r.getBody().style.webkitUserSelect="",(e||u)&&(r.dom.removeClass(r.dom.select("td.mce-item-selected,th.mce-item-selected"),"mce-item-selected"),u=!1)}function o(t){var n,i,o=t.target;if(!d&&l&&(s||o!=l)&&("TD"==o.nodeName||"TH"==o.nodeName)){i=a.getParent(o,"table"),i==c&&(s||(s=new e(r,i),s.setStartCell(l),r.getBody().style.webkitUserSelect="none"),s.setEndCell(o),u=!0),n=r.selection.getSel();try{n.removeAllRanges?n.removeAllRanges():n.empty()}catch(f){}t.preventDefault()}}var a=r.dom,s,l,c,u=!0,d;return r.on("MouseDown",function(e){2==e.button||d||(i(),l=a.getParent(e.target,"td,th"),c=a.getParent(l,"table"))}),r.on("mouseover",o),r.on("remove",function(){a.unbind(r.getDoc(),"mouseover",o)}),r.on("MouseUp",function(){function e(e,r){var o=new t(e,e);do{if(3==e.nodeType&&0!==n.trim(e.nodeValue).length)return void(r?i.setStart(e,0):i.setEnd(e,e.nodeValue.length));if("BR"==e.nodeName)return void(r?i.setStartBefore(e):i.setEndBefore(e))}while(e=r?o.next():o.prev())}var i,o=r.selection,u,d,f,p;if(l){if(s&&(r.getBody().style.webkitUserSelect=""),u=a.select("td.mce-item-selected,th.mce-item-selected"),u.length>0){i=a.createRng(),f=u[0],i.setStartBefore(f),i.setEndAfter(f),e(f,1),d=new t(f,a.getParent(u[0],"table"));do if("TD"==f.nodeName||"TH"==f.nodeName){if(!a.hasClass(f,"mce-item-selected"))break;p=f}while(f=d.next());e(p),o.setRng(i)}r.nodeChanged(),l=s=c=null}}),r.on("KeyUp Drop SetContent",function(e){i("setcontent"==e.type),l=s=c=null,d=!1}),r.on("ObjectResizeStart ObjectResized",function(e){d="objectresized"!=e.type}),{clear:i}}}),r(h,[c,u],function(e,t){var n=e.each;return function(r){function i(){var e=this,t=r.settings.color_picker_callback;t&&t.call(r,function(t){e.value(t).fire("change")},e.value())}function o(e){return{title:"Advanced",type:"form",defaults:{onchange:function(){d(e,this.parents().reverse()[0],"style"==this.name())}},items:[{label:"Style",name:"style",type:"textbox"},{type:"form",padding:0,formItemDefaults:{layout:"grid",alignH:["start","right"]},defaults:{size:7},items:[{label:"Border color",type:"colorbox",name:"borderColor",onaction:i},{label:"Background color",type:"colorbox",name:"backgroundColor",onaction:i}]}]}}function a(e){return e?e.replace(/px$/,""):""}function s(e){return/^[0-9]+$/.test(e)&&(e+="px"),e}function l(e){n("left center right".split(" "),function(t){r.formatter.remove("align"+t,{},e)})}function c(e){n("top middle bottom".split(" "),function(t){r.formatter.remove("valign"+t,{},e)})}function u(t,n,r){function i(t,r){return r=r||[],e.each(t,function(e){var t={text:e.text||e.title};e.menu?t.menu=i(e.menu):(t.value=e.value,n&&n(t)),r.push(t)}),r}return i(t,r||[])}function d(e,t,n){var r=t.toJSON(),i=e.parseStyle(r.style);n?(t.find("#borderColor").value(i["border-color"]||"")[0].fire("change"),t.find("#backgroundColor").value(i["background-color"]||"")[0].fire("change")):(i["border-color"]=r.borderColor,i["background-color"]=r.backgroundColor),t.find("#style").value(e.serializeStyle(e.parseStyle(e.serializeStyle(i))))}function f(e,t,n){var r=e.parseStyle(e.getAttrib(n,"style"));r["border-color"]&&(t.borderColor=r["border-color"]),r["background-color"]&&(t.backgroundColor=r["background-color"]),t.style=e.serializeStyle(r)}var p=this;p.tableProps=function(){p.table(!0)},p.table=function(i){function c(){var n;d(p,this),y=e.extend(y,this.toJSON()),e.each("backgroundColor borderColor".split(" "),function(e){delete y[e]}),y["class"]===!1&&delete y["class"],r.undoManager.transact(function(){m||(m=r.plugins.table.insertTable(y.cols||1,y.rows||1)),r.dom.setAttribs(m,{cellspacing:y.cellspacing,cellpadding:y.cellpadding,border:y.border,style:y.style,"class":y["class"]}),p.getAttrib(m,"width")?p.setAttrib(m,"width",a(y.width)):p.setStyle(m,"width",s(y.width)),p.setStyle(m,"height",s(y.height)),n=p.select("caption",m)[0],n&&!y.caption&&p.remove(n),!n&&y.caption&&(n=p.create("caption"),n.innerHTML=t.ie?"\xa0":'<br data-mce-bogus="1"/>',m.insertBefore(n,m.firstChild)),l(m),y.align&&r.formatter.apply("align"+y.align,{},m),r.focus(),r.addVisual()})}var p=r.dom,m,h,g,v,y={},b;i===!0?(m=p.getParent(r.selection.getStart(),"table"),m&&(y={width:a(p.getStyle(m,"width")||p.getAttrib(m,"width")),height:a(p.getStyle(m,"height")||p.getAttrib(m,"height")),cellspacing:m?p.getAttrib(m,"cellspacing"):"",cellpadding:m?p.getAttrib(m,"cellpadding"):"",border:m?p.getAttrib(m,"border"):"",caption:!!p.select("caption",m)[0],"class":p.getAttrib(m,"class")},n("left center right".split(" "),function(e){r.formatter.matchNode(m,"align"+e)&&(y.align=e)}))):(h={label:"Cols",name:"cols"},g={label:"Rows",name:"rows"}),r.settings.table_class_list&&(y["class"]&&(y["class"]=y["class"].replace(/\s*mce\-item\-table\s*/g,"")),v={name:"class",type:"listbox",label:"Class",values:u(r.settings.table_class_list,function(e){e.value&&(e.textStyle=function(){return r.formatter.getCssText({block:"table",classes:[e.value]})})})}),b={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",labelGapCalc:!1,padding:0,layout:"grid",columns:2,defaults:{type:"textbox",maxWidth:50},items:[h,g,{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell spacing",name:"cellspacing"},{label:"Cell padding",name:"cellpadding"},{label:"Border",name:"border"},{label:"Caption",name:"caption",type:"checkbox"}]},{label:"Alignment",name:"align",type:"listbox",text:"None",values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},v]},r.settings.table_adv_tab!==!1?(f(p,y,m),r.windowManager.open({title:"Table properties",data:y,bodyType:"tabpanel",body:[{title:"General",type:"form",items:b},o(p)],onsubmit:c})):r.windowManager.open({title:"Table properties",data:y,body:b,onsubmit:c})},p.merge=function(e,t){r.windowManager.open({title:"Merge cells",body:[{label:"Cols",name:"cols",type:"textbox",value:"1",size:10},{label:"Rows",name:"rows",type:"textbox",value:"1",size:10}],onsubmit:function(){var n=this.toJSON();r.undoManager.transact(function(){e.merge(t,n.cols,n.rows)})}})},p.cell=function(){function t(){d(i,this),m=e.extend(m,this.toJSON()),r.undoManager.transact(function(){n(g,function(e){r.dom.setAttribs(e,{scope:m.scope,style:m.style,"class":m["class"]}),r.dom.setStyles(e,{width:s(m.width),height:s(m.height)}),m.type&&e.nodeName.toLowerCase()!=m.type&&(e=i.rename(e,m.type)),l(e),m.align&&r.formatter.apply("align"+m.align,{},e),c(e),m.valign&&r.formatter.apply("valign"+m.valign,{},e)}),r.focus()})}var i=r.dom,p,m,h,g=[];if(g=r.dom.select("td.mce-item-selected,th.mce-item-selected"),p=r.dom.getParent(r.selection.getStart(),"td,th"),!g.length&&p&&g.push(p),p=p||g[0]){m={width:a(i.getStyle(p,"width")||i.getAttrib(p,"width")),height:a(i.getStyle(p,"height")||i.getAttrib(p,"height")),scope:i.getAttrib(p,"scope"),"class":i.getAttrib(p,"class")},m.type=p.nodeName.toLowerCase(),n("left center right".split(" "),function(e){r.formatter.matchNode(p,"align"+e)&&(m.align=e)}),n("top middle bottom".split(" "),function(e){r.formatter.matchNode(p,"valign"+e)&&(m.valign=e)}),r.settings.table_cell_class_list&&(h={name:"class",type:"listbox",label:"Class",values:u(r.settings.table_cell_class_list,function(e){e.value&&(e.textStyle=function(){return r.formatter.getCssText({block:"td",classes:[e.value]})})})});var v={type:"form",layout:"flex",direction:"column",labelGapCalc:"children",padding:0,items:[{type:"form",layout:"grid",columns:2,labelGapCalc:!1,padding:0,defaults:{type:"textbox",maxWidth:50},items:[{label:"Width",name:"width"},{label:"Height",name:"height"},{label:"Cell type",name:"type",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"Cell",value:"td"},{text:"Header cell",value:"th"}]},{label:"Scope",name:"scope",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Row",value:"row"},{text:"Column",value:"col"},{text:"Row group",value:"rowgroup"},{text:"Column group",value:"colgroup"}]},{label:"H Align",name:"align",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"V Align",name:"valign",type:"listbox",text:"None",minWidth:90,maxWidth:null,values:[{text:"None",value:""},{text:"Top",value:"top"},{text:"Middle",value:"middle"},{text:"Bottom",value:"bottom"}]}]},h]};r.settings.table_cell_adv_tab!==!1?(f(i,m,p),r.windowManager.open({title:"Cell properties",bodyType:"tabpanel",data:m,body:[{title:"General",type:"form",items:v},o(i)],onsubmit:t})):r.windowManager.open({title:"Cell properties",data:m,items:v,onsubmit:t})}},p.row=function(){function t(){var t,o,a;d(i,this),g=e.extend(g,this.toJSON()),r.undoManager.transact(function(){var e=g.type;n(v,function(n){r.dom.setAttribs(n,{scope:g.scope,style:g.style,"class":g["class"]}),r.dom.setStyles(n,{height:s(g.height)}),e!=n.parentNode.nodeName.toLowerCase()&&(t=i.getParent(n,"table"),o=n.parentNode,a=i.select(e,t)[0],a||(a=i.create(e),t.firstChild?t.insertBefore(a,t.firstChild):t.appendChild(a)),a.appendChild(n),o.hasChildNodes()||i.remove(o)),l(n),g.align&&r.formatter.apply("align"+g.align,{},n)}),r.focus()})}var i=r.dom,c,p,m,h,g,v=[],y;c=r.dom.getParent(r.selection.getStart(),"table"),p=r.dom.getParent(r.selection.getStart(),"td,th"),n(c.rows,function(e){n(e.cells,function(t){return i.hasClass(t,"mce-item-selected")||t==p?(v.push(e),!1):void 0})}),m=v[0],m&&(g={height:a(i.getStyle(m,"height")||i.getAttrib(m,"height")),scope:i.getAttrib(m,"scope"),"class":i.getAttrib(m,"class")},g.type=m.parentNode.nodeName.toLowerCase(),n("left center right".split(" "),function(e){r.formatter.matchNode(m,"align"+e)&&(g.align=e)}),r.settings.table_row_class_list&&(h={name:"class",type:"listbox",label:"Class",values:u(r.settings.table_row_class_list,function(e){e.value&&(e.textStyle=function(){return r.formatter.getCssText({block:"tr",classes:[e.value]})})})}),y={type:"form",columns:2,padding:0,defaults:{type:"textbox"},items:[{type:"listbox",name:"type",label:"Row type",text:"None",maxWidth:null,values:[{text:"Header",value:"thead"},{text:"Body",value:"tbody"},{text:"Footer",value:"tfoot"}]},{type:"listbox",name:"align",label:"Alignment",text:"None",maxWidth:null,values:[{text:"None",value:""},{text:"Left",value:"left"},{text:"Center",value:"center"},{text:"Right",value:"right"}]},{label:"Height",name:"height"},h]},r.settings.table_row_adv_tab!==!1?(f(i,g,m),r.windowManager.open({title:"Row properties",data:g,bodyType:"tabpanel",body:[{title:"General",type:"form",items:y},o(i)],onsubmit:t})):r.windowManager.open({title:"Row properties",data:g,body:y,onsubmit:t}))}}}),r(g,[l,d,p,h,c,m,u,v],function(e,t,n,r,i,o,a,s){function l(i){function o(e){return function(){i.execCommand(e)}}function s(e,t){var n,r,o,s;for(o='<table id="__mce"><tbody>',n=0;t>n;n++){for(o+="<tr>",r=0;e>r;r++)o+="<td>"+(a.ie?" ":"<br>")+"</td>";o+="</tr>"}return o+="</tbody></table>",i.undoManager.transact(function(){i.insertContent(o),s=i.dom.get("__mce"),i.dom.setAttrib(s,"id",null),i.dom.setAttribs(s,i.settings.table_default_attributes||{}),i.dom.setStyles(s,i.settings.table_default_styles||{})}),s}function l(e,t){function n(){e.disabled(!i.dom.getParent(i.selection.getStart(),t)),i.selection.selectorChanged(t,function(t){e.disabled(!t)})}i.initialized?n():i.on("init",n)}function u(){l(this,"table")}function d(){l(this,"td,th")}function f(){var e="";e='<table role="grid" class="mce-grid mce-grid-border" aria-readonly="true">';for(var t=0;10>t;t++){e+="<tr>";for(var n=0;10>n;n++)e+='<td role="gridcell" tabindex="-1"><a id="mcegrid'+(10*t+n)+'" href="#" data-mce-x="'+n+'" data-mce-y="'+t+'"></a></td>';e+="</tr>"}return e+="</table>",e+='<div class="mce-text-center" role="presentation">1 x 1</div>'}function p(e,t,n){var r=n.getEl().getElementsByTagName("table")[0],o,a,s,l,c,u=n.isRtl()||"tl-tr"==n.parent().rel;for(r.nextSibling.innerHTML=e+1+" x "+(t+1),u&&(e=9-e),a=0;10>a;a++)for(o=0;10>o;o++)l=r.rows[a].childNodes[o].firstChild,c=(u?o>=e:e>=o)&&t>=a,i.dom.toggleClass(l,"mce-active",c),c&&(s=l);return s.parentNode}var m,h=this,g=new r(i);i.settings.table_grid===!1?i.addMenuItem("inserttable",{text:"Insert table",icon:"table",context:"table",onclick:g.table}):i.addMenuItem("inserttable",{text:"Insert table",icon:"table",context:"table",ariaHideMenu:!0,onclick:function(e){e.aria&&(this.parent().hideAll(),e.stopImmediatePropagation(),g.table())},onshow:function(){p(0,0,this.menu.items()[0])},onhide:function(){var e=this.menu.items()[0].getEl().getElementsByTagName("a");i.dom.removeClass(e,"mce-active"),i.dom.addClass(e[0],"mce-active")},menu:[{type:"container",html:f(),onPostRender:function(){this.lastX=this.lastY=0},onmousemove:function(e){var t=e.target,n,r;"A"==t.tagName.toUpperCase()&&(n=parseInt(t.getAttribute("data-mce-x"),10),r=parseInt(t.getAttribute("data-mce-y"),10),(this.isRtl()||"tl-tr"==this.parent().rel)&&(n=9-n),(n!==this.lastX||r!==this.lastY)&&(p(n,r,e.control),this.lastX=n,this.lastY=r))},onclick:function(e){var t=this;"A"==e.target.tagName.toUpperCase()&&(e.preventDefault(),e.stopPropagation(),t.parent().cancel(),i.undoManager.transact(function(){s(t.lastX+1,t.lastY+1)}),i.addVisual())}}]}),i.addMenuItem("tableprops",{text:"Table properties",context:"table",onPostRender:u,onclick:g.tableProps}),i.addMenuItem("deletetable",{text:"Delete table",context:"table",onPostRender:u,cmd:"mceTableDelete"}),i.addMenuItem("cell",{separator:"before",text:"Cell",context:"table",menu:[{text:"Cell properties",onclick:o("mceTableCellProps"),onPostRender:d},{text:"Merge cells",onclick:o("mceTableMergeCells"),onPostRender:d},{text:"Split cell",onclick:o("mceTableSplitCells"),onPostRender:d}]}),i.addMenuItem("row",{text:"Row",context:"table",menu:[{text:"Insert row before",onclick:o("mceTableInsertRowBefore"),onPostRender:d},{text:"Insert row after",onclick:o("mceTableInsertRowAfter"),onPostRender:d},{text:"Delete row",onclick:o("mceTableDeleteRow"),onPostRender:d},{text:"Row properties",onclick:o("mceTableRowProps"),onPostRender:d},{text:"-"},{text:"Cut row",onclick:o("mceTableCutRow"),onPostRender:d},{text:"Copy row",onclick:o("mceTableCopyRow"),onPostRender:d},{text:"Paste row before",onclick:o("mceTablePasteRowBefore"),onPostRender:d},{text:"Paste row after",onclick:o("mceTablePasteRowAfter"),onPostRender:d}]}),i.addMenuItem("column",{text:"Column",context:"table",menu:[{text:"Insert column before",onclick:o("mceTableInsertColBefore"),onPostRender:d},{text:"Insert column after",onclick:o("mceTableInsertColAfter"),onPostRender:d},{text:"Delete column",onclick:o("mceTableDeleteCol"),onPostRender:d}]});var v=[];c("inserttable tableprops deletetable | cell row column".split(" "),function(e){v.push("|"==e?{text:"-"}:i.menuItems[e])}),i.addButton("table",{type:"menubutton",title:"Table",menu:v}),a.isIE||i.on("click",function(e){e=e.target,"TABLE"===e.nodeName&&(i.selection.select(e),i.nodeChanged())}),h.quirks=new t(i),i.on("Init",function(){h.cellSelection=new n(i)}),c({mceTableSplitCells:function(e){e.split()},mceTableMergeCells:function(e){var t;t=i.dom.getParent(i.selection.getStart(),"th,td"),i.dom.select("td.mce-item-selected,th.mce-item-selected").length?e.merge():g.merge(e,t)},mceTableInsertRowBefore:function(e){e.insertRow(!0)},mceTableInsertRowAfter:function(e){e.insertRow()},mceTableInsertColBefore:function(e){e.insertCol(!0)},mceTableInsertColAfter:function(e){e.insertCol()},mceTableDeleteCol:function(e){e.deleteCols()},mceTableDeleteRow:function(e){e.deleteRows()},mceTableCutRow:function(e){m=e.cutRows()},mceTableCopyRow:function(e){m=e.copyRows()},mceTablePasteRowBefore:function(e){e.pasteRows(m,!0)},mceTablePasteRowAfter:function(e){e.pasteRows(m)},mceTableDelete:function(e){e.deleteTable()}},function(t,n){i.addCommand(n,function(){var n=new e(i);n&&(t(n),i.execCommand("mceRepaint"),h.cellSelection.clear())})}),c({mceInsertTable:g.table,mceTableProps:function(){g.table(!0)},mceTableRowProps:g.row,mceTableCellProps:g.cell},function(e,t){i.addCommand(t,function(t,n){e(n)})}),i.settings.table_tab_navigation!==!1&&i.on("keydown",function(t){var n,r,o;9==t.keyCode&&(n=i.dom.getParent(i.selection.getStart(),"th,td"),n&&(t.preventDefault(),r=new e(i),o=t.shiftKey?-1:1,i.undoManager.transact(function(){!r.moveRelIdx(n,o)&&o>0&&(r.insertRow(),r.refresh(),r.moveRelIdx(n,o))})))}),h.insertTable=s}var c=i.each;s.add("table",l)}),a([])}(this);
plugins/test/plugin.js ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(document).ready(function($) {
2
+
3
+
4
+ tinymce.PluginManager.add('test', function(editor, url) {
5
+
6
+
7
+ editor.addButton('test', {
8
+
9
+ image: url + '/test.png',
10
+ tooltip: 'TEST',
11
+ onclick: myTest
12
+ });
13
+
14
+ function myTest() {
15
+
16
+ editor.windowManager.open({
17
+
18
+ title: 'TEST',
19
+ body:
20
+ [
21
+ {
22
+
23
+ type: "form",
24
+ layout: 'grid',
25
+ columns: 2,
26
+ items:
27
+ [
28
+ {
29
+ label: "Search Terms",
30
+ name: "queryinput",
31
+ type: "textbox",
32
+ size: 50
33
+ },
34
+ {
35
+ text: "Search",
36
+ name: "submit_button",
37
+ type: "button",
38
+ maxWidth: 60,
39
+ //onClick: function() {alert('Hello World');}
40
+ onClick: SearchYouTube()
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ type: 'container',
46
+ name: 'container',
47
+ html: '<div id="search-results-block">TESTING...</div>',
48
+ width: 100,
49
+ height: 100
50
+ }
51
+ ],
52
+
53
+ // Submit window info back to tinymce editor
54
+ onsubmit: function (t) {
55
+
56
+ editor.execCommand('mceInsertContent', !1, 'TEST')
57
+ }
58
+ })
59
+ }
60
+
61
+
62
+ function SearchYouTube(query) {
63
+ $.ajax({
64
+ url: 'http://gdata.youtube.com/feeds/mobile/videos?alt=json-in-script&q=' + query,
65
+ dataType: 'jsonp',
66
+ success: function (data) {
67
+ var row = "";
68
+ for (i = 0; i < data.feed.entry.length; i++) {
69
+ row += "<div class='search_item'>";
70
+ row += "<table width='100%'>";
71
+ row += "<tr>";
72
+ row += "<td vAlign='top' align='left'>";
73
+ row += "<a href='#' ><img width='120px' height='80px' src=" + data.feed.entry[i].media$group.media$thumbnail[0].url + " /></a>";
74
+ row += "</td>";
75
+ row += "<td vAlign='top' width='100%' align='left'>";
76
+ row += "<a href='#' ><b>" + data.feed.entry[i].media$group.media$title.$t + "</b></a><br/>";
77
+ row += "<span style='font-size:12px; color:#555555'>by " + data.feed.entry[i].author[0].name.$t + "</span><br/>";
78
+ row += "<span style='font-size:12px' color:#666666>" + data.feed.entry[i].yt$statistics.viewCount + " views" + "<span><br/>";
79
+ row += "</td>";
80
+ row += "</tr>";
81
+ row += "</table>";
82
+ row += "</div>";
83
+ }
84
+ document.getElementById("search-results-block").innerHTML = row;
85
+ },
86
+ error: function () {
87
+ alert("Error loading youtube video results");
88
+ }
89
+ });
90
+ return false;
91
+ }
92
+
93
+ });
94
+ });
plugins/visualblocks/css/visualblocks.css ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .mce-visualblocks p {
2
+ padding-top: 10px;
3
+ border: 1px dashed #BBB;
4
+ margin-left: 3px;
5
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);
6
+ }
7
+
8
+ .mce-visualblocks h1 {
9
+ padding-top: 10px;
10
+ border: 1px dashed #BBB;
11
+ margin-left: 3px;
12
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);
13
+ }
14
+
15
+ .mce-visualblocks h2 {
16
+ padding-top: 10px;
17
+ border: 1px dashed #BBB;
18
+ margin-left: 3px;
19
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);
20
+ }
21
+
22
+ .mce-visualblocks h3 {
23
+ padding-top: 10px;
24
+ border: 1px dashed #BBB;
25
+ margin-left: 3px;
26
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);
27
+ }
28
+
29
+ .mce-visualblocks h4 {
30
+ padding-top: 10px;
31
+ border: 1px dashed #BBB;
32
+ margin-left: 3px;
33
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);
34
+ }
35
+
36
+ .mce-visualblocks h5 {
37
+ padding-top: 10px;
38
+ border: 1px dashed #BBB;
39
+ margin-left: 3px;
40
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);
41
+ }
42
+
43
+ .mce-visualblocks h6 {
44
+ padding-top: 10px;
45
+ border: 1px dashed #BBB;
46
+ margin-left: 3px;
47
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);
48
+ }
49
+
50
+ .mce-visualblocks div {
51
+ padding-top: 10px;
52
+ border: 1px dashed #BBB;
53
+ margin-left: 3px;
54
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);
55
+ }
56
+
57
+ .mce-visualblocks section {
58
+ padding-top: 10px;
59
+ border: 1px dashed #BBB;
60
+ margin: 0 0 1em 3px;
61
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);
62
+ }
63
+
64
+ .mce-visualblocks article {
65
+ padding-top: 10px;
66
+ border: 1px dashed #BBB;
67
+ margin: 0 0 1em 3px;
68
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);
69
+ }
70
+
71
+ .mce-visualblocks blockquote {
72
+ padding-top: 10px;
73
+ border: 1px dashed #BBB;
74
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);
75
+ }
76
+
77
+ .mce-visualblocks address {
78
+ padding-top: 10px;
79
+ border: 1px dashed #BBB;
80
+ margin: 0 0 1em 3px;
81
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);
82
+ }
83
+
84
+ .mce-visualblocks pre {
85
+ padding-top: 10px;
86
+ border: 1px dashed #BBB;
87
+ margin-left: 3px;
88
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);
89
+ }
90
+
91
+ .mce-visualblocks figure {
92
+ padding-top: 10px;
93
+ border: 1px dashed #BBB;
94
+ margin: 0 0 1em 3px;
95
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);
96
+ }
97
+
98
+ .mce-visualblocks hgroup {
99
+ padding-top: 10px;
100
+ border: 1px dashed #BBB;
101
+ margin: 0 0 1em 3px;
102
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);
103
+ }
104
+
105
+ .mce-visualblocks aside {
106
+ padding-top: 10px;
107
+ border: 1px dashed #BBB;
108
+ margin: 0 0 1em 3px;
109
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);
110
+ }
111
+
112
+ .mce-visualblocks figcaption {
113
+ border: 1px dashed #BBB;
114
+ }
115
+
116
+ .mce-visualblocks ul {
117
+ padding-top: 10px;
118
+ border: 1px dashed #BBB;
119
+ margin: 0 0 1em 3px;
120
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)
121
+ }
122
+
123
+ .mce-visualblocks ol {
124
+ padding-top: 10px;
125
+ border: 1px dashed #BBB;
126
+ margin: 0 0 1em 3px;
127
+ background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);
128
+ }
plugins/visualblocks/plugin.min.js ADDED
@@ -0,0 +1 @@
 
1
+ tinymce.PluginManager.add("visualblocks",function(e,t){function n(){var t=this;t.active(r),e.on("VisualBlocks",function(){t.active(e.dom.hasClass(e.getBody(),"mce-visualblocks"))})}var i,a,r;window.NodeList&&(e.addCommand("mceVisualBlocks",function(){var n,o=e.dom;i||(i=o.uniqueId(),n=o.create("link",{id:i,rel:"stylesheet",href:t+"/css/visualblocks.css"}),e.getDoc().getElementsByTagName("head")[0].appendChild(n)),e.on("PreviewFormats AfterPreviewFormats",function(t){r&&o.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"==t.type)}),o.toggleClass(e.getBody(),"mce-visualblocks"),r=e.dom.hasClass(e.getBody(),"mce-visualblocks"),a&&a.active(o.hasClass(e.getBody(),"mce-visualblocks")),e.fire("VisualBlocks")}),e.addButton("visualblocks",{title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n}),e.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n,selectable:!0,context:"view",prependToContext:!0}),e.on("init",function(){e.settings.visualblocks_default_state&&e.execCommand("mceVisualBlocks",!1,null,{skip_focus:!0})}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")}))});
plugins/wpep_noautop/plugin.js ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tinymce.PluginManager.add( 'wpep_noautop', function( editor ) {
2
+ editor.on( 'init', function() {
3
+ if ( ! editor.settings.wpautop && editor.settings.wpep_noautop ) {
4
+ editor.on( 'SaveContent', function( event ) {
5
+ var regex = [
6
+ new RegExp('https?://(www\\.)?youtube\\.com/watch.*', 'i'),
7
+ new RegExp('http://youtu.be/*'),
8
+ new RegExp('http://blip.tv/*'),
9
+ new RegExp('https?://(www\\.)?vimeo\\.com/.*', 'i'),
10
+ new RegExp('https?://(www\\.)?dailymotion\\.com/.*', 'i'),
11
+ new RegExp('http://dai.ly/*'),
12
+ new RegExp('https?://(www\\.)?flickr\\.com/.*', 'i'),
13
+ new RegExp('http://flic.kr/*'),
14
+ new RegExp('https?://(.+\\.)?smugmug\\.com/.*', 'i'),
15
+ new RegExp('https?://(www\\.)?hulu\\.com/watch/.*', 'i'),
16
+ new RegExp('https?://(www\\.)?viddler\\.com/.*', 'i'),
17
+ new RegExp('http://qik.com/*'),
18
+ new RegExp('http://revision3.com/*'),
19
+ new RegExp('http://i*.photobucket.com/albums/*'),
20
+ new RegExp('http://gi*.photobucket.com/groups/*'),
21
+ new RegExp('https?://(www\\.)?scribd\\.com/.*', 'i'),
22
+ new RegExp('http://wordpress.tv/*'),
23
+ new RegExp('https?://(.+\\.)?polldaddy\\.com/.*', 'i'),
24
+ new RegExp('https?://(www\\.)?funnyordie\\.com/videos/.*', 'i'),
25
+ new RegExp('https?://(www\\.)?twitter\\.com/.+?/status(es)?/.*', 'i'),
26
+ new RegExp('https?://(www\\.)?soundcloud\\.com/.*', 'i'),
27
+ new RegExp('https?://(www\\.)?slideshare\\.net/*', 'i'),
28
+ new RegExp('http://instagr(\\.am|am\\.com)/p/.*', 'i'),
29
+ new RegExp('https?://(www\\.)?rdio\\.com/.*', 'i'),
30
+ new RegExp('https?://rd\\.io/x/.*', 'i'),
31
+ new RegExp('https?://(open|play)\\.spotify\\.com/.*', 'i')
32
+ ];
33
+
34
+ event.content = event.content.replace( /<p>(https?:\/\/[^<> "]+?)<\/p>/ig, function( all, match ) {
35
+ for( var i in regex ) {
36
+ if ( regex[i].test( match ) ) {
37
+ return '\n' + match + '\n';
38
+ }
39
+ }
40
+ return all;
41
+ })
42
+ .replace( /caption\]\[caption/g, 'caption] [caption' )
43
+ .replace( /<(object|audio|video)[\s\S]+?<\/\1>/g, function( match ) {
44
+ return match.replace( /[\r\n]+/g, ' ' );
45
+ }).replace( /<pre[^>]*>[\s\S]+?<\/pre>/g, function( match ) {
46
+ match = match.replace( /<br ?\/?>(\r\n|\n)?/g, '\n' );
47
+ return match.replace( /<\/?p( [^>]*)?>(\r\n|\n)?/g, '\n' );
48
+ });
49
+ });
50
+ }
51
+ });
52
+
53
+ // Remove white space between <div> and <dl> (fixes captions when no wpautop)
54
+ editor.on( 'PostProcess', function( event ) {
55
+ if ( event.content && ! editor.settings.wpautop && editor.settings.wpep_noautop ) {
56
+ event.content = event.content.replace( /(<div [^>]+>)\s*<dl/g, '$1<dl' );
57
+ }
58
+ }, true );
59
+ });
readme.txt ADDED
@@ -0,0 +1,252 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === WP Edit ===
2
+ Contributors: josh401
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9E5VNRBMVBCS
4
+ Tags: wpedit, wp edit, editor, buttons, button, add, font, font style, font select, table, tables, visual editor, search, replace, colors, color, anchor, advance, advanced, links, link, popup, javascript, upgrade, update, admin, image, images, citations, preview, html, custom css, borders, pages, posts, colorful, php, php widget, shortcode, shortcodes, style, styles, plugin, login, excerpt, id, post, page, youtube, tinymce
5
+ Requires at least: 3.9
6
+ Tested up to: 4.4
7
+ Stable tag: 3.6
8
+ License: GPLv2 or later
9
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
+
11
+ Take complete control over the WordPress content editor.
12
+
13
+ == Description ==
14
+
15
+ = Introduction =
16
+ For a riveting video introduction into the possibilities available with WP Edit; please visit [Jupiter Jim's Marketing Team](http://jupiterjimsmarketingteam.com/wordpress-video-tutorials/change-font-size-family-wordpress/).
17
+
18
+ = Description =
19
+
20
+ WP Edit is built around three years of custom WordPress development. WP Edit adds extensive, additional editing functionality to the default WordPress editor. Begin creating content like the pros; without knowing a single bit of HTML or CSS.
21
+
22
+ [Subscribe to our Feedblitz List](http://www.feedblitz.com/f/?Sub=950320), and receive news, update notices and more.
23
+ [<img title="Subscribe to get updates by email and more!" border="0" src="http://assets.feedblitz.com/chicklets/email/i/25/950320.bmp">](http://www.feedblitz.com/f/?Sub=950320)
24
+
25
+ = Most Powerful Features =
26
+ WP Edit will provide new buttons, additional options, and extended formatting abilities to the exisiting content editor.
27
+
28
+ * Easily insert images, media, YouTube videos, and clip art.
29
+ * Create tables via a graphical interface.
30
+ * Adjust table cell border and background colors.
31
+ * No need to learn HTML and CSS (although the basics can certainly help); use buttons with visual interfaces instead!
32
+ * Easily access all shortcodes available to your WordPress environment; and insert them into the content editor.
33
+ * Use shortcodes to insert columns.. similar to "magazine" style layouts, in your content areas.
34
+
35
+ = Why should you use this plugin? =
36
+ Because WP Edit is the culmination of three years development in the WordPress content editor. You can begin creating content (with advanced layouts); easily insert all types of external media (YouTube, Vimeo, etc.); adjust fonts, styles, colors, and sizes; and much more!
37
+
38
+ = What is included in the free version? =
39
+ * Drag and drop functionality for custom creation of the top row of editor buttons.
40
+ * Adds additional editor buttons such as subscript, superscript, insert media, emoticons, search and replace, html editor, preview.. and many more.
41
+ * Add your custom editor to excerpt areas and profile descriptions.
42
+ * Allow shortcodes in excerpt and widget areas.
43
+ * Highlight admin posts/pages based on status (green = published, yellow = draft, etc.)
44
+ * Easily import/export plugin options.
45
+
46
+ = Why should you upgrade to WP Edit Pro? =
47
+ * Drag and drop functionality for custom creation of all rows of editor buttons.
48
+ * Powerful network installation functionality; WP Network Ready.
49
+ * User roles for custom button arrangements; allow different user roles access to different editor buttons.
50
+ * Extreme Custom Widget Builder - create custom widgets just like posts or pages.. and insert them into any widget area or the content editor.
51
+
52
+ = Translations =
53
+ * Spanish - Provided by Andrew Kurtis with ["WebHostingHub"](http://www.webhostinghub.com).
54
+
55
+ = Notes =
56
+ * This plugin is provided "as-is"; within the scope of WordPress. We will update this plugin to remain secure, and to follow WP coding standards.
57
+ * If you prefer more "dedicated" support, with more advanced and powerful plugin features, please consider upgrading to ["WP Edit Pro"](http://wpeditpro.com).
58
+
59
+ = Resources =
60
+ * ["Complete Guide to WP Edit Buttons"](http://learn.wpeditpro.com/wp-edit-buttons-guide/)
61
+
62
+
63
+ == Installation ==
64
+
65
+ * From the WP admin panel, click "Plugins" -> "Add new".
66
+ * In the browser input box, type "WP Edit".
67
+ * Select the "WP Edit" plugin (authored by "josh401"), and click "Install".
68
+ * Activate the plugin.
69
+
70
+ OR...
71
+
72
+ * Download the plugin from this page.
73
+ * Save the .zip file to a location on your computer.
74
+ * Open the WP admin panel, and click "Plugins" -> "Add new".
75
+ * Click "upload".. then browse to the .zip file downloaded from this page.
76
+ * Click "Install".. and then "Activate plugin".
77
+
78
+ OR...
79
+
80
+ * Download the plugin from this page.
81
+ * Extract the .zip file to a location on your computer.
82
+ * Use either FTP or your hosts cPanel to gain access to your website file directories.
83
+ * Browse to the `wp-content/plugins` directory.
84
+ * Upload the extracted `wp_edit` folder to this directory location.
85
+ * Open the WP admin panel.. click the "Plugins" page.. and click "Activate" under the newly added "WP Edit" plugin.
86
+
87
+
88
+
89
+ == Frequently asked questions ==
90
+
91
+
92
+ == Screenshots ==
93
+
94
+ 1. Create custom button arrangements from a friendly drag and drop interface.
95
+ 2. The custom button arrangement will be loaded in the content editor.
96
+ 3. Eight tabs packed with options.
97
+
98
+ == Changelog ==
99
+
100
+ = 3.6 =
101
+ * 12/16/15
102
+ * Update to be stable with WordPress 4.4.
103
+
104
+ = 3.5 =
105
+ * 10/02/15
106
+ * Updated plugin translation code to handle new WordPress language packs.
107
+ * Fixed call to jquery theme only loading over http. Will now load over https when applicable.
108
+
109
+ = 3.4 =
110
+ * 08/21/15
111
+ * Removed PHP Widget option for two reasons:
112
+ * 1 - It presented a potential security risk. It is recommended to use a plugin dedicated to this functionality.
113
+ * 2 - It used the older PHP construct method. I could have updated the class; but I think it's better to remove the option entirely.
114
+
115
+ = 3.3 =
116
+ * 08/10/15
117
+ * Minor code enhancements to prepare for the WordPress 4.3 release.
118
+
119
+ = 3.2 =
120
+
121
+ * 06/12/15
122
+ * Fixed issue with OptimizePress theme.
123
+ * Added "title" attribute to "Insert/Edit Advanced Link" button.
124
+ * Made minor changes to plugin update message and styling.
125
+
126
+ = 3.1 =
127
+
128
+ * 02/25/2015
129
+ * Checked for compatibility with latest WP development version.
130
+ * Added WP Pointer to content editor informing of "Toolbar Toggle" button to expand/collapse additional editor button rows.
131
+ * Added NonBreaking Space button to editor (remember to "Save Buttons" to get new buttons to appear).
132
+ * Removed Editor Font Size (Editor tab) option... and replaced with a better radio selection for choosing Font Size Type in the Font Size dropdown menu.
133
+ * Added input field for defining available font-size values in the Font Size dropdown menu.
134
+ * Added CodeCogs Equation Editor button and editor functionality.
135
+
136
+ = 3.0.1 =
137
+
138
+ * 01/05/15
139
+ * Fixed security risk with Post/Page Title option.
140
+
141
+ = 3.0 =
142
+
143
+ * 12/28/2014
144
+ * Many code optimizations.
145
+ * New drag and drop interface code (bug fixes).
146
+ * New admin styling.
147
+ * Buttons can now be "multi-selected"; and moved as a group.
148
+ * Updated the "disable wpautop" functionality.
149
+ * Added "Column Shortcodes" button for easily inserting column shortcodes.
150
+ * Added "Abbreviation" button for inserting abbreviations into content area.
151
+ * Added fancy tooltips to buttons (adds additional button info on hover).
152
+ * Added functions to check if new buttons have been added; or old buttons have been removed (click "Save Buttons" to check).
153
+
154
+ = 2.4 =
155
+
156
+ * 10/11/2014
157
+ * Added Row 2 to the drag and drop panel.
158
+ * Fixed "featured image" not being displayed properly on custom post types (such as woocommerce).
159
+
160
+ = 2.3 =
161
+
162
+ * 09/04/2014
163
+ * Updated "Table" and "Colorpicker" buttons to TinyMCE 4.1.4 versions.
164
+ * Removed "Save Editor Scrollbar" option (not needed after WP 4.0).
165
+ * Fixed "foreach" error in php log.
166
+
167
+
168
+ = 2.2 =
169
+
170
+ * 08/02/2014
171
+ * Reverted table plugin back to old version; until WordPress 4.0 is released. The new table plugin will only work with the updated TinyMCE (which will be included in WordPress 4.0). Please see [This Topic](http://wordpress.org/support/topic/table-properties-not-working) for more information. I will release another update right after WordPress updates to 4.0.
172
+
173
+ = 2.1 =
174
+
175
+ * 07/30/2014
176
+ * Adjusted Predefined Styles and added "style_formats_merge" argument. This will prevent overwriting other plugin/theme styles, if present.
177
+ * Updated Table plugin (provided my MoxieCode) to version 4.1.3. This version includes background and border color selections for the entire table; table rows; and table cells.
178
+
179
+ = 2.0 =
180
+
181
+ * 06/27/2014
182
+ * Fixed function naming conflict with Custom Styles.
183
+ * Fixed Predefined Styles filter argument (may have clashed with other plugins adding custom style formats).
184
+ * Added button to check for new buttons added to the drag and drop interface.
185
+ * Added Accessibility Checker plugin button.
186
+ * Added Spanish translation - Provided by Andrew Kurtis with ["WebHostingHub"](http://www.webhostinghub.com).
187
+
188
+ = 1.9 =
189
+
190
+ * 06/01/2014
191
+ * Added background color and border color to "table" button (table cell properties).
192
+ * Fixed RSS widget feed.
193
+ * Removed WP Edit metabox from "Edit Post" admin pages.
194
+ * Added assortment of Predefined Styles (more styles coming soon in the Pro version) under the Editor tab.
195
+
196
+ = 1.8 =
197
+
198
+ * 05/03/2014
199
+ * Added font 'px' ability (Editor tab).
200
+ * Updated TinyMCE core "table" button (supports vertical align on table cells).
201
+ * Fixed loading path of admin page .js and .css files, props ["@Fencer04"](http://wordpress.org/support/profile/fencer04).
202
+
203
+ = 1.7 =
204
+
205
+ * 04/23/2014
206
+ * Introducing the only available Advanced Link button!
207
+ * I have coded this from scratch.
208
+ * It does not resemble the old Tinymce3 Advanced Link button; but it does have some MUCH requested functionality.
209
+ * I decided to code this immediately, when I saw the reaction to the original button being removed.
210
+ * Please report any bugs or features requests (or to say, "Hey, thanks!") ["Here"](http://wordpress.org/support/plugin/wp-edit).
211
+ * A complete description and tutorial of the button can be found on our ["Knowledge Base"](http://learn.wpeditpro.com/insertedit-advanced-link-button/).
212
+
213
+ = 1.6 =
214
+
215
+ * 04/20/2014
216
+ * Fixed signoff shortcode adding slashes when saving to database.
217
+
218
+ = 1.5 =
219
+
220
+ * 04/18/2014
221
+ * Fixed image button.
222
+
223
+ = 1.4 =
224
+
225
+ * 04/17/2014
226
+ * Fixed post revisions and page revisions input fields.
227
+ * Added additional font sizes back into font size dropdown selection box.
228
+
229
+ = 1.3 =
230
+
231
+ * 04/17/2014
232
+ * Fixed links pointing to old site.
233
+
234
+ = 1.2 =
235
+
236
+ * 04/14/2014
237
+ * Change naming syntax to prevent addon errors.
238
+
239
+ = 1.1 =
240
+
241
+ * 04/10/2014
242
+ * Fixed styling on different screen resolutions.
243
+ * Updated readme.txt file.
244
+
245
+ = 1.0 =
246
+
247
+ * 03/23/2014
248
+ * Plugin created
249
+
250
+ == Upgrade Notice ==
251
+
252
+ Nothing at the moment.