WPGlobus – Multilingual Everything! - Version 2.5.0

Version Description

  • (Compatibility) Admin and Builders JavaScript code refactored to work with WordPress 5.5.*
  • (Core/WidgetsJS) Fixed issue with non-unique ID.
  • (Options/Languages table) Installed languages moved to the top of the table.
  • (Core/WidgetsJS) Set multilingual field for the title only.
Download this release

Release Info

Developer tivnet
Plugin Icon 128x128 WPGlobus – Multilingual Everything!
Version 2.5.0
Comparing to
See all releases

Code changes from version 2.4.17 to 2.5.0

Files changed (47) hide show
  1. includes/class-wpglobus-widget.php +1 -1
  2. includes/class-wpglobus.php +9 -0
  3. includes/js/wpglobus-admin-55.js +1794 -0
  4. includes/js/wpglobus-admin-55.min.js +1 -0
  5. includes/js/wpglobus-options.js +20 -0
  6. includes/js/wpglobus-options.min.js +1 -1
  7. includes/js/wpglobus-widgets.js +20 -15
  8. includes/js/wpglobus-widgets.min.js +1 -1
  9. languages/wpglobus-ar.po +3 -3
  10. languages/wpglobus-be.po +3 -3
  11. languages/wpglobus-bg_BG.po +3 -3
  12. languages/wpglobus-de_CH.po +3 -3
  13. languages/wpglobus-de_DE.po +3 -3
  14. languages/wpglobus-el.po +3 -3
  15. languages/wpglobus-en_AU.po +3 -3
  16. languages/wpglobus-en_CA.po +3 -3
  17. languages/wpglobus-en_GB.po +3 -3
  18. languages/wpglobus-en_NZ.po +3 -3
  19. languages/wpglobus-en_US.po +3 -3
  20. languages/wpglobus-en_ZA.po +3 -3
  21. languages/wpglobus-es_AR.po +3 -3
  22. languages/wpglobus-es_CL.po +3 -3
  23. languages/wpglobus-es_CO.po +3 -3
  24. languages/wpglobus-es_CR.po +3 -3
  25. languages/wpglobus-es_ES.po +3 -3
  26. languages/wpglobus-es_GT.po +3 -3
  27. languages/wpglobus-es_MX.po +3 -3
  28. languages/wpglobus-es_PE.po +3 -3
  29. languages/wpglobus-es_PR.po +3 -3
  30. languages/wpglobus-es_VE.po +3 -3
  31. languages/wpglobus-et.po +3 -3
  32. languages/wpglobus-fr_BE.po +3 -3
  33. languages/wpglobus-fr_CA.po +3 -3
  34. languages/wpglobus-fr_FR.po +3 -3
  35. languages/wpglobus-id_ID.po +3 -3
  36. languages/wpglobus-ko_KR.po +3 -3
  37. languages/wpglobus-pl_PL.po +3 -3
  38. languages/wpglobus-pt_BR.po +3 -3
  39. languages/wpglobus-pt_PT.po +3 -3
  40. languages/wpglobus-ro_RO.po +3 -3
  41. languages/wpglobus-ru_RU.po +3 -3
  42. languages/wpglobus-sv_SE.po +3 -3
  43. languages/wpglobus-tr_TR.po +3 -3
  44. languages/wpglobus-uk.po +3 -3
  45. languages/wpglobus.pot +6 -6
  46. readme.txt +8 -27
  47. wpglobus.php +2 -2
includes/class-wpglobus-widget.php CHANGED
@@ -269,7 +269,7 @@ class WPGlobusWidget extends WP_Widget {
269
  $checked = ' checked';
270
  } ?>
271
  <input type="radio"
272
- id="<?php echo esc_attr( $this->get_field_id( 'type' ) ); ?>"
273
  name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>" <?php echo $checked; // WPCS: XSS ok. ?>
274
  value="<?php echo esc_attr( $type ); ?>"/> <?php echo $caption . '<br />'; // WPCS: XSS ok.
275
  endforeach;
269
  $checked = ' checked';
270
  } ?>
271
  <input type="radio"
272
+ id="<?php echo esc_attr( $this->get_field_id( 'type' ) ) . '-' . $type; ?>"
273
  name="<?php echo esc_attr( $this->get_field_name( 'type' ) ); ?>" <?php echo $checked; // WPCS: XSS ok. ?>
274
  value="<?php echo esc_attr( $type ); ?>"/> <?php echo $caption . '<br />'; // WPCS: XSS ok.
275
  endforeach;
includes/class-wpglobus.php CHANGED
@@ -1824,6 +1824,15 @@ class WPGlobus {
1824
  if ( version_compare( $GLOBALS['wp_version'], '5.0.999', '>' ) ) {
1825
  $version = '-51';
1826
  }
 
 
 
 
 
 
 
 
 
1827
 
1828
  /**
1829
  * @since 1.9.17
1824
  if ( version_compare( $GLOBALS['wp_version'], '5.0.999', '>' ) ) {
1825
  $version = '-51';
1826
  }
1827
+
1828
+ /**
1829
+ * WordPress 5.5+ needs a new version of our admin JS.
1830
+ *
1831
+ * @since 2.5
1832
+ */
1833
+ if ( version_compare( $GLOBALS['wp_version'], '5.4.999', '>' ) ) {
1834
+ $version = '-55';
1835
+ }
1836
 
1837
  /**
1838
  * @since 1.9.17
includes/js/wpglobus-admin-55.js ADDED
@@ -0,0 +1,1794 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * WPGlobus Administration Core, Dialog, Admin.
3
+ * Interface JS functions
4
+ *
5
+ * @since 2.5
6
+ *
7
+ * @package WPGlobus
8
+ * @subpackage Administration
9
+ */
10
+ /*jslint browser: true*/
11
+ /*global jQuery, console, WPGlobusCore, WPGlobusDialogApp, WPGlobusAdmin, inlineEditPost */
12
+
13
+ var WPGlobusCore;
14
+
15
+ (function($) {
16
+ var api;
17
+ api = WPGlobusCore = {
18
+ strpos: function( haystack, needle, offset){
19
+ haystack = "" + haystack;
20
+ var i = haystack.indexOf( needle, offset );
21
+ return i >= 0 ? i : false;
22
+ },
23
+
24
+ TextFilter: function(text, language, return_in){
25
+ if ( typeof text == 'undefined' || '' === text ) { return text; }
26
+
27
+ var pos_start, pos_end, possible_delimiters = [], is_local_text_found = false;;
28
+
29
+ language = '' == language ? 'en' : language;
30
+ return_in = typeof return_in == 'undefined' || '' == return_in ? 'RETURN_IN_DEFAULT_LANGUAGE' : return_in;
31
+
32
+ possible_delimiters[0] = [];
33
+ possible_delimiters[0]['start'] = WPGlobusCoreData.locale_tag_start.replace('%s', language);
34
+ possible_delimiters[0]['end'] = WPGlobusCoreData.locale_tag_end;
35
+
36
+ possible_delimiters[1] = [];
37
+ possible_delimiters[1]['start'] = '<!--:'+language+'-->';
38
+ possible_delimiters[1]['end'] = '<!--:-->';
39
+
40
+ possible_delimiters[2] = [];
41
+ possible_delimiters[2]['start'] = '[:'+language+']';
42
+ possible_delimiters[2]['end'] = '[:';
43
+
44
+
45
+
46
+ for (var i = 0; i < 3; i++) {
47
+
48
+ pos_start = api.strpos( text, possible_delimiters[i]['start'] );
49
+ if ( pos_start === false ) {
50
+ continue;
51
+ }
52
+
53
+ pos_start = pos_start + possible_delimiters[i]['start'].length;
54
+
55
+ pos_end = api.strpos( text, possible_delimiters[i]['end'], pos_start );
56
+
57
+ if ( pos_end === false ) {
58
+ text = text.substr( pos_start );
59
+ } else {
60
+ text = text.substr( pos_start, pos_end - pos_start );
61
+ }
62
+
63
+ is_local_text_found = true;
64
+ break;
65
+
66
+ }
67
+
68
+ if ( ! is_local_text_found ) {
69
+ if ( return_in == 'RETURN_EMPTY' ) {
70
+ if ( language == WPGlobusCoreData.default_language && ! /(\{:|\[:|<!--:)[a-z]{2}/.test(text) ) {
71
+ /** do nothing */
72
+ } else {
73
+ text = '';
74
+ }
75
+ } else {
76
+ /**
77
+ * Try RETURN_IN_DEFAULT_LANGUAGE.
78
+ */
79
+ if ( language == WPGlobusCoreData.default_language ) {
80
+ if ( /(\{:|\[:|<!--:)[a-z]{2}/.test(text) ) {
81
+ text = '';
82
+ }
83
+ } else {
84
+ text = api.TextFilter( text, WPGlobusCoreData.default_language );
85
+ }
86
+ }
87
+ }
88
+ return text;
89
+ },
90
+ addLocaleMarks: function(text, language) {
91
+ return WPGlobusCoreData.locale_tag_start.replace('%s', language) + text + WPGlobusCoreData.locale_tag_end;
92
+ },
93
+ getTranslations: function(text) {
94
+ var t = {},
95
+ return_in;
96
+ $.each(WPGlobusCoreData.enabled_languages, function(i,l){
97
+ return_in = l == WPGlobusCoreData.default_language ? 'RETURN_IN_DEFAULT_LANGUAGE' : 'RETURN_EMPTY';
98
+ t[l] = api.TextFilter(text, l, return_in);
99
+ });
100
+ return t;
101
+ },
102
+ getString: function(s, newVal, l) {
103
+ if ( 'undefined' === typeof(s) ) {
104
+ return s;
105
+ }
106
+ if ( 'undefined' === typeof(newVal) ) {
107
+ newVal = '';
108
+ }
109
+ if ( 'undefined' === typeof(l) ) {
110
+ l = WPGlobusCoreData.language;
111
+ }
112
+
113
+ s = api.getTranslations(s);
114
+ s[l] = newVal;
115
+
116
+ var cS = '';
117
+
118
+ $.each(s, function(ln,val){
119
+ if ( '' != val && ln != WPGlobusCoreData.default_language) {
120
+ cS += api.addLocaleMarks(val, ln);
121
+ }
122
+ });
123
+
124
+ if ( '' != s[WPGlobusCoreData.default_language] ) {
125
+ if ( '' == cS ) {
126
+ cS = s[WPGlobusCoreData.default_language];
127
+ } else {
128
+ cS = api.addLocaleMarks(s[WPGlobusCoreData.default_language], WPGlobusCoreData.default_language) + cS;
129
+ }
130
+ }
131
+ return cS;
132
+ }
133
+ };
134
+ })(jQuery);
135
+
136
+ var WPGlobusDialogApp;
137
+
138
+ (function($) {
139
+
140
+ var api;
141
+ api = WPGlobusDialogApp = {
142
+ option : {
143
+ listenClass : '.wpglobus_dialog_start',
144
+ settingsClass : '.wpglobus_dialog_settings',
145
+ dialogTabs: '#wpglobus-dialog-tabs',
146
+ dialogTitle: '',
147
+ customData: null,
148
+ callback: function(){},
149
+ dialogOptions: {
150
+ title: '',
151
+ placeholder: '',
152
+ formFooter: '',
153
+ beforeOpen: function(){},
154
+ afterOpen: function(){},
155
+ afterSave: function(){},
156
+ close: function(){},
157
+ },
158
+ dialog: {}
159
+ },
160
+ form : undefined,
161
+ element : undefined,
162
+ element_by : 'id',
163
+ id : '',
164
+ clone_id: '',
165
+ wpglobus_id : '',
166
+ type : 'textarea',
167
+ source : '',
168
+ order : {},
169
+ value : {},
170
+ request : 'core',
171
+ attrs: {},
172
+ dialogTitle: '',
173
+ trClass: 'wpglobus-translatable',
174
+ startButton: [
175
+ '<span id="wpglobus-dialog-start-{{clone_id}}" ',
176
+ 'style="{{style}}" ',
177
+ 'data-type="control" data-dialog-title="{{title}}" ',
178
+ 'data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ',
179
+ 'data-nodename="{{nodename}}"',
180
+ '{{sbTitle}} ',
181
+ 'class="{{classes}}"></span>'
182
+ ].join(''),
183
+ startButtonClass : 'wpglobus_dialog_start wpglobus_dialog_icon',
184
+ clicks: 0,
185
+ init: function(args) {
186
+ api.option.dialog = api.option.dialogOptions;
187
+ api.option = $.extend(api.option, args);
188
+ $(api.option.dialogTabs).tabs();
189
+ api.dialogTitle = api.option.dialogTitle;
190
+ this.attachListener();
191
+ if ( api.option.customData != null && typeof api.option.customData.addElements != 'undefined' ) {
192
+ $.each(api.option.customData.addElements, function(i,e) {
193
+ api.addElement(e);
194
+ });
195
+ }
196
+ },
197
+ convertToId: function(s){
198
+ s = s.replace(/\]/g,'');
199
+ s = s.replace(/\[/g,'-');
200
+ return s;
201
+ },
202
+ addElement: function(elem) {
203
+ var option = {
204
+ id: null,
205
+ style: '',
206
+ styleTextareaWrapper: '',
207
+ sbTitle: '',
208
+ onChangeClass: '',
209
+ dialogTitle: '',
210
+ dialog: api.option.dialogOptions
211
+ }
212
+ if ( 'string' == typeof(elem) ) {
213
+ option.id = elem;
214
+ } else if ( 'object' == typeof(elem) ) {
215
+ option = $.extend(option, elem);
216
+ } else {
217
+ return;
218
+ }
219
+
220
+ var $element = null, id = null, name = null, node = null,
221
+ sb = api.startButton,
222
+ clone, v, style, nodeName = '';
223
+
224
+ api.element_by = 'name';
225
+ node = document.getElementsByName(option.id);
226
+
227
+ if ( 0 == node.length ) {
228
+ api.element_by = 'id';
229
+ node = document.getElementById(option.id);
230
+ }
231
+
232
+ if ( null === node ) {
233
+ return;
234
+ } else {
235
+ id = option.id;
236
+ if ( 'id' == api.element_by ) {
237
+ $element = $('#'+id);
238
+ } else {
239
+ nodeName = node[0].nodeName;
240
+ nodeName = nodeName.toLowerCase();
241
+ $element = $(nodeName+'[name="'+id+'"]');
242
+ }
243
+ }
244
+
245
+ if ( 'undefined' === typeof $element.attr('name') || '' == $element.attr('name') ) {
246
+ name = id;
247
+ } else {
248
+ name = $element.attr('name');
249
+ }
250
+ api.clone_id = api.convertToId(id);
251
+
252
+ if ( -1 != name.indexOf( 'wpglobus' ) || -1 != api.clone_id.indexOf( 'wpglobus' ) ) {
253
+ /**
254
+ * To prevent add element to itself.
255
+ */
256
+ return false;
257
+ }
258
+
259
+ if ( $( '#wpglobus-'+api.clone_id ).length > 0 ) {
260
+ /**
261
+ * WPGlobus element exists already.
262
+ */
263
+ return false;
264
+ }
265
+ if ( $( nodeName+'[name="wpglobus-'+name+'"]' ).length > 0 ) {
266
+ /**
267
+ * WPGlobus element exists already.
268
+ */
269
+ return false;
270
+ }
271
+
272
+ clone = $( $element.clone() );
273
+ //$element.addClass('hidden');
274
+ style = $element.attr('style') || '';
275
+ $element.attr( 'style', 'display:none;' );
276
+ clone.attr( 'id', 'wpglobus-'+api.clone_id ).attr( 'name', 'wpglobus-'+name );
277
+
278
+ /**
279
+ * Add WPGlobus translatable class.
280
+ */
281
+ clone.addClass( api.trClass );
282
+
283
+ if ( option.onChangeClass != '' ) {
284
+ /**
285
+ * add class to bind 'change' event
286
+ */
287
+ clone.addClass( option.onChangeClass );
288
+ }
289
+
290
+ if ( 'id' == api.element_by ) {
291
+ clone.attr('data-source-id', id).attr('data-source-name', '').attr('data-source-get-by',api.element_by);
292
+ } else {
293
+ clone.attr('data-source-id', '').attr('data-source-name', name).attr('data-source-get-by',api.element_by);
294
+ }
295
+
296
+ if ( 'textarea' == nodeName ) {
297
+ v = WPGlobusCore.getTranslations( $element.val() )[WPGlobusCoreData['language']];
298
+ clone.val( v );
299
+ clone.attr( 'data-nodename', 'textarea' );
300
+ if ( '' == option.style ) {
301
+ clone.attr( 'style', style + ';width:95%;float:left;' );
302
+ } else {
303
+ clone.attr( 'style', style + ';' + option.style );
304
+ }
305
+ } else {
306
+ v = WPGlobusCore.getTranslations( $element.val() )[WPGlobusCoreData['language']];
307
+ /**
308
+ * @since 2.5 Using `val` function instead of `attr`.
309
+ * clone.attr( 'value', v );
310
+ */
311
+ clone.val( v );
312
+ clone.attr( 'data-nodename', 'input' );
313
+ if ( '' != option.style ) {
314
+ clone.attr( 'style', style + ';' + option.style );
315
+ }
316
+ }
317
+
318
+ /**
319
+ * Add dialog options.
320
+ * @since 1.7.12
321
+ */
322
+ if ( '' != option.dialog ) {
323
+ clone.attr( 'data-dialog', JSON.stringify(option.dialog) );
324
+ }
325
+
326
+ sb = sb.replace(/{{clone_id}}/g, api.clone_id);
327
+ if ( 'id' == api.element_by ) {
328
+ sb = sb.replace(/{{id}}/g, api.clone_id);
329
+ sb = sb.replace(/{{name}}/g, '');
330
+ sb = sb.replace(/{{nodename}}/g, '');
331
+ } else {
332
+ sb = sb.replace(/{{id}}/g, '');
333
+ sb = sb.replace(/{{name}}/g, name);
334
+ sb = sb.replace(/{{nodename}}/g, nodeName);
335
+ }
336
+ sb = 'textarea' == nodeName ? sb.replace( '{{style}}', 'float:left;margin-top:0;' ) : sb.replace( '{{style}}', '' );
337
+ var startButtonClasses = 'textarea' == nodeName ? api.startButtonClass + ' wpglobus-textarea wpglobus-textarea-'+api.clone_id : api.startButtonClass;
338
+ sb = sb.replace( '{{classes}}', startButtonClasses );
339
+ sb = option.dialogTitle == '' ? sb.replace('{{title}}', api.dialogTitle) : sb.replace('{{title}}', option.dialogTitle);
340
+ sb = option.sbTitle == '' ? sb.replace('{{sbTitle}}', option.sbTitle) : sb.replace('{{sbTitle}}', 'title="'+option.sbTitle+'"');
341
+
342
+ $(sb).insertAfter($element);
343
+ $(clone).insertAfter($element);
344
+
345
+ if ( 'textarea' == nodeName ) {
346
+ $('#wpglobus-'+api.clone_id).addClass( 'wpglobus-textarea-'+api.clone_id );
347
+ $('.wpglobus-textarea-'+api.clone_id).wrapAll( '<div class="wpglobus-textarea-wrapper" style="'+option.styleTextareaWrapper+'"></div>' );
348
+ }
349
+
350
+ /**
351
+ * Bind change event
352
+ */
353
+ var selector, ret = false;
354
+ if ( option.onChangeClass == '' ) {
355
+ selector = '#wpglobus-' + api.clone_id;
356
+ } else {
357
+ selector = '.' + option.onChangeClass;
358
+ var $events = $._data( $(document)[0], 'events' );
359
+ if( typeof $events === 'undefined' ){
360
+ ret = true;
361
+ } else {
362
+ if ( typeof $events.change !== 'undefined' ) {
363
+ $.each( $events.change, function(i, ev){
364
+ if ( ev.selector == selector ) {
365
+ ret = true;
366
+ return false;
367
+ }
368
+ });
369
+ }
370
+ }
371
+ }
372
+
373
+ if ( ret ) {
374
+ /**
375
+ * Return because we had bound 'change' event already.
376
+ */
377
+ return true;
378
+ }
379
+
380
+ $(document).on( 'change', selector, function() {
381
+ var $t = $(this),
382
+ sid = $t.data( 'source-id' );
383
+
384
+ if ( '' == sid ) {
385
+ sid = $t.data( 'nodename' ) + '[name="' + $t.data( 'source-name' ) + '"]';
386
+ } else {
387
+ sid = '#' + sid;
388
+ }
389
+ $(sid).val( WPGlobusCore.getString( $(sid).val(), $t.val() ) );
390
+ });
391
+ return true;
392
+ },
393
+ saveDialog: function() {
394
+ var s = '', sdl = '', scl = '', $e, val, l;
395
+ $('.wpglobus_dialog_textarea').each(function(indx,e){
396
+ $e = $(e);
397
+ val = $e.val();
398
+ l = $e.data('language');
399
+ if ( l == WPGlobusAdmin.data.language ) {
400
+ scl = val;
401
+ }
402
+ if ( val != '' ) {
403
+ s = s + WPGlobusCore.addLocaleMarks(val,l);
404
+ if ( l == WPGlobusCoreData.default_language ) {
405
+ sdl = val;
406
+ }
407
+ }
408
+ });
409
+ s = s.length == sdl.length + 8 ? sdl : s;
410
+ $(api.id).val(s);
411
+ s = scl == '' ? sdl : scl;
412
+ $(api.wpglobus_id).val(s);
413
+
414
+ /**
415
+ * `After save` callback.
416
+ */
417
+ api.runCallback( api.option.dialog.afterSave );
418
+ },
419
+ dialog : $('#wpglobus-dialog-wrapper').dialog({
420
+ autoOpen: false,
421
+ //height: 250,
422
+ width: 650,
423
+ modal: true,
424
+ dialogClass: 'wpglobus-dialog',
425
+ buttons: [
426
+ {
427
+ text:'Save',
428
+ class: 'wpglobus-button-save',
429
+ click:function(){api.saveDialog(); api.dialog.dialog('close');}
430
+ },
431
+ {
432
+ text:'Cancel',
433
+ class: 'wpglobus-button-cancel',
434
+ click: function(){api.dialog.dialog('close');}
435
+ }
436
+ ],
437
+ open: function( event, ui ) {
438
+ var title = api.dialogTitle;
439
+ if ( typeof api.attrs.maxlength !== 'undefined' ) {
440
+ $('.wpglobus_dialog_textarea').attr('maxlength', api.attrs.maxlength);
441
+ title += ' | maxlength='+api.attrs.maxlength;
442
+ }
443
+ $('.wpglobus-dialog .ui-dialog-title').text(title);
444
+
445
+ /**
446
+ * Some 3rd party plugin or theme might have class `hidden` with `display:none !important` rule.
447
+ * Remove this class to prevent incorrect behavior of dialog form.
448
+ * @since 2.1.14
449
+ */
450
+ $(this).removeClass('hidden');
451
+ },
452
+ close: function() {
453
+ /**
454
+ * @since 2.1.14
455
+ */
456
+ $(this).addClass('hidden');
457
+
458
+ /**
459
+ * Close callback.
460
+ */
461
+ api.runCallback( api.option.dialog.close );
462
+
463
+ api.form[0].reset();
464
+ //allFields.removeClass( "ui-state-error" );
465
+ }
466
+ }),
467
+ attachListener : function() {
468
+ $(document).on('click', api.option.settingsClass, function() {
469
+ if ( $('.wpglobus_dialog_options_wrapper').hasClass('hidden') ) {
470
+ $('.wpglobus_dialog_options_wrapper').removeClass('hidden');
471
+ } else {
472
+ $('.wpglobus_dialog_options_wrapper').addClass('hidden');
473
+ }
474
+ });
475
+ $(document).on('click', '.wpglobus_dialog_option', function(event) {
476
+ var $t = $(this), r;
477
+ var ob = $t.data('object');
478
+ api.order['action'] = 'save_post_meta_settings';
479
+ api.order['post_type'] = WPGlobusAdmin.data.post_type;
480
+ api.order['checked'] = $t.prop('checked');
481
+ api.order['id'] = $t.attr('id');
482
+ api.order['meta_key'] = $t.data('meta-key');
483
+ r = api.ajax(api.order);
484
+ r.done(function (result) {
485
+ if ( result.result == 'ok' ) {
486
+ if ( result.checked == 'true' ) {
487
+ $(ob).removeClass('wpglobus_dialog_start_hidden');
488
+ } else {
489
+ $(ob).addClass('wpglobus_dialog_start_hidden');
490
+ }
491
+ }
492
+ })
493
+ .fail(function (error) {})
494
+ .always(function (jqXHR, status){});
495
+ });
496
+ $(document).on('click', api.option.listenClass, function(e) {
497
+ api.element = $(this);
498
+ api.id = api.element.data('source-id');
499
+ if ( '' == api.id ) {
500
+ api.id = api.element.data('nodename') + '[name="'+api.element.data('source-name')+'"]';
501
+ api.wpglobus_id = '#wpglobus-'+api.convertToId( api.element.data('source-name') );
502
+ } else {
503
+ api.wpglobus_id = '#wpglobus-'+api.id;
504
+ api.id = '#'+api.id;
505
+ }
506
+
507
+ api.clicks++;
508
+ if ( api.clicks == 1 ) {
509
+ setTimeout(function () {
510
+ if (api.clicks == 1) {
511
+ api.onClick(e);
512
+ } else {
513
+ var s = $(api.id);
514
+ if ( s.hasClass('hidden') ) {
515
+ s.removeClass('hidden').attr('style', 'display:block;');
516
+ } else {
517
+ s.addClass('hidden').attr('style', 'display:none;');
518
+ }
519
+ }
520
+ api.clicks = 0;
521
+ }, 200);
522
+ }
523
+ });
524
+ api.form = api.dialog.find('form#wpglobus-dialog-form').on('submit', function( event ) {
525
+ event.preventDefault();
526
+ api.saveDialog();
527
+ });
528
+ },
529
+ ajax : function(order) {
530
+ return $.ajax({type:'POST', url:WPGlobusAdmin.ajaxurl, data:{action:WPGlobusAdmin.process_ajax, order:order}, dataType:'json', async:false});
531
+ },
532
+ onClick: function(ev) {
533
+ if ( typeof(api.element.data('dialog-title')) == 'undefined' || '' == api.element.data('dialog-title') ) {
534
+ api.dialogTitle = api.option.dialogTitle;
535
+ } else {
536
+ api.dialogTitle = api.element.data('dialog-title');
537
+ }
538
+ if ( typeof api.id !== 'undefined' ) {
539
+ api.attrs['maxlength'] = $(api.id).attr('maxlength');
540
+ }
541
+
542
+ api.source = api.element.data('source-value');
543
+ if ( typeof api.source === 'undefined' ) {
544
+ api.source = $(api.id).val();
545
+ if (api.request == 'ajax') {
546
+ // @todo revise ajax action
547
+ //api.order['action'] = 'get_translate';
548
+ //api.order['source'] = api.source;
549
+ //api.ajax(api.order);
550
+ } else {
551
+ api.value = WPGlobusCore.getTranslations(api.source);
552
+ }
553
+ }
554
+
555
+ /**
556
+ * Get dialog form options.
557
+ */
558
+ api.option.dialog = $.extend( {}, api.option.dialogOptions, $(api.wpglobus_id).data('dialog') );
559
+
560
+ if ( '' != api.option.dialog.title ) {
561
+ api.dialogTitle = api.option.dialog.title;
562
+ }
563
+
564
+ $.each(api.value, function(l,e){
565
+ var $d = $('#wpglobus-dialog-'+l);
566
+ /**
567
+ * Value.
568
+ */
569
+ $d.val(e);
570
+
571
+ /**
572
+ * Placeholder.
573
+ */
574
+ $d.attr(
575
+ 'placeholder',
576
+ WPGlobusCore.TextFilter( api.option.dialog.placeholder, l, 'RETURN_IN_DEFAULT_LANGUAGE' )
577
+ );
578
+ });
579
+
580
+ /**
581
+ * Dialog form footer.
582
+ */
583
+ $('#wpglobus-dialog-form-footer').html(api.option.dialog.formFooter);
584
+
585
+ /**
586
+ * Before open callback.
587
+ */
588
+ api.runCallback( api.option.dialog.beforeOpen );
589
+
590
+ api.dialog.dialog('open');
591
+
592
+ /**
593
+ * After open callback.
594
+ * @since 2.3.1
595
+ */
596
+ api.runCallback( api.option.dialog.afterOpen );
597
+ },
598
+ runCallback: function(callback) {
599
+
600
+ if ( 'object' === typeof callback ) {
601
+ var k = Object.keys(callback)[0];
602
+ var fn = callback[Object.keys(callback)[0]]
603
+ if ( 'window' === k ) {
604
+ if ( 'function' === typeof window[fn] ) {
605
+ window[fn]( callback[Object.keys(callback)[1]] );
606
+ }
607
+ } else if ( 'function' === typeof window[k][fn] ) {
608
+ window[k][fn]( callback[Object.keys(callback)[1]] );
609
+ }
610
+ } else if ( 'string' === typeof callback ) {
611
+ if ( 'function' === typeof window[callback] ) {
612
+ window[callback]();
613
+ }
614
+ } else if ( 'function' === typeof callback ) {
615
+ callback();
616
+ }
617
+
618
+ }
619
+ };
620
+
621
+ })(jQuery);
622
+
623
+ jQuery(document).ready(function () {
624
+ "use strict";
625
+ window.WPGlobusAdminApp = (function (WPGlobusAdminApp, $) {
626
+ /* Object Constructor
627
+ ========================*/
628
+ WPGlobusAdminApp.App = function (config) {
629
+
630
+ if ( 'undefined' !== typeof window.WPGlobusAdminApp ) {
631
+ return;
632
+ }
633
+
634
+ this.config = {
635
+ debug: false,
636
+ version: WPGlobusAdmin.version
637
+ };
638
+
639
+ this.status = 'ok';
640
+
641
+ if ( 'undefined' === typeof WPGlobusAdmin ) {
642
+ this.status = 'error';
643
+ if (this.config.debug) {
644
+ console.log('WPGlobus: error options loading');
645
+ }
646
+ } else {
647
+ if (this.config.debug) {
648
+ console.dir(WPGlobusAdmin);
649
+ }
650
+ }
651
+
652
+ this.config.disable_first_language = [
653
+ '<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',
654
+ '<strong>',
655
+ '<span>&nbsp;</span>',
656
+ WPGlobusAdmin.i18n.cannot_disable_language,
657
+ '</strong>',
658
+ '</div>'
659
+ ].join('');
660
+
661
+ $.extend(this.config, config);
662
+
663
+ if ('ok' === this.status) {
664
+ this.init();
665
+ }
666
+ };
667
+
668
+ WPGlobusAdminApp.App.prototype = {
669
+ $document : $(document),
670
+ init: function () {
671
+ WPGlobusCoreData.multisite = this.parseBool(WPGlobusCoreData.multisite);
672
+ this.adminInit();
673
+ $('#content').addClass('wpglobus-editor').attr('data-language',WPGlobusAdmin.data.default_language);
674
+ $('textarea[id^=content_]').each(function(i,e){
675
+ var l=$(e).attr('id').replace('content_','');
676
+ $(e).attr('data-language',l);
677
+ });
678
+ if ('post.php' === WPGlobusAdmin.page) {
679
+ this.postEdit();
680
+ this.set_dialog();
681
+ if ( 'undefined' !== typeof WPGlobusAioseop ) {
682
+ WPGlobusAioseop.init();
683
+ }
684
+ } else if ('menu-edit' === WPGlobusAdmin.page) {
685
+ /**
686
+ * @since 1.9.16
687
+ */
688
+ WPGlobusDialogApp.init({dialogTitle:'Edit description'});
689
+ this.navMenus();
690
+ } else if ('taxonomy-edit' === WPGlobusAdmin.page) {
691
+ if (WPGlobusAdmin.data.tag_id) {
692
+ this.taxonomyEdit();
693
+ }
694
+ } else if ('taxonomy-quick-edit' === WPGlobusAdmin.page) {
695
+ this.quickEdit('taxonomy');
696
+ } else if ('edit.php' === WPGlobusAdmin.page) {
697
+ this.quickEdit('post');
698
+ if( _.size(WPGlobusAdmin.$_get) > 0 ) {
699
+ WPGlobusDialogApp.init();
700
+ }
701
+ } else if ('options-general.php' == WPGlobusAdmin.page) {
702
+ this.optionsGeneral();
703
+ WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data});
704
+ } else if ('widgets.php' == WPGlobusAdmin.page) {
705
+ WPGlobusWidgets.init();
706
+ WPGlobusDialogApp.init({dialogTitle:'Edit text'});
707
+ } else if ('wpglobus_options' == WPGlobusAdmin.page) {
708
+ this.start();
709
+ } else if ('wpglobusAdminCentral' == WPGlobusAdmin.page) {
710
+ this.adminCentral();
711
+ } else {
712
+ /**
713
+ * Init WPGlobusDialogApp for using in a 3-party plugins.
714
+ */
715
+ WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data});
716
+ }
717
+ },
718
+ parseBool: function(b) {
719
+ return !(/^(false|0)$/i).test(b) && !!b;
720
+ },
721
+ getCurrentTab: function() {
722
+ return $( '.wpglobus-post-body-tabs-list .ui-tabs-active' ).data( 'language' );
723
+ },
724
+ adminInit: function () {
725
+ var order = $('.wpglobus-addons-group a').data('key');
726
+ if ( 'undefined' !== typeof order ) {
727
+ if ( window.location.search.indexOf('page=wpglobus_options&tab='+order) >= 0 ) {
728
+ if ( WPGlobusCoreData.multisite ) {
729
+ window.location = WPGlobusCoreData.pluginInstallLocation.multisite;
730
+ } else {
731
+ window.location = WPGlobusCoreData.pluginInstallLocation.single;
732
+ }
733
+ } else {
734
+ var addon = $('#toplevel_page_wpglobus_options li').eq(order+1);
735
+ if ( WPGlobusCoreData.multisite ) {
736
+ $(addon).find('a').attr('href',WPGlobusCoreData.pluginInstallLocation.multisite).attr('onclick',"window.location=jQuery(this).attr('href');return false;");
737
+ } else {
738
+ $(addon).find('a').attr('href',WPGlobusCoreData.pluginInstallLocation.single).attr('onclick',"window.location=jQuery(this).attr('href');return false;");
739
+ }
740
+ }
741
+ }
742
+ },
743
+ optionsGeneral: function() {
744
+ var $bn = $('#blogname'),
745
+ $body = $('body');
746
+
747
+ $bn.addClass('hidden');
748
+ $('#wpglobus-blogname').insertAfter($bn).removeClass('hidden');
749
+
750
+ $body.on('blur', '.wpglobus-blogname', function () {
751
+ $('.wpglobus-blogname').each( function (i, e) {
752
+ var $e = $(e);
753
+ $bn.val( WPGlobusCore.getString( $bn.val(), $e.val(), $e.data('language') ) );
754
+ });
755
+ });
756
+
757
+ var $bd = $('#blogdescription');
758
+ $bd.addClass('hidden');
759
+ $('#wpglobus-blogdescription').insertAfter($bd).removeClass('hidden');
760
+ $body.on('blur', '.wpglobus-blogdesc', function () {
761
+ $('.wpglobus-blogdesc').each( function (i, e) {
762
+ var $e = $(e);
763
+ $bd.val( WPGlobusCore.getString( $bd.val(), $e.val(), $e.data('language') ) );
764
+ });
765
+ });
766
+ },
767
+ quickEdit: function(type) {
768
+ /**
769
+ * For more info @see ajax handler 'wp_ajax_inline_save'.
770
+ */
771
+ if ( 'undefined' === typeof WPGlobusAdmin.data.has_items ) {
772
+ return;
773
+ }
774
+ if (!WPGlobusAdmin.data.has_items) {
775
+ return;
776
+ }
777
+ var full_id = '', id = 0;
778
+
779
+ $(document).ajaxComplete(function(event, jqxhr, settings){
780
+ if (typeof settings.data === 'undefined') {
781
+ return;
782
+ }
783
+ if ( full_id == '' ) {
784
+ return;
785
+ }
786
+ if (settings.data.indexOf('action=inline-save-tax&') >= 0) {
787
+ $('#'+full_id+' a.row-title').text(WPGlobusAdmin.qedit_titles[id][WPGlobusAdmin.data.language]['name']);
788
+ $('#'+full_id+' .description').text(WPGlobusAdmin.qedit_titles[id][WPGlobusAdmin.data.language]['description']);
789
+ }
790
+ });
791
+
792
+ var title = {};
793
+ $('#the-list tr').each(function (i, e) {
794
+ var $e = $(e);
795
+ var k = ( type === 'post' ? 'post-' : 'tag-' );
796
+ id = $e.attr('id').replace(k, ''); /* don't need var with id, see line 109 */
797
+ title[id] = {};
798
+ if ('post' === type) {
799
+ title[id]['source'] = $e.find('.post_title').text();
800
+ } else if ('taxonomy' === type) {
801
+ title[id]['source'] = $('#inline_' + id + ' .name').text();
802
+ }
803
+ });
804
+
805
+ var order = {};
806
+ order['action'] = 'get_titles';
807
+ order['type'] = type;
808
+ order['taxonomy'] = typeof WPGlobusAdmin.data.taxonomy === 'undefined' ? false : WPGlobusAdmin.data.taxonomy;
809
+ order['title'] = title;
810
+ $.ajax({type:'POST', url:WPGlobusAdmin.ajaxurl, data:{action:WPGlobusAdmin.process_ajax, order:order}, dataType:'json'})
811
+ .done(function (result) {
812
+ WPGlobusAdmin.qedit_titles = result.qedit_titles;
813
+ $.each(result.bulkedit_post_titles, function(id, obj){
814
+ $('#inline_'+id+' .post_title').text(obj[WPGlobusAdmin.data.language]['name']);
815
+ });
816
+ })
817
+ .fail(function (error) {
818
+ })
819
+ .always(function (jqXHR, status) {
820
+ });
821
+
822
+ $('body').on('change', '.wpglobus-quick-edit-title', function () {
823
+ var s = '';
824
+ var lang = [];
825
+ $('.wpglobus-quick-edit-title').each(function (index, e) {
826
+ var $e = $(e);
827
+ var l = $e.data('language');
828
+ if ($e.val() !== '') {
829
+ s = WPGlobusCore.getString( s, $e.val(), l );
830
+ }
831
+ WPGlobusAdmin.qedit_titles[ id ][ l ][ 'name' ] = $e.val();
832
+ lang[ index ] = l;
833
+ });
834
+
835
+ var so = $(document).triggerHandler( 'wpglobus_get_translations', {string:s, lang:lang, id:id} );
836
+ if ( typeof so !== 'undefined' ) {
837
+ s = so;
838
+ }
839
+ $( 'input.ptitle' ).eq( 0 ).attr( 'value', s ) ;
840
+ WPGlobusAdmin.qedit_titles[ id ][ 'source' ] = s;
841
+ });
842
+
843
+ if ( typeof WPGlobusAdmin.data.tags !== 'undefined' ) {
844
+ $.each( WPGlobusAdmin.data.tags, function(i,tag){
845
+ WPGlobusAdmin.data.value[tag]['post_id'] = {};
846
+ });
847
+ }
848
+
849
+ $('button.save, input#bulk_edit').on('mouseenter', function (event) {
850
+ /**
851
+ * Quick edit action for the "Tags" box in edit.php page.
852
+ */
853
+ if ( typeof WPGlobusAdmin.data.tags === 'undefined' ) {
854
+ return;
855
+ }
856
+
857
+ if (event.currentTarget.id=='bulk_edit') {
858
+ $('input#bulk_edit').unbind('click');
859
+ } else {
860
+ $('button.save').unbind('click');
861
+ }
862
+
863
+ $( 'button.save, input#bulk_edit').on('click', function (event) {
864
+ //console.log( 'Start Updating' );
865
+ var promise = $.when();
866
+
867
+ var tagsHandler = function( $elem ) {
868
+ $elem.next('.spinner').css({'visibility':'visible'});
869
+ if (event.currentTarget.id != 'bulk_edit') {
870
+ $.ajaxSetup({async:false});
871
+ }
872
+ var p = $elem.parents('tr');
873
+ var id = p.attr('id').replace('edit-','');
874
+ var t,v,newTags;
875
+
876
+ $.each( WPGlobusAdmin.data.tags, function(index,tag){
877
+ t = p.find("textarea[name='" + WPGlobusAdmin.data.names[tag] + "']");
878
+ if ( t.length == 0 ) {
879
+ return true;
880
+ }
881
+ WPGlobusAdmin.data.value[tag]['post_id'][id] = t.val();
882
+ v = WPGlobusAdmin.data.value[tag]['post_id'][id].split(',');
883
+ newTags = [];
884
+ for(var i=0; i<v.length; i++) {
885
+ v[i] = v[i].trim(' ');
886
+ if ( v[i] != '' ) {
887
+ if ( typeof WPGlobusAdmin.data.tag[tag][v[i]] === 'undefined' ) {
888
+ newTags[i] = v[i];
889
+ } else {
890
+ newTags[i] = WPGlobusAdmin.data.tag[tag][v[i]];
891
+ }
892
+ }
893
+ }
894
+ t.val( newTags.join(', ') );
895
+ });
896
+ }
897
+
898
+ var $this = $(this);
899
+ var start = $.Deferred();
900
+ start.resolve( tagsHandler( $(this) ) );
901
+
902
+ promise = promise.then(function() {
903
+ return $.when(
904
+ start.done()
905
+ )
906
+ }).then( function() {
907
+ if (event.currentTarget.id != 'bulk_edit') {
908
+ setTimeout(
909
+ function() {
910
+ inlineEditPost.save(id);
911
+ $.ajaxSetup({async:true});
912
+ },
913
+ 50
914
+ );
915
+ }
916
+ });
917
+
918
+ });
919
+ });
920
+
921
+ $( '#the-list' ).on( 'click', '.editinline', function () {
922
+ var t = $(this);
923
+ full_id = t.parents('tr').attr('id');
924
+ if ('post' === type) {
925
+ id = full_id.replace('post-', '');
926
+ } else if ('taxonomy' === type) {
927
+ id = full_id.replace('tag-', '');
928
+ } else {
929
+ return;
930
+ }
931
+
932
+ if ( 'post' === type && 'undefined' !== typeof WPGlobusAdmin.data.tags ) {
933
+ /**
934
+ * @since 1.6.6
935
+ */
936
+ $.each( WPGlobusAdmin.data.tags, function(i,tag){
937
+ if ( WPGlobusAdmin.data.value[tag] != '' ) {
938
+ var val = $('#edit-' + id + ' textarea[name="' + WPGlobusAdmin.data.names[tag] + '"]').val(),
939
+ currentTags;
940
+ if ( 'undefined' !== typeof val ) {
941
+ currentTags = val.split(',');
942
+ $.each( currentTags, function(order,currentTag) {
943
+ val = val.replace(currentTag, WPGlobusCore.TextFilter(currentTag, WPGlobusCoreData.language));
944
+ });
945
+ $('#edit-' + id + ' textarea[name="' + WPGlobusAdmin.data.names[tag] + '"]').val(val);
946
+ }
947
+ }
948
+ });
949
+ }
950
+
951
+ var e = $('#edit-' + id + ' input.ptitle').eq(0);
952
+ var p = e.parents('label');
953
+ e.val(WPGlobusAdmin.qedit_titles[id].source);
954
+ e.addClass('hidden');
955
+ $(WPGlobusAdmin.data.template).insertAfter(p);
956
+
957
+ if ( typeof WPGlobusAdmin.qedit_titles[id] === 'undefined' ) {
958
+ WPGlobusAdmin.qedit_titles[id] = {};
959
+ WPGlobusAdmin.qedit_titles[id]['source'] = $('#'+full_id+' .name a.row-title').text();
960
+ $(WPGlobusAdmin.data.enabled_languages).each(function(i,l){
961
+ WPGlobusAdmin.qedit_titles[id][l] = {};
962
+ if ( l == WPGlobusAdmin.data.default_language ) {
963
+ WPGlobusAdmin.qedit_titles[id][l]['name'] = WPGlobusAdmin.qedit_titles[id]['source'];
964
+ } else {
965
+ WPGlobusAdmin.qedit_titles[id][l]['name'] = '';
966
+ }
967
+ WPGlobusAdmin.qedit_titles[id][l]['description'] = '';
968
+ });
969
+ }
970
+
971
+ $( '.wpglobus-quick-edit-title' ).each(function ( i, e ) {
972
+ var $e = $(e);
973
+ var l = $e.data( 'language' );
974
+ $e.attr( 'id', l + id );
975
+ if ( typeof WPGlobusAdmin.qedit_titles[id][l] !== 'undefined' ) {
976
+ WPGlobusAdmin.qedit_titles[id][l]['name'] = WPGlobusAdmin.qedit_titles[id][l]['name'].replace( /\\\'/g, "'" );
977
+ WPGlobusAdmin.qedit_titles[id][l]['name'] = WPGlobusAdmin.qedit_titles[id][l]['name'].replace( /\\\"/g, '"' );
978
+ $e.attr( 'value', WPGlobusAdmin.qedit_titles[id][l]['name'] );
979
+ WPGlobusAdmin.qedit_titles[id]['source'] =
980
+ WPGlobusCore.getString(
981
+ WPGlobusAdmin.qedit_titles[id]['source'],
982
+ WPGlobusAdmin.qedit_titles[id][l]['name'],
983
+ l
984
+ );
985
+ }
986
+ });
987
+ $( 'input.ptitle' ).eq( 0 ).attr( 'value', WPGlobusAdmin.qedit_titles[ id ][ 'source' ] );
988
+ });
989
+
990
+ },
991
+ taxonomyEdit: function () {
992
+
993
+ var elements = [];
994
+ elements[0] = 'name';
995
+ elements[1] = 'description';
996
+
997
+ var make_clone = function(id,language){
998
+ var $element = $('#'+id),
999
+ clone = $element.clone(),
1000
+ name = $element.attr('name'),
1001
+ classes = 'wpglobus-element wpglobus-element_'+id+' wpglobus-element_'+language+' wpglobus-translatable',
1002
+ node;
1003
+
1004
+ node = document.getElementById(id);
1005
+ node = node.nodeName;
1006
+ $(clone).attr('id', id+'_'+language);
1007
+ $(clone).attr('name', name+'_'+language);
1008
+ if ( language !== WPGlobusCoreData.default_language ) {
1009
+ classes += ' hidden';
1010
+ }
1011
+ $(clone).attr('class', classes);
1012
+ $(clone).attr('data-save-to', id);
1013
+ $(clone).attr('data-language', language);
1014
+ if ( node == 'INPUT' ) {
1015
+ $(clone).attr('value', $('#wpglobus-link-tab-'+language).data(id));
1016
+ } else if ( node == 'TEXTAREA' ) {
1017
+ $(clone).text($('#wpglobus-link-tab-'+language).data(id));
1018
+ }
1019
+ $element.addClass('hidden');
1020
+ if ( $('.wpglobus-element_'+id).length == 0 ) {
1021
+ $(clone).insertAfter($element);
1022
+ } else {
1023
+ $(clone).insertAfter($('.wpglobus-element_'+id).last());
1024
+ }
1025
+ };
1026
+
1027
+ $.each(WPGlobusCoreData.enabled_languages, function(i,l){
1028
+ $.each(elements, function(i,e){
1029
+ make_clone(e,l);
1030
+ });
1031
+ });
1032
+
1033
+ $('.wpglobus-taxonomy-tabs').insertAfter('#ajax-response');
1034
+
1035
+ /**
1036
+ * Make class wrap as tabs container.
1037
+ * Tabs on.
1038
+ */
1039
+ $('.wrap').tabs();
1040
+
1041
+ $('body').on('click', '.wpglobus-taxonomy-tabs li', function(event){
1042
+ var $t = $(this);
1043
+ var language = $t.data('language');
1044
+ $('.wpglobus-element').addClass('hidden');
1045
+ $('.wpglobus-element_'+language).removeClass('hidden');
1046
+ });
1047
+
1048
+ $('.wpglobus-element').on('change', function () {
1049
+ var $this = $(this),
1050
+ save_to = $this.data('save-to'),
1051
+ s = '';
1052
+
1053
+ $('.wpglobus-element').each(function (index, element) {
1054
+ var $e = $(element),
1055
+ value = $e.val();
1056
+ if ( $e.data('save-to') == save_to && value !== '' ) {
1057
+ s = s + WPGlobusCore.addLocaleMarks(value, $e.data('language') )
1058
+ }
1059
+ });
1060
+ $('#' + save_to).val(s);
1061
+ });
1062
+
1063
+ /**
1064
+ * @since 1.8.1
1065
+ * $('<span class="wpglobus-multilingual-slug wpglobus_dialog_start wpglobus_dialog_icon" title="Title"></span>').insertBefore('#slug');
1066
+ * $('.term-slug-wrap th').css({'padding-right':'0'});
1067
+ * $('.term-slug-wrap td').css({'padding-left':'0'});
1068
+ */
1069
+ $(WPGlobusAdmin.data.multilingualSlug.title).insertAfter('.term-slug-wrap th label');
1070
+
1071
+ },
1072
+ navMenus: function () {
1073
+ var iID, menu_size,
1074
+ menu_item = '#menu-to-edit .menu-item';
1075
+
1076
+ var timer = function () {
1077
+ if ( menu_size !== $(menu_item).length ) {
1078
+ clearInterval(iID);
1079
+ $(menu_item).each(function (index, li) {
1080
+ var $li = $(li);
1081
+ if ($li.hasClass('wpglobus-menu-item')) {
1082
+ return; /** the same as continue */
1083
+ }
1084
+ var id = $(li).attr('id');
1085
+ $.each(['input.edit-menu-item-title', 'input.edit-menu-item-attr-title'], function (input_index, input) {
1086
+ var i = $('#' + id + ' ' + input);
1087
+ var $i = $(i);
1088
+ if (!$i.hasClass('wpglobus-hidden')) {
1089
+ $i.addClass('wpglobus-hidden');
1090
+ $i.css('display', 'none');
1091
+ var l = $i.parent('label');
1092
+ var p = $i.parents('p');
1093
+ $(p).css('height', '80px');
1094
+ $(l).append('<div style="color:#f00;">' + WPGlobusAdmin.i18n.save_nav_menu + '</div>');
1095
+ }
1096
+ });
1097
+ $li.addClass('wpglobus-menu-item');
1098
+ });
1099
+ }
1100
+ };
1101
+
1102
+ $.ajaxSetup({
1103
+ beforeSend: function (jqXHR, PlainObject) {
1104
+ if (typeof PlainObject.data === 'undefined') {
1105
+ return;
1106
+ }
1107
+ if (PlainObject.data.indexOf('action=add-menu-item') >= 0) {
1108
+ menu_size = $(menu_item).length;
1109
+ iID = setInterval(timer, 500);
1110
+ }
1111
+ }
1112
+ });
1113
+
1114
+ $(menu_item).each(function (index, li) {
1115
+
1116
+ var id = $(li).attr('id'),
1117
+ item_id = id.replace('menu-item-', '');
1118
+
1119
+ $.each(['input.edit-menu-item-title', 'input.edit-menu-item-attr-title'], function (input_index, input) {
1120
+ var $i = $('#' + id + ' ' + input);
1121
+ if ( $i.val() != WPGlobusAdmin.data.items[ item_id ][ input ][ 'source' ] ) {
1122
+ /**
1123
+ * fix for case when value resets by WP core
1124
+ */
1125
+ $i.val( WPGlobusAdmin.data.items[ item_id ][ input ][ 'source' ] );
1126
+ }
1127
+
1128
+ var p = $( '#' + id + ' ' + input ).parents('p');
1129
+ var height = 0;
1130
+
1131
+ $.each(WPGlobusAdmin.data.open_languages, function (index, language) {
1132
+ var new_element = $i.clone();
1133
+ new_element.attr('id', $i.attr('id') + '-' + language);
1134
+ new_element.attr('name', $i.attr('id') + '-' + language);
1135
+ new_element.attr('data-language', language);
1136
+ new_element.attr('data-item-id', item_id);
1137
+ new_element.attr('placeholder', WPGlobusAdmin.data.en_language_name[language]);
1138
+
1139
+ var classes = WPGlobusAdmin.data.items[item_id][language][input]['class'];
1140
+ if (input_index === 0 && language === WPGlobusAdmin.data.default_language) {
1141
+ new_element.attr('class', classes + ' edit-menu-item-title');
1142
+ } else {
1143
+ new_element.attr('class', classes);
1144
+ }
1145
+
1146
+ if ( WPGlobusAdmin.data.items[ item_id ][ language ][ input ][ 'caption' ] != '' ) {
1147
+ new_element.attr('value', WPGlobusAdmin.data.items[item_id][language][input]['caption']);
1148
+ } else {
1149
+ new_element.attr('value', '');
1150
+ }
1151
+ new_element.css('margin-bottom', '0.6em');
1152
+ $(p).append( new_element );
1153
+ height = index;
1154
+ });
1155
+ height = (height + 1) * 40;
1156
+ $i.css('display', 'none').attr('class', '').addClass('widefat wpglobus-hidden');
1157
+ $(p).css('height', height + 'px').addClass('wpglobus-menu-item-box');
1158
+
1159
+ });
1160
+ $(li).addClass('wpglobus-menu-item');
1161
+ });
1162
+
1163
+ $('.menus-move-left, .menus-move-right').each(function(index,e) {
1164
+ var $e = $(e), new_title;
1165
+ var item_id = $e.parents('li').attr('id').replace('menu-item-', '');
1166
+ var title = $e.attr('title');
1167
+ if ( typeof title !== 'undefined' ) {
1168
+ $.each(WPGlobusAdmin.data.post_titles, function(post_title, item_title) {
1169
+ if ( title.indexOf(post_title) >= 0 ) {
1170
+ new_title = title.replace(post_title, item_title);
1171
+ $e.attr('title', new_title);
1172
+ $e.text(new_title);
1173
+ }
1174
+ });
1175
+ }
1176
+ });
1177
+
1178
+ /**
1179
+ * Run the item handle title when the navigation label was loaded.
1180
+ * @see wp-admin\js\nav-menu.js
1181
+ */
1182
+ $('.edit-menu-item-title').trigger('change');
1183
+ wpNavMenu.refreshAdvancedAccessibility();
1184
+ wpNavMenu.menusChanged = false;
1185
+
1186
+ $('.wpglobus-menu-item').on('change', function () {
1187
+ var $this = $(this),
1188
+ item_id = $this.data('item-id'),
1189
+ s, so;
1190
+ if ($this.hasClass('wpglobus-item-title')) {
1191
+ s = WPGlobusCore.getString( $('input#edit-menu-item-title-' + item_id).val(), $this.val(), $this.data('language') );
1192
+ so = $(document).triggerHandler('wpglobus_get_menu_translations', {string:s, lang:WPGlobusCoreData.open_languages, id:item_id, type:'input.edit-menu-item-title'});
1193
+ if ( typeof so !== 'undefined' ) {
1194
+ s = so;
1195
+ }
1196
+ $('input#edit-menu-item-title-' + item_id).val(s);
1197
+ }
1198
+ if ($this.hasClass('wpglobus-item-attr')) {
1199
+ s = WPGlobusCore.getString( $('input#edit-menu-item-attr-title-' + item_id).val(), $this.val(), $this.data('language') );
1200
+ so = $(document).triggerHandler('wpglobus_get_menu_translations', {string:s, lang:WPGlobusCoreData.open_languages, id:item_id, type:'input.edit-menu-item-attr-title'});
1201
+ if ( typeof so !== 'undefined' ) {
1202
+ s = so;
1203
+ }
1204
+ $('input#edit-menu-item-attr-title-' + item_id).val(s);
1205
+ }
1206
+
1207
+ });
1208
+
1209
+ /**
1210
+ * @since 1.9.16
1211
+ */
1212
+ var menuItems = [];
1213
+ setTimeout(function () {
1214
+ $('.edit-menu-item-description').each(function() {
1215
+ var id = $(this).attr('id');
1216
+ menuItems.push(id);
1217
+ WPGlobusDialogApp.addElement(id);
1218
+ });
1219
+ $('.wpglobus_dialog_start').each(function() {
1220
+ $(this).css({'font-style':'normal'});
1221
+ $(this).after('<br />');
1222
+ });
1223
+ var order = {};
1224
+ order['action'] = 'getNavMenuItemsDescription';
1225
+ order['menuItems'] = menuItems;
1226
+ $.ajax({type:'POST', url:WPGlobusAdmin.ajaxurl, data:{action:WPGlobusAdmin.process_ajax, order:order}, dataType:'json'})
1227
+ .done(function (results) {
1228
+ if ( 'object' != typeof results ) {
1229
+ return;
1230
+ }
1231
+ $.each(results, function( id, value ) {
1232
+ if ( '' != value ) {
1233
+ $('#'+id).val(value);
1234
+ $('#wpglobus-'+id).val( WPGlobusCore.TextFilter(value, WPGlobus.language, 'RETURN_EMPTY') );
1235
+ }
1236
+ });
1237
+ })
1238
+ .fail(function (error) {
1239
+ })
1240
+ .always(function (jqXHR, status) {
1241
+ });
1242
+ }, 1000 );
1243
+
1244
+ },
1245
+ postEdit: function () {
1246
+ /**
1247
+ * Hook into the heartbeat-send.
1248
+ */
1249
+ $(document).on('heartbeat-send', function(e, data) {
1250
+ if ( typeof data['wp_autosave'] !== 'undefined' ) {
1251
+ data['wpglobus_heartbeat'] = 'wpglobus';
1252
+ $.each(WPGlobusAdmin.data.open_languages, function(i,l){
1253
+ var v = $('#title_'+l).val() || '';
1254
+ v = $.trim(v);
1255
+ if ( v != '' ) {
1256
+ data['wp_autosave']['post_title_'+l] = v;
1257
+ }
1258
+ v = $('#content_'+l).val() || '';
1259
+ v = $.trim(v);
1260
+ if ( v != '' ) {
1261
+ data['wp_autosave']['content_'+l] = v;
1262
+ }
1263
+ });
1264
+ }
1265
+ });
1266
+
1267
+ var wrap_at = '#postdivrich',
1268
+ set_title = true,
1269
+ content_tabs_id = '#post-body-content';
1270
+ if ( WPGlobusAdmin.data.support['editor'] === false ) {
1271
+ wrap_at = '#titlediv';
1272
+ set_title = false;
1273
+ }
1274
+ if ( WPGlobusAdmin.data.support['title'] === false ) {
1275
+ set_title = false;
1276
+ }
1277
+ /**
1278
+ * Make post-body-content as tabs container.
1279
+ */
1280
+ $(content_tabs_id).prepend($('.wpglobus-post-body-tabs-list'));
1281
+ $.each(WPGlobusAdmin.tabs, function (index, suffix) {
1282
+ if ('default' === suffix) {
1283
+ $(wrap_at).wrap('<div id="tab-default"></div>');
1284
+ if ( set_title ) {
1285
+ $($('#titlediv')).insertBefore(wrap_at);
1286
+ }
1287
+ } else {
1288
+ $(wrap_at+'-' + suffix).wrap('<div id="tab-' + suffix + '"></div>');
1289
+ if ( set_title ) {
1290
+ $($('#titlediv-' + suffix)).insertBefore(wrap_at+'-' + suffix);
1291
+ }
1292
+ }
1293
+ });
1294
+
1295
+ /**
1296
+ * Tabs on.
1297
+ */
1298
+ setTimeout(function(){
1299
+ /**
1300
+ * Fix first buttons group.
1301
+ * @since 2.2.5
1302
+ */
1303
+ var fixBGDone = false;
1304
+ var fixMceToolbar = function(){
1305
+ if ( fixBGDone ) {
1306
+ return;
1307
+ }
1308
+ var mceBG = $('#wp-content-editor-container .mce-btn-group').eq(0);
1309
+ var childWrap = mceBG.children('div');
1310
+ if (mceBG.length == 0 || childWrap.length == 0) {
1311
+ return;
1312
+ }
1313
+ var style = mceBG.attr('style');
1314
+ var childStyle = childWrap.attr('style');
1315
+
1316
+ $.each( WPGlobusCoreData.enabled_languages, function(indx, lang) {
1317
+ if ( lang != WPGlobusCoreData.default_language ) {
1318
+ var mceBGExtra = $('#wp-content_'+lang+'-editor-container .mce-btn-group').eq(0);
1319
+ var childWrapExtra = mceBGExtra.children('div');
1320
+ if (mceBGExtra.length == 0 || childWrapExtra.length == 0) {
1321
+ return true;
1322
+ }
1323
+ var styleExtra = mceBGExtra.attr('style');
1324
+ var childStyleExtra = childWrapExtra.attr('style');
1325
+ if (style != styleExtra) {
1326
+ mceBGExtra.attr('style', style);
1327
+ }
1328
+ if (childStyle != childStyleExtra) {
1329
+ childWrapExtra.attr('style', childStyle);
1330
+ }
1331
+ }
1332
+ });
1333
+ fixBGDone = true;
1334
+ }
1335
+
1336
+ $(content_tabs_id).addClass('wpglobus-post-body-tabs').tabs({
1337
+ beforeActivate: function( event, ui ){
1338
+ fixMceToolbar();
1339
+
1340
+ var otab = ui.oldTab[0].id.replace('link-tab-','');
1341
+ var ntab = ui.newTab[0].id.replace('link-tab-','');
1342
+
1343
+ /**
1344
+ * @since 2.4
1345
+ */
1346
+ $('.wpglobus-tab-link').removeClass('wpglobus-tab-link-active');
1347
+ $('#link-tab-'+ntab+' .wpglobus-tab-link').addClass('wpglobus-tab-link-active');
1348
+
1349
+ if ( 'default' == otab ) {
1350
+ otab = WPGlobusCoreData.default_language;
1351
+ }
1352
+ if ( 'default' == ntab ) {
1353
+ ntab = WPGlobusCoreData.default_language;
1354
+ }
1355
+ var a = $(document).triggerHandler('wpglobus_post_body_tabs', [ otab, ntab ]);
1356
+ if ( a || typeof a === 'undefined' ) {
1357
+ return true;
1358
+ }
1359
+ return false;
1360
+ }
1361
+ }); /** #post-body-content */
1362
+ }, 500);
1363
+
1364
+ /**
1365
+ * Setup for default language.
1366
+ */
1367
+ $('#title').val(WPGlobusAdmin.title);
1368
+
1369
+ /**
1370
+ * See other places with the same bookmark.
1371
+ * @bookmark EDITOR_LINE_BREAKS
1372
+ */
1373
+ //$('#content').text(WPGlobusAdmin.content.replace(/\n/g, "<p>"));
1374
+
1375
+ $('#content').text(WPGlobusAdmin.content);
1376
+
1377
+ if (typeof WPGlobusVendor !== "undefined" && WPGlobusVendor.vendor.WPSEO ) {
1378
+ if ( typeof wpglobus_wpseo !== "undefined" ) {
1379
+ wpglobus_wpseo();
1380
+ } else if ( 'undefined' !== typeof WPGlobusYoastSeo ) {
1381
+ if ( 'undefined' !== typeof WPGlobusYoastSeoPremium ) {
1382
+ /**
1383
+ * @since WPGlobus 1.7.2
1384
+ */
1385
+ if ( WPGlobusYoastSeoPremium && 'function' === typeof WPGlobusYoastSeoPremium.init ) {
1386
+ WPGlobusYoastSeoPremium.init();
1387
+ }
1388
+ }
1389
+ /**
1390
+ * @since Yoast SEO 3.0
1391
+ */
1392
+ if ( 'function' === typeof WPGlobusYoastSeo.init ) {
1393
+ WPGlobusYoastSeo.init();
1394
+ }
1395
+ }
1396
+ }
1397
+
1398
+ if ( WPGlobusAdmin.data.modify_excerpt ) {
1399
+ /**
1400
+ * Add excerpt fields from template.
1401
+ */
1402
+ var $excerpt = $( '#excerpt' );
1403
+ $excerpt.addClass( 'hidden' ).css( {'display':'none'} );
1404
+ $( WPGlobusAdmin.data.template ).insertAfter( $excerpt );
1405
+ $( 'body' ).on( 'change', '.wpglobus-excerpt', function () {
1406
+ var $t = $( this );
1407
+ $excerpt.val( WPGlobusCore.getString( $excerpt.val(), $t.val(), $t.data('language') ) );
1408
+ });
1409
+ }
1410
+
1411
+ /**
1412
+ * wp_editor word count.
1413
+ * from WordPress 4.3 @see \wp-admin\js\post.js
1414
+ */
1415
+ if ( typeof wp.utils !== 'undefined' && typeof wp.utils.WordCounter !== 'undefined' ) {
1416
+ WPGlobusCoreData.wordCounter = {};
1417
+
1418
+ var self = this, wpglobusEditors = {};
1419
+
1420
+ $.each( WPGlobusCoreData.enabled_languages, function( i, l ){
1421
+ if ( l == WPGlobusCoreData.default_language ) {
1422
+ return true;
1423
+ }
1424
+ wpglobusEditors[i] = 'content_'+l;
1425
+
1426
+ ( function( $, counter, l ) {
1427
+ WPGlobusCoreData.wordCounter[ l ] = {};
1428
+ WPGlobusCoreData.wordCounter[ l ][ 'counter' ] = counter;
1429
+
1430
+ $( function() {
1431
+
1432
+ WPGlobusCoreData.wordCounter[ l ][ 'content' ] = $( '#content_'+l );
1433
+ WPGlobusCoreData.wordCounter[ l ][ 'count' ] = $( '#wp-word-count-'+l ).find( '.word-count-'+l );
1434
+
1435
+ WPGlobusCoreData.wordCounter[ l ][ 'prevCount' ] = 0;
1436
+
1437
+ function update( l ) {
1438
+ var text, count;
1439
+
1440
+ if ( typeof l === 'object' ) {
1441
+
1442
+ if ( l == 'tinymce' ) {
1443
+ /** wysiwyg editor */
1444
+ l = self.getCurrentTab();
1445
+ } else {
1446
+ /** textarea */
1447
+ l = l.target.id.replace( 'content_', '' );
1448
+ }
1449
+
1450
+ }
1451
+
1452
+ if ( typeof WPGlobusCoreData.wordCounter[ l ] === 'undefined' ) {
1453
+ return;
1454
+ }
1455
+
1456
+ if ( ! WPGlobusCoreData.wordCounter[ l ][ 'contentEditor' ] ||
1457
+ WPGlobusCoreData.wordCounter[ l ][ 'contentEditor' ].isHidden() ) {
1458
+
1459
+ text = WPGlobusCoreData.wordCounter[ l ][ 'content' ].val();
1460
+
1461
+ } else {
1462
+ text = WPGlobusCoreData.wordCounter[ l ][ 'contentEditor' ].getContent( { format: 'raw' } );
1463
+ }
1464
+
1465
+ count = WPGlobusCoreData.wordCounter[ l ][ 'counter' ].count( text );
1466
+
1467
+ if ( count !== WPGlobusCoreData.wordCounter[ l ][ 'prevCount' ] ) {
1468
+ WPGlobusCoreData.wordCounter[ l ][ 'count' ].text( count );
1469
+ }
1470
+
1471
+ WPGlobusCoreData.wordCounter[ l ][ 'prevCount' ] = count;
1472
+ }
1473
+
1474
+ $(document).on( 'tinymce-editor-init', function( event, editor ) {
1475
+
1476
+ if ( -1 == $.inArray(editor.id, wpglobusEditors) ) {
1477
+ /**
1478
+ * Init WPGlobus editor only.
1479
+ */
1480
+ return;
1481
+ }
1482
+ var l = editor.id.replace( 'content_', '' );
1483
+
1484
+ WPGlobusCoreData.wordCounter[ l ][ 'contentEditor' ] = editor;
1485
+
1486
+ editor.on( 'nodechange keyup', _.debounce( update, 1000 ) );
1487
+ } );
1488
+
1489
+ WPGlobusCoreData.wordCounter[l]['content'].on( 'input keyup', _.debounce( update, 1000 ) );
1490
+
1491
+ update( l );
1492
+
1493
+ } );
1494
+ } )( jQuery, new wp.utils.WordCounter(), l );
1495
+ });
1496
+
1497
+ }
1498
+
1499
+ $(document).on('click', '#publish, #save-post', function() {
1500
+ if ( WPGlobusAdmin.data.open_languages.length > 1 ) {
1501
+ $(document).triggerHandler('wpglobus_before_save_post', {content_tabs_id:content_tabs_id});
1502
+ /**
1503
+ * If empty title in default language make it from another titles.
1504
+ */
1505
+ var t = $('#title').val(),
1506
+ index, title = '', delimiter = '';
1507
+
1508
+ if ( t.length == 0 ) {
1509
+ index = WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language);
1510
+ WPGlobusAdmin.data.open_languages.splice(index, 1);
1511
+ $(WPGlobusAdmin.data.open_languages).each(function(i,l){
1512
+ delimiter = i == 0 ? '' : '-';
1513
+ t = $('#title_'+l).val();
1514
+ if ( t.length > 0 ) {
1515
+ if ( title.length == 0 ) { delimiter = '';}
1516
+ title = title + delimiter + t;
1517
+ }
1518
+ });
1519
+ }
1520
+ if ( title.length > 0 ) {
1521
+ $('#title').val(title);
1522
+ }
1523
+ }
1524
+
1525
+ /**
1526
+ * To handle taxonomy tags.
1527
+ */
1528
+ if ( 'undefined' === typeof WPGlobusAdmin.data.tagsdiv || WPGlobusAdmin.data.tagsdiv.length < 1 ) {
1529
+ return;
1530
+ }
1531
+ $(WPGlobusAdmin.data.tagsdiv).each(function(i,tagsdiv){
1532
+ if ($('#' + tagsdiv).length == 0) {
1533
+ /**
1534
+ * Next iteration.
1535
+ */
1536
+ return true;
1537
+ }
1538
+
1539
+ var id = tagsdiv.replace('tagsdiv-', '');
1540
+ if ( 'undefined' === id ) {
1541
+ return true;
1542
+ }
1543
+ if ( $('#tax-input-'+id).length == 0 ) {
1544
+ return true;
1545
+ }
1546
+
1547
+ var name, tags = [];
1548
+
1549
+ /**
1550
+ * Obsolete from WP 4.9
1551
+ * $('#tagsdiv-'+id+' .tagchecklist > span').each(function(i,e){
1552
+ */
1553
+ $('#tagsdiv-'+id+' .tagchecklist li').each(function(i,e){
1554
+ name = $(e).html();
1555
+ name = name.replace( /<button.*<\/button>&nbsp;/, '' );
1556
+ if ( 'undefined' === typeof WPGlobusAdmin.data.tag[id][name] ) {
1557
+ tags[i] = name;
1558
+ } else {
1559
+ tags[i] = WPGlobusAdmin.data.tag[id][name];
1560
+ }
1561
+ });
1562
+
1563
+ $('#tax-input-'+id).val(tags.join(', '));
1564
+ });
1565
+ /**
1566
+ * The end to handle taxonomy tags.
1567
+ */
1568
+ });
1569
+
1570
+ /**
1571
+ * The alignment when default tab was clicked.
1572
+ */
1573
+ $('.ui-state-default').on('click', function () {
1574
+ if ('link-tab-default' === $(this).attr('id')) {
1575
+ $(window).scrollTop($(window).scrollTop() + 1);
1576
+ $(window).scrollTop($(window).scrollTop() - 1);
1577
+ }
1578
+ });
1579
+
1580
+ /**
1581
+ * Set current value after language tab of content was changed.
1582
+ */
1583
+ $(document).on( 'tabsactivate', content_tabs_id, function( event, ui ) {
1584
+ WPGlobusAdmin.currentTab = ui.newTab[0].dataset.language;
1585
+ });
1586
+
1587
+ /**
1588
+ * Add translatable class.
1589
+ * @since 2.4
1590
+ */
1591
+ $('#titlewrap input').addClass('wpglobus-translatable');
1592
+ $('.title_wpglobus').addClass('wpglobus-translatable');
1593
+
1594
+ $(document).triggerHandler('wpglobus_after_post_edit');
1595
+
1596
+ },
1597
+ adminCentral: function () {
1598
+ $( '.wpglobus-admin-central-tab' ).css({ 'display':'none' });
1599
+
1600
+ if ( $( '.nav-tab-active' ).length > 1 ) {
1601
+ $( '.wpglobus-about-wrap .nav-tab-wrapper a' ).removeClass( 'nav-tab-active' );
1602
+ }
1603
+
1604
+ var setFirstElement = true;
1605
+ if ( 0 == location.hash.indexOf( '#' ) ) {
1606
+ $( '.wpglobus-about-wrap .nav-tab-wrapper a').each( function( i, e ) {
1607
+ if ( $(e).attr( 'href' ) == location.hash ) {
1608
+ setFirstElement = false;
1609
+ $(e).addClass( 'nav-tab-active' );
1610
+ }
1611
+ });
1612
+ }
1613
+ if ( setFirstElement ) {
1614
+ $( '.wpglobus-about-wrap .nav-tab-wrapper a' ).eq(0).addClass( 'nav-tab-active' );
1615
+ }
1616
+
1617
+ var activePanel = $( '.wpglobus-about-wrap .nav-tab-active' ).data( 'tab-id' );
1618
+ if ( '' != activePanel ) {
1619
+ $( '#'+activePanel ).css({'display':'block'});
1620
+ }
1621
+
1622
+ $(document).on( 'click', '.wpglobus-about-wrap .nav-tab', function(event){
1623
+ var $t = $( this );
1624
+ if ( $t.hasClass( 'nav-tab-active' ) ) {
1625
+ return;
1626
+ }
1627
+ $( '.wpglobus-admin-central-tab' ).css({ 'display':'none' });
1628
+ $( '.wpglobus-about-wrap .nav-tab' ).removeClass( 'nav-tab-active' );
1629
+ $t.addClass( 'nav-tab-active' );
1630
+ if ( '' != $t.data( 'tab-id' ) ) {
1631
+ $( '#' + $t.data( 'tab-id' ) ).css({ 'display':'block' });
1632
+ }
1633
+ });
1634
+ },
1635
+ start: function () {
1636
+ var t = this;
1637
+ $('#wpglobus_flags').select2({
1638
+ formatResult: this.format,
1639
+ formatSelection: this.format,
1640
+ minimumResultsForSearch: -1,
1641
+ escapeMarkup: function (m) {
1642
+ return m;
1643
+ }
1644
+ });
1645
+
1646
+ /** disable checked off first language */
1647
+ $('body').on('click', '#enabled_languages-list li:first input', function (event) {
1648
+ event.preventDefault();
1649
+ $('.redux-save-warn').css({'display': 'none'});
1650
+ $('#enabled_languages-list').find('li:first > input').val('1');
1651
+ if ($('#disable_first_language').length === 0) {
1652
+ $(t.config.disable_first_language).insertAfter('#info_bar');
1653
+ }
1654
+ return false;
1655
+ });
1656
+
1657
+ },
1658
+ format: function (language) {
1659
+ return '<img class="wpglobus_flag" src="' + WPGlobusAdmin.flag_url + language.text + '"/>&nbsp;&nbsp;' + language.text;
1660
+ },
1661
+ set_dialog: function() {
1662
+
1663
+ if ( 'undefined' !== typeof WPGlobusAdmin.data.customFieldsEnabled ) {
1664
+ WPGlobusAdmin.data.customFieldsEnabled = this.parseBool( WPGlobusAdmin.data.customFieldsEnabled );
1665
+ if ( ! WPGlobusAdmin.data.customFieldsEnabled ) {
1666
+ return;
1667
+ }
1668
+ }
1669
+
1670
+ if ( 'undefined' === typeof WPGlobusAdmin.data.excludeCustomFields ) {
1671
+ WPGlobusAdmin.data.excludeCustomFields = false;
1672
+ }
1673
+
1674
+ var ajaxify_row_id, added_control = false;
1675
+ var add_elements = function(post_id) {
1676
+
1677
+ var id, rows, cb, _cb,
1678
+ _classes = 'wpglobus_dialog_start wpglobus_dialog_icon';
1679
+
1680
+ _cb = [
1681
+ '<div class="wpglobus_dialog_options_wrapper hidden">',
1682
+ '<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',
1683
+ '</div>'
1684
+ ].join('');
1685
+
1686
+ if (typeof post_id == 'undefined') {
1687
+ rows = '#the-list tr';
1688
+ } else {
1689
+ rows = '#the-list tr#'+post_id;
1690
+ }
1691
+ $(rows).each(function(){
1692
+ var $t = $(this),
1693
+ tid = $t.attr('id'),
1694
+ element = $t.find('textarea'),
1695
+ clone, name, meta_key,
1696
+ classes = _classes;
1697
+
1698
+ id = element.attr('id');
1699
+ if ( undefined === id ) {
1700
+ return true;
1701
+ }
1702
+ meta_key = $('#'+tid+'-key').val();
1703
+
1704
+ if ( WPGlobusAdmin.data.excludeCustomFields && -1 != $.inArray(meta_key, WPGlobusAdmin.data.excludeCustomFields) ) {
1705
+ return true;
1706
+ }
1707
+
1708
+ clone = $('#'+id).clone();
1709
+ $(element).addClass('wpglobus-dialog-field-source hidden');
1710
+ name = element.attr('name');
1711
+ $(clone).attr('id', 'wpglobus-'+id);
1712
+ $(clone).attr('name', 'wpglobus-'+name);
1713
+ $(clone).attr('data-source-id', id);
1714
+ $(clone).attr('class', 'wpglobus-dialog-field');
1715
+ $(clone).val( WPGlobusCore.TextFilter($(element).val(), WPGlobusCoreData.language) );
1716
+ $(clone).insertAfter(element);
1717
+ cb = _cb.replace(/{{id}}/g, id);
1718
+ cb = cb.replace(/{{meta-key}}/g, meta_key);
1719
+ if ( undefined === WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type] ) {
1720
+ cb = cb.replace(/{{checked}}/, 'checked');
1721
+ } else {
1722
+ if ( undefined !== WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][meta_key] && WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][meta_key] == 'false' ) {
1723
+ cb = cb.replace(/{{checked}}/, '');
1724
+ classes = _classes+' wpglobus_dialog_start_hidden';
1725
+ } else {
1726
+ cb = cb.replace(/{{checked}}/, 'checked');
1727
+ classes = _classes;
1728
+ }
1729
+ }
1730
+ $t.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+id+'" data-type="control" data-source-type="textarea" data-source-id="'+id+'" class="'+classes+'"></div>'+cb+'</td>');
1731
+ });
1732
+ if ( ! added_control && $('#list-table .wpglobus_dialog_start').length > 0 ) {
1733
+ $('#list-table thead tr').append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>');
1734
+ added_control = true;
1735
+ }
1736
+ }
1737
+
1738
+ add_elements();
1739
+
1740
+ $('body').on('change', '.wpglobus-dialog-field', function(){
1741
+ var $t = $(this),
1742
+ source_id = '#'+$t.data('source-id'),
1743
+ source = '', s = '', new_value;
1744
+
1745
+ if ( typeof source_id == 'undefined' ) {
1746
+ return;
1747
+ }
1748
+ source = $(source_id).val();
1749
+
1750
+ if ( ! /(\{:|\[:|<!--:)[a-z]{2}/.test(source) ) {
1751
+ $(source_id).val($t.val());
1752
+ } else {
1753
+ $.each(WPGlobusCoreData.enabled_languages, function(i,l){
1754
+ if ( l == WPGlobusCoreData.language ) {
1755
+ new_value = $t.val();
1756
+ } else {
1757
+ new_value = WPGlobusCore.TextFilter(source,l,'RETURN_EMPTY');
1758
+ }
1759
+ if ( '' != new_value ) {
1760
+ s = s + WPGlobusCore.addLocaleMarks(new_value,l);
1761
+ }
1762
+ });
1763
+ $(source_id).val(s);
1764
+ }
1765
+
1766
+ });
1767
+
1768
+ $(document).ajaxSend(function(event, jqxhr, settings){
1769
+ if ( 'add-meta' == settings.action ) {
1770
+ ajaxify_row_id = settings.element;
1771
+ }
1772
+ });
1773
+ $(document).ajaxComplete(function(event, jqxhr, settings){
1774
+ if ( 'add-meta' == settings.action && undefined !== jqxhr.responseXML ) {
1775
+ if ( 'newmeta' == ajaxify_row_id ) {
1776
+ add_elements('meta-'+$(jqxhr.responseXML.documentElement.outerHTML).find('meta').attr('id'));
1777
+ } else {
1778
+ add_elements(ajaxify_row_id);
1779
+ }
1780
+ }
1781
+ });
1782
+
1783
+ WPGlobusDialogApp.init({dialogTitle:'Edit meta'});
1784
+
1785
+ }
1786
+ };
1787
+
1788
+ new WPGlobusAdminApp.App();
1789
+
1790
+ return WPGlobusAdminApp;
1791
+
1792
+ }(window.WPGlobusAdminApp || {}, jQuery));
1793
+
1794
+ });
includes/js/wpglobus-admin-55.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i),v.runCallback(v.option.dialog.afterSave)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open"),v.runCallback(v.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click",".editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var u=!1;c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,o,l,s;u||(o=(e=c("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(l=e.attr("style"),s=o.attr("style"),c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=c("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),i=o.attr("style");l!=n&&e.attr("style",l),s!=i&&o.attr("style",s)}}),u=!0));var n=a.oldTab[0].id.replace("link-tab-",""),i=a.newTab[0].id.replace("link-tab-","");c(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),c("#link-tab-"+i+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==n&&(n=WPGlobusCoreData.default_language),"default"==i&&(i=WPGlobusCoreData.default_language);var d=c(document).triggerHandler("wpglobus_post_body_tabs",[n,i]);return!(!d&&void 0!==d)}})},500),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c("#titlewrap input").addClass("wpglobus-translatable"),c(".title_wpglobus").addClass("wpglobus-translatable"),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;return void 0===(s=i.attr("id"))||(e=c("#"+n+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==c.inArray(e,WPGlobusAdmin.data.excludeCustomFields))||(t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),void o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")))}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-options.js CHANGED
@@ -77,6 +77,23 @@ jQuery(document).ready(function ($) {
77
  }
78
  curTab.css({'display':'block'});
79
  $('#wpglobus-tab-link-'+api.currentTabID).addClass('wpglobus-tab-link-active');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  },
81
  addListeners: function() {
82
  $(document).on('click', 'input.wpglobus-enabled_languages', function(event){
@@ -105,6 +122,9 @@ jQuery(document).ready(function ($) {
105
  $(document).on('dblclick', '#section-tab-customizer h2', function(ev){
106
  $('.wpglobus-theme-info-spec').removeClass('hidden');
107
  });
 
 
 
108
  }
109
  };
110
 
77
  }
78
  curTab.css({'display':'block'});
79
  $('#wpglobus-tab-link-'+api.currentTabID).addClass('wpglobus-tab-link-active');
80
+
81
+ api.initLanguageTable();
82
+ },
83
+ initLanguageTable: function() {
84
+ var $items = $('.wpglobus-the-language-item-installed');
85
+ if ( $items.length > 9 ) {
86
+ return;
87
+ }
88
+ var rows = [];
89
+ $items.each(function(indx){
90
+ var order = $(this).data('order') * 1;
91
+ rows[order] = $(this);
92
+ });
93
+ var ib = $('#wpglobus-options-languagesTable #the-list tr').eq(0)
94
+ $.each(rows, function(index, row) {
95
+ $(ib).before(row);
96
+ });
97
  },
98
  addListeners: function() {
99
  $(document).on('click', 'input.wpglobus-enabled_languages', function(event){
122
  $(document).on('dblclick', '#section-tab-customizer h2', function(ev){
123
  $('.wpglobus-theme-info-spec').removeClass('hidden');
124
  });
125
+ $(document).on('dblclick', '.column-wpglobus_flag', function(ev){
126
+ location = location.href + '&flags';
127
+ });
128
  }
129
  };
130
 
includes/js/wpglobus-options.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(i){"use strict";var n;"undefined"!=typeof WPGlobusOptions&&(n={currentTabID:0,firstLanguageCb:null,init:function(){n.initTab(),n.checkHandlers(),n.addListeners(),n.initSpecs()},setFirstLanguageCb:function(){null!==n.firstLanguageCb&&n.firstLanguageCb.off("click"),i('#enabled_languages-list li input[type="checkbox"]').prop("disabled",!1);var t=i("#enabled_languages-list li").eq(0);n.firstLanguageCb=t.find('input[type="checkbox"]'),n.firstLanguageCb.prop("checked","checked"),n.firstLanguageCb.prop("disabled","disabled"),n.firstLanguageCb.css({visibility:"hidden"}),n.firstLanguageCb.on("click",function(t){return t.preventDefault(),!1})},handlerEnabled_languages:function(){i(".wpglobus-sortable").sortable({placeholder:"ui-state-highlight",update:function(t,a){i('#enabled_languages-list li input[type="checkbox"]').css({visibility:"visible"}),n.setFirstLanguageCb()}}),i(".wpglobus-sortable").disableSelection(),n.setFirstLanguageCb()},handlerLanguagesTable:function(){var n=i("#wpglobus-options-languagesTable").parents(".wpglobus-options-tab").data("tab");i("#wpglobus-options-languagesTable .manage-column.sortable a").each(function(t,a){var e=i(a).attr("href");-1!=e.indexOf("tab")?-1==e.indexOf("tab-from")&&(e=e.replace(/tab/,"tab-from"),e+="&tab="+n):e+="&tab="+n,i(a).attr("href",e)})},checkHandlers:function(){i(".wpglobus-options-field").each(function(t,a){if(void 0===i(a).data("js-handler"))return!0;var e=i(a).data("js-handler");"function"==typeof n[e]&&n[e]()})},initTab:function(){var t=i("#section-tab-"+WPGlobusOptions.tab);n.currentTabID=WPGlobusOptions.tab,0==t.length&&(n.currentTabID=WPGlobusOptions.defaultTab,t=i("#section-tab-"+n.currentTabID)),t.css({display:"block"}),i("#wpglobus-tab-link-"+n.currentTabID).addClass("wpglobus-tab-link-active")},addListeners:function(){i(document).on("click","input.wpglobus-enabled_languages",function(t){var a=i(this).prop("checked"),e=i(this).attr("rel");a?i("#"+e).val("1"):i("#"+e).val("")}),i(document).on("click",".wpglobus-tab-link",function(t){var a=i(this).data("tab");window.history.pushState("data","Title",WPGlobusOptions.newUrl.replace("{*}",a)),i(".wpglobus-options-tab").css({display:"none"}),i("#section-tab-"+a).css({display:"block"}),i(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),i("#wpglobus-tab-link-"+a).addClass("wpglobus-tab-link-active"),i("#wpglobus_options_current_tab").val(a)})},initSpecs:function(){i(document).on("dblclick","#section-tab-customizer h2",function(t){i(".wpglobus-theme-info-spec").removeClass("hidden")})}},(WPGlobusOptions=i.extend({},WPGlobusOptions,n)).init())});
1
+ jQuery(document).ready(function(i){"use strict";var e;"undefined"!=typeof WPGlobusOptions&&(e={currentTabID:0,firstLanguageCb:null,init:function(){e.initTab(),e.checkHandlers(),e.addListeners(),e.initSpecs()},setFirstLanguageCb:function(){null!==e.firstLanguageCb&&e.firstLanguageCb.off("click"),i('#enabled_languages-list li input[type="checkbox"]').prop("disabled",!1);var a=i("#enabled_languages-list li").eq(0);e.firstLanguageCb=a.find('input[type="checkbox"]'),e.firstLanguageCb.prop("checked","checked"),e.firstLanguageCb.prop("disabled","disabled"),e.firstLanguageCb.css({visibility:"hidden"}),e.firstLanguageCb.on("click",function(a){return a.preventDefault(),!1})},handlerEnabled_languages:function(){i(".wpglobus-sortable").sortable({placeholder:"ui-state-highlight",update:function(a,t){i('#enabled_languages-list li input[type="checkbox"]').css({visibility:"visible"}),e.setFirstLanguageCb()}}),i(".wpglobus-sortable").disableSelection(),e.setFirstLanguageCb()},handlerLanguagesTable:function(){var e=i("#wpglobus-options-languagesTable").parents(".wpglobus-options-tab").data("tab");i("#wpglobus-options-languagesTable .manage-column.sortable a").each(function(a,t){var n=i(t).attr("href");-1!=n.indexOf("tab")?-1==n.indexOf("tab-from")&&(n=n.replace(/tab/,"tab-from"),n+="&tab="+e):n+="&tab="+e,i(t).attr("href",n)})},checkHandlers:function(){i(".wpglobus-options-field").each(function(a,t){if(void 0===i(t).data("js-handler"))return!0;var n=i(t).data("js-handler");"function"==typeof e[n]&&e[n]()})},initTab:function(){var a=i("#section-tab-"+WPGlobusOptions.tab);e.currentTabID=WPGlobusOptions.tab,0==a.length&&(e.currentTabID=WPGlobusOptions.defaultTab,a=i("#section-tab-"+e.currentTabID)),a.css({display:"block"}),i("#wpglobus-tab-link-"+e.currentTabID).addClass("wpglobus-tab-link-active"),e.initLanguageTable()},initLanguageTable:function(){var n,e,a=i(".wpglobus-the-language-item-installed");9<a.length||(n=[],a.each(function(a){var t=+i(this).data("order");n[t]=i(this)}),e=i("#wpglobus-options-languagesTable #the-list tr").eq(0),i.each(n,function(a,t){i(e).before(t)}))},addListeners:function(){i(document).on("click","input.wpglobus-enabled_languages",function(a){var t=i(this).prop("checked"),n=i(this).attr("rel");t?i("#"+n).val("1"):i("#"+n).val("")}),i(document).on("click",".wpglobus-tab-link",function(a){var t=i(this).data("tab");window.history.pushState("data","Title",WPGlobusOptions.newUrl.replace("{*}",t)),i(".wpglobus-options-tab").css({display:"none"}),i("#section-tab-"+t).css({display:"block"}),i(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),i("#wpglobus-tab-link-"+t).addClass("wpglobus-tab-link-active"),i("#wpglobus_options_current_tab").val(t)})},initSpecs:function(){i(document).on("dblclick","#section-tab-customizer h2",function(a){i(".wpglobus-theme-info-spec").removeClass("hidden")}),i(document).on("dblclick",".column-wpglobus_flag",function(a){location=location.href+"&flags"})}},(WPGlobusOptions=i.extend({},WPGlobusOptions,e)).init())});
includes/js/wpglobus-widgets.js CHANGED
@@ -349,21 +349,26 @@
349
 
350
  if ( dis ) return true;
351
 
352
- clone = $('#'+id).clone();
353
- $(element).addClass('wpglobus-dialog-field-source hidden');
354
- name = element.attr('name');
355
- $(clone).attr('id', 'wpglobus-'+id);
356
- $(clone).attr('name', 'wpglobus-'+name);
357
- $(clone).attr('data-source-id', id);
358
- $(clone).attr('class', 'wpglobus-dialog-field');
359
- $(clone).attr('style', 'width:90%;');
360
- text = WPGlobusCore.TextFilter($(element).val(), WPGlobusCoreData.language);
361
- $(clone).val(text);
362
- $('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+id+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(element);
363
- $(clone).insertAfter(element);
364
- if ( 'input[type="text"]' == type && '' != text ) {
365
- var w_id = element.parents('.widget').attr('id');
366
- $('#'+w_id+' .in-widget-title').text(': '+text);
 
 
 
 
 
367
  }
368
  });
369
  },
349
 
350
  if ( dis ) return true;
351
 
352
+ if ( -1 != id.indexOf('-title') ) {
353
+ /**
354
+ * @since 2.5 Set multilingual field for title only.
355
+ */
356
+ clone = $('#'+id).clone();
357
+ $(element).addClass('wpglobus-dialog-field-source hidden');
358
+ name = element.attr('name');
359
+ $(clone).attr('id', 'wpglobus-'+id);
360
+ $(clone).attr('name', 'wpglobus-'+name);
361
+ $(clone).attr('data-source-id', id);
362
+ $(clone).attr('class', 'wpglobus-dialog-field');
363
+ $(clone).attr('style', 'width:90%;');
364
+ text = WPGlobusCore.TextFilter($(element).val(), WPGlobusCoreData.language);
365
+ $(clone).val(text);
366
+ $('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+id+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(element);
367
+ $(clone).insertAfter(element);
368
+ if ( 'input[type="text"]' == type && '' != text ) {
369
+ var w_id = element.parents('.widget').attr('id');
370
+ $('#'+w_id+' .in-widget-title').text(': '+text);
371
+ }
372
  }
373
  });
374
  },
includes/js/wpglobus-widgets.min.js CHANGED
@@ -1 +1 @@
1
- !function(b){"use strict";var p;"undefined"!=typeof WPGlobusWidgets&&(p={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){p.addElements(),p.attachListeners(),p.arbitraryTextOrHTML()},wysiwygClean:function(){b(".wpglobus-dialog-field").each(function(e,t){var i,o=b(t).data("source-id");1==b("#"+o+"-tmce").size()&&(i=b(t).next(".wpglobus_dialog_start"),b(t).remove(),b(i).remove())})},setupWidgetControl:function(o,e,i){var t,a,n,l,d,r,s,g,u,c=!1;b.each(p.editor,function(e,t){if(t.widgetName==o)return!(c=!0)}),c||(""==(a=e.$el[0].id)&&(t=e.$el[0].offsetParent,void 0===(a=b(t).attr("id"))&&b(".widget").each(function(e,t){var i=b(t).attr("id");if(-1!=i.indexOf(o))return a=i,!1})),n="#"+a+" #widget-"+o+"-text",l="#"+a+" #widget-"+o+"-title",p.editor[i.id]={},p.editor[i.id].widgetName=o,p.editor[i.id].controls=e,p.editor[i.id].sourceTitleSelector=l,p.editor[i.id].titleSelector=null,p.editor[i.id].sourceSelector=n,p.editor[i.id].content=b(n).val(),p.editor[i.id].saveSelector="#"+a+" #widget-"+o+"-savewidget",p.editor[i.id].languageSelector="#"+a+" .wpglobus-current-language",p.editor[i.id].inWidgetTitleSelector="#"+a+" .in-widget-title",d=WPGlobusCore.TextFilter(p.editor[i.id].content,WPGlobusCoreData.language,"RETURN_EMPTY"),b("#"+i.id).val(d),s=r="",b.each(WPGlobusCoreData.enabled_languages,function(e,t){r=(r=(r=(r=(r=(r=(r='<a href="#" onclick="return false;" class="item" data-widget-id="{{widgetID}}" data-source="{{source}}" data-editor-id="{{editorID}}" data-language="{{language}}" data-widget-name="{{widgetName}}" style="text-align:center;"><span>{{item}}</span></a>').replace("{{language}}",t)).replace("{{item}}",WPGlobusCoreData.en_language_name[t])).replace("{{widgetName}}",o)).replace("{{widgetID}}",a)).replace("{{editorID}}",i.id)).replace("{{source}}",n),s+=r}),g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+a+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="'+WPGlobusCoreData.language+'" style="">'+WPGlobusCoreData.language+'</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+s+"</div></div>",b("#"+a+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(p.editor[i.id].titleSelector="#"+e.fields.title[0].id),p.arbitraryWidgetTitle(i.id),b(n).hasClass("hidden")&&(u=b(n).parent(),b(u).find("div.wpglobus-widgets.wpglobus_dialog_start.wpglobus_dialog_icon").css({display:"none"})))},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(b("#"+p.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);b(p.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){p.languageBoxTimeout=setTimeout(function(){p.languageBoxActive=!1,b(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t,i,o="",o="keyup"==e.type&&"tinymce"==e.target.id?b(e.target).data("id"):e.target.id;p.editor[o]&&(t=b(p.editor[o].languageSelector).data("language"),i="",i=tinymce.get(o).isHidden()?b("#"+o).val():tinymce.get(o).getContent({format:"raw"}),p.editor[o].content=WPGlobusCore.getString(p.editor[o].content,i,t),b(p.editor[o].sourceSelector).val(p.editor[o].content))}b(document).on("click",".switch-wpglobus-language",function(e){var t,i,o;p.languageBoxActive||(p.languageBoxActive=!0,i=(t=b(this)).data("widget-id"),(o=t.position()).top+=34,o.left+=10,b("#"+i+" .wpglobus-language-box").css({display:"block",top:o.top+"px",left:o.left+"px"}),p.setBoxTimeout())}),b(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(p.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){b(".wpglobus-language-box").css({display:"none"}),p.languageBoxActive=!1}),b(document).on("click",".wpglobus-language-box .item",function(e){var t=b(this),i=t.data("language"),o=t.data("widget-id"),a=t.data("editor-id");b("#"+o+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(p.editor[a].content,i,"RETURN_EMPTY");tinymce.get(a).setContent(n,{format:"raw"}),b("textarea#"+a).val(n)}),b(document).on("tinymce-editor-setup",function(e,i){b.each(wp.textWidgets.widgetControls,function(e,t){p.setupWidgetControl(e,t,i)})}),b(document).on("tinymce-editor-init",function(e,t){b(document).on("mouseenter",p.editor[t.id].saveSelector,function(e){b(p.editor[t.id].sourceTitleSelector).val(b(p.editor[t.id].titleSelector).val()),b(p.editor[t.id].sourceSelector).val(p.editor[t.id].content)}),b(document).on("click",p.editor[t.id].saveSelector,function(e){p.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),b("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,o=[];o[0]='input[type="text"]',o[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",b.each(o,function(e,t){p.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",b.each(o,function(e,t){p.makeClone(i,t)}))},makeClone:function(e,s){b(e+" "+s).each(function(e,t){var i,o,a,n,l=b(t),d=!1,r=l.attr("id");return void 0===r||-1!=r.indexOf("-number")||""==r||(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=r.indexOf(e))return!(d=!0)}),!!d||(i=b("#"+r).clone(),b(l).addClass("wpglobus-dialog-field-source hidden"),o=l.attr("name"),b(i).attr("id","wpglobus-"+r),b(i).attr("name","wpglobus-"+o),b(i).attr("data-source-id",r),b(i).attr("class","wpglobus-dialog-field"),b(i).attr("style","width:90%;"),a=WPGlobusCore.TextFilter(b(l).val(),WPGlobusCoreData.language),b(i).val(a),b('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+r+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(l),b(i).insertAfter(l),void('input[type="text"]'==s&&""!=a&&(n=l.parents(".widget").attr("id"),b("#"+n+" .in-widget-title").text(": "+a)))))})},attachListeners:function(){b(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")&&-1==i.data.indexOf("delete_widget=1")){if(p.saveArbitraryTextOrHTML){var o=WPGlobusCore.TextFilter(p.editor[p.saveArbitraryTextOrHTML].content,b(p.editor[p.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(p.saveArbitraryTextOrHTML).isHidden()?(b("#"+p.saveArbitraryTextOrHTML).val(o),b("#"+p.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(p.saveArbitraryTextOrHTML).setContent(o,{format:"raw"}),p.arbitraryWidgetTitle(p.saveArbitraryTextOrHTML),void(p.saveArbitraryTextOrHTML=!1)}var a=(a=i.data.split("widget-id="))[1].split("&");b(".widget-liquid-right .widget").each(function(e,t){var i=b(t).attr("id");-1!==i.indexOf(a[0])&&(p.addElements("id",i),p.wysiwygClean())})}}),b("body").on("change",".wpglobus-dialog-field",function(){var i,o,a=b(this),e="#"+a.data("source-id"),n="";i=b(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(b.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(o=t==WPGlobusCoreData.language?a.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(o,t))}),b(e).val(n)):b(e).val(a.val())}),b(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),p.wysiwygClean(),p.imageWidget(this)})},imageWidget:function(e){var t,i,o,a,n,l=b(e).parents(".widget").attr("id");-1!=l.indexOf("media_image")&&(t=b("#"+l+" .in-widget-title"),-1!=(i=b("#"+l).find('input[type="text"]').attr("id")).indexOf(".")?(o="wpg-"+i.replace(".","_"),b("#"+l).find('input[type="text"]').attr("name",o),WPGlobusDialogApp.addElement(o)&&(a=b("#"+l).find('input[name="'+o+'"]'),n=WPGlobusCore.getTranslations(a.val())[WPGlobusCoreData.language],t.text(": "+n),setTimeout(function(){b("#wpglobus-"+o).val(n)},1e3))):WPGlobusDialogApp.addElement(i)&&(n=WPGlobusCore.getTranslations(b("#"+i).val())[WPGlobusCoreData.language],t.text(": "+n),setTimeout(function(){b("#wpglobus-"+i).val(n)},1e3)))},__getEditorContent:function(){if(0!=Object.keys(p.editor).length)for(var o in console.log("WPGlobusWidgets editors length is: ",Object.keys(p.editor).length),p.editor)console.log("editor : ",o," -> widgetName: ",p.editor[o].widgetName),console.log("source content: ",p.editor[o].content),b.each(WPGlobusCoreData.enabled_languages,function(e,t){console.log("Language: ",t);var i=WPGlobusCore.TextFilter(p.editor[o].content,t,"RETURN_EMPTY");""==i?console.log("empty"):console.log("Content: ",i)}),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")},__getEditorLanguage:function(){if(0!=Object.keys(p.editor).length)for(var e in console.log("WPGlobusWidgets editors length is: ",Object.keys(p.editor).length),p.editor)console.log("editor : ",e," -> widgetName: ",p.editor[e].widgetName),console.log("current language : ",b(p.editor[e].languageSelector).data("language")),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")}},WPGlobusWidgets=b.extend({},WPGlobusWidgets,p))}(jQuery);
1
+ !function(b){"use strict";var p;"undefined"!=typeof WPGlobusWidgets&&(p={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){p.addElements(),p.attachListeners(),p.arbitraryTextOrHTML()},wysiwygClean:function(){b(".wpglobus-dialog-field").each(function(e,t){var i,o=b(t).data("source-id");1==b("#"+o+"-tmce").size()&&(i=b(t).next(".wpglobus_dialog_start"),b(t).remove(),b(i).remove())})},setupWidgetControl:function(o,e,i){var t,a,n,l,d,r,s,g,u,c=!1;b.each(p.editor,function(e,t){if(t.widgetName==o)return!(c=!0)}),c||(""==(a=e.$el[0].id)&&(t=e.$el[0].offsetParent,void 0===(a=b(t).attr("id"))&&b(".widget").each(function(e,t){var i=b(t).attr("id");if(-1!=i.indexOf(o))return a=i,!1})),n="#"+a+" #widget-"+o+"-text",l="#"+a+" #widget-"+o+"-title",p.editor[i.id]={},p.editor[i.id].widgetName=o,p.editor[i.id].controls=e,p.editor[i.id].sourceTitleSelector=l,p.editor[i.id].titleSelector=null,p.editor[i.id].sourceSelector=n,p.editor[i.id].content=b(n).val(),p.editor[i.id].saveSelector="#"+a+" #widget-"+o+"-savewidget",p.editor[i.id].languageSelector="#"+a+" .wpglobus-current-language",p.editor[i.id].inWidgetTitleSelector="#"+a+" .in-widget-title",d=WPGlobusCore.TextFilter(p.editor[i.id].content,WPGlobusCoreData.language,"RETURN_EMPTY"),b("#"+i.id).val(d),s=r="",b.each(WPGlobusCoreData.enabled_languages,function(e,t){r=(r=(r=(r=(r=(r=(r='<a href="#" onclick="return false;" class="item" data-widget-id="{{widgetID}}" data-source="{{source}}" data-editor-id="{{editorID}}" data-language="{{language}}" data-widget-name="{{widgetName}}" style="text-align:center;"><span>{{item}}</span></a>').replace("{{language}}",t)).replace("{{item}}",WPGlobusCoreData.en_language_name[t])).replace("{{widgetName}}",o)).replace("{{widgetID}}",a)).replace("{{editorID}}",i.id)).replace("{{source}}",n),s+=r}),g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+a+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="'+WPGlobusCoreData.language+'" style="">'+WPGlobusCoreData.language+'</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+s+"</div></div>",b("#"+a+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(p.editor[i.id].titleSelector="#"+e.fields.title[0].id),p.arbitraryWidgetTitle(i.id),b(n).hasClass("hidden")&&(u=b(n).parent(),b(u).find("div.wpglobus-widgets.wpglobus_dialog_start.wpglobus_dialog_icon").css({display:"none"})))},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(b("#"+p.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);b(p.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){p.languageBoxTimeout=setTimeout(function(){p.languageBoxActive=!1,b(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t,i,o="",o="keyup"==e.type&&"tinymce"==e.target.id?b(e.target).data("id"):e.target.id;p.editor[o]&&(t=b(p.editor[o].languageSelector).data("language"),i="",i=tinymce.get(o).isHidden()?b("#"+o).val():tinymce.get(o).getContent({format:"raw"}),p.editor[o].content=WPGlobusCore.getString(p.editor[o].content,i,t),b(p.editor[o].sourceSelector).val(p.editor[o].content))}b(document).on("click",".switch-wpglobus-language",function(e){var t,i,o;p.languageBoxActive||(p.languageBoxActive=!0,i=(t=b(this)).data("widget-id"),(o=t.position()).top+=34,o.left+=10,b("#"+i+" .wpglobus-language-box").css({display:"block",top:o.top+"px",left:o.left+"px"}),p.setBoxTimeout())}),b(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(p.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){b(".wpglobus-language-box").css({display:"none"}),p.languageBoxActive=!1}),b(document).on("click",".wpglobus-language-box .item",function(e){var t=b(this),i=t.data("language"),o=t.data("widget-id"),a=t.data("editor-id");b("#"+o+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(p.editor[a].content,i,"RETURN_EMPTY");tinymce.get(a).setContent(n,{format:"raw"}),b("textarea#"+a).val(n)}),b(document).on("tinymce-editor-setup",function(e,i){b.each(wp.textWidgets.widgetControls,function(e,t){p.setupWidgetControl(e,t,i)})}),b(document).on("tinymce-editor-init",function(e,t){b(document).on("mouseenter",p.editor[t.id].saveSelector,function(e){b(p.editor[t.id].sourceTitleSelector).val(b(p.editor[t.id].titleSelector).val()),b(p.editor[t.id].sourceSelector).val(p.editor[t.id].content)}),b(document).on("click",p.editor[t.id].saveSelector,function(e){p.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),b("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,o=[];o[0]='input[type="text"]',o[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",b.each(o,function(e,t){p.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",b.each(o,function(e,t){p.makeClone(i,t)}))},makeClone:function(e,s){b(e+" "+s).each(function(e,t){var i,o,a,n,l=b(t),d=!1,r=l.attr("id");return void 0===r||-1!=r.indexOf("-number")||""==r||(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=r.indexOf(e))return!(d=!0)}),!!d||void(-1!=r.indexOf("-title")&&(n=b("#"+r).clone(),b(l).addClass("wpglobus-dialog-field-source hidden"),i=l.attr("name"),b(n).attr("id","wpglobus-"+r),b(n).attr("name","wpglobus-"+i),b(n).attr("data-source-id",r),b(n).attr("class","wpglobus-dialog-field"),b(n).attr("style","width:90%;"),o=WPGlobusCore.TextFilter(b(l).val(),WPGlobusCoreData.language),b(n).val(o),b('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+r+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(l),b(n).insertAfter(l),'input[type="text"]'==s&&""!=o&&(a=l.parents(".widget").attr("id"),b("#"+a+" .in-widget-title").text(": "+o)))))})},attachListeners:function(){b(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")&&-1==i.data.indexOf("delete_widget=1")){if(p.saveArbitraryTextOrHTML){var o=WPGlobusCore.TextFilter(p.editor[p.saveArbitraryTextOrHTML].content,b(p.editor[p.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(p.saveArbitraryTextOrHTML).isHidden()?(b("#"+p.saveArbitraryTextOrHTML).val(o),b("#"+p.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(p.saveArbitraryTextOrHTML).setContent(o,{format:"raw"}),p.arbitraryWidgetTitle(p.saveArbitraryTextOrHTML),void(p.saveArbitraryTextOrHTML=!1)}var a=(a=i.data.split("widget-id="))[1].split("&");b(".widget-liquid-right .widget").each(function(e,t){var i=b(t).attr("id");-1!==i.indexOf(a[0])&&(p.addElements("id",i),p.wysiwygClean())})}}),b("body").on("change",".wpglobus-dialog-field",function(){var i,o,a=b(this),e="#"+a.data("source-id"),n="";i=b(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(b.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(o=t==WPGlobusCoreData.language?a.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(o,t))}),b(e).val(n)):b(e).val(a.val())}),b(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),p.wysiwygClean(),p.imageWidget(this)})},imageWidget:function(e){var t,i,o,a,n,l=b(e).parents(".widget").attr("id");-1!=l.indexOf("media_image")&&(t=b("#"+l+" .in-widget-title"),-1!=(i=b("#"+l).find('input[type="text"]').attr("id")).indexOf(".")?(o="wpg-"+i.replace(".","_"),b("#"+l).find('input[type="text"]').attr("name",o),WPGlobusDialogApp.addElement(o)&&(a=b("#"+l).find('input[name="'+o+'"]'),n=WPGlobusCore.getTranslations(a.val())[WPGlobusCoreData.language],t.text(": "+n),setTimeout(function(){b("#wpglobus-"+o).val(n)},1e3))):WPGlobusDialogApp.addElement(i)&&(n=WPGlobusCore.getTranslations(b("#"+i).val())[WPGlobusCoreData.language],t.text(": "+n),setTimeout(function(){b("#wpglobus-"+i).val(n)},1e3)))},__getEditorContent:function(){if(0!=Object.keys(p.editor).length)for(var o in console.log("WPGlobusWidgets editors length is: ",Object.keys(p.editor).length),p.editor)console.log("editor : ",o," -> widgetName: ",p.editor[o].widgetName),console.log("source content: ",p.editor[o].content),b.each(WPGlobusCoreData.enabled_languages,function(e,t){console.log("Language: ",t);var i=WPGlobusCore.TextFilter(p.editor[o].content,t,"RETURN_EMPTY");""==i?console.log("empty"):console.log("Content: ",i)}),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")},__getEditorLanguage:function(){if(0!=Object.keys(p.editor).length)for(var e in console.log("WPGlobusWidgets editors length is: ",Object.keys(p.editor).length),p.editor)console.log("editor : ",e," -> widgetName: ",p.editor[e].widgetName),console.log("current language : ",b(p.editor[e].languageSelector).data("language")),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")}},WPGlobusWidgets=b.extend({},WPGlobusWidgets,p))}(jQuery);
languages/wpglobus-ar.po CHANGED
@@ -831,7 +831,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
831
  msgstr ""
832
 
833
  #: includes/builders/class-wpglobus-builder.php:278,
834
- #: includes/class-wpglobus.php:3550
835
  msgid "Save draft before using extra language."
836
  msgstr ""
837
 
@@ -965,11 +965,11 @@ msgstr ""
965
  msgid "*) Available after the menu is saved."
966
  msgstr ""
967
 
968
- #: includes/class-wpglobus.php:3998
969
  msgid "You must enable Pretty Permalinks to use WPGlobus."
970
  msgstr ""
971
 
972
- #: includes/class-wpglobus.php:4000
973
  msgid ""
974
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
975
  "default option."
831
  msgstr ""
832
 
833
  #: includes/builders/class-wpglobus-builder.php:278,
834
+ #: includes/class-wpglobus.php:3559
835
  msgid "Save draft before using extra language."
836
  msgstr ""
837
 
965
  msgid "*) Available after the menu is saved."
966
  msgstr ""
967
 
968
+ #: includes/class-wpglobus.php:4007
969
  msgid "You must enable Pretty Permalinks to use WPGlobus."
970
  msgstr ""
971
 
972
+ #: includes/class-wpglobus.php:4009
973
  msgid ""
974
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
975
  "default option."
languages/wpglobus-be.po CHANGED
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3550
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -1013,13 +1013,13 @@ msgstr "Нужен мультиязычный ярлык?"
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Доступно после сохранения меню."
1015
 
1016
- #: includes/class-wpglobus.php:3998
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr ""
1019
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1020
  "ссылки."
1021
 
1022
- #: includes/class-wpglobus.php:4000
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3559
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Доступно после сохранения меню."
1015
 
1016
+ #: includes/class-wpglobus.php:4007
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr ""
1019
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1020
  "ссылки."
1021
 
1022
+ #: includes/class-wpglobus.php:4009
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
languages/wpglobus-bg_BG.po CHANGED
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3550
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -941,11 +941,11 @@ msgstr ""
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:3998
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4000
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3559
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4007
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4009
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-de_CH.po CHANGED
@@ -843,7 +843,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
843
  msgstr ""
844
 
845
  #: includes/builders/class-wpglobus-builder.php:278,
846
- #: includes/class-wpglobus.php:3550
847
  msgid "Save draft before using extra language."
848
  msgstr ""
849
 
@@ -977,12 +977,12 @@ msgstr ""
977
  msgid "*) Available after the menu is saved."
978
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
979
 
980
- #: includes/class-wpglobus.php:3998
981
  msgid "You must enable Pretty Permalinks to use WPGlobus."
982
  msgstr ""
983
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
984
 
985
- #: includes/class-wpglobus.php:4000
986
  msgid ""
987
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
988
  "default option."
843
  msgstr ""
844
 
845
  #: includes/builders/class-wpglobus-builder.php:278,
846
+ #: includes/class-wpglobus.php:3559
847
  msgid "Save draft before using extra language."
848
  msgstr ""
849
 
977
  msgid "*) Available after the menu is saved."
978
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
979
 
980
+ #: includes/class-wpglobus.php:4007
981
  msgid "You must enable Pretty Permalinks to use WPGlobus."
982
  msgstr ""
983
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
984
 
985
+ #: includes/class-wpglobus.php:4009
986
  msgid ""
987
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
988
  "default option."
languages/wpglobus-de_DE.po CHANGED
@@ -844,7 +844,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
844
  msgstr ""
845
 
846
  #: includes/builders/class-wpglobus-builder.php:278,
847
- #: includes/class-wpglobus.php:3550
848
  msgid "Save draft before using extra language."
849
  msgstr ""
850
 
@@ -978,12 +978,12 @@ msgstr ""
978
  msgid "*) Available after the menu is saved."
979
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
980
 
981
- #: includes/class-wpglobus.php:3998
982
  msgid "You must enable Pretty Permalinks to use WPGlobus."
983
  msgstr ""
984
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
985
 
986
- #: includes/class-wpglobus.php:4000
987
  msgid ""
988
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
989
  "default option."
844
  msgstr ""
845
 
846
  #: includes/builders/class-wpglobus-builder.php:278,
847
+ #: includes/class-wpglobus.php:3559
848
  msgid "Save draft before using extra language."
849
  msgstr ""
850
 
978
  msgid "*) Available after the menu is saved."
979
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
980
 
981
+ #: includes/class-wpglobus.php:4007
982
  msgid "You must enable Pretty Permalinks to use WPGlobus."
983
  msgstr ""
984
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
985
 
986
+ #: includes/class-wpglobus.php:4009
987
  msgid ""
988
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
989
  "default option."
languages/wpglobus-el.po CHANGED
@@ -808,7 +808,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
- #: includes/class-wpglobus.php:3550
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
@@ -942,11 +942,11 @@ msgstr ""
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
- #: includes/class-wpglobus.php:3998
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
- #: includes/class-wpglobus.php:4000
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
+ #: includes/class-wpglobus.php:3559
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
+ #: includes/class-wpglobus.php:4007
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
+ #: includes/class-wpglobus.php:4009
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
languages/wpglobus-en_AU.po CHANGED
@@ -880,7 +880,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
- #: includes/class-wpglobus.php:3550
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
@@ -1014,11 +1014,11 @@ msgstr "Need a multilingual slug?"
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
- #: includes/class-wpglobus.php:3998
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
- #: includes/class-wpglobus.php:4000
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
+ #: includes/class-wpglobus.php:3559
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
+ #: includes/class-wpglobus.php:4007
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
+ #: includes/class-wpglobus.php:4009
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
languages/wpglobus-en_CA.po CHANGED
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3550
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -1013,11 +1013,11 @@ msgstr "Need a multilingual slug?"
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:3998
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4000
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3559
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4007
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4009
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-en_GB.po CHANGED
@@ -880,7 +880,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
- #: includes/class-wpglobus.php:3550
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
@@ -1014,11 +1014,11 @@ msgstr "Need a multilingual slug?"
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
- #: includes/class-wpglobus.php:3998
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
- #: includes/class-wpglobus.php:4000
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
+ #: includes/class-wpglobus.php:3559
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
+ #: includes/class-wpglobus.php:4007
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
+ #: includes/class-wpglobus.php:4009
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
languages/wpglobus-en_NZ.po CHANGED
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3550
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -1013,11 +1013,11 @@ msgstr "Need a multilingual slug?"
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:3998
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4000
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3559
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4007
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4009
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-en_US.po CHANGED
@@ -883,7 +883,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
883
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
884
 
885
  #: includes/builders/class-wpglobus-builder.php:278,
886
- #: includes/class-wpglobus.php:3550
887
  msgid "Save draft before using extra language."
888
  msgstr "Save draft before using extra language."
889
 
@@ -1021,11 +1021,11 @@ msgstr "Need a multilingual slug?"
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Available after the menu is saved."
1023
 
1024
- #: includes/class-wpglobus.php:3998
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1027
 
1028
- #: includes/class-wpglobus.php:4000
1029
  msgid ""
1030
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1031
  "default option."
883
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
884
 
885
  #: includes/builders/class-wpglobus-builder.php:278,
886
+ #: includes/class-wpglobus.php:3559
887
  msgid "Save draft before using extra language."
888
  msgstr "Save draft before using extra language."
889
 
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Available after the menu is saved."
1023
 
1024
+ #: includes/class-wpglobus.php:4007
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1027
 
1028
+ #: includes/class-wpglobus.php:4009
1029
  msgid ""
1030
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1031
  "default option."
languages/wpglobus-en_ZA.po CHANGED
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3550
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -1013,11 +1013,11 @@ msgstr "Need a multilingual slug?"
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:3998
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4000
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3559
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4007
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4009
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-es_AR.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CL.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CO.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CR.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_ES.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_GT.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_MX.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_PE.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_PR.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_VE.po CHANGED
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3550
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -976,12 +976,12 @@ msgstr ""
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:3998
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4000
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3559
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4007
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4009
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-et.po CHANGED
@@ -808,7 +808,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
- #: includes/class-wpglobus.php:3550
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
@@ -942,11 +942,11 @@ msgstr ""
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
- #: includes/class-wpglobus.php:3998
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
- #: includes/class-wpglobus.php:4000
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
+ #: includes/class-wpglobus.php:3559
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
+ #: includes/class-wpglobus.php:4007
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
+ #: includes/class-wpglobus.php:4009
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
languages/wpglobus-fr_BE.po CHANGED
@@ -902,7 +902,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
902
  msgstr ""
903
 
904
  #: includes/builders/class-wpglobus-builder.php:278,
905
- #: includes/class-wpglobus.php:3550
906
  msgid "Save draft before using extra language."
907
  msgstr ""
908
 
@@ -1036,13 +1036,13 @@ msgstr "Vous avez besoin d’un identifiant multilingue ?"
1036
  msgid "*) Available after the menu is saved."
1037
  msgstr "*) Disponible après que le menu ait été enregistré."
1038
 
1039
- #: includes/class-wpglobus.php:3998
1040
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1041
  msgstr ""
1042
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1043
  "correctement."
1044
 
1045
- #: includes/class-wpglobus.php:4000
1046
  msgid ""
1047
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1048
  "default option."
902
  msgstr ""
903
 
904
  #: includes/builders/class-wpglobus-builder.php:278,
905
+ #: includes/class-wpglobus.php:3559
906
  msgid "Save draft before using extra language."
907
  msgstr ""
908
 
1036
  msgid "*) Available after the menu is saved."
1037
  msgstr "*) Disponible après que le menu ait été enregistré."
1038
 
1039
+ #: includes/class-wpglobus.php:4007
1040
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1041
  msgstr ""
1042
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1043
  "correctement."
1044
 
1045
+ #: includes/class-wpglobus.php:4009
1046
  msgid ""
1047
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1048
  "default option."
languages/wpglobus-fr_CA.po CHANGED
@@ -904,7 +904,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
904
  msgstr ""
905
 
906
  #: includes/builders/class-wpglobus-builder.php:278,
907
- #: includes/class-wpglobus.php:3550
908
  msgid "Save draft before using extra language."
909
  msgstr ""
910
 
@@ -1038,13 +1038,13 @@ msgstr "Vous avez besoin d’un identifiant multilingue ?"
1038
  msgid "*) Available after the menu is saved."
1039
  msgstr "*) Disponible après que le menu ait été enregistré."
1040
 
1041
- #: includes/class-wpglobus.php:3998
1042
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1043
  msgstr ""
1044
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1045
  "correctement."
1046
 
1047
- #: includes/class-wpglobus.php:4000
1048
  msgid ""
1049
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1050
  "default option."
904
  msgstr ""
905
 
906
  #: includes/builders/class-wpglobus-builder.php:278,
907
+ #: includes/class-wpglobus.php:3559
908
  msgid "Save draft before using extra language."
909
  msgstr ""
910
 
1038
  msgid "*) Available after the menu is saved."
1039
  msgstr "*) Disponible après que le menu ait été enregistré."
1040
 
1041
+ #: includes/class-wpglobus.php:4007
1042
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1043
  msgstr ""
1044
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1045
  "correctement."
1046
 
1047
+ #: includes/class-wpglobus.php:4009
1048
  msgid ""
1049
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1050
  "default option."
languages/wpglobus-fr_FR.po CHANGED
@@ -912,7 +912,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
912
  msgstr "Traduisez les permalinks avec notre add-on premium, WPGlobus Plus!"
913
 
914
  #: includes/builders/class-wpglobus-builder.php:278,
915
- #: includes/class-wpglobus.php:3550
916
  msgid "Save draft before using extra language."
917
  msgstr "Enregistrer le brouillon avant d’utiliser un langage supplémentaire."
918
 
@@ -1051,13 +1051,13 @@ msgstr "Vous avez besoin d’un identifiant multilingue ?"
1051
  msgid "*) Available after the menu is saved."
1052
  msgstr "*) Disponible après que le menu ait été enregistré."
1053
 
1054
- #: includes/class-wpglobus.php:3998
1055
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1056
  msgstr ""
1057
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1058
  "correctement."
1059
 
1060
- #: includes/class-wpglobus.php:4000
1061
  msgid ""
1062
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1063
  "default option."
912
  msgstr "Traduisez les permalinks avec notre add-on premium, WPGlobus Plus!"
913
 
914
  #: includes/builders/class-wpglobus-builder.php:278,
915
+ #: includes/class-wpglobus.php:3559
916
  msgid "Save draft before using extra language."
917
  msgstr "Enregistrer le brouillon avant d’utiliser un langage supplémentaire."
918
 
1051
  msgid "*) Available after the menu is saved."
1052
  msgstr "*) Disponible après que le menu ait été enregistré."
1053
 
1054
+ #: includes/class-wpglobus.php:4007
1055
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1056
  msgstr ""
1057
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1058
  "correctement."
1059
 
1060
+ #: includes/class-wpglobus.php:4009
1061
  msgid ""
1062
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1063
  "default option."
languages/wpglobus-id_ID.po CHANGED
@@ -881,7 +881,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
881
  msgstr ""
882
 
883
  #: includes/builders/class-wpglobus-builder.php:278,
884
- #: includes/class-wpglobus.php:3550
885
  msgid "Save draft before using extra language."
886
  msgstr ""
887
 
@@ -1015,11 +1015,11 @@ msgstr ""
1015
  msgid "*) Available after the menu is saved."
1016
  msgstr "*) Tersedia setelah menu tersebut disimpan."
1017
 
1018
- #: includes/class-wpglobus.php:3998
1019
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1020
  msgstr "Anda harus mengaktifkan Permalinks Cukup menggunakan WPGlobus."
1021
 
1022
- #: includes/class-wpglobus.php:4000
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
881
  msgstr ""
882
 
883
  #: includes/builders/class-wpglobus-builder.php:278,
884
+ #: includes/class-wpglobus.php:3559
885
  msgid "Save draft before using extra language."
886
  msgstr ""
887
 
1015
  msgid "*) Available after the menu is saved."
1016
  msgstr "*) Tersedia setelah menu tersebut disimpan."
1017
 
1018
+ #: includes/class-wpglobus.php:4007
1019
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1020
  msgstr "Anda harus mengaktifkan Permalinks Cukup menggunakan WPGlobus."
1021
 
1022
+ #: includes/class-wpglobus.php:4009
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
languages/wpglobus-ko_KR.po CHANGED
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3550
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -941,11 +941,11 @@ msgstr ""
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:3998
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4000
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3559
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4007
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4009
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-pl_PL.po CHANGED
@@ -834,7 +834,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
834
  msgstr ""
835
 
836
  #: includes/builders/class-wpglobus-builder.php:278,
837
- #: includes/class-wpglobus.php:3550
838
  msgid "Save draft before using extra language."
839
  msgstr ""
840
 
@@ -968,12 +968,12 @@ msgstr ""
968
  msgid "*) Available after the menu is saved."
969
  msgstr "*) Dostępne po zapisaniu menu."
970
 
971
- #: includes/class-wpglobus.php:3998
972
  msgid "You must enable Pretty Permalinks to use WPGlobus."
973
  msgstr ""
974
  "Aby korzystać z WPGlobus'a, musisz ustawić przyjazne bezpośrednie odnośniki."
975
 
976
- #: includes/class-wpglobus.php:4000
977
  msgid ""
978
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
979
  "default option."
834
  msgstr ""
835
 
836
  #: includes/builders/class-wpglobus-builder.php:278,
837
+ #: includes/class-wpglobus.php:3559
838
  msgid "Save draft before using extra language."
839
  msgstr ""
840
 
968
  msgid "*) Available after the menu is saved."
969
  msgstr "*) Dostępne po zapisaniu menu."
970
 
971
+ #: includes/class-wpglobus.php:4007
972
  msgid "You must enable Pretty Permalinks to use WPGlobus."
973
  msgstr ""
974
  "Aby korzystać z WPGlobus'a, musisz ustawić przyjazne bezpośrednie odnośniki."
975
 
976
+ #: includes/class-wpglobus.php:4009
977
  msgid ""
978
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
979
  "default option."
languages/wpglobus-pt_BR.po CHANGED
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3550
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -941,11 +941,11 @@ msgstr ""
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:3998
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4000
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3559
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4007
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4009
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-pt_PT.po CHANGED
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3550
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -941,11 +941,11 @@ msgstr ""
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:3998
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4000
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3559
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4007
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4009
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-ro_RO.po CHANGED
@@ -837,7 +837,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
837
  msgstr ""
838
 
839
  #: includes/builders/class-wpglobus-builder.php:278,
840
- #: includes/class-wpglobus.php:3550
841
  msgid "Save draft before using extra language."
842
  msgstr ""
843
 
@@ -971,11 +971,11 @@ msgstr ""
971
  msgid "*) Available after the menu is saved."
972
  msgstr "*) Disponibil după ce meniul este salvat."
973
 
974
- #: includes/class-wpglobus.php:3998
975
  msgid "You must enable Pretty Permalinks to use WPGlobus."
976
  msgstr "Trebuie să activezi Pretty Permalinks pentru a folosi WPGlobus."
977
 
978
- #: includes/class-wpglobus.php:4000
979
  msgid ""
980
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
981
  "default option."
837
  msgstr ""
838
 
839
  #: includes/builders/class-wpglobus-builder.php:278,
840
+ #: includes/class-wpglobus.php:3559
841
  msgid "Save draft before using extra language."
842
  msgstr ""
843
 
971
  msgid "*) Available after the menu is saved."
972
  msgstr "*) Disponibil după ce meniul este salvat."
973
 
974
+ #: includes/class-wpglobus.php:4007
975
  msgid "You must enable Pretty Permalinks to use WPGlobus."
976
  msgstr "Trebuie să activezi Pretty Permalinks pentru a folosi WPGlobus."
977
 
978
+ #: includes/class-wpglobus.php:4009
979
  msgid ""
980
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
981
  "default option."
languages/wpglobus-ru_RU.po CHANGED
@@ -894,7 +894,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
894
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
895
 
896
  #: includes/builders/class-wpglobus-builder.php:278,
897
- #: includes/class-wpglobus.php:3550
898
  msgid "Save draft before using extra language."
899
  msgstr "Сохраните черновик перед переключением на другой язык."
900
 
@@ -1034,13 +1034,13 @@ msgstr "Нужен мультиязычный ярлык?"
1034
  msgid "*) Available after the menu is saved."
1035
  msgstr "*) Доступно после сохранения меню."
1036
 
1037
- #: includes/class-wpglobus.php:3998
1038
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1039
  msgstr ""
1040
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1041
  "ссылки."
1042
 
1043
- #: includes/class-wpglobus.php:4000
1044
  msgid ""
1045
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1046
  "default option."
894
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
895
 
896
  #: includes/builders/class-wpglobus-builder.php:278,
897
+ #: includes/class-wpglobus.php:3559
898
  msgid "Save draft before using extra language."
899
  msgstr "Сохраните черновик перед переключением на другой язык."
900
 
1034
  msgid "*) Available after the menu is saved."
1035
  msgstr "*) Доступно после сохранения меню."
1036
 
1037
+ #: includes/class-wpglobus.php:4007
1038
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1039
  msgstr ""
1040
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1041
  "ссылки."
1042
 
1043
+ #: includes/class-wpglobus.php:4009
1044
  msgid ""
1045
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1046
  "default option."
languages/wpglobus-sv_SE.po CHANGED
@@ -833,7 +833,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
- #: includes/class-wpglobus.php:3550
837
  msgid "Save draft before using extra language."
838
  msgstr "Spara utkast innan du använder extra språk."
839
 
@@ -967,11 +967,11 @@ msgstr ""
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Tillgängligt när menyn sparats."
969
 
970
- #: includes/class-wpglobus.php:3998
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr "Du måste aktivera Vackra Permalänkar för att använda WPGlobus."
973
 
974
- #: includes/class-wpglobus.php:4000
975
  msgid ""
976
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
977
  "default option."
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
+ #: includes/class-wpglobus.php:3559
837
  msgid "Save draft before using extra language."
838
  msgstr "Spara utkast innan du använder extra språk."
839
 
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Tillgängligt när menyn sparats."
969
 
970
+ #: includes/class-wpglobus.php:4007
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr "Du måste aktivera Vackra Permalänkar för att använda WPGlobus."
973
 
974
+ #: includes/class-wpglobus.php:4009
975
  msgid ""
976
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
977
  "default option."
languages/wpglobus-tr_TR.po CHANGED
@@ -833,7 +833,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
- #: includes/class-wpglobus.php:3550
837
  msgid "Save draft before using extra language."
838
  msgstr ""
839
 
@@ -967,12 +967,12 @@ msgstr ""
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Menü kaydedildikten sonra kullanılabilir."
969
 
970
- #: includes/class-wpglobus.php:3998
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr ""
973
  "WPGlobus' u kullanabilmek için Pretty Permalinks' i etkinleştirmelisiniz."
974
 
975
- #: includes/class-wpglobus.php:4000
976
  msgid ""
977
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
978
  "default option."
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
+ #: includes/class-wpglobus.php:3559
837
  msgid "Save draft before using extra language."
838
  msgstr ""
839
 
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Menü kaydedildikten sonra kullanılabilir."
969
 
970
+ #: includes/class-wpglobus.php:4007
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr ""
973
  "WPGlobus' u kullanabilmek için Pretty Permalinks' i etkinleştirmelisiniz."
974
 
975
+ #: includes/class-wpglobus.php:4009
976
  msgid ""
977
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
978
  "default option."
languages/wpglobus-uk.po CHANGED
@@ -885,7 +885,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
885
  msgstr "Переклад посилань можливий за допомогою WPGlobus-Плюс!"
886
 
887
  #: includes/builders/class-wpglobus-builder.php:278,
888
- #: includes/class-wpglobus.php:3550
889
  msgid "Save draft before using extra language."
890
  msgstr "Збережіть чернетку перед перемиканням на іншу мову."
891
 
@@ -1021,13 +1021,13 @@ msgstr "Потрібен багатомовний ярлик?"
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Доступно після збереження меню."
1023
 
1024
- #: includes/class-wpglobus.php:3998
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr ""
1027
  "Щоб використовувати плагін WPGlobus, необхідно увімкнути SEF URLs - постійні "
1028
  "посилання."
1029
 
1030
- #: includes/class-wpglobus.php:4000
1031
  msgid ""
1032
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1033
  "default option."
885
  msgstr "Переклад посилань можливий за допомогою WPGlobus-Плюс!"
886
 
887
  #: includes/builders/class-wpglobus-builder.php:278,
888
+ #: includes/class-wpglobus.php:3559
889
  msgid "Save draft before using extra language."
890
  msgstr "Збережіть чернетку перед перемиканням на іншу мову."
891
 
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Доступно після збереження меню."
1023
 
1024
+ #: includes/class-wpglobus.php:4007
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr ""
1027
  "Щоб використовувати плагін WPGlobus, необхідно увімкнути SEF URLs - постійні "
1028
  "посилання."
1029
 
1030
+ #: includes/class-wpglobus.php:4009
1031
  msgid ""
1032
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1033
  "default option."
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2020 WPGlobus 2.4.17
2
- # This file is distributed under the same license as the WPGlobus 2.4.17 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.4.17\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -652,7 +652,7 @@ msgstr ""
652
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
653
  msgstr ""
654
 
655
- #: includes/builders/class-wpglobus-builder.php:278, includes/class-wpglobus.php:3550
656
  msgid "Save draft before using extra language."
657
  msgstr ""
658
 
@@ -776,11 +776,11 @@ msgstr ""
776
  msgid "*) Available after the menu is saved."
777
  msgstr ""
778
 
779
- #: includes/class-wpglobus.php:3998
780
  msgid "You must enable Pretty Permalinks to use WPGlobus."
781
  msgstr ""
782
 
783
- #: includes/class-wpglobus.php:4000
784
  msgid "Please go to Settings > Permalinks > Common Settings and choose a non-default option."
785
  msgstr ""
786
 
1
+ # Copyright (C) 2020 WPGlobus 2.5.0
2
+ # This file is distributed under the same license as the WPGlobus 2.5.0 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.5.0\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
652
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
653
  msgstr ""
654
 
655
+ #: includes/builders/class-wpglobus-builder.php:278, includes/class-wpglobus.php:3559
656
  msgid "Save draft before using extra language."
657
  msgstr ""
658
 
776
  msgid "*) Available after the menu is saved."
777
  msgstr ""
778
 
779
+ #: includes/class-wpglobus.php:4007
780
  msgid "You must enable Pretty Permalinks to use WPGlobus."
781
  msgstr ""
782
 
783
+ #: includes/class-wpglobus.php:4009
784
  msgid "Please go to Settings > Permalinks > Common Settings and choose a non-default option."
785
  msgstr ""
786
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tivnetinc, alexgff, tivnet
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 5.0
6
- Tested up to: 5.4
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
@@ -217,35 +217,16 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
217
 
218
  == Changelog ==
219
 
220
- = 2.4.17 =
221
-
222
- * (Core/WidgetsJS) Use `WPGlobusCoreData.language` instead of `WPGlobusCoreData.default_language`; Hide unneeded dialog icons.
223
-
224
- = 2.4.16 =
225
-
226
- * (Integration) The [Advanced Post List](https://wordpress.org/plugins/advanced-post-list/) plugin is now supported.
227
-
228
- = 2.4.15 =
229
 
230
- * (Core/Options) Options Panel: CSS tweaks.
231
- * (Vendor/Yoast) Added filter for changing the output of description for graph `webpage`.
232
- * (Core/Post Types) Added post types of `Advanced Post List` plugin to the hidden types array.
 
233
 
234
- = 2.4.14 =
235
-
236
- * (Core/Post Types) Added post type of `GDPR Cookie Consent` plugin to the hidden types array.
237
- * (Vendor/Yoast) Fixed PHP Notice: Trying to get property 'ID' of non-object.
238
- * (Vendor/Yoast) Revised code of `get_wpseo_meta` function.
239
- * (Vendor/Yoast) Added filter for changing output of graph `webpage`.
240
-
241
- = 2.4.13 =
242
-
243
- * (Builder/Elementor) Disable Elementor support for all post types that don't use the Elementor builder.
244
-
245
- = 2.4.12 =
246
 
247
- * (Core/Class WPGlobus) Added `do_action` to add to the `publish` metabox.
248
- * (Builder/Elementor) Disable Elementor's support for posts that don't use Elementor builder.
249
 
250
  = Earlier versions and Add-ons =
251
 
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 5.0
6
+ Tested up to: 5.5
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
217
 
218
  == Changelog ==
219
 
220
+ = 2.5.0 =
 
 
 
 
 
 
 
 
221
 
222
+ * (Compatibility) Admin and Builders JavaScript code refactored to work with WordPress 5.5.*
223
+ * (Core/WidgetsJS) Fixed issue with non-unique ID.
224
+ * (Options/Languages table) Installed languages moved to the top of the table.
225
+ * (Core/WidgetsJS) Set multilingual field for the title only.
226
 
227
+ = 2.4.17 =
 
 
 
 
 
 
 
 
 
 
 
228
 
229
+ * (Core/WidgetsJS) Use `WPGlobusCoreData.language` instead of `WPGlobusCoreData.default_language`; Hide unneeded dialog icons.
 
230
 
231
  = Earlier versions and Add-ons =
232
 
wpglobus.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
- * Version: 2.4.17
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  exit;
43
  }
44
 
45
- define( 'WPGLOBUS_VERSION', '2.4.17' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48
 
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
+ * Version: 2.5.0
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.5.0' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48