WPGlobus – Multilingual Everything! - Version 2.2.0

Version Description

  • Compatibility: WordPress 5.2
  • Fixed: (Customizer) WPGlobus language selector alignment for WordPress 5.2.
Download this release

Release Info

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

Code changes from version 2.1.15 to 2.2.0

Files changed (96) hide show
  1. data/wpglobus-product-info.json +1 -1
  2. includes/admin/customize/class-wpglobus-customize190.php +219 -137
  3. includes/admin/recommendations/class-wpglobus-admin-recommendations.php +35 -28
  4. includes/builders/elementor/class-wpglobus-elementor.php +6 -4
  5. includes/css/wpglobus-admin-debug.css.map +1 -1
  6. includes/css/wpglobus-admin-tabs.css.map +1 -1
  7. includes/css/wpglobus-admin.css.map +1 -1
  8. includes/css/wpglobus-dialog-ui.css.map +1 -1
  9. includes/css/wpglobus-options.css.map +1 -1
  10. includes/css/wpglobus-special-pages.css.map +1 -1
  11. includes/css/wpglobus.css.map +1 -1
  12. includes/js/wpglobus-admin-47.min.js +1 -1
  13. includes/js/wpglobus-admin-49.min.js +1 -1
  14. includes/js/wpglobus-admin-51.min.js +1 -1
  15. includes/js/wpglobus-admin.min.js +1 -1
  16. includes/js/wpglobus-customize-control170.min.js +1 -1
  17. includes/js/wpglobus-customize-control190.js +2 -1
  18. includes/js/wpglobus-customize-control190.min.js +1 -1
  19. includes/js/wpglobus-form.min.js +1 -1
  20. includes/js/wpglobus-widgets.min.js +1 -1
  21. includes/js/wpglobus-wpseo-21.min.js +1 -1
  22. languages/wpglobus-ar.mo +0 -0
  23. languages/wpglobus-ar.po +14 -14
  24. languages/wpglobus-be.mo +0 -0
  25. languages/wpglobus-be.po +15 -15
  26. languages/wpglobus-bg_BG.mo +0 -0
  27. languages/wpglobus-bg_BG.po +14 -14
  28. languages/wpglobus-de_CH.mo +0 -0
  29. languages/wpglobus-de_CH.po +14 -14
  30. languages/wpglobus-de_DE.mo +0 -0
  31. languages/wpglobus-de_DE.po +14 -14
  32. languages/wpglobus-el.mo +0 -0
  33. languages/wpglobus-el.po +14 -14
  34. languages/wpglobus-en_AU.mo +0 -0
  35. languages/wpglobus-en_AU.po +15 -15
  36. languages/wpglobus-en_CA.mo +0 -0
  37. languages/wpglobus-en_CA.po +15 -15
  38. languages/wpglobus-en_GB.mo +0 -0
  39. languages/wpglobus-en_GB.po +15 -15
  40. languages/wpglobus-en_NZ.mo +0 -0
  41. languages/wpglobus-en_NZ.po +15 -15
  42. languages/wpglobus-en_US.mo +0 -0
  43. languages/wpglobus-en_US.po +16 -16
  44. languages/wpglobus-en_ZA.mo +0 -0
  45. languages/wpglobus-en_ZA.po +15 -15
  46. languages/wpglobus-es_AR.mo +0 -0
  47. languages/wpglobus-es_AR.po +15 -15
  48. languages/wpglobus-es_CL.mo +0 -0
  49. languages/wpglobus-es_CL.po +14 -14
  50. languages/wpglobus-es_CO.mo +0 -0
  51. languages/wpglobus-es_CO.po +14 -14
  52. languages/wpglobus-es_CR.mo +0 -0
  53. languages/wpglobus-es_CR.po +14 -14
  54. languages/wpglobus-es_ES.mo +0 -0
  55. languages/wpglobus-es_ES.po +15 -15
  56. languages/wpglobus-es_GT.mo +0 -0
  57. languages/wpglobus-es_GT.po +14 -14
  58. languages/wpglobus-es_MX.mo +0 -0
  59. languages/wpglobus-es_MX.po +14 -14
  60. languages/wpglobus-es_PE.mo +0 -0
  61. languages/wpglobus-es_PE.po +14 -14
  62. languages/wpglobus-es_PR.mo +0 -0
  63. languages/wpglobus-es_PR.po +14 -14
  64. languages/wpglobus-es_VE.mo +0 -0
  65. languages/wpglobus-es_VE.po +14 -14
  66. languages/wpglobus-et.mo +0 -0
  67. languages/wpglobus-et.po +14 -14
  68. languages/wpglobus-fr_BE.mo +0 -0
  69. languages/wpglobus-fr_BE.po +14 -14
  70. languages/wpglobus-fr_CA.mo +0 -0
  71. languages/wpglobus-fr_CA.po +14 -14
  72. languages/wpglobus-fr_FR.mo +0 -0
  73. languages/wpglobus-fr_FR.po +15 -15
  74. languages/wpglobus-id_ID.mo +0 -0
  75. languages/wpglobus-id_ID.po +15 -15
  76. languages/wpglobus-ko_KR.mo +0 -0
  77. languages/wpglobus-ko_KR.po +14 -14
  78. languages/wpglobus-pl_PL.mo +0 -0
  79. languages/wpglobus-pl_PL.po +15 -15
  80. languages/wpglobus-pt_BR.mo +0 -0
  81. languages/wpglobus-pt_BR.po +15 -15
  82. languages/wpglobus-pt_PT.mo +0 -0
  83. languages/wpglobus-pt_PT.po +15 -15
  84. languages/wpglobus-ro_RO.mo +0 -0
  85. languages/wpglobus-ro_RO.po +14 -14
  86. languages/wpglobus-ru_RU.mo +0 -0
  87. languages/wpglobus-ru_RU.po +15 -15
  88. languages/wpglobus-sv_SE.mo +0 -0
  89. languages/wpglobus-sv_SE.po +14 -14
  90. languages/wpglobus-tr_TR.mo +0 -0
  91. languages/wpglobus-tr_TR.po +14 -14
  92. languages/wpglobus-uk.mo +0 -0
  93. languages/wpglobus-uk.po +14 -14
  94. languages/wpglobus.pot +12 -12
  95. readme.txt +6 -5
  96. wpglobus.php +2 -2
data/wpglobus-product-info.json CHANGED
@@ -1 +1 @@
1
- {"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"1.2.2","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"1.1.0","_api_tested_up_to":"4.9.8"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.0","_api_tested_up_to":"5.0.0"},"wpglobus-for-slider-revolution":{"title":"{:en}WPGlobus for Slider Revolution{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Slider Revolution{:}","_api_new_version":"1.6.0","_api_tested_up_to":"5.0.2"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.0.4"},"wpglobus-multilingual-notices":{"title":"{:en}WPGlobus Multilingual Notices{:}{:ru}WPGlobus - \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f{:}","_api_new_version":"1.0.0","_api_tested_up_to":"5.1"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.1"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.1.55","_api_tested_up_to":"5.1.1"}}
1
+ {"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"1.2.2","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"1.1.0","_api_tested_up_to":"4.9.8"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.0","_api_tested_up_to":"5.0.0"},"wpglobus-for-slider-revolution":{"title":"{:en}WPGlobus for Slider Revolution{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Slider Revolution{:}","_api_new_version":"1.6.0","_api_tested_up_to":"5.0.2"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.0.4"},"wpglobus-multilingual-notices":{"title":"{:en}WPGlobus Multilingual Notices{:}{:ru}WPGlobus - \u043c\u043d\u043e\u0433\u043e\u044f\u0437\u044b\u0447\u043d\u044b\u0435 \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f{:}","_api_new_version":"1.0.0","_api_tested_up_to":"5.1"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.1"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.1.56","_api_tested_up_to":"5.1.1"}}
includes/admin/customize/class-wpglobus-customize190.php CHANGED
@@ -1,8 +1,10 @@
1
  <?php
2
  /**
3
- * Multilingual Customizer
4
- * @package WPGlobus\Admin\Customizer
5
  * @since 1.9.0
 
 
6
  */
7
 
8
  if ( ! class_exists( 'WPGlobus_Customize' ) ) :
@@ -12,60 +14,75 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
12
  */
13
  class WPGlobus_Customize {
14
 
 
 
 
15
  public static function controller() {
16
-
17
- add_action('admin_init', array( __CLASS__, 'on__admin_init'), 1);
18
-
19
  /**
20
- * @see \WP_Customize_Manager::wp_loaded
21
  * It calls the `customize_register` action first,
22
- * and then - the `customize_preview_init` action
 
 
 
 
 
 
 
23
  */
24
- /*
25
- add_action( 'customize_register', array(
26
- 'WPGlobus_Customize',
27
- 'action__customize_register'
28
- ) ); */
29
 
30
  /**
 
 
31
  * @since 1.5.0
32
  */
33
  if ( WPGlobus_WP::is_pagenow( 'customize.php' ) ) {
34
  require_once 'wpglobus-customize-filters.php';
35
  }
36
 
37
- add_action( 'customize_preview_init', array(
38
- 'WPGlobus_Customize',
39
- 'action__customize_preview_init'
40
- ) );
41
 
42
  /**
43
  * This is called by wp-admin/customize.php
44
  */
45
- add_action( 'customize_controls_enqueue_scripts', array(
46
- 'WPGlobus_Customize',
47
- 'action__customize_controls_enqueue_scripts'
48
- ), 1000 );
 
49
 
50
  if ( WPGlobus_WP::is_admin_doing_ajax() ) {
51
- add_filter( 'clean_url', array(
52
- 'WPGlobus_Customize',
53
- 'filter__clean_url'
54
- ), 10, 2 );
 
 
55
  }
56
 
57
  /**
58
- * @see wp-includes\class-wp-customize-manager.php
 
59
  * @since 1.9.3
 
60
  */
61
- add_filter( 'customize_changeset_save_data', array(
62
- __CLASS__,
63
- 'filter__customize_changeset_save_data'
64
- ), 1, 2 );
 
 
65
 
66
  }
67
-
68
  /**
 
 
69
  * @since 1.9.3
70
  */
71
  public static function on__admin_init() {
@@ -76,24 +93,24 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
76
  'sidebars_widgets',
77
  'custom_css_post_id',
78
  'wpglobus_blogname',
79
- 'wpglobus_blogdescription'
80
  );
81
-
82
  $mods = get_theme_mods();
83
 
84
  $filtered_mods = array();
85
- foreach( $mods as $mod_key=>$mod_value ) {
86
-
87
- if ( in_array($mod_key, $excluded_mods) ) {
88
  continue;
89
  }
90
-
91
- if ( ! is_string($mod_value) ) {
92
  continue;
93
- }
94
-
95
- $filtered_mods[$mod_key] = $mod_value;
96
-
97
  }
98
 
99
  /**
@@ -101,86 +118,119 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
101
  *
102
  * @since 1.9.3
103
  *
104
- * @param array $filtered_mods Filtered theme modifications.
105
- * @param array|void $mods Theme modifications.
106
- */
107
- $filtered_mods = apply_filters('wpglobus_customize_filtered_mods', $filtered_mods, $mods);
108
-
109
- foreach( $filtered_mods as $mod_key=>$mod_value ) {
110
 
111
  /**
112
- * @see filter "pre_set_theme_mod_{$name}" in \wp-includes\theme.php
113
  */
114
- add_filter( "pre_set_theme_mod_{$mod_key}", array(
115
- __CLASS__,
116
- 'filter__pre_set_theme_mod'
117
- ), 1, 2 );
118
-
 
 
119
  }
120
  }
121
-
122
  /**
123
  * Filter a theme mod.
124
  *
125
  * @since 1.9.3
126
- */
127
- public static function filter__pre_set_theme_mod($value, $old_value) {
128
-
129
- if ( ! is_string($value) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
130
  return $value;
131
  }
132
-
133
- $new_value = self::_build_multilingual_string($value);
134
-
135
  if ( $new_value ) {
136
  return $new_value;
137
  }
138
-
139
  return $value;
140
 
141
  }
142
-
143
  /**
144
  * Save/update a changeset.
145
  *
146
  * @since 1.9.3
 
 
 
 
 
147
  */
148
- public static function filter__customize_changeset_save_data($data, $filter_context) {
149
-
150
- foreach( $data as $option=>$value ) {
 
 
 
 
 
 
 
 
 
 
151
 
152
- $new_value = self::_build_multilingual_string($value['value']);
153
-
154
  if ( $new_value ) {
155
- $data[$option]['value'] = $new_value;
156
  }
157
-
158
  }
159
-
160
  return $data;
161
-
162
  }
163
-
164
  /**
165
  * Build standard WPGlobus multilingual string.
166
  *
167
  * @since 1.9.3
168
- */
169
- public static function _build_multilingual_string($value) {
 
 
 
 
170
 
171
  /**
 
 
172
  * @since 1.9.6
173
  */
174
- if ( ! is_string($value) ) {
175
  return $value;
176
  }
177
-
178
- $new_value = '';
179
-
180
  if ( false === strpos( $value, '|||' ) ) {
181
  $new_value = false;
182
  } else {
183
-
184
  $arr1 = array();
185
  $arr = explode( '|||', $value );
186
  foreach ( $arr as $k => $val ) {
@@ -189,15 +239,15 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
189
  $arr1[ WPGlobus::Config()->enabled_languages[ $k ] ] = $val;
190
  }
191
  }
192
-
193
  $new_value = WPGlobus_Utils::build_multilingual_string( $arr1 );
194
-
195
  }
196
-
197
  return $new_value;
198
-
199
  }
200
-
201
  /**
202
  * Filter a string to check translations for URL.
203
  * // We build multilingual URLs in customizer using the ':::' delimiter.
@@ -233,19 +283,21 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
233
  /**
234
  * Add multilingual controls.
235
  * The original controls will be hidden.
236
- * @param WP_Customize_Manager $wp_customize
 
237
  */
238
  public static function action__customize_register( WP_Customize_Manager $wp_customize ) {}
239
 
240
  /**
241
  * Load Customize Preview JS
242
  * Used by hook: 'customize_preview_init'
 
243
  * @see 'customize_preview_init'
244
  */
245
  public static function action__customize_preview_init() {
246
  wp_enqueue_script(
247
  'wpglobus-customize-preview',
248
- WPGlobus::$PLUGIN_DIR_URL . 'includes/js/wpglobus-customize-preview' .
249
  WPGlobus::SCRIPT_SUFFIX() . '.js',
250
  array( 'jquery', 'customize-preview' ),
251
  WPGLOBUS_VERSION,
@@ -257,7 +309,7 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
257
  array(
258
  'version' => WPGLOBUS_VERSION,
259
  'blogname' => WPGlobus_Core::text_filter( get_option( 'blogname' ), WPGlobus::Config()->language ),
260
- 'blogdescription' => WPGlobus_Core::text_filter( get_option( 'blogdescription' ), WPGlobus::Config()->language )
261
  )
262
  );
263
  }
@@ -267,68 +319,83 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
267
  */
268
  public static function action__customize_controls_enqueue_scripts() {
269
 
 
 
270
  /**
271
- * @see wp.customize.control elements
272
  * for example wp.customize.control('blogname');
273
  */
274
  $disabled_setting_mask = array();
275
 
276
- /** navigation menu elements */
277
  $disabled_setting_mask[] = 'nav_menu_item';
278
  $disabled_setting_mask[] = 'nav_menu[';
279
  $disabled_setting_mask[] = 'nav_menu_locations';
280
  $disabled_setting_mask[] = 'new_menu_name';
281
 
282
- /** widgets */
283
  $disabled_setting_mask[] = 'widgets';
284
 
285
- /** color elements */
286
  $disabled_setting_mask[] = 'color';
287
 
288
- /** yoast seo */
289
  $disabled_setting_mask[] = 'wpseo';
290
 
291
- /** css elements */
292
  $disabled_setting_mask[] = 'css';
293
 
294
- /** social networks elements */
295
  $disabled_setting_mask[] = 'facebook';
296
  $disabled_setting_mask[] = 'twitter';
297
  $disabled_setting_mask[] = 'linkedin';
298
  $disabled_setting_mask[] = 'behance';
299
  $disabled_setting_mask[] = 'dribbble';
300
  $disabled_setting_mask[] = 'instagram';
301
- /** since 1.4.4 */
 
 
 
 
302
  $disabled_setting_mask[] = 'tumblr';
303
  $disabled_setting_mask[] = 'flickr';
304
- $disabled_setting_mask[] = 'wordpress';
305
  $disabled_setting_mask[] = 'youtube';
306
  $disabled_setting_mask[] = 'pinterest';
307
  $disabled_setting_mask[] = 'github';
308
  $disabled_setting_mask[] = 'rss';
309
  $disabled_setting_mask[] = 'google';
310
  $disabled_setting_mask[] = 'email';
311
- /** since 1.5.9 */
 
 
 
 
312
  $disabled_setting_mask[] = 'dropbox';
313
  $disabled_setting_mask[] = 'foursquare';
314
  $disabled_setting_mask[] = 'vine';
315
  $disabled_setting_mask[] = 'vimeo';
316
- /** since 1.6.0 */
 
 
 
 
317
  $disabled_setting_mask[] = 'yelp';
318
-
319
- /**
320
  * Exclude fields from Static Front Page section.
321
  * It may be added to customizer in many themes.
322
- *
323
- * @since 1.7.6
324
  */
325
  $disabled_setting_mask[] = 'page_on_front';
326
  $disabled_setting_mask[] = 'page_for_posts';
327
 
328
  /**
329
  * Filter to disable fields in customizer.
330
- * @see wp.customize.control elements
331
  * Returning array.
 
332
  * @since 1.4.0
333
  *
334
  * @param array $disabled_setting_mask An array of disabled masks.
@@ -340,6 +407,7 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
340
  /**
341
  * Filter for element selectors.
342
  * Returning array.
 
343
  * @since 1.4.0
344
  *
345
  * @param array $element_selector An array of selectors.
@@ -350,8 +418,9 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
350
 
351
  /**
352
  * Filter of masks to determine links.
353
- * @see value data-customize-setting-link of element
354
  * Returning array.
 
355
  * @since 1.4.0
356
  *
357
  * @param array $set_link_by An array of masks.
@@ -362,6 +431,7 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
362
  * Filter of disabled sections.
363
  *
364
  * Returning array.
 
365
  * @since 1.5.0
366
  *
367
  * @param array $disabled_sections An array of sections.
@@ -372,19 +442,21 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
372
 
373
  /**
374
  * Generate language select button for customizer
 
375
  * @since 1.6.0
376
- *
377
- * @todo http://stackoverflow.com/questions/9607252/how-to-detect-when-an-element-over-another-element-in-javascript
378
- */
379
- $attributes['href'] = '#';
380
- $attributes['style'] = 'margin-left:48px;';
381
- $attributes['class'] = 'customize-controls-close wpglobus-customize-selector';
382
 
383
  /**
384
  * Filter of attributes to generate language selector button.
385
  * For example @see Divi theme http://www.elegantthemes.com/gallery/divi/ .
386
  *
387
  * Returning array.
 
388
  * @since 1.6.0
389
  *
390
  * @param array $attributes An array of attributes.
@@ -395,31 +467,31 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
395
  $string = '';
396
 
397
  foreach ( $attributes as $attribute => $value ) {
398
- if ( null !== $value ){
399
  $string .= esc_attr( $attribute ) . '="' . esc_attr( $value ) . '" ';
400
  }
401
  }
402
 
403
  $selector_button = sprintf(
404
- '<a %1$s data-language="'.WPGlobus::Config()->default_language.'">%2$s</a>',
405
- trim( $string ),
406
- '<span class="wpglobus-globe"></span>'
407
- );
408
 
409
  /**
410
  * Since 1.7.9
411
  */
412
  $changeset_uuid = null;
413
- if ( ! empty( $_GET['changeset_uuid'] ) ) { // WPCS: input var ok, sanitization ok.
414
- $changeset_uuid = sanitize_text_field( wp_unslash( $_GET['changeset_uuid'] ) ); // WPCS: input var ok.
415
  }
416
-
417
  /**
418
  * Since 1.9.0
419
- */
420
  $selector_type = 'dropdown';
421
- $selector_types = array('dropdown', 'switch');
422
-
423
  /**
424
  * Filter selector type.
425
  *
@@ -431,13 +503,23 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
431
  */
432
  $selector_type = apply_filters( 'wpglobus_customize_language_selector_type', $selector_type, $selector_types );
433
 
434
- if ( ! in_array( $selector_type, $selector_types ) ) {
435
- $selector_type = 'dropdown';
436
  }
437
-
 
 
 
 
 
 
 
 
 
 
438
  wp_enqueue_script(
439
  'wpglobus-customize-control190',
440
- WPGlobus::$PLUGIN_DIR_URL . 'includes/js/wpglobus-customize-control190' . WPGlobus::SCRIPT_SUFFIX() . '.js',
441
  array( 'jquery' ),
442
  WPGLOBUS_VERSION,
443
  true
@@ -446,16 +528,17 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
446
  'wpglobus-customize-control190',
447
  'WPGlobusCustomize',
448
  array(
449
- 'version' => WPGLOBUS_VERSION,
450
- 'selectorType' => $selector_type,
451
- 'selectorButton' => $selector_button,
452
- 'languageAdmin' => WPGlobus::Config()->language,
453
- 'disabledSettingMask' => $disabled_setting_mask,
454
- 'elementSelector' => $element_selector,
455
- 'setLinkBy' => $set_link_by,
456
- 'disabledSections' => $disabled_sections,
457
- 'controlClass' => 'wpglobus-customize-control',
458
- 'changeset_uuid' => $changeset_uuid
 
459
  )
460
  );
461
 
@@ -464,4 +547,3 @@ if ( ! class_exists( 'WPGlobus_Customize' ) ) :
464
  } // class
465
 
466
  endif;
467
- # --- EOF
1
  <?php
2
  /**
3
+ * Multilingual Customizer.
4
+ *
5
  * @since 1.9.0
6
+ *
7
+ * @package WPGlobus\Admin\Customizer
8
  */
9
 
10
  if ( ! class_exists( 'WPGlobus_Customize' ) ) :
14
  */
15
  class WPGlobus_Customize {
16
 
17
+ /**
18
+ * Controller.
19
+ */
20
  public static function controller() {
21
+
22
+ add_action( 'admin_init', array( __CLASS__, 'on__admin_init' ), 1 );
23
+
24
  /**
 
25
  * It calls the `customize_register` action first,
26
+ * and then - the `customize_preview_init` action.
27
+ *
28
+ * @see \WP_Customize_Manager::wp_loaded
29
+ *
30
+ * add_action( 'customize_register', array(
31
+ * 'WPGlobus_Customize',
32
+ * 'action__customize_register'
33
+ * ) );
34
  */
 
 
 
 
 
35
 
36
  /**
37
+ * Customizer filters.
38
+ *
39
  * @since 1.5.0
40
  */
41
  if ( WPGlobus_WP::is_pagenow( 'customize.php' ) ) {
42
  require_once 'wpglobus-customize-filters.php';
43
  }
44
 
45
+ add_action(
46
+ 'customize_preview_init',
47
+ array( 'WPGlobus_Customize', 'action__customize_preview_init' )
48
+ );
49
 
50
  /**
51
  * This is called by wp-admin/customize.php
52
  */
53
+ add_action(
54
+ 'customize_controls_enqueue_scripts',
55
+ array( 'WPGlobus_Customize', 'action__customize_controls_enqueue_scripts' ),
56
+ 1000
57
+ );
58
 
59
  if ( WPGlobus_WP::is_admin_doing_ajax() ) {
60
+ add_filter(
61
+ 'clean_url',
62
+ array( 'WPGlobus_Customize', 'filter__clean_url' ),
63
+ 10,
64
+ 2
65
+ );
66
  }
67
 
68
  /**
69
+ * Filter customize_changeset_save_data.
70
+ *
71
  * @since 1.9.3
72
+ * @see wp-includes\class-wp-customize-manager.php
73
  */
74
+ add_filter(
75
+ 'customize_changeset_save_data',
76
+ array( __CLASS__, 'filter__customize_changeset_save_data' ),
77
+ 1,
78
+ 2
79
+ );
80
 
81
  }
82
+
83
  /**
84
+ * Action on admin init.
85
+ *
86
  * @since 1.9.3
87
  */
88
  public static function on__admin_init() {
93
  'sidebars_widgets',
94
  'custom_css_post_id',
95
  'wpglobus_blogname',
96
+ 'wpglobus_blogdescription',
97
  );
98
+
99
  $mods = get_theme_mods();
100
 
101
  $filtered_mods = array();
102
+ foreach ( $mods as $mod_key => $mod_value ) {
103
+
104
+ if ( in_array( $mod_key, $excluded_mods, true ) ) {
105
  continue;
106
  }
107
+
108
+ if ( ! is_string( $mod_value ) ) {
109
  continue;
110
+ }
111
+
112
+ $filtered_mods[ $mod_key ] = $mod_value;
113
+
114
  }
115
 
116
  /**
118
  *
119
  * @since 1.9.3
120
  *
121
+ * @param array $filtered_mods Filtered theme modifications.
122
+ * @param array|void $mods Theme modifications.
123
+ */
124
+ $filtered_mods = apply_filters( 'wpglobus_customize_filtered_mods', $filtered_mods, $mods );
125
+
126
+ foreach ( $filtered_mods as $mod_key => $mod_value ) {
127
 
128
  /**
129
+ * Filter {@see filter "pre_set_theme_mod_{$name}" in \wp-includes\theme.php}.
130
  */
131
+ add_filter(
132
+ "pre_set_theme_mod_{$mod_key}",
133
+ array( __CLASS__, 'filter__pre_set_theme_mod' ),
134
+ 1,
135
+ 2
136
+ );
137
+
138
  }
139
  }
140
+
141
  /**
142
  * Filter a theme mod.
143
  *
144
  * @since 1.9.3
145
+ *
146
+ * @param string $value The value.
147
+ * @param string $old_value Unused.
148
+ *
149
+ * @return bool|string
150
+ */
151
+ public static function filter__pre_set_theme_mod(
152
+ $value,
153
+ /**
154
+ * Unused.
155
+ *
156
+ * @noinspection PhpUnusedParameterInspection
157
+ */
158
+ $old_value
159
+ ) {
160
+
161
+ if ( ! is_string( $value ) ) {
162
  return $value;
163
  }
164
+
165
+ $new_value = self::_build_multilingual_string( $value );
166
+
167
  if ( $new_value ) {
168
  return $new_value;
169
  }
170
+
171
  return $value;
172
 
173
  }
174
+
175
  /**
176
  * Save/update a changeset.
177
  *
178
  * @since 1.9.3
179
+ *
180
+ * @param array $data The data.
181
+ * @param string $filter_context Unused.
182
+ *
183
+ * @return mixed
184
  */
185
+ public static function filter__customize_changeset_save_data(
186
+ $data,
187
+ /**
188
+ * Unused.
189
+ *
190
+ * @noinspection PhpUnusedParameterInspection
191
+ */
192
+ $filter_context
193
+ ) {
194
+
195
+ foreach ( $data as $option => $value ) {
196
+
197
+ $new_value = self::_build_multilingual_string( $value['value'] );
198
 
 
 
199
  if ( $new_value ) {
200
+ $data[ $option ]['value'] = $new_value;
201
  }
 
202
  }
203
+
204
  return $data;
205
+
206
  }
207
+
208
  /**
209
  * Build standard WPGlobus multilingual string.
210
  *
211
  * @since 1.9.3
212
+ *
213
+ * @param string $value The value.
214
+ *
215
+ * @return bool|string
216
+ */
217
+ public static function _build_multilingual_string( $value ) { // phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
218
 
219
  /**
220
+ * Ignore if not a string.
221
+ *
222
  * @since 1.9.6
223
  */
224
+ if ( ! is_string( $value ) ) {
225
  return $value;
226
  }
227
+
228
+ // $new_value = '';
229
+
230
  if ( false === strpos( $value, '|||' ) ) {
231
  $new_value = false;
232
  } else {
233
+
234
  $arr1 = array();
235
  $arr = explode( '|||', $value );
236
  foreach ( $arr as $k => $val ) {
239
  $arr1[ WPGlobus::Config()->enabled_languages[ $k ] ] = $val;
240
  }
241
  }
242
+
243
  $new_value = WPGlobus_Utils::build_multilingual_string( $arr1 );
244
+
245
  }
246
+
247
  return $new_value;
248
+
249
  }
250
+
251
  /**
252
  * Filter a string to check translations for URL.
253
  * // We build multilingual URLs in customizer using the ':::' delimiter.
283
  /**
284
  * Add multilingual controls.
285
  * The original controls will be hidden.
286
+ *
287
+ * @param WP_Customize_Manager $wp_customize Customize Manager.
288
  */
289
  public static function action__customize_register( WP_Customize_Manager $wp_customize ) {}
290
 
291
  /**
292
  * Load Customize Preview JS
293
  * Used by hook: 'customize_preview_init'
294
+ *
295
  * @see 'customize_preview_init'
296
  */
297
  public static function action__customize_preview_init() {
298
  wp_enqueue_script(
299
  'wpglobus-customize-preview',
300
+ WPGlobus::plugin_dir_url() . 'includes/js/wpglobus-customize-preview' .
301
  WPGlobus::SCRIPT_SUFFIX() . '.js',
302
  array( 'jquery', 'customize-preview' ),
303
  WPGLOBUS_VERSION,
309
  array(
310
  'version' => WPGLOBUS_VERSION,
311
  'blogname' => WPGlobus_Core::text_filter( get_option( 'blogname' ), WPGlobus::Config()->language ),
312
+ 'blogdescription' => WPGlobus_Core::text_filter( get_option( 'blogdescription' ), WPGlobus::Config()->language ),
313
  )
314
  );
315
  }
319
  */
320
  public static function action__customize_controls_enqueue_scripts() {
321
 
322
+ global $wp_version;
323
+
324
  /**
325
+ * See wp.customize.control elements
326
  * for example wp.customize.control('blogname');
327
  */
328
  $disabled_setting_mask = array();
329
 
330
+ // navigation menu elements.
331
  $disabled_setting_mask[] = 'nav_menu_item';
332
  $disabled_setting_mask[] = 'nav_menu[';
333
  $disabled_setting_mask[] = 'nav_menu_locations';
334
  $disabled_setting_mask[] = 'new_menu_name';
335
 
336
+ // widgets.
337
  $disabled_setting_mask[] = 'widgets';
338
 
339
+ // color elements.
340
  $disabled_setting_mask[] = 'color';
341
 
342
+ // yoast seo.
343
  $disabled_setting_mask[] = 'wpseo';
344
 
345
+ // css elements.
346
  $disabled_setting_mask[] = 'css';
347
 
348
+ // social networks elements.
349
  $disabled_setting_mask[] = 'facebook';
350
  $disabled_setting_mask[] = 'twitter';
351
  $disabled_setting_mask[] = 'linkedin';
352
  $disabled_setting_mask[] = 'behance';
353
  $disabled_setting_mask[] = 'dribbble';
354
  $disabled_setting_mask[] = 'instagram';
355
+ /**
356
+ * Tumblr.
357
+ *
358
+ * @since 1.4.4
359
+ */
360
  $disabled_setting_mask[] = 'tumblr';
361
  $disabled_setting_mask[] = 'flickr';
362
+ $disabled_setting_mask[] = 'wordpress'; // phpcs:ignore WordPress.WP.CapitalPDangit.Misspelled
363
  $disabled_setting_mask[] = 'youtube';
364
  $disabled_setting_mask[] = 'pinterest';
365
  $disabled_setting_mask[] = 'github';
366
  $disabled_setting_mask[] = 'rss';
367
  $disabled_setting_mask[] = 'google';
368
  $disabled_setting_mask[] = 'email';
369
+ /**
370
+ * Dropbox.
371
+ *
372
+ * @since 1.5.9
373
+ */
374
  $disabled_setting_mask[] = 'dropbox';
375
  $disabled_setting_mask[] = 'foursquare';
376
  $disabled_setting_mask[] = 'vine';
377
  $disabled_setting_mask[] = 'vimeo';
378
+ /**
379
+ * Yelp.
380
+ *
381
+ * @since 1.6.0
382
+ */
383
  $disabled_setting_mask[] = 'yelp';
384
+
385
+ /**
386
  * Exclude fields from Static Front Page section.
387
  * It may be added to customizer in many themes.
388
+ *
389
+ * @since 1.7.6
390
  */
391
  $disabled_setting_mask[] = 'page_on_front';
392
  $disabled_setting_mask[] = 'page_for_posts';
393
 
394
  /**
395
  * Filter to disable fields in customizer.
396
+ * See wp.customize.control elements
397
  * Returning array.
398
+ *
399
  * @since 1.4.0
400
  *
401
  * @param array $disabled_setting_mask An array of disabled masks.
407
  /**
408
  * Filter for element selectors.
409
  * Returning array.
410
+ *
411
  * @since 1.4.0
412
  *
413
  * @param array $element_selector An array of selectors.
418
 
419
  /**
420
  * Filter of masks to determine links.
421
+ * See value data-customize-setting-link of element
422
  * Returning array.
423
+ *
424
  * @since 1.4.0
425
  *
426
  * @param array $set_link_by An array of masks.
431
  * Filter of disabled sections.
432
  *
433
  * Returning array.
434
+ *
435
  * @since 1.5.0
436
  *
437
  * @param array $disabled_sections An array of sections.
442
 
443
  /**
444
  * Generate language select button for customizer
445
+ *
446
  * @since 1.6.0
447
+ *
448
+ * @todo http://stackoverflow.com/questions/9607252/how-to-detect-when-an-element-over-another-element-in-javascript
449
+ */
450
+ $attributes['href'] = '#';
451
+ $attributes['style'] = 'margin-left:48px;';
452
+ $attributes['class'] = 'customize-controls-close wpglobus-customize-selector';
453
 
454
  /**
455
  * Filter of attributes to generate language selector button.
456
  * For example @see Divi theme http://www.elegantthemes.com/gallery/divi/ .
457
  *
458
  * Returning array.
459
+ *
460
  * @since 1.6.0
461
  *
462
  * @param array $attributes An array of attributes.
467
  $string = '';
468
 
469
  foreach ( $attributes as $attribute => $value ) {
470
+ if ( null !== $value ) {
471
  $string .= esc_attr( $attribute ) . '="' . esc_attr( $value ) . '" ';
472
  }
473
  }
474
 
475
  $selector_button = sprintf(
476
+ '<a %1$s data-language="' . WPGlobus::Config()->default_language . '">%2$s</a>',
477
+ trim( $string ),
478
+ '<span class="wpglobus-globe"></span>'
479
+ );
480
 
481
  /**
482
  * Since 1.7.9
483
  */
484
  $changeset_uuid = null;
485
+ if ( ! empty( $_GET['changeset_uuid'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
486
+ $changeset_uuid = sanitize_text_field( wp_unslash( $_GET['changeset_uuid'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
487
  }
488
+
489
  /**
490
  * Since 1.9.0
491
+ */
492
  $selector_type = 'dropdown';
493
+ $selector_types = array( 'dropdown', 'switch' );
494
+
495
  /**
496
  * Filter selector type.
497
  *
503
  */
504
  $selector_type = apply_filters( 'wpglobus_customize_language_selector_type', $selector_type, $selector_types );
505
 
506
+ if ( ! in_array( $selector_type, $selector_types, true ) ) {
507
+ $selector_type = 'dropdown';
508
  }
509
+
510
+ /**
511
+ * Adjust for WP 5.2+.
512
+ *
513
+ * @since 2.2.0
514
+ */
515
+ $selector_html = '<span style="margin-left:5px;" class="wpglobus-icon-globe"></span><span class="current-language" style="font-weight:bold;">{{language}}</span>';
516
+ if ( version_compare( $wp_version, '5.1.999', '>' ) ) {
517
+ $selector_html = '<span style="position:fixed;top:-7px;">' . $selector_html . '</span>';
518
+ }
519
+
520
  wp_enqueue_script(
521
  'wpglobus-customize-control190',
522
+ WPGlobus::plugin_dir_url() . 'includes/js/wpglobus-customize-control190' . WPGlobus::SCRIPT_SUFFIX() . '.js',
523
  array( 'jquery' ),
524
  WPGLOBUS_VERSION,
525
  true
528
  'wpglobus-customize-control190',
529
  'WPGlobusCustomize',
530
  array(
531
+ 'version' => WPGLOBUS_VERSION,
532
+ 'selectorType' => $selector_type,
533
+ 'selectorButton' => $selector_button,
534
+ 'languageAdmin' => WPGlobus::Config()->language,
535
+ 'disabledSettingMask' => $disabled_setting_mask,
536
+ 'elementSelector' => $element_selector,
537
+ 'setLinkBy' => $set_link_by,
538
+ 'disabledSections' => $disabled_sections,
539
+ 'controlClass' => 'wpglobus-customize-control',
540
+ 'changeset_uuid' => $changeset_uuid,
541
+ 'selector_html' => $selector_html,
542
  )
543
  );
544
 
547
  } // class
548
 
549
  endif;
 
includes/admin/recommendations/class-wpglobus-admin-recommendations.php CHANGED
@@ -2,9 +2,8 @@
2
  /**
3
  * WPGlobus Recommendations.
4
  *
5
- * @package WPGlobus\Admin
6
- *
7
  * @since 1.8.7
 
8
  */
9
 
10
  /**
@@ -12,8 +11,13 @@
12
  */
13
  class WPGlobus_Admin_Recommendations {
14
 
 
 
 
 
 
15
  protected static $run_js = false;
16
-
17
  /**
18
  * Setup actions and filters.
19
  */
@@ -27,11 +31,11 @@ class WPGlobus_Admin_Recommendations {
27
  /**
28
  * Recommendations for WooCommerce.
29
  *
30
- * @internal
31
- *
32
  * @param array $settings Passed by WooCommerce.
33
  *
34
  * @return array
 
 
35
  */
36
  public static function for_woocommerce( $settings ) {
37
  // Ugly set of "IFs" to display heading only if needed, and only once.
@@ -44,7 +48,7 @@ class WPGlobus_Admin_Recommendations {
44
  $need_to_recommend_wpg_wc = true;
45
  }
46
 
47
- if ( ! is_plugin_active( 'wpglobus-multi-currency/wpglobus-multi-currency.php' ) ) {
48
  $need_to_show_wc_heading = true;
49
  $need_to_recommend_wpg_mc = true;
50
  }
@@ -83,7 +87,7 @@ class WPGlobus_Admin_Recommendations {
83
  if ( $need_to_recommend_wpg_mc ) {
84
  $url = WPGlobus_Utils::url_wpglobus_site() . 'product/wpglobus-multi-currency/';
85
  $id = 'wpglobus-recommend-wpg-mc';
86
- $title = '&bull; ' . __( 'WPGlobus Multi-Currency', 'wpglobus' );
87
  $desc =
88
  '<p class="wp-ui-text-notification">' .
89
  '<strong>' .
@@ -139,35 +143,35 @@ class WPGlobus_Admin_Recommendations {
139
 
140
  global $pagenow;
141
 
142
- if ( 'post-new.php' == $pagenow ) {
143
  return;
144
  }
145
-
146
  $container_start = '<p id="wpglobus-plus-slug-recommendation" style="padding:5px; font-weight: bold"><span class="dashicons dashicons-admin-site"></span> ';
147
  $container_end = '</p>';
148
 
149
  if ( ! is_plugin_active( 'wpglobus-plus/wpglobus-plus.php' ) ) {
150
  $url = WPGlobus_Utils::url_wpglobus_site() . 'product/wpglobus-plus/#slug';
151
- echo $container_start; // WPCS: XSS ok.
152
  esc_html_e( 'Translate permalinks with our premium add-on, WPGlobus Plus!', 'wpglobus' );
153
  echo ' ';
154
  esc_html_e( 'Check it out:', 'wpglobus' );
155
  echo ' ';
156
  echo '<a href="' . esc_url( $url ) . '" target="_blank">' . esc_html( $url ) . '</a>';
157
- echo $container_end; // WPCS: XSS ok.
158
 
159
  self::$run_js = true;
160
 
161
  } elseif ( ! class_exists( 'WPGlobusPlus_Slug', false ) ) {
162
  $url = admin_url( 'admin.php' ) . '?page=' . WPGlobusPlus::WPGLOBUS_PLUS_OPTIONS_PAGE . '&tab=modules';
163
- echo $container_start; // WPCS: XSS ok.
164
  esc_html_e( 'To translate permalinks, please activate the module Slug.', 'wpglobus' );
165
  echo ' ';
166
- // Do not translate
167
  $msg = __( 'Go to WPGlobus Plus Options page', 'wpglobus-plus' );
168
 
169
  echo '<a href="' . esc_url( $url ) . '" target="_blank">' . esc_html( $msg ) . '.</a>';
170
- echo $container_end; // WPCS: XSS ok.
171
 
172
  self::$run_js = true;
173
 
@@ -175,8 +179,10 @@ class WPGlobus_Admin_Recommendations {
175
  }
176
 
177
  /**
 
 
178
  * @since 1.9.17
179
- */
180
  public static function on__gutenberg_metabox() {
181
 
182
  if ( WPGlobus::Config()->builder->is_running() ) {
@@ -185,33 +191,34 @@ class WPGlobus_Admin_Recommendations {
185
  }
186
 
187
  }
188
-
189
  /**
 
 
190
  * @since 1.9.17
191
- */
192
  public static function on__admin_footer() {
193
 
194
  if ( ! self::$run_js ) {
195
  return;
196
  }
197
-
198
  if ( ! WPGlobus::Config()->builder->is_running() ) {
199
  return;
200
- }
201
-
202
- if ( WPGlobus::Config()->builder->get_language() == WPGlobus::Config()->default_language ) {
203
  return;
204
  }
205
 
206
  ?>
207
- <script type='text/javascript'>
208
- /* <![CDATA[ */
209
- jQuery('#edit-slug-box').css({'display':'none'});
210
  var wpglobus_slug_recomm_box = jQuery('#wpglobus-plus-slug-recommendation').remove();
211
- jQuery('#edit-slug-box').before(wpglobus_slug_recomm_box);
212
- /* ]]> */
213
  </script>
214
- <?php
215
  }
216
-
217
  }
2
  /**
3
  * WPGlobus Recommendations.
4
  *
 
 
5
  * @since 1.8.7
6
+ * @package WPGlobus\Admin
7
  */
8
 
9
  /**
11
  */
12
  class WPGlobus_Admin_Recommendations {
13
 
14
+ /**
15
+ * True if need to run JS.
16
+ *
17
+ * @var bool
18
+ */
19
  protected static $run_js = false;
20
+
21
  /**
22
  * Setup actions and filters.
23
  */
31
  /**
32
  * Recommendations for WooCommerce.
33
  *
 
 
34
  * @param array $settings Passed by WooCommerce.
35
  *
36
  * @return array
37
+ *
38
+ * @internal
39
  */
40
  public static function for_woocommerce( $settings ) {
41
  // Ugly set of "IFs" to display heading only if needed, and only once.
48
  $need_to_recommend_wpg_wc = true;
49
  }
50
 
51
+ if ( ! is_plugin_active( 'woocommerce-multicurrency/woocommerce-multicurrency.php' ) ) {
52
  $need_to_show_wc_heading = true;
53
  $need_to_recommend_wpg_mc = true;
54
  }
87
  if ( $need_to_recommend_wpg_mc ) {
88
  $url = WPGlobus_Utils::url_wpglobus_site() . 'product/wpglobus-multi-currency/';
89
  $id = 'wpglobus-recommend-wpg-mc';
90
+ $title = '&bull; ' . __( 'WooCommerce Multi-Currency', 'wpglobus' );
91
  $desc =
92
  '<p class="wp-ui-text-notification">' .
93
  '<strong>' .
143
 
144
  global $pagenow;
145
 
146
+ if ( 'post-new.php' === $pagenow ) {
147
  return;
148
  }
149
+
150
  $container_start = '<p id="wpglobus-plus-slug-recommendation" style="padding:5px; font-weight: bold"><span class="dashicons dashicons-admin-site"></span> ';
151
  $container_end = '</p>';
152
 
153
  if ( ! is_plugin_active( 'wpglobus-plus/wpglobus-plus.php' ) ) {
154
  $url = WPGlobus_Utils::url_wpglobus_site() . 'product/wpglobus-plus/#slug';
155
+ echo $container_start; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
156
  esc_html_e( 'Translate permalinks with our premium add-on, WPGlobus Plus!', 'wpglobus' );
157
  echo ' ';
158
  esc_html_e( 'Check it out:', 'wpglobus' );
159
  echo ' ';
160
  echo '<a href="' . esc_url( $url ) . '" target="_blank">' . esc_html( $url ) . '</a>';
161
+ echo $container_end; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
162
 
163
  self::$run_js = true;
164
 
165
  } elseif ( ! class_exists( 'WPGlobusPlus_Slug', false ) ) {
166
  $url = admin_url( 'admin.php' ) . '?page=' . WPGlobusPlus::WPGLOBUS_PLUS_OPTIONS_PAGE . '&tab=modules';
167
+ echo $container_start; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
168
  esc_html_e( 'To translate permalinks, please activate the module Slug.', 'wpglobus' );
169
  echo ' ';
170
+ // Do not translate.
171
  $msg = __( 'Go to WPGlobus Plus Options page', 'wpglobus-plus' );
172
 
173
  echo '<a href="' . esc_url( $url ) . '" target="_blank">' . esc_html( $msg ) . '.</a>';
174
+ echo $container_end; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
175
 
176
  self::$run_js = true;
177
 
179
  }
180
 
181
  /**
182
+ * Action wpglobus_gutenberg_metabox.
183
+ *
184
  * @since 1.9.17
185
+ */
186
  public static function on__gutenberg_metabox() {
187
 
188
  if ( WPGlobus::Config()->builder->is_running() ) {
191
  }
192
 
193
  }
194
+
195
  /**
196
+ * Action admin_footer.
197
+ *
198
  * @since 1.9.17
199
+ */
200
  public static function on__admin_footer() {
201
 
202
  if ( ! self::$run_js ) {
203
  return;
204
  }
205
+
206
  if ( ! WPGlobus::Config()->builder->is_running() ) {
207
  return;
208
+ }
209
+
210
+ if ( WPGlobus::Config()->builder->get_language() === WPGlobus::Config()->default_language ) {
211
  return;
212
  }
213
 
214
  ?>
215
+ <script>
216
+ var $edit_slug_box = jQuery('#edit-slug-box');
217
+ $edit_slug_box.css({'display': 'none'});
218
  var wpglobus_slug_recomm_box = jQuery('#wpglobus-plus-slug-recommendation').remove();
219
+ $edit_slug_box.before(wpglobus_slug_recomm_box);
 
220
  </script>
221
+ <?php
222
  }
223
+
224
  }
includes/builders/elementor/class-wpglobus-elementor.php CHANGED
@@ -38,12 +38,14 @@ if ( ! class_exists( 'WPGlobus_Elementor' ) ) :
38
 
39
  parent::__construct( 'elementor' );
40
 
41
- if ( ! empty( WPGlobus::Config()->builder->get('post_css_meta_key') ) ) {
42
- self::$post_css_meta_key = WPGlobus::Config()->builder->get('post_css_meta_key');
 
43
  }
44
 
45
- if ( ! empty( WPGlobus::Config()->builder->get('elementor_data_meta_key') ) ) {
46
- self::$elementor_data_meta_key = WPGlobus::Config()->builder->get('elementor_data_meta_key');
 
47
  }
48
 
49
  if ( isset( $_GET['action'] ) && 'elementor' === $_GET['action'] ) { // phpcs:ignore WordPress.CSRF.NonceVerification
38
 
39
  parent::__construct( 'elementor' );
40
 
41
+ $_post_css_meta_key = WPGlobus::Config()->builder->get('post_css_meta_key');
42
+ if ( ! empty( $_post_css_meta_key ) ) {
43
+ self::$post_css_meta_key = $_post_css_meta_key;
44
  }
45
 
46
+ $_elementor_data_meta_key = WPGlobus::Config()->builder->get('elementor_data_meta_key');
47
+ if ( ! empty( $_elementor_data_meta_key ) ) {
48
+ self::$elementor_data_meta_key = $_elementor_data_meta_key;
49
  }
50
 
51
  if ( isset( $_GET['action'] ) && 'elementor' === $_GET['action'] ) { // phpcs:ignore WordPress.CSRF.NonceVerification
includes/css/wpglobus-admin-debug.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-admin-debug.scss"],"names":[],"mappings":"AAAA,0BACE,WACA,yBACA,gBACA,0BACA,iBACA,uBACA,kBACA,aAAc,CARhB,8BAWI,qBACA,oBAAqB,CAZzB,gCAgBI,kBACA,sBACA,oCACA,mCAAA,AACA,2BAAA,qBACA,6BACA,eAAgB,CAtBpB,4FA0BI,2BACA,sBACA,yCAAA,AACA,iCAAA,2BACA,6BACA,8BACA,0BACA,4BACA,0DACA,oCACA,+BACA,8BACA,4BACA,+BACA,0CACA,gCAAiC,CAzCrC,6BA6CI,gBAAiB,CA7CrB,kCAiDI,4BACA,gCAAiC,CAlDrC,4CAsDI,6BAA8B,CAtDlC,wCA0DI,gCAAiC,CAClC","file":"wpglobus-admin-debug.css"}
1
+ {"version":3,"sources":["wpglobus-admin-debug.scss"],"names":[],"mappings":"AAAA,0BACE,UAAW,CACX,wBAAyB,CACzB,eAAgB,CAChB,yBAA0B,CAC1B,gBAAiB,CACjB,sBAAuB,CACvB,iBAAkB,CAClB,aAAc,CARhB,8BAWI,oBAAqB,CACrB,oBAAqB,CAZzB,gCAgBI,iBAAkB,CAClB,qBAAsB,CACtB,mCAAoC,CACpC,kCAA2B,CAA3B,0BAA2B,CAC3B,oBAAqB,CACrB,4BAA6B,CAC7B,eAAgB,CAtBpB,4FA0BI,0BAA2B,CAC3B,qBAAsB,CACtB,wCAAiC,CAAjC,gCAAiC,CACjC,0BAA2B,CAC3B,4BAA6B,CAC7B,6BAA8B,CAC9B,yBAA0B,CAC1B,2BAA4B,CAC5B,yDAA0D,CAC1D,mCAAoC,CACpC,8BAA+B,CAC/B,6BAA8B,CAC9B,2BAA4B,CAC5B,8BAA+B,CAC/B,yCAA0C,CAC1C,gCAAiC,CAzCrC,6BA6CI,gBAAiB,CA7CrB,kCAiDI,2BAA4B,CAC5B,gCAAiC,CAlDrC,4CAsDI,6BAA8B,CAtDlC,wCA0DI,gCAAiC","file":"wpglobus-admin-debug.css"}
includes/css/wpglobus-admin-tabs.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-admin-tabs.scss"],"names":[],"mappings":"AAKA,mGAII,gBACA,gBACA,iBACA,WACA,YAAa,CARjB,sDAcM,kBAAmB,CAdzB,uEAkBM,2BAA4B,CAlBlC,iEAsBM,qBAAsB,CAtB5B,+DA0BM,iBAAkB,CA1BxB,kRAkCM,qBACA,cACA,SAAU,CApChB,ydAwCM,WACA,QAAS,CAzCf,qTA6CM,SACA,sBAAuB,CA9C7B,8UAkDM,cACA,WACA,mBACA,yBACA,gBACA,mBACA,WACA,gBACA,iBACA,eACA,oBAAqB,CA5D3B,yUAgEM,gBACA,yBACA,yBACA,WACA,mBACA,eAAgB,CArEtB,uRA0EQ,UAAW,CA1EnB,uRA6EQ,wBAAA,AAAgB,eAAA,CA7ExB,uhCAkFM,YACA,gCACA,uBAGA,cAAe,CAvFrB,4RA2FM,6BACA,4BACA,0BACA,wBAAyB,CA9F/B,2SAkGM,YACA,uBACA,aAAc,CApGpB,mQAwGM,oBACA,iBAAkB,CAzGxB,yPA6GM,eAAgB,CA7GtB,0TA+GQ,iBACA,SAAU,CAhHlB,oUAmHQ,eACA,gBACA,kBAAmB,CArH3B,kDA6HI,gBACA,WAAY,CA9HhB,oDAkII,eACA,kBACA,uBACA,WACA,gBAAiB,CAtIrB,4CA0II,aAAc,CA1IlB,iCA8II,SACA,WACA,SAAU,CAhJd,sDAoJI,sBACA,gBACA,aACA,iBACA,SACA,mCACA,gBACA,UAAW,CA3Jf,0DA+JI,yBACA,gBAAiB,CAhKrB,2CAoKI,WAAY,CApKhB,+DA2KM,yCACA,iBAAkB,CA5KxB,sEAgLM,cACA,cACA,0BACA,gBACA,kBACA,kBACA,uBACA,mBACA,WAAY,CAxLlB,oEA4LM,cACA,eACA,gBAAiB,CA9LvB,qEAkMM,gBACA,gBACA,oBAAqB,CApM3B,oEAwMM,QAAS,CAxMf,oEA4MM,sBACA,qBACA,4BAA6B,CA9MnC,uIAkNM,yBAA0B,CAlNhC,iGAsNM,4DACA,cAAe,CAvNrB,0LAkPY,qBAAsB,CACvB","file":"wpglobus-admin-tabs.css"}
1
+ {"version":3,"sources":["wpglobus-admin-tabs.scss"],"names":[],"mappings":"AAKA,mGAII,eAAgB,CAChB,eAAgB,CAChB,gBAAiB,CACjB,UAAW,CACX,YAAa,CARjB,sDAcM,kBAAmB,CAdzB,uEAkBM,2BAA4B,CAlBlC,iEAsBM,qBAAsB,CAtB5B,+DA0BM,iBAAkB,CA1BxB,kRAkCM,oBAAqB,CACrB,aAAc,CACd,SAAU,CApChB,ydAwCM,UAAW,CACX,QAAS,CAzCf,qTA6CM,QAAS,CACT,sBAAuB,CA9C7B,8UAkDM,aAAc,CACd,UAAW,CACX,kBAAmB,CACnB,wBAAyB,CACzB,eAAgB,CAChB,kBAAmB,CACnB,UAAW,CACX,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CACf,oBAAqB,CA5D3B,yUAgEM,eAAgB,CAChB,wBAAyB,CACzB,wBAAyB,CACzB,UAAW,CACX,kBAAmB,CACnB,eAAgB,CArEtB,uRA0EQ,UAAW,CA1EnB,uRA6EQ,uBAAY,CAAZ,eAAgB,CA7ExB,uhCAkFM,WAAY,CACZ,+BAAgC,CAChC,sBAAuB,CAGvB,cAAe,CAvFrB,4RA2FM,4BAA6B,CAC7B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CA9F/B,2SAkGM,WAAY,CACZ,sBAAuB,CACvB,aAAc,CApGpB,mQAwGM,mBAAoB,CACpB,iBAAkB,CAzGxB,yPA6GM,eAAgB,CA7GtB,0TA+GQ,gBAAiB,CACjB,SAAU,CAhHlB,oUAmHQ,cAAe,CACf,eAAgB,CAChB,kBAAmB,CArH3B,kDA6HI,eAAgB,CAChB,WAAY,CA9HhB,oDAkII,cAAe,CACf,iBAAkB,CAClB,sBAAuB,CACvB,UAAW,CACX,gBAAiB,CAtIrB,4CA0II,aAAc,CA1IlB,iCA8II,QAAS,CACT,UAAW,CACX,SAAU,CAhJd,sDAoJI,qBAAsB,CACtB,eAAgB,CAChB,YAAa,CACb,gBAAiB,CACjB,QAAS,CACT,kCAAmC,CACnC,eAAgB,CAChB,UAAW,CA3Jf,0DA+JI,wBAAyB,CACzB,gBAAiB,CAhKrB,2CAoKI,WAAY,CApKhB,+DA2KM,wCAAyC,CACzC,iBAAkB,CA5KxB,sEAgLM,aAAc,CACd,aAAc,CACd,yBAA0B,CAC1B,eAAgB,CAChB,iBAAkB,CAClB,iBAAkB,CAClB,sBAAuB,CACvB,kBAAmB,CACnB,WAAY,CAxLlB,oEA4LM,aAAc,CACd,cAAe,CACf,gBAAiB,CA9LvB,qEAkMM,eAAgB,CAChB,eAAgB,CAChB,oBAAqB,CApM3B,oEAwMM,QAAS,CAxMf,oEA4MM,qBAAsB,CACtB,oBAAqB,CACrB,4BAA6B,CA9MnC,uIAkNM,yBAA0B,CAlNhC,iGAsNM,2DAA4D,CAC5D,cAAe,CAvNrB,0LAkPY,qBAAsB","file":"wpglobus-admin-tabs.css"}
includes/css/wpglobus-admin.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-admin.scss"],"names":[],"mappings":"AA0BA,sEAZE,eAAgB,CAcjB,wBAGC,yBACA,mBAAoB,CACrB,kBAGC,UACA,UAAW,CACZ,+CAGC,QAAS,CACV,6CAIC,qBACA,mCACA,sBACA,gBACA,kBACA,wBArCA,gBA2CA,eACA,2BACA,WAAY,CACb,iCAdC,qBACA,mCACA,sBACA,gBACA,kBACA,wBA7CA,gBA4DE,cACA,mBACA,iBAAkB,CANtB,0BASI,iBACA,iBAAkB,CACnB,gCA3BD,qBACA,mCACA,sBACA,gBACA,kBACA,wBAzCA,gBAsEE,eACA,mBACA,aAAc,CANlB,yBASI,kBACA,gBAAiB,CAClB,sBAID,gCAAiC,CAClC,2BAGC,WACA,iBACA,yBACA,gBACA,yBACA,8CACA,sCACA,WAAY,CARd,8BAUI,cAAe,CAVnB,mDAaI,cACA,gBAAiB,CAClB,0CAKC,qCAAsC,CAF1C,4CAKI,kBAAmB,CALvB,6CAQI,kBAAmB,CARvB,mDAWI,sBACA,gBACA,kBACA,wBACA,gBACA,cAAe,CAhBnB,mDAmBI,sBACA,gBACA,kBACA,wBACA,gBACA,cAAe,CAxBnB,oDA2BI,sBACA,gBACA,kBACA,wBACA,gBACA,cAAe,CAhCnB,qCAmCI,6CACA,AACA,0BACA,qBACA,kBACA,YACA,sBACA,YACA,yBACA,WACA,YACA,QAAS,CACV,wBAMD,iBACA,gBACA,eACA,eACA,UAAW,CALb,qDAOI,wBAAyB,CAP7B,0DAUI,YAAa,CAVjB,2DAcI,eACA,YACA,gBACA,cACA,eACA,aACA,UAAW,CACZ,kDAUC,cACA,aAAc,CAHlB,gDAOI,iBAAkB,CAPtB,6CAWI,aAd4B,CAGhC,4CAeI,2BACA,wBACA,oBAAqB,CAjBzB,gDAqBI,aAzB+B,CAInC,qDA4BM,eAAgB,CA5BtB,wCAkCI,yBACA,kBAAmB,CAnCvB,+GAyCM,qBAAsB,CACvB,2FAOD,YAAa,CACd,iDArMD,qBACA,mCACA,sBACA,gBACA,kBACA,wBA5BA,gBAqOE,yBACA,cACA,uBACA,mBACA,gBACA,YACA,kBACA,WAAY,CACb,mCAOD,yBACA,WAAY,CAFd,sCAII,cACA,WACA,YACA,SACA,SAAU,CARd,4CAWI,WAAY,CAXhB,yDAaM,UAAW,CAbjB,0DAgBM,WAAY,CAhBlB,8CAoBI,WACA,cACA,aACA,yBACA,uBACA,gBAAiB,CAzBrB,kDA2BM,WAAY,CA3BlB,mDA+BI,iBAAkB,CA/BtB,8DAiCM,eAAgB,CAjCtB,6DAoCM,cAAe,CApCrB,+DAuCM,iBAAkB,CACnB,6DAOH,UAAW,CACZ,kFAGC,WACA,qBACA,sBACA,gBACA,cAAe,CAChB,wGAGC,qCAAsC,CACvC,qCAGC,mCACE,SAAU,CACX,CAKH,wCACE,iCACA,yBAA0B,CAC3B,eAIC,eAAgB,CADlB,gCAGI,wBACA,WAAY,CACb,qCAKD,qDACE,aAAc,CADhB,8DAGI,eAAgB,CAHpB,kEAKM,WAAY,CACb,CAAA","file":"wpglobus-admin.css"}
1
+ {"version":3,"sources":["wpglobus-admin.scss"],"names":[],"mappings":"AA0BA,sEAZE,eAAgB,CAcjB,wBAGC,wBAAyB,CACzB,mBAAoB,CACrB,kBAGC,SAAU,CACV,UAAW,CACZ,+CAGC,QAAS,CACV,6CAIC,oBAAqB,CACrB,kCAAmC,CACnC,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CArCxB,eAAgB,CA2ChB,cAAe,CACf,0BAA2B,CAC3B,WAAY,CACb,iCAdC,oBAAqB,CACrB,kCAAmC,CACnC,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CA7CxB,eAAgB,CA4Dd,aAAc,CACd,kBAAmB,CACnB,iBAAkB,CANtB,0BASI,gBAAiB,CACjB,iBAAkB,CACnB,gCA3BD,oBAAqB,CACrB,kCAAmC,CACnC,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CAzCxB,eAAgB,CAsEd,cAAe,CACf,kBAAmB,CACnB,aAAc,CANlB,yBASI,iBAAkB,CAClB,gBAAiB,CAClB,sBAID,gCAAiC,CAClC,2BAGC,UAAW,CACX,gBAAiB,CACjB,wBAAyB,CACzB,eAAgB,CAChB,wBAAyB,CACzB,6CAAiD,CACjD,qCAAyC,CACzC,WAAY,CARd,8BAUI,cAAe,CAVnB,mDAaI,aAAc,CACd,gBAAiB,CAClB,0CAKC,qCAAsC,CAF1C,4CAKI,kBAAmB,CALvB,6CAQI,kBAAmB,CARvB,mDAWI,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CACxB,eAAgB,CAChB,cAAe,CAhBnB,mDAmBI,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CACxB,eAAgB,CAChB,cAAe,CAxBnB,oDA2BI,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CACxB,eAAgB,CAChB,cAAe,CAhCnB,qCAmCI,4CAA6C,CAE7C,yBAA0B,CAC1B,oBAAqB,CACrB,iBAAkB,CAClB,WAAY,CACZ,qBAAsB,CACtB,WAAY,CACZ,wBAAyB,CACzB,UAAW,CACX,WAAY,CACZ,QAAS,CACV,wBAMD,gBAAiB,CACjB,eAAgB,CAChB,cAAe,CACf,cAAe,CACf,UAAW,CALb,qDAOI,wBAAyB,CAP7B,0DAUI,YAAa,CAVjB,2DAcI,cAAe,CACf,WAAY,CACZ,eAAgB,CAChB,aAAc,CACd,cAAe,CACf,YAAa,CACb,UAAW,CACZ,kDAUC,aAN+B,CAO/B,aAAc,CAHlB,gDAOI,iBAAkB,CAPtB,6CAWI,aAd4B,CAGhC,4CAeI,0BAA2B,CAC3B,uBAAwB,CACxB,oBAAqB,CAjBzB,gDAqBI,aAzB+B,CAInC,qDA4BM,eAAgB,CA5BtB,wCAkCI,wBAAyB,CACzB,kBAAmB,CAnCvB,+GAyCM,qBAAsB,CACvB,2FAOD,YAAa,CACd,iDArMD,oBAAqB,CACrB,kCAAmC,CACnC,qBAAsB,CACtB,eAAgB,CAChB,iBAAkB,CAClB,uBAAwB,CA5BxB,eAAgB,CAqOd,wBALkC,CAMlC,aANkC,CAOlC,sBAAuB,CACvB,kBAAmB,CACnB,eAAgB,CAChB,WAAY,CACZ,iBAAkB,CAClB,WAAY,CACb,mCAOD,wBAFqB,CAGrB,WAAY,CAFd,sCAII,aAAkC,CAClC,UAAW,CACX,WAAY,CACZ,QAAS,CACT,SAAU,CARd,4CAWI,WAAY,CAXhB,yDAaM,UAAW,CAbjB,0DAgBM,WAAY,CAhBlB,8CAoBI,UAAW,CACX,aAAc,CACd,YAAa,CACb,wBAA6C,CAC7C,sBAAuB,CACvB,gBAAiB,CAzBrB,kDA2BM,WAAY,CA3BlB,mDA+BI,iBAAkB,CA/BtB,8DAiCM,eAAgB,CAjCtB,6DAoCM,cAAe,CApCrB,+DAuCM,iBAAkB,CACnB,6DAOH,UAAW,CACZ,kFAGC,UAAW,CACX,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAChB,cAAe,CAChB,wGAGC,qCAAsC,CACvC,qCAGC,mCACE,SAAU,CACX,CAKH,wCACE,gCAAiC,CACjC,yBAA0B,CAC3B,eAIC,eAAgB,CADlB,gCAGI,uBAAwB,CACxB,WAAY,CACb,qCAKD,qDACE,aAAc,CADhB,8DAGI,eAAgB,CAHpB,kEAKM,WAAY,CACb","file":"wpglobus-admin.css"}
includes/css/wpglobus-dialog-ui.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-dialog-ui.scss"],"names":[],"mappings":"AAKA,+CAGI,WACA,qBACA,sBACA,gBACA,cAAe,CAPnB,yCAWI,gBACA,cAAe,CAZnB,qDAeI,aACA,YACA,cAAe,CAjBnB,6CAoBI,YAAa,CApBjB,oDAuBI,WACA,qBACA,sBACA,gBACA,cAAe,CA3BnB,iDA8BI,WACA,qBACA,sBACA,gBACA,cAAe,CAlCnB,iDAqCI,kBACA,OAAQ,CAtCZ,iDAyCI,UAAW,CAzCf,8CA4CI,cAAe,CA5CnB,6FAkDM,WACA,QAAS,CAnDf,6DAuDM,SACA,sBAAuB,CAxD7B,uDA4DM,UAAW,CA5DjB,kEAgEM,cACA,WAEA,mBACA,AAKA,qFAAA,AAEA,+DAAA,sBACA,gBACA,mBACA,WACA,gBACA,iBACA,eACA,qBACA,2BACA,AAEA,2BACA,AAEA,2BAA4B,CAzFlC,iEA6FM,gBACA,sBACA,yBACA,cACA,mBACA,kBAAmB,CAlGzB,oCAyGI,eAAgB,CAzGpB,4DA4GM,WACA,qBACA,sBACA,gBACA,eACA,mBACA,qBAAsB,CAlH5B,qDAqHM,cAAe,CArHrB,+EAwHM,YACA,kBAAmB,CAzHzB,iEA6HM,cAAe,CA7HrB,wDAiIM,WAAY,CAjIlB,iGAqIM,kBACA,SACA,iBACA,gBACA,aAAc,CAzIpB,4DA6IM,eACA,UACA,sBAAuB,CA/I7B,0DAmJM,SACA,SAAU,CApJhB,mDAwJM,eAAgB,CAxJtB,sDA4JM,YACA,uBACA,cACA,kBAAmB,CA/JzB,uDAmKM,YACA,uBACA,aAAc,CArKpB,+CAyKM,oBACA,iBAAkB,CA1KxB,wDA4KQ,oBACA,iBAAkB,CA7K1B,6CAkLM,SAAU,CAlLhB,sHA0LM,kBACA,iBACA,YACA,gBAAiB,CA7LvB,0DAiMM,cACA,kBAAmB,CAlMzB,4DAsMM,WACA,eAAgB,CAvMtB,yEA2MM,SAAU,CA3MhB,sCAkNI,eACA,MACA,OACA,WACA,WAAY,CAtNhB,sCAyNI,oEACA,UAAW,CA1Nf,qCA6NI,qBACA,YACA,WACA,iBAAkB,CAhOtB,8CAoOI,gBACA,kBACA,MACA,OACA,aACA,UACA,qBAAsB,CA1O1B,kEA6OM,iBACA,kBACA,uBACA,2BACA,mCAAoC,CAjP1C,wEAqPM,kBACA,WACA,QACA,WACA,mBACA,YACA,YACA,YAAa,CA5PnB,0EA+PM,WACA,0BACA,iBAAkB,CAjQxB,+DAoQM,WACA,YACA,WACA,YACA,6BAA8B,CAC/B","file":"wpglobus-dialog-ui.css"}
1
+ {"version":3,"sources":["wpglobus-dialog-ui.scss"],"names":[],"mappings":"AAKA,+CAGI,UAAW,CACX,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAChB,cAAe,CAPnB,yCAWI,eAAgB,CAChB,cAAe,CAZnB,qDAeI,YAAa,CACb,WAAY,CACZ,cAAe,CAjBnB,6CAoBI,YAAa,CApBjB,oDAuBI,UAAW,CACX,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAChB,cAAe,CA3BnB,iDA8BI,UAAW,CACX,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAChB,cAAe,CAlCnB,iDAqCI,iBAAkB,CAClB,OAAQ,CAtCZ,iDAyCI,UAAW,CAzCf,8CA4CI,cAAe,CA5CnB,6FAkDM,UAAW,CACX,QAAS,CAnDf,6DAuDM,QAAS,CACT,sBAAuB,CAxD7B,uDA4DM,UAAW,CA5DjB,kEAgEM,aAAc,CACd,UAAW,CAEX,kBAAmB,CAMnB,oFAA+D,CAA/D,8DAA+D,CAE/D,qBAAsB,CACtB,eAAgB,CAChB,kBAAmB,CACnB,UAAW,CACX,eAAgB,CAChB,gBAAiB,CACjB,cAAe,CACf,oBAAqB,CACrB,0BAA2B,CAG3B,0BAA2B,CAG3B,2BAA4B,CAzFlC,iEA6FM,eAAgB,CAChB,qBAAsB,CACtB,wBAAyB,CACzB,aAAc,CACd,kBAAmB,CACnB,kBAAmB,CAlGzB,oCAyGI,eAAgB,CAzGpB,4DA4GM,UAAW,CACX,oBAAqB,CACrB,qBAAsB,CACtB,eAAgB,CAChB,cAAe,CACf,kBAAmB,CACnB,qBAAsB,CAlH5B,qDAqHM,cAAe,CArHrB,+EAwHM,WAAY,CACZ,kBAAmB,CAzHzB,iEA6HM,cAAe,CA7HrB,wDAiIM,WAAY,CAjIlB,iGAqIM,iBAAkB,CAClB,QAAS,CACT,gBAAiB,CACjB,eAAgB,CAChB,aAAc,CAzIpB,4DA6IM,cAAe,CACf,SAAU,CACV,sBAAuB,CA/I7B,0DAmJM,QAAS,CACT,SAAU,CApJhB,mDAwJM,eAAgB,CAxJtB,sDA4JM,WAAY,CACZ,sBAAuB,CACvB,aAAc,CACd,kBAAmB,CA/JzB,uDAmKM,WAAY,CACZ,sBAAuB,CACvB,aAAc,CArKpB,+CAyKM,mBAAoB,CACpB,iBAAkB,CA1KxB,wDA4KQ,mBAAoB,CACpB,iBAAkB,CA7K1B,6CAkLM,SAAU,CAlLhB,sHA0LM,iBAAkB,CAClB,gBAAiB,CACjB,WAAY,CACZ,gBAAiB,CA7LvB,0DAiMM,aAAc,CACd,kBAAmB,CAlMzB,4DAsMM,UAAW,CACX,eAAgB,CAvMtB,yEA2MM,SAAU,CA3MhB,sCAkNI,cAAe,CACf,KAAM,CACN,MAAO,CACP,UAAW,CACX,WAAY,CAtNhB,sCAyNI,mEAAuE,CACvE,UAAW,CA1Nf,qCA6NI,oBAAqB,CACrB,WAAY,CACZ,UAAW,CACX,iBAAkB,CAhOtB,8CAoOI,eAAgB,CAChB,iBAAkB,CAClB,KAAM,CACN,MAAO,CACP,YAAa,CACb,SAAU,CACV,qBAAsB,CA1O1B,kEA6OM,gBAAiB,CACjB,iBAAkB,CAClB,sBAAuB,CACvB,0BAA2B,CAC3B,mCAAoC,CAjP1C,wEAqPM,iBAAkB,CAClB,UAAW,CACX,OAAQ,CACR,UAAW,CACX,kBAAmB,CACnB,WAAY,CACZ,WAAY,CACZ,YAAa,CA5PnB,0EA+PM,UAAW,CACX,yBAA0B,CAC1B,iBAAkB,CAjQxB,+DAoQM,UAAW,CACX,WAAY,CACZ,UAAW,CACX,WAAY,CACZ,6BAA8B","file":"wpglobus-dialog-ui.css"}
includes/css/wpglobus-options.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-options.scss"],"names":[],"mappings":"AAAwB,0BACtB,sCACE,YAAa,CACd,CAMH,6BACE,aACA,2BACA,mBACA,WACA,wBAAyB,CAC1B,qCAGC,6BACE,iCAAkC,CACnC,CAGH,yCACE,gBACA,cAAe,CAChB,SAIC,aACA,2BACA,kBAAmB,CACpB,sCAGC,SACE,6BAA8B,CAC/B,CAGH,wBACE,cAAe,CAChB,4CAGC,cAAe,CAChB,wBAGC,aACA,YACA,qBAAsB,CACvB,yBAGC,UACA,YAAa,CACd,qCAGC,yBACE,SAAU,CACX,CAMH,uBACE,aACA,8BACA,WACA,wBAAoC,CACrC,qCAGC,uBACE,4BAA6B,CAC9B,CAIH,sBACE,YAAa,CACd,+BAMC,cACA,2BACA,uBACA,mBACA,mBACA,4BACA,yBACA,YACA,WACA,iBACA,qBACA,wBACA,eAAgB,CACjB,qCAGC,+BACE,eACA,iBAAkB,CACnB,CAGH,qCACE,qBAAsB,CACvB,oDAGC,wBAAoC,CACrC,qCAGC,uCACE,YAAa,CACd,CAIH,uBACE,oBACA,wBAAoC,CACrC,0BAGC,iBAAkB,CACnB,6DAIC,kBAAmB,CACpB,2DAGC,iBAAkB,CACnB,+CAIC,yBACA,gBACA,aAAc,CACf,sDAGC,SACA,sBACA,eACA,eAAgB,CACjB,kEAGC,2BAA4B,CAC7B,yDAGC,sBACA,eACA,eAAgB,CACjB,4DAGC,eACA,iBAAkB,CACnB,6DAIC,gBACA,iBACA,WACA,wBAAyB,CAE1B,kEAGC,yBACA,oBAAqB,CACtB,oEAGC,yBACA,oBAAqB,CACtB,iEAIC,aACA,8BACA,yBAAA,AAEA,sBAFA,AAEA,mBAAA,WACA,wBAAyB,CAC1B,iFAGC,WAAY,CACb,qFAGC,WACA,kBACA,yBACA,YACA,iBAAkB,CACnB,6EAGC,gBACA,cAAe,CAChB,+DAIC,aACA,8BACA,yBAAA,AACA,sBADA,AACA,mBAAA,WACA,yBACA,mBAAoB,CACrB,2EAGC,gBACA,cAAe,CAChB,yEAGC,YAAa,CACd,mEAIC,aACA,8BACA,yBAAA,AACA,sBADA,AACA,mBAAA,WACA,yBACA,mBAAoB,CACrB,+EAGC,gBACA,cAAe,CAChB,6EAGC,YAAa,CACd,+EAGC,gBAAiB,CAClB,iEAIC,aACA,8BACA,yBAAA,AACA,sBADA,AACA,mBAAA,WACA,yBACA,mBAAoB,CACrB,6EAGC,gBACA,cAAe,CAChB,2EAGC,YAAa,CACd,2EAGC,gBAAiB,CAClB,mEAQC,aAAyB,CAC1B,uEAWC,aAAyB,CAC1B,yCAGC,wBAAyB,CAC1B,yEAeC,aAAwB,CACzB,qCAGC,aACA,qDAAA,AAA6C,4CAAA,CAC9C,0CAGC,GACE,4BAAA,AAAmB,mBAAA,CAGrB,IACE,0BAAA,AAAkB,iBAAA,CAGpB,KACE,4BAAA,AAAmB,mBAAA,CAAA,CAZtB,AAmBD,kCAhBE,GACE,4BAAA,AAAmB,mBAAA,CAGrB,IACE,0BAAA,AAAkB,iBAAA,CAGpB,KACE,4BAAA,AAAmB,mBAAA,CAAA,CAOvB,8BACE,aACA,8BACA,YAAa,CACd,0CAGC,gBACA,cAAe,CAChB,2DAGC,uBACA,WACA,gBACA,wBAAyB,CAC1B,iCAGC,aACA,aAA0B,CAC3B,qCAGC,8BACE,2BACA,mBACA,UAAW,CACZ,CAGH,kDAEI,gBACA,kBAAmB,CACpB,gCAID,wBAAyB,CAC1B,sEAIC,uBACA,WAAY,CACb","file":"wpglobus-options.css"}
1
+ {"version":3,"sources":["wpglobus-options.scss"],"names":[],"mappings":"AAAwB,0BACtB,sCACE,YAAa,CACd,CAMH,6BACE,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CAC1B,qCAGC,6BACE,iCAAkC,CACnC,CAGH,yCACE,eAAgB,CAChB,cAAe,CAChB,SAIC,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACpB,sCAGC,SACE,6BAA8B,CAC/B,CAGH,wBACE,cAAe,CAChB,4CAGC,cAAe,CAChB,wBAGC,YAAa,CACb,WAAY,CACZ,qBAAsB,CACvB,yBAGC,SAAU,CACV,YAAa,CACd,qCAGC,yBACE,SAAU,CACX,CAMH,uBACE,YAAa,CACb,6BAA8B,CAC9B,UAAW,CACX,wBAAoC,CACrC,qCAGC,uBACE,4BAA6B,CAC9B,CAIH,sBACE,YAAa,CACd,+BAMC,aAAc,CACd,0BAA2B,CAC3B,sBAAuB,CACvB,kBAAmB,CACnB,kBAAmB,CACnB,2BAA4B,CAC5B,wBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,gBAAiB,CACjB,oBAAqB,CACrB,uBAAwB,CACxB,eAAgB,CACjB,qCAGC,+BACE,cAAe,CACf,iBAAkB,CACnB,CAGH,qCACE,qBAAsB,CACvB,oDAGC,wBAAoC,CACrC,qCAGC,uCACE,YAAa,CACd,CAIH,uBACE,mBAAoB,CACpB,wBAAoC,CACrC,0BAGC,iBAAkB,CACnB,6DAIC,kBAAmB,CACpB,2DAGC,iBAAkB,CACnB,+CAIC,wBAAyB,CACzB,eAAgB,CAChB,aAAc,CACf,sDAGC,QAAS,CACT,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,kEAGC,2BAA4B,CAC7B,yDAGC,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,4DAGC,cAAe,CACf,iBAAkB,CACnB,6DAIC,eAAgB,CAChB,gBAAiB,CACjB,UAAW,CACX,wBAAyB,CAE1B,kEAGC,wBAAyB,CACzB,oBAAqB,CACtB,oEAGC,wBAAyB,CACzB,oBAAqB,CACtB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,wBAAmB,CAAnB,qBAAmB,CAAnB,kBAAmB,CAEnB,UAAW,CACX,wBAAyB,CAC1B,iFAGC,WAAY,CACb,qFAGC,UAAW,CACX,iBAAkB,CAClB,wBAAyB,CACzB,WAAY,CACZ,iBAAkB,CACnB,6EAGC,eAAgB,CAChB,cAAe,CAChB,+DAIC,YAAa,CACb,6BAA8B,CAC9B,wBAAmB,CAAnB,qBAAmB,CAAnB,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,2EAGC,eAAgB,CAChB,cAAe,CAChB,yEAGC,YAAa,CACd,mEAIC,YAAa,CACb,6BAA8B,CAC9B,wBAAmB,CAAnB,qBAAmB,CAAnB,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,+EAGC,eAAgB,CAChB,cAAe,CAChB,6EAGC,YAAa,CACd,+EAGC,gBAAiB,CAClB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,wBAAmB,CAAnB,qBAAmB,CAAnB,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,6EAGC,eAAgB,CAChB,cAAe,CAChB,2EAGC,YAAa,CACd,2EAGC,gBAAiB,CAClB,mEAQC,aAAyB,CAC1B,uEAWC,aAAyB,CAC1B,yCAGC,wBAAyB,CAC1B,yEAeC,aAAwB,CACzB,qCAGC,YAAwB,CACxB,oDAAW,CAAX,4CAA6C,CAC9C,0CAGC,GACE,2BAAQ,CAAR,mBAAmB,CAGrB,IACE,yBAAQ,CAAR,iBAAkB,CAGpB,KACE,2BAAQ,CAAR,mBAAmB,CAAA,CAZtB,kCAGC,GACE,2BAAQ,CAAR,mBAAmB,CAGrB,IACE,yBAAQ,CAAR,iBAAkB,CAGpB,KACE,2BAAQ,CAAR,mBAAmB,CAAA,CAOvB,8BACE,YAAa,CACb,6BAA8B,CAC9B,YAAa,CACd,0CAGC,eAAgB,CAChB,cAAe,CAChB,2DAGC,sBAAuB,CACvB,UAAW,CACX,eAAgB,CAChB,wBAAyB,CAC1B,iCAGC,YAAa,CACb,aAA0B,CAC3B,qCAGC,8BACE,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACZ,CAGH,kDAEI,eAAgB,CAChB,kBAAmB,CACpB,gCAID,wBAAyB,CAC1B,sEAIC,sBAAuB,CACvB,WAAY","file":"wpglobus-options.css"}
includes/css/wpglobus-special-pages.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-special-pages.scss"],"names":[],"mappings":"AACA,uBAEI,eAAgB,CAFpB,0BAIM,WACA,8BACA,UACA,mBACA,WAAY,CARlB,4BAWQ,qBACA,cACA,sBACA,cACA,iBACA,gBACA,mBACA,sFAEA,6EACgC,CArBxC,gCAwBU,gBACA,gBACA,kBACA,cACA,SACA,gBACA,6BAA8B,CA9BxC,0CAiCU,gBACA,iBACA,mBACA,SAAU,CApCpB,mDAuCU,YAAa,CAvCvB,mCA0CU,YAAa,CA1CvB,+BA6CU,oBACA,wBACA,eAAgB,CA/C1B,8BAkDU,wBACA,oBACA,4BAA6B,CApDvC,oEAuDU,qBAAsB,CACvB","file":"wpglobus-special-pages.css"}
1
+ {"version":3,"sources":["wpglobus-special-pages.scss"],"names":[],"mappings":"AACA,uBAEI,eAAgB,CAFpB,0BAIM,UAAW,CACX,6BAA8B,CAC9B,SAAU,CACV,kBAAmB,CACnB,WAAY,CARlB,4BAWQ,oBAAqB,CACrB,aAAc,CACd,qBAAsB,CACtB,aAAc,CACd,gBAAiB,CACjB,eAAgB,CAChB,kBAAmB,CACnB,qFACgC,CAChC,6EACgC,CArBxC,gCAwBU,eAAgB,CAChB,eAAgB,CAChB,iBAAkB,CAClB,aAAc,CACd,QAAS,CACT,eAAgB,CAChB,6BAA8B,CA9BxC,0CAiCU,eAAgB,CAChB,gBAAiB,CACjB,kBAAmB,CACnB,SAAU,CApCpB,mDAuCU,YAAa,CAvCvB,mCA0CU,YAAa,CA1CvB,+BA6CU,mBAAoB,CACpB,uBAAwB,CACxB,eAAgB,CA/C1B,8BAkDU,uBAAwB,CACxB,mBAAoB,CACpB,4BAA6B,CApDvC,oEAuDU,qBAAsB","file":"wpglobus-special-pages.css"}
includes/css/wpglobus.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["_wpglobus-flags.scss","_wpglobus-widget.scss"],"names":[],"mappings":"AAKA,eACC,YACA,WACA,4BACA,+BAAgC,CAChC,wBAGA,iBAAkB,CAClB,0CAKA,YAAa,CACb,gDAGA,aAAc,CACd,0CAKA,YAAa,CACb,gDAGA,aAAc,CACd,qCCtBE,kBAAmB,CALtB,yBAcG,aAAc,CAdjB,6BAgBI,YAAa,CAhBjB,mCAmBI,oBAAqB,CAnBzB,mCAsBI,qBACA,gBAAiB,CAvBrB,0CAyBK,WAAY,CAzBjB,yCA4BK,WAAY,CA5BjB,iCAqCI,iBACA,oBAAqB,CAtCzB,gCAqDE,eAAgB,CArDlB,kCAoEE,kBACA,eACA,eAAgB,CAtElB,qCAyEG,gBACA,qBACA,kBACA,kBACA,iBACA,gBACA,cAAe,CA/ElB,2CAkFI,gBACA,UAAW,CAnFf,8CAsFK,cACA,UACA,kBAAmB,CAxFxB,wCA6FI,UACA,kBACA,SACA,WACA,YACA,aACA,UACA,iBAAkB,CApGtB,2CAuGK,gBACA,cACA,UAAW,CAzGhB,iDA4GM,eAAgB,CAEhB","file":"wpglobus.css"}
1
+ {"version":3,"sources":["_wpglobus-flags.scss","_wpglobus-widget.scss"],"names":[],"mappings":"AAKA,eACC,WAAY,CACZ,UAAW,CACX,2BAA4B,CAC5B,+BAAgC,CAChC,wBAGA,iBAAkB,CAClB,0CAKA,YAAa,CACb,gDAGA,aAAc,CACd,0CAKA,YAAa,CACb,gDAGA,aAAc,CACd,qCCtBE,kBAAmB,CALtB,yBAcG,aAAc,CAdjB,6BAgBI,YAAa,CAhBjB,mCAmBI,oBAAqB,CAnBzB,mCAsBI,oBAAqB,CACrB,gBAAiB,CAvBrB,0CAyBK,WAAY,CAzBjB,yCA4BK,WAAY,CA5BjB,iCAqCI,gBAAiB,CACjB,oBAAqB,CAtCzB,gCAqDE,eAAgB,CArDlB,kCAoEE,iBAAkB,CAClB,cAAe,CACf,eAAgB,CAtElB,qCAyEG,eAAgB,CAChB,oBAAqB,CACrB,iBAAkB,CAClB,iBAAkB,CAClB,gBAAiB,CACjB,eAAgB,CAChB,cAAe,CA/ElB,2CAkFI,eAAgB,CAChB,UAAW,CAnFf,8CAsFK,aAAc,CACd,SAAU,CACV,kBAAmB,CAxFxB,wCA6FI,SAAU,CACV,iBAAkB,CAClB,QAAS,CACT,UAAW,CACX,WAAY,CACZ,YAAa,CACb,SAAU,CACV,iBAAkB,CApGtB,2CAuGK,eAAgB,CAChB,aAAc,CACd,UAAW,CAzGhB,iDA4GM,eAAgB","file":"wpglobus.css"}
includes/js/wpglobus-admin-47.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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;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(){},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.attr("value",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=!1;if(""==a.onChangeClass)g="#wpglobus-"+v.clone_id;else{g="."+a.onChangeClass;var p=m._data(m(document)[0],"events");void 0===p?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})}return b||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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)},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)},close:function(){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(){if(1==v.clicks)v.onClick(a);else{var t=m(v.id);t.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")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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?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"):"options-general.php"==WPGlobusAdmin.page?this.optionsGeneral():"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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,i=c("#"+(e=a)),l=i.clone(),s=i.attr("name"),d="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",n=(n=document.getElementById(e)).nodeName,c(l).attr("id",e+"_"+o),c(l).attr("name",s+"_"+o),o!==WPGlobusCoreData.default_language&&(d+=" hidden"),c(l).attr("class",d),c(l).attr("data-save-to",e),c(l).attr("data-language",o),"INPUT"==n?c(l).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==n&&c(l).text(c("#wpglobus-link-tab-"+o).data(e)),i.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(l).insertAfter(i):c(l).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(){var e,o,n="#menu-to-edit .menu-item",i=function(){o!==c(n).length&&(clearInterval(e),c(n).each(function(t,a){var e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>")}}),e.addClass("wpglobus-menu-item")}}))};c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(o=c(n).length,e=setInterval(i,500))}}),c(n).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))})},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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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 > span").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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";void 0!==t&&(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)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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;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(){},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.attr("value",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=!1;if(""==a.onChangeClass)g="#wpglobus-"+v.clone_id;else{g="."+a.onChangeClass;var p=m._data(m(document)[0],"events");void 0===p?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})}return b||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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)},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)},close:function(){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(){if(1==v.clicks)v.onClick(a);else{var t=m(v.id);t.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")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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?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"):"options-general.php"==WPGlobusAdmin.page?this.optionsGeneral():"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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,e){c.each(a,function(t,a){!function(t,a){var e,o=c("#"+t),n=o.clone(),i=o.attr("name"),l="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable";e=(e=document.getElementById(t)).nodeName,c(n).attr("id",t+"_"+a),c(n).attr("name",i+"_"+a),a!==WPGlobusCoreData.default_language&&(l+=" hidden"),c(n).attr("class",l),c(n).attr("data-save-to",t),c(n).attr("data-language",a),"INPUT"==e?c(n).attr("value",c("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==e&&c(n).text(c("#wpglobus-link-tab-"+a).data(t)),o.addClass("hidden"),0==c(".wpglobus-element_"+t).length?c(n).insertAfter(o):c(n).insertAfter(c(".wpglobus-element_"+t).last())}(a,e)})}),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 e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).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))})},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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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 > span").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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),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-admin-49.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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 f;f=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(){},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){f.option.dialog=f.option.dialogOptions,f.option=m.extend(f.option,t),m(f.option.dialogTabs).tabs(),f.dialogTitle=f.option.dialogTitle,this.attachListener(),null!=f.option.customData&&void 0!==f.option.customData.addElements&&m.each(f.option.customData.addElements,function(t,a){f.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:f.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=f.startButton,r="";if(f.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(f.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==f.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),f.clone_id=f.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=f.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+f.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-"+f.clone_id).attr("name","wpglobus-"+s),e.addClass(f.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==f.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",f.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",f.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.attr("value",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,f.clone_id),u="id"==f.element_by?(u=(u=u.replace(/{{id}}/g,f.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?f.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+f.clone_id:f.startButtonClass;u=u.replace("{{classes}}",c),u=""==a.dialogTitle?u.replace("{{title}}",f.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-"+f.clone_id).addClass("wpglobus-textarea-"+f.clone_id),m(".wpglobus-textarea-"+f.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p=!1;if(""==a.onChangeClass)g="#wpglobus-"+f.clone_id;else{g="."+a.onChangeClass;var b=m._data(m(document)[0],"events");void 0===b?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})}return p||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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(f.id).val(i),i=""==s?l:s,m(f.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){f.saveDialog(),f.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){f.dialog.dialog("close")}}],open:function(t,a){var e=f.dialogTitle;void 0!==f.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",f.attrs.maxlength),e+=" | maxlength="+f.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){f.runCallback(f.option.dialog.close),f.form[0].reset()}}),attachListener:function(){m(document).on("click",f.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");f.order.action="save_post_meta_settings",f.order.post_type=WPGlobusAdmin.data.post_type,f.order.checked=a.prop("checked"),f.order.id=a.attr("id"),f.order.meta_key=a.data("meta-key"),f.ajax(f.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",f.option.listenClass,function(a){f.element=m(this),f.id=f.element.data("source-id"),""==f.id?(f.id=f.element.data("nodename")+'[name="'+f.element.data("source-name")+'"]',f.wpglobus_id="#wpglobus-"+f.convertToId(f.element.data("source-name"))):(f.wpglobus_id="#wpglobus-"+f.id,f.id="#"+f.id),f.clicks++,1==f.clicks&&setTimeout(function(){if(1==f.clicks)f.onClick(a);else{var t=m(f.id);t.hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;")}f.clicks=0},200)}),f.form=f.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),f.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===f.element.data("dialog-title")||""==f.element.data("dialog-title")?f.dialogTitle=f.option.dialogTitle:f.dialogTitle=f.element.data("dialog-title"),void 0!==f.id&&(f.attrs.maxlength=m(f.id).attr("maxlength")),f.source=f.element.data("source-value"),void 0===f.source&&(f.source=m(f.id).val(),"ajax"==f.request||(f.value=WPGlobusCore.getTranslations(f.source))),f.option.dialog=m.extend({},f.option.dialogOptions,m(f.wpglobus_id).data("dialog")),""!=f.option.dialog.title&&(f.dialogTitle=f.option.dialog.title),m.each(f.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(f.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(f.option.dialog.formFooter),f.runCallback(f.option.dialog.beforeOpen),f.dialog.dialog("open")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,i=c("#"+(e=a)),l=i.clone(),s=i.attr("name"),d="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",n=(n=document.getElementById(e)).nodeName,c(l).attr("id",e+"_"+o),c(l).attr("name",s+"_"+o),o!==WPGlobusCoreData.default_language&&(d+=" hidden"),c(l).attr("class",d),c(l).attr("data-save-to",e),c(l).attr("data-language",o),"INPUT"==n?c(l).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==n&&c(l).text(c("#wpglobus-link-tab-"+o).data(e)),i.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(l).insertAfter(i):c(l).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(){var e,o,n="#menu-to-edit .menu-item",i=function(){o!==c(n).length&&(clearInterval(e),c(n).each(function(t,a){var e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>")}}),e.addClass("wpglobus-menu-item")}}))};c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(o=c(n).length,e=setInterval(i,500))}}),c(n).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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";void 0!==t&&(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)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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 f;f=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(){},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){f.option.dialog=f.option.dialogOptions,f.option=m.extend(f.option,t),m(f.option.dialogTabs).tabs(),f.dialogTitle=f.option.dialogTitle,this.attachListener(),null!=f.option.customData&&void 0!==f.option.customData.addElements&&m.each(f.option.customData.addElements,function(t,a){f.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:f.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=f.startButton,r="";if(f.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(f.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==f.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),f.clone_id=f.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=f.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+f.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-"+f.clone_id).attr("name","wpglobus-"+s),e.addClass(f.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==f.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",f.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",f.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.attr("value",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,f.clone_id),u="id"==f.element_by?(u=(u=u.replace(/{{id}}/g,f.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?f.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+f.clone_id:f.startButtonClass;u=u.replace("{{classes}}",c),u=""==a.dialogTitle?u.replace("{{title}}",f.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-"+f.clone_id).addClass("wpglobus-textarea-"+f.clone_id),m(".wpglobus-textarea-"+f.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p=!1;if(""==a.onChangeClass)g="#wpglobus-"+f.clone_id;else{g="."+a.onChangeClass;var b=m._data(m(document)[0],"events");void 0===b?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})}return p||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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(f.id).val(i),i=""==s?l:s,m(f.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){f.saveDialog(),f.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){f.dialog.dialog("close")}}],open:function(t,a){var e=f.dialogTitle;void 0!==f.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",f.attrs.maxlength),e+=" | maxlength="+f.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){f.runCallback(f.option.dialog.close),f.form[0].reset()}}),attachListener:function(){m(document).on("click",f.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");f.order.action="save_post_meta_settings",f.order.post_type=WPGlobusAdmin.data.post_type,f.order.checked=a.prop("checked"),f.order.id=a.attr("id"),f.order.meta_key=a.data("meta-key"),f.ajax(f.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",f.option.listenClass,function(a){f.element=m(this),f.id=f.element.data("source-id"),""==f.id?(f.id=f.element.data("nodename")+'[name="'+f.element.data("source-name")+'"]',f.wpglobus_id="#wpglobus-"+f.convertToId(f.element.data("source-name"))):(f.wpglobus_id="#wpglobus-"+f.id,f.id="#"+f.id),f.clicks++,1==f.clicks&&setTimeout(function(){if(1==f.clicks)f.onClick(a);else{var t=m(f.id);t.hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;")}f.clicks=0},200)}),f.form=f.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),f.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===f.element.data("dialog-title")||""==f.element.data("dialog-title")?f.dialogTitle=f.option.dialogTitle:f.dialogTitle=f.element.data("dialog-title"),void 0!==f.id&&(f.attrs.maxlength=m(f.id).attr("maxlength")),f.source=f.element.data("source-value"),void 0===f.source&&(f.source=m(f.id).val(),"ajax"==f.request||(f.value=WPGlobusCore.getTranslations(f.source))),f.option.dialog=m.extend({},f.option.dialogOptions,m(f.wpglobus_id).data("dialog")),""!=f.option.dialog.title&&(f.dialogTitle=f.option.dialog.title),m.each(f.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(f.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(f.option.dialog.formFooter),f.runCallback(f.option.dialog.beforeOpen),f.dialog.dialog("open")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,e){c.each(a,function(t,a){!function(t,a){var e,o=c("#"+t),n=o.clone(),i=o.attr("name"),l="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable";e=(e=document.getElementById(t)).nodeName,c(n).attr("id",t+"_"+a),c(n).attr("name",i+"_"+a),a!==WPGlobusCoreData.default_language&&(l+=" hidden"),c(n).attr("class",l),c(n).attr("data-save-to",t),c(n).attr("data-language",a),"INPUT"==e?c(n).attr("value",c("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==e&&c(n).text(c("#wpglobus-link-tab-"+a).data(t)),o.addClass("hidden"),0==c(".wpglobus-element_"+t).length?c(n).insertAfter(o):c(n).insertAfter(c(".wpglobus-element_"+t).last())}(a,e)})}),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 e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),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-admin-51.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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 f;f=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(){},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){f.option.dialog=f.option.dialogOptions,f.option=m.extend(f.option,t),m(f.option.dialogTabs).tabs(),f.dialogTitle=f.option.dialogTitle,this.attachListener(),null!=f.option.customData&&void 0!==f.option.customData.addElements&&m.each(f.option.customData.addElements,function(t,a){f.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:f.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=f.startButton,r="";if(f.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(f.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==f.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),f.clone_id=f.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=f.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+f.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-"+f.clone_id).attr("name","wpglobus-"+s),e.addClass(f.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==f.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",f.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",f.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.attr("value",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,f.clone_id),u="id"==f.element_by?(u=(u=u.replace(/{{id}}/g,f.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?f.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+f.clone_id:f.startButtonClass;u=u.replace("{{classes}}",c),u=""==a.dialogTitle?u.replace("{{title}}",f.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-"+f.clone_id).addClass("wpglobus-textarea-"+f.clone_id),m(".wpglobus-textarea-"+f.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p=!1;if(""==a.onChangeClass)g="#wpglobus-"+f.clone_id;else{g="."+a.onChangeClass;var b=m._data(m(document)[0],"events");void 0===b?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})}return p||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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(f.id).val(i),i=""==s?l:s,m(f.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){f.saveDialog(),f.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){f.dialog.dialog("close")}}],open:function(t,a){var e=f.dialogTitle;void 0!==f.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",f.attrs.maxlength),e+=" | maxlength="+f.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),f.runCallback(f.option.dialog.close),f.form[0].reset()}}),attachListener:function(){m(document).on("click",f.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");f.order.action="save_post_meta_settings",f.order.post_type=WPGlobusAdmin.data.post_type,f.order.checked=a.prop("checked"),f.order.id=a.attr("id"),f.order.meta_key=a.data("meta-key"),f.ajax(f.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",f.option.listenClass,function(a){f.element=m(this),f.id=f.element.data("source-id"),""==f.id?(f.id=f.element.data("nodename")+'[name="'+f.element.data("source-name")+'"]',f.wpglobus_id="#wpglobus-"+f.convertToId(f.element.data("source-name"))):(f.wpglobus_id="#wpglobus-"+f.id,f.id="#"+f.id),f.clicks++,1==f.clicks&&setTimeout(function(){if(1==f.clicks)f.onClick(a);else{var t=m(f.id);t.hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;")}f.clicks=0},200)}),f.form=f.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),f.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===f.element.data("dialog-title")||""==f.element.data("dialog-title")?f.dialogTitle=f.option.dialogTitle:f.dialogTitle=f.element.data("dialog-title"),void 0!==f.id&&(f.attrs.maxlength=m(f.id).attr("maxlength")),f.source=f.element.data("source-value"),void 0===f.source&&(f.source=m(f.id).val(),"ajax"==f.request||(f.value=WPGlobusCore.getTranslations(f.source))),f.option.dialog=m.extend({},f.option.dialogOptions,m(f.wpglobus_id).data("dialog")),""!=f.option.dialog.title&&(f.dialogTitle=f.option.dialog.title),m.each(f.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(f.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(f.option.dialog.formFooter),f.runCallback(f.option.dialog.beforeOpen),f.dialog.dialog("open")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,i=c("#"+(e=a)),l=i.clone(),s=i.attr("name"),d="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",n=(n=document.getElementById(e)).nodeName,c(l).attr("id",e+"_"+o),c(l).attr("name",s+"_"+o),o!==WPGlobusCoreData.default_language&&(d+=" hidden"),c(l).attr("class",d),c(l).attr("data-save-to",e),c(l).attr("data-language",o),"INPUT"==n?c(l).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==n&&c(l).text(c("#wpglobus-link-tab-"+o).data(e)),i.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(l).insertAfter(i):c(l).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(){var e,o,n="#menu-to-edit .menu-item",i=function(){o!==c(n).length&&(clearInterval(e),c(n).each(function(t,a){var e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>")}}),e.addClass("wpglobus-menu-item")}}))};c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(o=c(n).length,e=setInterval(i,500))}}),c(n).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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";void 0!==t&&(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)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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 f;f=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(){},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){f.option.dialog=f.option.dialogOptions,f.option=m.extend(f.option,t),m(f.option.dialogTabs).tabs(),f.dialogTitle=f.option.dialogTitle,this.attachListener(),null!=f.option.customData&&void 0!==f.option.customData.addElements&&m.each(f.option.customData.addElements,function(t,a){f.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:f.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=f.startButton,r="";if(f.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(f.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==f.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),f.clone_id=f.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=f.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+f.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-"+f.clone_id).attr("name","wpglobus-"+s),e.addClass(f.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==f.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",f.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",f.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.attr("value",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,f.clone_id),u="id"==f.element_by?(u=(u=u.replace(/{{id}}/g,f.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?f.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+f.clone_id:f.startButtonClass;u=u.replace("{{classes}}",c),u=""==a.dialogTitle?u.replace("{{title}}",f.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-"+f.clone_id).addClass("wpglobus-textarea-"+f.clone_id),m(".wpglobus-textarea-"+f.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p=!1;if(""==a.onChangeClass)g="#wpglobus-"+f.clone_id;else{g="."+a.onChangeClass;var b=m._data(m(document)[0],"events");void 0===b?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})}return p||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?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(f.id).val(i),i=""==s?l:s,m(f.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){f.saveDialog(),f.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){f.dialog.dialog("close")}}],open:function(t,a){var e=f.dialogTitle;void 0!==f.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",f.attrs.maxlength),e+=" | maxlength="+f.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),f.runCallback(f.option.dialog.close),f.form[0].reset()}}),attachListener:function(){m(document).on("click",f.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");f.order.action="save_post_meta_settings",f.order.post_type=WPGlobusAdmin.data.post_type,f.order.checked=a.prop("checked"),f.order.id=a.attr("id"),f.order.meta_key=a.data("meta-key"),f.ajax(f.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",f.option.listenClass,function(a){f.element=m(this),f.id=f.element.data("source-id"),""==f.id?(f.id=f.element.data("nodename")+'[name="'+f.element.data("source-name")+'"]',f.wpglobus_id="#wpglobus-"+f.convertToId(f.element.data("source-name"))):(f.wpglobus_id="#wpglobus-"+f.id,f.id="#"+f.id),f.clicks++,1==f.clicks&&setTimeout(function(){if(1==f.clicks)f.onClick(a);else{var t=m(f.id);t.hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;")}f.clicks=0},200)}),f.form=f.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),f.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===f.element.data("dialog-title")||""==f.element.data("dialog-title")?f.dialogTitle=f.option.dialogTitle:f.dialogTitle=f.element.data("dialog-title"),void 0!==f.id&&(f.attrs.maxlength=m(f.id).attr("maxlength")),f.source=f.element.data("source-value"),void 0===f.source&&(f.source=m(f.id).val(),"ajax"==f.request||(f.value=WPGlobusCore.getTranslations(f.source))),f.option.dialog=m.extend({},f.option.dialogOptions,m(f.wpglobus_id).data("dialog")),""!=f.option.dialog.title&&(f.dialogTitle=f.option.dialog.title),m.each(f.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(f.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(f.option.dialog.formFooter),f.runCallback(f.option.dialog.beforeOpen),f.dialog.dialog("open")},runCallback:function(t){if("object"==typeof t){var 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]])}else"string"==typeof t&&"function"==typeof window[t]&&window[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=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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,e){c.each(a,function(t,a){!function(t,a){var e,o=c("#"+t),n=o.clone(),i=o.attr("name"),l="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable";e=(e=document.getElementById(t)).nodeName,c(n).attr("id",t+"_"+a),c(n).attr("name",i+"_"+a),a!==WPGlobusCoreData.default_language&&(l+=" hidden"),c(n).attr("class",l),c(n).attr("data-save-to",t),c(n).attr("data-language",a),"INPUT"==e?c(n).attr("value",c("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==e&&c(n).text(c("#wpglobus-link-tab-"+a).data(t)),o.addClass("hidden"),0==c(".wpglobus-element_"+t).length?c(n).insertAfter(o):c(n).insertAfter(c(".wpglobus-element_"+t).last())}(a,e)})}),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 e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var l=this,s={};c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var n,e,i;s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,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){if(-1!=n.inArray(a.id,s)){var 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)})})}c(document).on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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",a,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),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-admin.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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;v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){}},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=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,dialogTitle:"",style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:""};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="id",null===(d=document.getElementById(a.id))?(v.element_by="name",d=document.getElementsByName(a.id)):r=(r=d.nodeName).toLowerCase(),0!=d.length&&(l=a.id,s="undefined"===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1==s.indexOf("wpglobus")&&-1==v.clone_id.indexOf("wpglobus")&&!(0<m("#wpglobus-"+v.clone_id).length||0<m(r+'[name="wpglobus-'+s+'"]').length))){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.text())[WPGlobusCoreData.language],e.text(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.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),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=!1;if(""==a.onChangeClass)g="#wpglobus-"+v.clone_id;else{g="."+a.onChangeClass;var p=m._data(m(document)[0],"events");void 0===p?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})}b||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a,m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))})}},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)},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(){var t=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),t+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(t)},close:function(){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(){if(1==v.clicks)v.onClick(a);else{var t=m(v.id);t.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))),m.each(v.value,function(t,a){m("#wpglobus-dialog-"+t).val(a)}),v.dialog.dialog("open")}}}(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"===WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("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.admin_init(),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.post_edit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.nav_menus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomy_edit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.options_general():"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")},admin_init:function(){var t=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")}},options_general: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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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){console.log("Start Updating");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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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)})}},taxonomy_edit: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,i=c("#"+(e=a)),l=i.clone(),s=i.attr("name"),d="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",n=(n=document.getElementById(e)).nodeName,c(l).attr("id",e+"_"+o),c(l).attr("name",s+"_"+o),o!==WPGlobusCoreData.default_language&&(d+=" hidden"),c(l).attr("class",d),c(l).attr("data-save-to",e),c(l).attr("data-language",o),"INPUT"==n?c(l).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==n&&c(l).text(c("#wpglobus-link-tab-"+o).data(e)),i.addClass("hidden"),0==c(".wpglobus-element_"+e).size()?c(l).insertAfter(i):c(l).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)})},nav_menus:function(){var e,o,n="#menu-to-edit .menu-item",i=function(){o!==c(n).size()&&(clearInterval(e),c(n).each(function(t,a){var e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>")}}),e.addClass("wpglobus-menu-item")}}))};c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(o=c(n).size(),e=setInterval(i,500))}}),c(n).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))})},post_edit: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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeo.init()),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var i=this;c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var e,o,n;e=jQuery,o=new wp.utils.WordCounter,n=a,WPGlobusCoreData.wordCounter[n]={},WPGlobusCoreData.wordCounter[n].counter=o,e(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?i.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[n].content=e("#content_"+n),WPGlobusCoreData.wordCounter[n].count=e("#wp-word-count-"+n).find(".word-count-"+n),WPGlobusCoreData.wordCounter[n].prevCount=0,e(document).on("tinymce-editor-init",function(t,a){if(-1!=a.id.indexOf("content_")){var e=a.id.replace("content_","");(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3))}}),WPGlobusCoreData.wordCounter[n].content.on("input keyup",_.debounce(o,1e3)),o(n)})})}if("undefined"!=typeof wpWordCount){var l=0,t=WPGlobusCoreData.open_languages,s=this.$document,d={};t.shift(),c.each(WPGlobusCoreData.open_languages,function(t,a){d[a]=0});var u={settings:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,w:/\S\s+/g,c:/\S/g},block:d,wc:function(t,a,e){var o,n=this,i=0;o=a==WPGlobusCoreData.default_language?c(".word-count"):c(".word-count-"+a),void 0===e&&(e=wordCountL10n.type),"w"!==e&&"c"!==e&&(e="w"),n.block[a]||(n.block[a]=1,setTimeout(function(){t&&(t=(t=t.replace(n.settings.strip," ").replace(/&nbsp;|&#160;/gi," ")).replace(n.settings.clean,"")).replace(n.settings[e],function(){i++}),o.html(i.toString()),setTimeout(function(){n.block[a]=0},2e3)},1))}};s.bind("wpglobuscountwords",function(t,a,e){u.wc(a,e)}),c.each(t,function(t,e){var o=c("#content_"+e);s.triggerHandler("wpglobuscountwords",[o.val(),e]),o.keyup(function(t){var a=t.keyCode||t.charCode;return a==l||(13!=a&&8!=l&&46!=l||s.triggerHandler("wpglobuscountwords",[o.val(),e]),l=a),!0})}),c(document).triggerHandler("wpglobuscountwords",[c("#content").val(),WPGlobusCoreData.default_language])}c("body").on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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).size())return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).size())return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist span").each(function(t,a){o=(o=c(a).text()).replace("X","").trim(" "),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))})},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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";void 0!==t&&(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)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d;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;v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){}},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=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,dialogTitle:"",style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:""};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="id",null===(d=document.getElementById(a.id))?(v.element_by="name",d=document.getElementsByName(a.id)):r=(r=d.nodeName).toLowerCase(),0!=d.length&&(l=a.id,s="undefined"===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1==s.indexOf("wpglobus")&&-1==v.clone_id.indexOf("wpglobus")&&!(0<m("#wpglobus-"+v.clone_id).length||0<m(r+'[name="wpglobus-'+s+'"]').length))){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.text())[WPGlobusCoreData.language],e.text(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.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),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=!1;if(""==a.onChangeClass)g="#wpglobus-"+v.clone_id;else{g="."+a.onChangeClass;var p=m._data(m(document)[0],"events");void 0===p?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})}b||m(document).on("change",g,function(){var t=m(this),a=t.data("source-id");a=""==a?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a,m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))})}},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)},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(){var t=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),t+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(t)},close:function(){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(){if(1==v.clicks)v.onClick(a);else{var t=m(v.id);t.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))),m.each(v.value,function(t,a){m("#wpglobus-dialog-"+t).val(a)}),v.dialog.dialog("open")}}}(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"===WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("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.admin_init(),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.post_edit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.nav_menus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomy_edit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.options_general():"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")},admin_init:function(){var t=c(".wpglobus-addons-group a").data("key");if(void 0!==t)if(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t))WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single;else{var a=c("#toplevel_page_wpglobus_options li").eq(t+1);WPGlobusCoreData.multisite?c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(a).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")}},options_general: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){if(void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items){var 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))});var 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())});var t={action:"get_titles"};t.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){console.log("Start Updating");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","a.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){if(""!=WPGlobusAdmin.data.value[a]){var e,o=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val();void 0!==o&&(e=o.split(","),c.each(e,function(t,a){o=o.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(o))}});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)})}},taxonomy_edit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,e){c.each(a,function(t,a){!function(t,a){var e,o=c("#"+t),n=o.clone(),i=o.attr("name"),l="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable";e=(e=document.getElementById(t)).nodeName,c(n).attr("id",t+"_"+a),c(n).attr("name",i+"_"+a),a!==WPGlobusCoreData.default_language&&(l+=" hidden"),c(n).attr("class",l),c(n).attr("data-save-to",t),c(n).attr("data-language",a),"INPUT"==e?c(n).attr("value",c("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==e&&c(n).text(c("#wpglobus-link-tab-"+a).data(t)),o.addClass("hidden"),0==c(".wpglobus-element_"+t).size()?c(n).insertAfter(o):c(n).insertAfter(c(".wpglobus-element_"+t).last())}(a,e)})}),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)})},nav_menus:function(){function e(){n!==c(i).size()&&(clearInterval(o),c(i).each(function(t,a){var e=c(a);if(!e.hasClass("wpglobus-menu-item")){var l=c(a).attr("id");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=c("#"+l+" "+a),o=c(e);if(!o.hasClass("wpglobus-hidden")){o.addClass("wpglobus-hidden"),o.css("display","none");var n=o.parent("label"),i=o.parents("p");c(i).css("height","80px"),c(n).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).size(),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))})},post_edit: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 e="#postdivrich",o=!0,a="#post-body-content";if(!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(a).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))}),c(a).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),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&&WPGlobusYoastSeo.init()),WPGlobusAdmin.data.modify_excerpt){var n=c("#excerpt");n.addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(n),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);n.val(WPGlobusCore.getString(n.val(),t.val(),t.data("language")))})}if(void 0!==wp.utils&&void 0!==wp.utils.WordCounter){WPGlobusCoreData.wordCounter={};var i=this;c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a==WPGlobusCoreData.default_language)return!0;var e,o,n;e=jQuery,o=new wp.utils.WordCounter,n=a,WPGlobusCoreData.wordCounter[n]={},WPGlobusCoreData.wordCounter[n].counter=o,e(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?i.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[n].content=e("#content_"+n),WPGlobusCoreData.wordCounter[n].count=e("#wp-word-count-"+n).find(".word-count-"+n),WPGlobusCoreData.wordCounter[n].prevCount=0,e(document).on("tinymce-editor-init",function(t,a){if(-1!=a.id.indexOf("content_")){var e=a.id.replace("content_","");(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3))}}),WPGlobusCoreData.wordCounter[n].content.on("input keyup",_.debounce(o,1e3)),o(n)})})}if("undefined"!=typeof wpWordCount){var l=0,t=WPGlobusCoreData.open_languages,s=this.$document,d={};t.shift(),c.each(WPGlobusCoreData.open_languages,function(t,a){d[a]=0});var u={settings:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,w:/\S\s+/g,c:/\S/g},block:d,wc:function(t,a,e){var o,n=this,i=0;o=a==WPGlobusCoreData.default_language?c(".word-count"):c(".word-count-"+a),void 0===e&&(e=wordCountL10n.type),"w"!==e&&"c"!==e&&(e="w"),n.block[a]||(n.block[a]=1,setTimeout(function(){t&&(t=(t=t.replace(n.settings.strip," ").replace(/&nbsp;|&#160;/gi," ")).replace(n.settings.clean,"")).replace(n.settings[e],function(){i++}),o.html(i.toString()),setTimeout(function(){n.block[a]=0},2e3)},1))}};s.bind("wpglobuscountwords",function(t,a,e){u.wc(a,e)}),c.each(t,function(t,e){var o=c("#content_"+e);s.triggerHandler("wpglobuscountwords",[o.val(),e]),o.keyup(function(t){var a=t.keyCode||t.charCode;return a==l||(13!=a&&8!=l&&46!=l||s.triggerHandler("wpglobuscountwords",[o.val(),e]),l=a),!0})}),c(document).triggerHandler("wpglobuscountwords",[c("#content").val(),WPGlobusCoreData.default_language])}c("body").on("click","#publish, #save-post",function(){if(1<WPGlobusAdmin.data.open_languages.length){c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:a});var t,e=c("#title").val(),o="",n="";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).size())return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).size())return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist span").each(function(t,a){o=(o=c(a).text()).replace("X","").trim(" "),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))})},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(){if(void 0===WPGlobusAdmin.data.customFieldsEnabled||(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),WPGlobusAdmin.data.customFieldsEnabled)){var o,a=!1,n=function(t){var s,d,u,r="wpglobus_dialog_start wpglobus_dialog_icon";u=['<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(""),c(void 0===t?"#the-list tr":"#the-list tr#"+t).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=r;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),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=u.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}}/,""),r+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),r),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>")}),!a&&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>'),a=!0)};n(),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-customize-control170.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(c){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:'<span style="margin-left:5px;" class="wpglobus-icon-globe"></span><span style="font-weight:bold;">{{language}}</span>',settingsSectionExpand:function(){c(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(t){u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(c.each(WPGlobusCoreData.enabled_languages,function(t,e){u.languages[t]=e,u.length=t}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(t){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,t.target.textContent,WPGlobusCoreData.language))},setTinymce:function(t){c(document).on("tinymce-editor-init",function(t,e){"object"==typeof u.controlInstances[e.id]&&(u.controlInstances[e.id].type="tinymce",c(e.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),e.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(t){return void 0===t?_.size(u.controlInstances):"widget"==t?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=c(".wpglobus-fields_settings_control_box").data("section-template"),s="",i="",l="";c.each(WPGlobusCustomize.controlInstances,function(t,e){void 0===o[e.section]&&(o[e.section]={}),o[e.section][t]=e}),c.each(o,function(t,e){if(i="<ul>",c.each(e,function(t,e){l=e.userControl.enabled?" checked ":"",i+='<li id="'+e.fieldSettings.itemID+'">',i+='<input id="'+e.fieldSettings.cbID+'" data-control="'+t+'" class="wpglobus-customize-cb-control" type="checkbox"'+l+' /> <span class="wpglobus-cb-control-title">'+e.title+"</span>",i+="</li>"}),i+="</ul>",void 0===wp.customize.section(t))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(t).params.title)).replace(/{{section}}/g,t)).replace("{{section_id}}",'"'+t+'"')).replace("{{items}}",i),c(s).insertBefore(c("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),c("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),c(WPGlobusCustomizeOptions.helpButton).insertAfter(c("#accordion-section-wpglobus_fields_settings_section .customize-action")),c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),c(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(t){var o=c(this).data("section");c(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(t,e){o==c(e).data("section")?c(this).css({display:"block"}):c(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),c(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(t){c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(t,e){var o=e.controlSelector+" "+e.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+e.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';c(n).insertBefore(o),e.userControl.enabled||(1<c(o).length?c(o).each(function(t,e){c(e).removeClass(WPGlobusCustomize.controlClass)}):c(o).removeClass(WPGlobusCustomize.controlClass).val(e.setting))},ctrlMenuItemsCallback:function(t,e){},ctrlWidgetCallback:function(i,l){if(u.action=!1,void 0===u.controlWidgets[i].element){void 0===l&&(l=wp.customize.control.instance(i)),u.controlWidgets[i].element={},u.controlWidgets[i].control=l,u.controlWidgets[i].inWidgetTitle=l.container.find(".in-widget-title"),u.controlWidgets[i].parent=l.selector;var t=l.container.find("input[type=submit]");0!=t.length&&(t.css({display:"block"}),t.attr("data-widget",i),u.controlWidgets[i].submit=t,u.attachWidgetListeners(u.controlWidgets[i])),l.liveUpdateMode=!1,void 0===l.setting().title?u.controlWidgets[i].inWidgetTitle.text(""):u.controlWidgets[i].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(l.setting().title,WPGlobusCustomize.languageAdmin)),c.each(WPGlobusCustomize.elementSelector,function(t,n){var s=l.container.find(n);0!=s.length&&c.each(s,function(t,e){if(void 0===e.id||""==e.id)return!0;var o=c(s[t]);void 0===u.controlWidgets[i].element[e.id]&&(u.controlWidgets[i].element[e.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",i),u.controlWidgets[i].element[e.id].element=o,u.controlWidgets[i].element[e.id].setting=l.setting(),u.controlWidgets[i].element[e.id].selector=n,u.controlWidgets[i].element[e.id].value=e.defaultValue,o.val(WPGlobusCore.TextFilter(e.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),c(document).triggerHandler("wpglobus_customize_control_added_widget",[i])}},ctrlCallback:function(o,i,t){var n=!1;if(c.each(WPGlobusCustomize.disabledSections,function(t,e){if(o.section()==e)return!(n=!0)}),!n&&(c.each(WPGlobusCustomize.disabledSettingMask,function(t,e){if(0<=i.indexOf(e))return!(n=!0)}),!n)){var l=wp.customize.control.instance(i);if(0<=i.indexOf("widget"))return void 0===u.controlWidgets[i]&&(u.controlWidgets[i]={},u.action&&u.ctrlWidgetCallback(i,l)),u.controlWidgets[i].parent=l.selector,1!=c(l.selector).length?u.controlWidgets[i].observer=null:(u.controlWidgets[i].observer=new MutationObserver(function(t){t.forEach(function(t){"class"==t.attributeName&&-1!=t.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(i)})}),u.controlWidgets[i].observer.observe(document.querySelector(u.controlWidgets[i].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[i]){var a=!0;c.each(WPGlobusCustomize.elementSelector,function(t,e){var s=l.container.find(e);0!=s.length&&(u.controlInstances[i]={},u.controlInstances[i].element=s,u.controlInstances[i].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[i].setting=l.setting(),u.controlInstances[i].selector=e,u.controlInstances[i].controlSelector=l.selector,u.controlInstances[i].type="",u.controlInstances[i].section=l.section(),u.controlInstances[i].title=null,u.controlInstances[i].userControl=null,u.controlInstances[i].fieldSettings={},u.controlInstances[i].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(i),u.controlInstances[i].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(i),c.each(WPGlobusCustomize.setLinkBy,function(t,e){if(0<=i.indexOf(e)){if(u.controlInstances[i].type="link",""==u.controlInstances[i].setting&&(u.controlInstances[i].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(i).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(i).setting(n[WPGlobusCoreData.default_language]),c(WPGlobusCustomize.controlInstances[i].controlSelector+" "+WPGlobusCustomize.controlInstances[i].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[i].type&&(u.controlInstances[i].type="textarea"==e?"textarea":"text"),s.val(WPGlobusCore.TextFilter(u.controlInstances[i].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[i].controlSelector.replace("#customize-control-","")),"link"==u.controlInstances[i].type&&(u.controlInstances[i].setting=u.convertString(s[0].defaultValue)),u.controlInstances[i].title=l.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][i]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][i]&&(a=!1),u.controlInstances[i].userControl={},u.controlInstances[i].userControl.enabled=a,u.setUserControls(i,u.controlInstances[i]))})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){c(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(t){if(void 0===t)return t;var o=[],e=WPGlobusCore.getTranslations(t),n=0,s=!0;return t==e[WPGlobusCoreData.default_language]?t:(c.each(e,function(t,e){o[n]=""==e?"null":(s=!1,e),n++}),s?"":o.join("|||"))},getTranslations:function(t){if(void 0===t)return t;var o={},n=t.split("|||");return c.each(WPGlobusCoreData.enabled_languages,function(t,e){o[e]=void 0===n[t]||"null"===n[t]?"":n[t]}),o},getString:function(t,o,n){if(void 0===t)return t;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var e=u.getTranslations(t),s=[],i=0,l=!0;return c.each(e,function(t,e){s[i]=t==n?""==(o=o.trim())?"null":o:""==e?"null":e,t!=WPGlobusCoreData.default_language&&"null"!=s[i]&&(l=!1),i++}),s=l?s[0]:s.join("|||")},addLanguageSelector:function(){c(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),c(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).on("click",".wpglobus-customize-selector",function(t){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],c(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),c(".wpglobus-customize-control").each(function(t,e){var o=c(e),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else{s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),c(".wpglobus-customize-widget-control").each(function(t,e){var o=c(e),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})})},updateElements:function(s){void 0===s&&(s=!0),c.each(WPGlobusCustomize.controlInstances,function(t,e){if(!e.userControl.enabled)return!0;var o=wp.customize.control.instance(t);if("link"==e.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[t].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),e.element.val(o.setting())):e.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==e.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(t).setContent(n,{format:"raw"}),e.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),e.element.val(o.setting())):e.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(t){"mouseenter"==t.type?c.each(u.controlWidgets[c(this).data("widget")].element,function(t,e){c("#"+t).val(e.value)}):"mouseleave"==t.type?u.widgetKeep||c.each(u.controlWidgets[c(this).data("widget")].element,function(t,e){c("#"+t).val(WPGlobusCore.TextFilter(e.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==t.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(t){void 0!==t.submit[0].id&&c(document).on("mouseenter","#"+t.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+t.submit[0].id,u.onSubmitEvents).on("click","#"+t.submit[0].id,u.onSubmitEvents)},attachListeners:function(){c(".wpglobus-customize-control").on("keyup",function(t){var e=c(this),o=e.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=e.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===c(document).triggerHandler("wpglobus_customize_control_keyup",[e,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,e.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,e.val(),WPGlobusCoreData.language))}),c(document).on("keyup",".wpglobus-customize-widget-control",function(t){var e=c(this),o=e.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[e.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[e.attr("id")].value,e.val(),WPGlobusCoreData.language))}),c(document).on("mouseenter","#save",function(t){c.each(WPGlobusCustomize.controlInstances,function(t,e){if(e.userControl.enabled){var o=wp.customize.control.instance(t);"tinymce"==e.type&&tinymce.get(t).setContent(e.setting,{format:"raw"}),o.setting.set(e.setting),e.element.val(o.setting())}})}).on("mouseleave","#save",function(t){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),c("#save").on("click",function(t){u.instancesKeep=!0}),c(document).on("ajaxSend",function(t,e,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),c(document).on("ajaxComplete",function(t,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),c.each(WPGlobusCustomize.controlWidgets,function(t,e){var o=t.replace("_","-");if(0<=n.responseText.indexOf(o))return e.submit.css({display:"block"}),e.control.liveUpdateMode=!1,c.each(e.element,function(t,e){c("#"+t).val(WPGlobusCore.TextFilter(e.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),e.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(e.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=c.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
1
+ jQuery(document).ready(function(c){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:'<span style="margin-left:5px;" class="wpglobus-icon-globe"></span><span style="font-weight:bold;">{{language}}</span>',settingsSectionExpand:function(){c(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(t){u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(c.each(WPGlobusCoreData.enabled_languages,function(t,e){u.languages[t]=e,u.length=t}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(t){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,t.target.textContent,WPGlobusCoreData.language))},setTinymce:function(t){c(document).on("tinymce-editor-init",function(t,e){"object"==typeof u.controlInstances[e.id]&&(u.controlInstances[e.id].type="tinymce",c(e.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),e.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(t){return void 0===t?_.size(u.controlInstances):"widget"==t?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=c(".wpglobus-fields_settings_control_box").data("section-template"),s="",i="",l="";c.each(WPGlobusCustomize.controlInstances,function(t,e){void 0===o[e.section]&&(o[e.section]={}),o[e.section][t]=e}),c.each(o,function(t,e){if(i="<ul>",c.each(e,function(t,e){l=e.userControl.enabled?" checked ":"",i+='<li id="'+e.fieldSettings.itemID+'">',i+='<input id="'+e.fieldSettings.cbID+'" data-control="'+t+'" class="wpglobus-customize-cb-control" type="checkbox"'+l+' /> <span class="wpglobus-cb-control-title">'+e.title+"</span>",i+="</li>"}),i+="</ul>",void 0===wp.customize.section(t))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(t).params.title)).replace(/{{section}}/g,t)).replace("{{section_id}}",'"'+t+'"')).replace("{{items}}",i),c(s).insertBefore(c("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),c("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),c(WPGlobusCustomizeOptions.helpButton).insertAfter(c("#accordion-section-wpglobus_fields_settings_section .customize-action")),c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),c(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(t){var o=c(this).data("section");c(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(t,e){o==c(e).data("section")?c(this).css({display:"block"}):c(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),c(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(t){c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(t,e){var o=e.controlSelector+" "+e.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+e.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';c(n).insertBefore(o),e.userControl.enabled||(1<c(o).length?c(o).each(function(t,e){c(e).removeClass(WPGlobusCustomize.controlClass)}):c(o).removeClass(WPGlobusCustomize.controlClass).val(e.setting))},ctrlMenuItemsCallback:function(t,e){},ctrlWidgetCallback:function(i,l){if(u.action=!1,void 0===u.controlWidgets[i].element){void 0===l&&(l=wp.customize.control.instance(i)),u.controlWidgets[i].element={},u.controlWidgets[i].control=l,u.controlWidgets[i].inWidgetTitle=l.container.find(".in-widget-title"),u.controlWidgets[i].parent=l.selector;var t=l.container.find("input[type=submit]");0!=t.length&&(t.css({display:"block"}),t.attr("data-widget",i),u.controlWidgets[i].submit=t,u.attachWidgetListeners(u.controlWidgets[i])),l.liveUpdateMode=!1,void 0===l.setting().title?u.controlWidgets[i].inWidgetTitle.text(""):u.controlWidgets[i].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(l.setting().title,WPGlobusCustomize.languageAdmin)),c.each(WPGlobusCustomize.elementSelector,function(t,n){var s=l.container.find(n);0!=s.length&&c.each(s,function(t,e){if(void 0===e.id||""==e.id)return!0;var o=c(s[t]);void 0===u.controlWidgets[i].element[e.id]&&(u.controlWidgets[i].element[e.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",i),u.controlWidgets[i].element[e.id].element=o,u.controlWidgets[i].element[e.id].setting=l.setting(),u.controlWidgets[i].element[e.id].selector=n,u.controlWidgets[i].element[e.id].value=e.defaultValue,o.val(WPGlobusCore.TextFilter(e.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),c(document).triggerHandler("wpglobus_customize_control_added_widget",[i])}},ctrlCallback:function(o,i,t){var n=!1;if(c.each(WPGlobusCustomize.disabledSections,function(t,e){if(o.section()==e)return!(n=!0)}),!n&&(c.each(WPGlobusCustomize.disabledSettingMask,function(t,e){if(0<=i.indexOf(e))return!(n=!0)}),!n)){var l=wp.customize.control.instance(i);if(0<=i.indexOf("widget"))return void 0===u.controlWidgets[i]&&(u.controlWidgets[i]={},u.action&&u.ctrlWidgetCallback(i,l)),u.controlWidgets[i].parent=l.selector,1!=c(l.selector).length?u.controlWidgets[i].observer=null:(u.controlWidgets[i].observer=new MutationObserver(function(t){t.forEach(function(t){"class"==t.attributeName&&-1!=t.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(i)})}),u.controlWidgets[i].observer.observe(document.querySelector(u.controlWidgets[i].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[i]){var a=!0;c.each(WPGlobusCustomize.elementSelector,function(t,e){var s=l.container.find(e);0!=s.length&&(u.controlInstances[i]={},u.controlInstances[i].element=s,u.controlInstances[i].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[i].setting=l.setting(),u.controlInstances[i].selector=e,u.controlInstances[i].controlSelector=l.selector,u.controlInstances[i].type="",u.controlInstances[i].section=l.section(),u.controlInstances[i].title=null,u.controlInstances[i].userControl=null,u.controlInstances[i].fieldSettings={},u.controlInstances[i].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(i),u.controlInstances[i].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(i),c.each(WPGlobusCustomize.setLinkBy,function(t,e){if(0<=i.indexOf(e)){if(u.controlInstances[i].type="link",""==u.controlInstances[i].setting&&(u.controlInstances[i].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(i).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(i).setting(n[WPGlobusCoreData.default_language]),c(WPGlobusCustomize.controlInstances[i].controlSelector+" "+WPGlobusCustomize.controlInstances[i].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[i].type&&(u.controlInstances[i].type="textarea"==e?"textarea":"text"),s.val(WPGlobusCore.TextFilter(u.controlInstances[i].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[i].controlSelector.replace("#customize-control-","")),"link"==u.controlInstances[i].type&&(u.controlInstances[i].setting=u.convertString(s[0].defaultValue)),u.controlInstances[i].title=l.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][i]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][i]&&(a=!1),u.controlInstances[i].userControl={},u.controlInstances[i].userControl.enabled=a,u.setUserControls(i,u.controlInstances[i]))})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){c(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(t){if(void 0===t)return t;var o=[],e=WPGlobusCore.getTranslations(t),n=0,s=!0;return t==e[WPGlobusCoreData.default_language]?t:(c.each(e,function(t,e){o[n]=""==e?"null":(s=!1,e),n++}),s?"":o.join("|||"))},getTranslations:function(t){if(void 0===t)return t;var o={},n=t.split("|||");return c.each(WPGlobusCoreData.enabled_languages,function(t,e){o[e]=void 0===n[t]||"null"===n[t]?"":n[t]}),o},getString:function(t,o,n){if(void 0===t)return t;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var e=u.getTranslations(t),s=[],i=0,l=!0;return c.each(e,function(t,e){t==n?(o=o.trim(),s[i]=""==o?"null":o):s[i]=""==e?"null":e,t!=WPGlobusCoreData.default_language&&"null"!=s[i]&&(l=!1),i++}),s=l?s[0]:s.join("|||")},addLanguageSelector:function(){c(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),c(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).on("click",".wpglobus-customize-selector",function(t){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],c(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),c(".wpglobus-customize-control").each(function(t,e){var o=c(e),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else{s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),c(".wpglobus-customize-widget-control").each(function(t,e){var o=c(e),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})})},updateElements:function(s){void 0===s&&(s=!0),c.each(WPGlobusCustomize.controlInstances,function(t,e){if(!e.userControl.enabled)return!0;var o=wp.customize.control.instance(t);if("link"==e.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[t].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),e.element.val(o.setting())):e.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==e.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(t).setContent(n,{format:"raw"}),e.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),e.element.val(o.setting())):e.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[t].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(t){"mouseenter"==t.type?c.each(u.controlWidgets[c(this).data("widget")].element,function(t,e){c("#"+t).val(e.value)}):"mouseleave"==t.type?u.widgetKeep||c.each(u.controlWidgets[c(this).data("widget")].element,function(t,e){c("#"+t).val(WPGlobusCore.TextFilter(e.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==t.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(t){void 0!==t.submit[0].id&&c(document).on("mouseenter","#"+t.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+t.submit[0].id,u.onSubmitEvents).on("click","#"+t.submit[0].id,u.onSubmitEvents)},attachListeners:function(){c(".wpglobus-customize-control").on("keyup",function(t){var e=c(this),o=e.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=e.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===c(document).triggerHandler("wpglobus_customize_control_keyup",[e,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,e.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,e.val(),WPGlobusCoreData.language))}),c(document).on("keyup",".wpglobus-customize-widget-control",function(t){var e=c(this),o=e.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[e.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[e.attr("id")].value,e.val(),WPGlobusCoreData.language))}),c(document).on("mouseenter","#save",function(t){c.each(WPGlobusCustomize.controlInstances,function(t,e){if(e.userControl.enabled){var o=wp.customize.control.instance(t);"tinymce"==e.type&&tinymce.get(t).setContent(e.setting,{format:"raw"}),o.setting.set(e.setting),e.element.val(o.setting())}})}).on("mouseleave","#save",function(t){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),c("#save").on("click",function(t){u.instancesKeep=!0}),c(document).on("ajaxSend",function(t,e,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),c(document).on("ajaxComplete",function(t,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),c.each(WPGlobusCustomize.controlWidgets,function(t,e){var o=t.replace("_","-");if(0<=n.responseText.indexOf(o))return e.submit.css({display:"block"}),e.control.liveUpdateMode=!1,c.each(e.element,function(t,e){c("#"+t).val(WPGlobusCore.TextFilter(e.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),e.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(e.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=c.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
includes/js/wpglobus-customize-control190.js CHANGED
@@ -24,12 +24,13 @@ jQuery(document).ready(function ($) {
24
  widgetKeep: false,
25
  action: false,
26
  customizeSave: false,
27
- selectorHtml: '<span style="margin-left:5px;" class="wpglobus-icon-globe"></span><span class="current-language" style="font-weight:bold;">{{language}}</span>',
28
  settingsSectionExpand: function() {
29
  $(document).triggerHandler( 'wpglobus_fields_settings_section_expand', [this, api] );
30
  },
31
  init: function(args) {
32
 
 
33
  api.setTitle();
34
 
35
  if ( WPGlobusCustomizeOptions.themeEnabled == 'false' ) {
24
  widgetKeep: false,
25
  action: false,
26
  customizeSave: false,
27
+ selectorHtml: '',
28
  settingsSectionExpand: function() {
29
  $(document).triggerHandler( 'wpglobus_fields_settings_section_expand', [this, api] );
30
  },
31
  init: function(args) {
32
 
33
+ api.selectorHtml = WPGlobusCustomize.selector_html;
34
  api.setTitle();
35
 
36
  if ( WPGlobusCustomizeOptions.themeEnabled == 'false' ) {
includes/js/wpglobus-customize-control190.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(c){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:'<span style="margin-left:5px;" class="wpglobus-icon-globe"></span><span class="current-language" style="font-weight:bold;">{{language}}</span>',settingsSectionExpand:function(){c(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(e){u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(c.each(WPGlobusCoreData.enabled_languages,function(e,t){u.languages[e]=t,u.length=e}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(e){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,e.target.textContent,WPGlobusCoreData.language))},setTinymce:function(e){c(document).on("tinymce-editor-init",function(e,t){"object"==typeof u.controlInstances[t.id]&&(u.controlInstances[t.id].type="tinymce",c(t.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),t.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(e){return void 0===e?_.size(u.controlInstances):"widget"==e?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=c(".wpglobus-fields_settings_control_box").data("section-template"),s="",l="",i="";c.each(WPGlobusCustomize.controlInstances,function(e,t){void 0===o[t.section]&&(o[t.section]={}),o[t.section][e]=t}),c.each(o,function(e,t){if(l="<ul>",c.each(t,function(e,t){i=t.userControl.enabled?" checked ":"",l+='<li id="'+t.fieldSettings.itemID+'">',l+='<input id="'+t.fieldSettings.cbID+'" data-control="'+e+'" class="wpglobus-customize-cb-control" type="checkbox"'+i+' /> <span class="wpglobus-cb-control-title">'+t.title+"</span>",l+="</li>"}),l+="</ul>",void 0===wp.customize.section(e))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(e).params.title)).replace(/{{section}}/g,e)).replace("{{section_id}}",'"'+e+'"')).replace("{{items}}",l),c(s).insertBefore(c("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),c("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),c(WPGlobusCustomizeOptions.helpButton).insertAfter(c("#accordion-section-wpglobus_fields_settings_section .customize-action")),c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),c(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(e){var o=c(this).data("section");c(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(e,t){o==c(t).data("section")?c(this).css({display:"block"}):c(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),c(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(e){c("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(e,t){var o=t.controlSelector+" "+t.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+t.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';c(n).insertBefore(o),t.userControl.enabled||(1<c(o).length?c(o).each(function(e,t){c(t).removeClass(WPGlobusCustomize.controlClass)}):c(o).removeClass(WPGlobusCustomize.controlClass).val(t.setting))},ctrlMenuItemsCallback:function(e,t){},ctrlWidgetCallback:function(l,i){if(u.action=!1,void 0===u.controlWidgets[l].element){void 0===i&&(i=wp.customize.control.instance(l)),u.controlWidgets[l].element={},u.controlWidgets[l].control=i,u.controlWidgets[l].inWidgetTitle=i.container.find(".in-widget-title"),u.controlWidgets[l].parent=i.selector;var e=i.container.find("input[type=submit]");0!=e.length&&(e.css({display:"block"}),e.attr("data-widget",l),u.controlWidgets[l].submit=e,u.attachWidgetListeners(u.controlWidgets[l])),i.liveUpdateMode=!1,void 0===i.setting().title?u.controlWidgets[l].inWidgetTitle.text(""):u.controlWidgets[l].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(i.setting().title,WPGlobusCustomize.languageAdmin)),c.each(WPGlobusCustomize.elementSelector,function(e,n){var s=i.container.find(n);0!=s.length&&c.each(s,function(e,t){if(void 0===t.id||""==t.id)return!0;var o=c(s[e]);void 0===u.controlWidgets[l].element[t.id]&&(u.controlWidgets[l].element[t.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",l),u.controlWidgets[l].element[t.id].element=o,u.controlWidgets[l].element[t.id].setting=i.setting(),u.controlWidgets[l].element[t.id].selector=n,u.controlWidgets[l].element[t.id].value=t.defaultValue,o.val(WPGlobusCore.TextFilter(t.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),c(document).triggerHandler("wpglobus_customize_control_added_widget",[l])}},ctrlCallback:function(o,l,e){var n=!1;if(c.each(WPGlobusCustomize.disabledSections,function(e,t){if(o.section()==t)return!(n=!0)}),!n&&(c.each(WPGlobusCustomize.disabledSettingMask,function(e,t){if(0<=l.indexOf(t))return!(n=!0)}),!n)){var i=wp.customize.control.instance(l);if(0<=l.indexOf("widget"))return void 0===u.controlWidgets[l]&&(u.controlWidgets[l]={},u.action&&u.ctrlWidgetCallback(l,i)),u.controlWidgets[l].parent=i.selector,1!=c(i.selector).length?u.controlWidgets[l].observer=null:(u.controlWidgets[l].observer=new MutationObserver(function(e){e.forEach(function(e){"class"==e.attributeName&&-1!=e.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(l)})}),u.controlWidgets[l].observer.observe(document.querySelector(u.controlWidgets[l].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[l]){var a=!0;c.each(WPGlobusCustomize.elementSelector,function(e,t){var s=i.container.find(t);if(0!=s.length){if("function"!=typeof i.setting)return!0;u.controlInstances[l]={},u.controlInstances[l].element=s,u.controlInstances[l].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[l].setting=i.setting(),u.controlInstances[l].settingType=typeof i.setting(),u.controlInstances[l].selector=t,u.controlInstances[l].controlSelector=i.selector,u.controlInstances[l].type="",u.controlInstances[l].section=i.section(),u.controlInstances[l].title=null,u.controlInstances[l].userControl=null,u.controlInstances[l].fieldSettings={},u.controlInstances[l].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),u.controlInstances[l].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),c.each(WPGlobusCustomize.setLinkBy,function(e,t){if(0<=l.indexOf(t)){if(u.controlInstances[l].type="link",""==u.controlInstances[l].setting&&(u.controlInstances[l].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(l).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(l).setting(n[WPGlobusCoreData.default_language]),c(WPGlobusCustomize.controlInstances[l].controlSelector+" "+WPGlobusCustomize.controlInstances[l].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[l].type&&(u.controlInstances[l].type="textarea"==t?"textarea":"text"),"string"==u.controlInstances[l].settingType&&""!=u.controlInstances[l].setting&&s.val(WPGlobusCore.TextFilter(u.controlInstances[l].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[l].controlSelector.replace("#customize-control-","")),s.attr("data-wpglobus-customize-control-setting-type",u.controlInstances[l].settingType),"link"==u.controlInstances[l].type&&(u.controlInstances[l].setting=u.convertString(s[0].defaultValue)),u.controlInstances[l].title=i.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&(a=!1),u.controlInstances[l].userControl={},u.controlInstances[l].userControl.enabled=a,u.setUserControls(l,u.controlInstances[l])}})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){c(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(e){if(void 0===e)return e;var o=[],t=WPGlobusCore.getTranslations(e),n=0,s=!0;return e==t[WPGlobusCoreData.default_language]?e:(c.each(t,function(e,t){o[n]=""==t?"null":(s=!1,t),n++}),s?"":o.join("|||"))},getTranslations:function(e){if(void 0===e)return e;var o={},n=e.split("|||");return c.each(WPGlobusCoreData.enabled_languages,function(e,t){o[t]=void 0===n[e]||"null"===n[e]?"":n[e]}),o},getString:function(e,o,n){if(void 0===e)return e;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var t=u.getTranslations(e),s=[],l=0,i=!0;return c.each(t,function(e,t){s[l]=e==n?""==(o=o.trim())?"null":o:""==t?"null":t,e!=WPGlobusCoreData.default_language&&"null"!=s[l]&&(i=!1),l++}),s=i?s[0]:s.join("|||")},addLanguageSelector:function(){"dropdown"!=WPGlobusCustomize.selectorType?(c(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),c(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).on("click",".wpglobus-customize-selector",function(e){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],c(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),c(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()})):u.addLanguageSelectorDropdown()},addLanguageSelectorDropdown:function(){c(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),c(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language));var e=c(".wpglobus-customize-selector").offset(),t=e.top+46;t+="px;";var o=e.left+"px;",n=0,s='<ul class="wpglobus-customize-selector-dropdown" style="display:none;position:fixed;width:46px;border-left:1px solid #ddd;border-right:1px solid #ddd;background-color:#eee;margin:-1px 0 0;padding:0;top:'+t+"left:"+o+'">';c.each(WPGlobusCoreData.enabled_languages,function(e,t){s+='<li class="item" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;" data-language="'+t+'">',s+='<span class="value value-'+t+'" style="font-size:15px;">'+t+"</span>",s+="</li>"}),s+='<li class="item wpglobus-customize-item-settings" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;"><span style="padding-top:14px;" class="dashicons dashicons-admin-tools"></span></li>',s+="</ul>",c(".wpglobus-customize-selector").after(s),c(document).on("mouseenter",".wpglobus-customize-selector",function(e){c(".wpglobus-customize-selector-dropdown").css({display:"block"}),n=e.screenY}),c(document).on("mouseleave",".wpglobus-customize-selector",function(e){0!=n&&e.screenY-n<=0&&c(".wpglobus-customize-selector-dropdown").css({display:"none"})}),c(document).on("mouseleave",".wpglobus-customize-selector-dropdown",function(e){c(".wpglobus-customize-selector-dropdown").css({display:"none"})}),c(document).on("mouseenter",".wpglobus-customize-selector-dropdown .item",function(e){var t=c(this),o=t.data("language");t.addClass("active"),t.css({"background-color":"#fff"}),t.find(".value-"+o).css({"font-weight":"bold"})}),c(document).on("mouseleave",".wpglobus-customize-selector-dropdown .item",function(e){var t=c(this);t.removeClass("active"),t.css({"background-color":"#eee"}),c(this).find(".value").css({"font-weight":""})}),c(document).on("click",".wpglobus-customize-selector-dropdown .item",function(e){var t=c(this).data("language");void 0!==t&&t!=c(".wpglobus-customize-selector").data("language")&&u.languageChanged(t)}),c(document).on("click",".wpglobus-customize-item-settings",function(e){wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand}),c(".wpglobus-customize-selector-dropdown").css({display:"none"})})},languageChanged:function(e){WPGlobusCoreData.language=e,c(".wpglobus-customize-selector").data("language",e),c(".wpglobus-customize-selector .current-language").text(e),c(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()},setControlsValue:function(){c(".wpglobus-customize-control").each(function(e,t){var o=c(t),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else if("object"==WPGlobusCustomize.controlInstances[n].settingType);else if("number"==WPGlobusCustomize.controlInstances[n].settingType);else{s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),c(".wpglobus-customize-widget-control").each(function(e,t){var o=c(t),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})},updateElements:function(s){void 0===s&&(s=!0),c.each(WPGlobusCustomize.controlInstances,function(e,t){if(!t.userControl.enabled)return!0;var o=wp.customize.control.instance(e);if("link"==t.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[e].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),t.element.val(o.setting())):t.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==t.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(e).setContent(n,{format:"raw"}),t.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),t.element.val(o.setting())):t.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(e){"mouseenter"==e.type?c.each(u.controlWidgets[c(this).data("widget")].element,function(e,t){c("#"+e).val(t.value)}):"mouseleave"==e.type?u.widgetKeep||c.each(u.controlWidgets[c(this).data("widget")].element,function(e,t){c("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==e.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(e){void 0!==e.submit[0].id&&c(document).on("mouseenter","#"+e.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+e.submit[0].id,u.onSubmitEvents).on("click","#"+e.submit[0].id,u.onSubmitEvents)},attachListeners:function(){c(".wpglobus-customize-control").on("keyup",function(e){var t=c(this),o=t.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=t.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===c(document).triggerHandler("wpglobus_customize_control_keyup",[t,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language))}),c(document).on("keyup",".wpglobus-customize-widget-control",function(e){var t=c(this),o=t.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value,t.val(),WPGlobusCoreData.language))}),c(document).on("mouseenter","#save",function(e){c.each(WPGlobusCustomize.controlInstances,function(e,t){if(t.userControl.enabled){var o=wp.customize.control.instance(e);"tinymce"==t.type&&tinymce.get(e).setContent(t.setting,{format:"raw"}),o.setting.set(t.setting),t.element.val(o.setting())}})}).on("mouseleave","#save",function(e){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),c("#save").on("click",function(e){u.instancesKeep=!0}),c(document).on("ajaxSend",function(e,t,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),c(document).on("ajaxComplete",function(e,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),c.each(WPGlobusCustomize.controlWidgets,function(e,t){var o=e.replace("_","-");if(0<=n.responseText.indexOf(o))return t.submit.css({display:"block"}),t.control.liveUpdateMode=!1,c.each(t.element,function(e,t){c("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),t.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(t.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=c.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
1
+ jQuery(document).ready(function(a){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:"",settingsSectionExpand:function(){a(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(e){u.selectorHtml=WPGlobusCustomize.selector_html,u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(a.each(WPGlobusCoreData.enabled_languages,function(e,t){u.languages[e]=t,u.length=e}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(e){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,e.target.textContent,WPGlobusCoreData.language))},setTinymce:function(e){a(document).on("tinymce-editor-init",function(e,t){"object"==typeof u.controlInstances[t.id]&&(u.controlInstances[t.id].type="tinymce",a(t.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),t.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(e){return void 0===e?_.size(u.controlInstances):"widget"==e?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=a(".wpglobus-fields_settings_control_box").data("section-template"),s="",l="",i="";a.each(WPGlobusCustomize.controlInstances,function(e,t){void 0===o[t.section]&&(o[t.section]={}),o[t.section][e]=t}),a.each(o,function(e,t){if(l="<ul>",a.each(t,function(e,t){i=t.userControl.enabled?" checked ":"",l+='<li id="'+t.fieldSettings.itemID+'">',l+='<input id="'+t.fieldSettings.cbID+'" data-control="'+e+'" class="wpglobus-customize-cb-control" type="checkbox"'+i+' /> <span class="wpglobus-cb-control-title">'+t.title+"</span>",l+="</li>"}),l+="</ul>",void 0===wp.customize.section(e))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(e).params.title)).replace(/{{section}}/g,e)).replace("{{section_id}}",'"'+e+'"')).replace("{{items}}",l),a(s).insertBefore(a("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),a("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),a(WPGlobusCustomizeOptions.helpButton).insertAfter(a("#accordion-section-wpglobus_fields_settings_section .customize-action")),a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),a(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(e){var o=a(this).data("section");a(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(e,t){o==a(t).data("section")?a(this).css({display:"block"}):a(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),a(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(e){a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(e,t){var o=t.controlSelector+" "+t.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+t.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';a(n).insertBefore(o),t.userControl.enabled||(1<a(o).length?a(o).each(function(e,t){a(t).removeClass(WPGlobusCustomize.controlClass)}):a(o).removeClass(WPGlobusCustomize.controlClass).val(t.setting))},ctrlMenuItemsCallback:function(e,t){},ctrlWidgetCallback:function(l,i){if(u.action=!1,void 0===u.controlWidgets[l].element){void 0===i&&(i=wp.customize.control.instance(l)),u.controlWidgets[l].element={},u.controlWidgets[l].control=i,u.controlWidgets[l].inWidgetTitle=i.container.find(".in-widget-title"),u.controlWidgets[l].parent=i.selector;var e=i.container.find("input[type=submit]");0!=e.length&&(e.css({display:"block"}),e.attr("data-widget",l),u.controlWidgets[l].submit=e,u.attachWidgetListeners(u.controlWidgets[l])),i.liveUpdateMode=!1,void 0===i.setting().title?u.controlWidgets[l].inWidgetTitle.text(""):u.controlWidgets[l].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(i.setting().title,WPGlobusCustomize.languageAdmin)),a.each(WPGlobusCustomize.elementSelector,function(e,n){var s=i.container.find(n);0!=s.length&&a.each(s,function(e,t){if(void 0===t.id||""==t.id)return!0;var o=a(s[e]);void 0===u.controlWidgets[l].element[t.id]&&(u.controlWidgets[l].element[t.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",l),u.controlWidgets[l].element[t.id].element=o,u.controlWidgets[l].element[t.id].setting=i.setting(),u.controlWidgets[l].element[t.id].selector=n,u.controlWidgets[l].element[t.id].value=t.defaultValue,o.val(WPGlobusCore.TextFilter(t.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),a(document).triggerHandler("wpglobus_customize_control_added_widget",[l])}},ctrlCallback:function(o,l,e){var n=!1;if(a.each(WPGlobusCustomize.disabledSections,function(e,t){if(o.section()==t)return!(n=!0)}),!n&&(a.each(WPGlobusCustomize.disabledSettingMask,function(e,t){if(0<=l.indexOf(t))return!(n=!0)}),!n)){var i=wp.customize.control.instance(l);if(0<=l.indexOf("widget"))return void 0===u.controlWidgets[l]&&(u.controlWidgets[l]={},u.action&&u.ctrlWidgetCallback(l,i)),u.controlWidgets[l].parent=i.selector,1!=a(i.selector).length?u.controlWidgets[l].observer=null:(u.controlWidgets[l].observer=new MutationObserver(function(e){e.forEach(function(e){"class"==e.attributeName&&-1!=e.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(l)})}),u.controlWidgets[l].observer.observe(document.querySelector(u.controlWidgets[l].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[l]){var c=!0;a.each(WPGlobusCustomize.elementSelector,function(e,t){var s=i.container.find(t);if(0!=s.length){if("function"!=typeof i.setting)return!0;u.controlInstances[l]={},u.controlInstances[l].element=s,u.controlInstances[l].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[l].setting=i.setting(),u.controlInstances[l].settingType=typeof i.setting(),u.controlInstances[l].selector=t,u.controlInstances[l].controlSelector=i.selector,u.controlInstances[l].type="",u.controlInstances[l].section=i.section(),u.controlInstances[l].title=null,u.controlInstances[l].userControl=null,u.controlInstances[l].fieldSettings={},u.controlInstances[l].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),u.controlInstances[l].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),a.each(WPGlobusCustomize.setLinkBy,function(e,t){if(0<=l.indexOf(t)){if(u.controlInstances[l].type="link",""==u.controlInstances[l].setting&&(u.controlInstances[l].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(l).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(l).setting(n[WPGlobusCoreData.default_language]),a(WPGlobusCustomize.controlInstances[l].controlSelector+" "+WPGlobusCustomize.controlInstances[l].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[l].type&&(u.controlInstances[l].type="textarea"==t?"textarea":"text"),"string"==u.controlInstances[l].settingType&&""!=u.controlInstances[l].setting&&s.val(WPGlobusCore.TextFilter(u.controlInstances[l].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[l].controlSelector.replace("#customize-control-","")),s.attr("data-wpglobus-customize-control-setting-type",u.controlInstances[l].settingType),"link"==u.controlInstances[l].type&&(u.controlInstances[l].setting=u.convertString(s[0].defaultValue)),u.controlInstances[l].title=i.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&(c=!1),u.controlInstances[l].userControl={},u.controlInstances[l].userControl.enabled=c,u.setUserControls(l,u.controlInstances[l])}})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){a(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(e){if(void 0===e)return e;var o=[],t=WPGlobusCore.getTranslations(e),n=0,s=!0;return e==t[WPGlobusCoreData.default_language]?e:(a.each(t,function(e,t){o[n]=""==t?"null":(s=!1,t),n++}),s?"":o.join("|||"))},getTranslations:function(e){if(void 0===e)return e;var o={},n=e.split("|||");return a.each(WPGlobusCoreData.enabled_languages,function(e,t){o[t]=void 0===n[e]||"null"===n[e]?"":n[e]}),o},getString:function(e,o,n){if(void 0===e)return e;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var t=u.getTranslations(e),s=[],l=0,i=!0;return a.each(t,function(e,t){e==n?(o=o.trim(),s[l]=""==o?"null":o):s[l]=""==t?"null":t,e!=WPGlobusCoreData.default_language&&"null"!=s[l]&&(i=!1),l++}),s=i?s[0]:s.join("|||")},addLanguageSelector:function(){"dropdown"!=WPGlobusCustomize.selectorType?(a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).on("click",".wpglobus-customize-selector",function(e){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],a(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()})):u.addLanguageSelectorDropdown()},addLanguageSelectorDropdown:function(){a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language));var e=a(".wpglobus-customize-selector").offset(),t=e.top+46;t+="px;";var o=e.left+"px;",n=0,s='<ul class="wpglobus-customize-selector-dropdown" style="display:none;position:fixed;width:46px;border-left:1px solid #ddd;border-right:1px solid #ddd;background-color:#eee;margin:-1px 0 0;padding:0;top:'+t+"left:"+o+'">';a.each(WPGlobusCoreData.enabled_languages,function(e,t){s+='<li class="item" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;" data-language="'+t+'">',s+='<span class="value value-'+t+'" style="font-size:15px;">'+t+"</span>",s+="</li>"}),s+='<li class="item wpglobus-customize-item-settings" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;"><span style="padding-top:14px;" class="dashicons dashicons-admin-tools"></span></li>',s+="</ul>",a(".wpglobus-customize-selector").after(s),a(document).on("mouseenter",".wpglobus-customize-selector",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"block"}),n=e.screenY}),a(document).on("mouseleave",".wpglobus-customize-selector",function(e){0!=n&&e.screenY-n<=0&&a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseenter",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this),o=t.data("language");t.addClass("active"),t.css({"background-color":"#fff"}),t.find(".value-"+o).css({"font-weight":"bold"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this);t.removeClass("active"),t.css({"background-color":"#eee"}),a(this).find(".value").css({"font-weight":""})}),a(document).on("click",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this).data("language");void 0!==t&&t!=a(".wpglobus-customize-selector").data("language")&&u.languageChanged(t)}),a(document).on("click",".wpglobus-customize-item-settings",function(e){wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand}),a(".wpglobus-customize-selector-dropdown").css({display:"none"})})},languageChanged:function(e){WPGlobusCoreData.language=e,a(".wpglobus-customize-selector").data("language",e),a(".wpglobus-customize-selector .current-language").text(e),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()},setControlsValue:function(){a(".wpglobus-customize-control").each(function(e,t){var o=a(t),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else if("object"==WPGlobusCustomize.controlInstances[n].settingType);else if("number"==WPGlobusCustomize.controlInstances[n].settingType);else{s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),a(".wpglobus-customize-widget-control").each(function(e,t){var o=a(t),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})},updateElements:function(s){void 0===s&&(s=!0),a.each(WPGlobusCustomize.controlInstances,function(e,t){if(!t.userControl.enabled)return!0;var o=wp.customize.control.instance(e);if("link"==t.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[e].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),t.element.val(o.setting())):t.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==t.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(e).setContent(n,{format:"raw"}),t.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),t.element.val(o.setting())):t.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(e){"mouseenter"==e.type?a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(t.value)}):"mouseleave"==e.type?u.widgetKeep||a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==e.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(e){void 0!==e.submit[0].id&&a(document).on("mouseenter","#"+e.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+e.submit[0].id,u.onSubmitEvents).on("click","#"+e.submit[0].id,u.onSubmitEvents)},attachListeners:function(){a(".wpglobus-customize-control").on("keyup",function(e){var t=a(this),o=t.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=t.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===a(document).triggerHandler("wpglobus_customize_control_keyup",[t,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language))}),a(document).on("keyup",".wpglobus-customize-widget-control",function(e){var t=a(this),o=t.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value,t.val(),WPGlobusCoreData.language))}),a(document).on("mouseenter","#save",function(e){a.each(WPGlobusCustomize.controlInstances,function(e,t){if(t.userControl.enabled){var o=wp.customize.control.instance(e);"tinymce"==t.type&&tinymce.get(e).setContent(t.setting,{format:"raw"}),o.setting.set(t.setting),t.element.val(o.setting())}})}).on("mouseleave","#save",function(e){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),a("#save").on("click",function(e){u.instancesKeep=!0}),a(document).on("ajaxSend",function(e,t,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),a(document).on("ajaxComplete",function(e,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),a.each(WPGlobusCustomize.controlWidgets,function(e,t){var o=e.replace("_","-");if(0<=n.responseText.indexOf(o))return t.submit.css({display:"block"}),t.control.liveUpdateMode=!1,a.each(t.element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),t.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(t.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=a.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
includes/js/wpglobus-form.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(a){"use strict";var u=/^[a-z]{2}$/,o=a("#wpglobus_language_code"),e=a("#wpglobus_language_name"),s=a("#wpglobus_en_language_name"),t=a([]).add(o).add(e).add(s);a("#wpglobus_edit_form").on("submit",function(a){var e,s=!0;t.removeClass("wpglobus-state-error"),(s=s&&(!!u.test((e=o).val())||(e.addClass("wpglobus-state-error"),!1)))||a.preventDefault()})});
1
+ jQuery(document).ready(function(e){"use strict";var u=/^[a-z]{2}$/,t=e("#wpglobus_language_code"),a=e("#wpglobus_language_name"),n=e("#wpglobus_en_language_name"),o=e([]).add(t).add(a).add(n);e("#wpglobus_edit_form").on("submit",function(e){var a=!0;o.removeClass("wpglobus-state-error"),(a=a&&function(e,a,u){return!!a.test(e.val())||(e.addClass("wpglobus-state-error"),!1)}(t,u))||e.preventDefault()})});
includes/js/wpglobus-widgets.min.js CHANGED
@@ -1 +1 @@
1
- !function(c){"use strict";if("undefined"!=typeof WPGlobusWidgets){var f={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){f.addElements(),f.attachListeners(),f.arbitraryTextOrHTML()},wysiwygClean:function(){c(".wpglobus-dialog-field").each(function(e,t){var i=c(t).data("source-id");if(1==c("#"+i+"-tmce").size()){var a=c(t).next(".wpglobus_dialog_start");c(t).remove(),c(a).remove()}})},setupWidgetControl:function(a,e,i){var o=!1;if(c.each(f.editor,function(e,t){if(t.widgetName==a)return!(o=!0)}),!o){var n=e.$el[0].id;if(""==n){var t=e.$el[0].offsetParent;void 0===(n=c(t).attr("id"))&&c(".widget").each(function(e,t){var i=c(t).attr("id");if(-1!=i.indexOf(a))return n=i,!1})}var r="#"+n+" #widget-"+a+"-text",d="#"+n+" #widget-"+a+"-title";f.editor[i.id]={},f.editor[i.id].widgetName=a,f.editor[i.id].controls=e,f.editor[i.id].sourceTitleSelector=d,f.editor[i.id].titleSelector=null,f.editor[i.id].sourceSelector=r,f.editor[i.id].content=c(r).val(),f.editor[i.id].saveSelector="#"+n+" #widget-"+a+"-savewidget",f.editor[i.id].languageSelector="#"+n+" .wpglobus-current-language",f.editor[i.id].inWidgetTitleSelector="#"+n+" .in-widget-title";var l=WPGlobusCore.TextFilter(f.editor[i.id].content,WPGlobusCoreData.default_language,"RETURN_EMPTY");c("#"+i.id).val(l);var u="",s="";c.each(WPGlobusCoreData.enabled_languages,function(e,t){u=(u=(u=(u=(u=(u=(u='<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}}",a)).replace("{{widgetID}}",n)).replace("{{editorID}}",i.id)).replace("{{source}}",r),s+=u});var g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+n+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="en" style="">En</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>";c("#"+n+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(f.editor[i.id].titleSelector="#"+e.fields.title[0].id),f.arbitraryWidgetTitle(i.id)}},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(c("#"+f.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);c(f.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){f.languageBoxTimeout=setTimeout(function(){f.languageBoxActive=!1,c(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t="";if(t="keyup"==e.type&&"tinymce"==e.target.id?c(e.target).data("id"):e.target.id,f.editor[t]){var i=c(f.editor[t].languageSelector).data("language"),a="";a=tinymce.get(t).isHidden()?c("#"+t).val():tinymce.get(t).getContent({format:"raw"}),f.editor[t].content=WPGlobusCore.getString(f.editor[t].content,a,i),c(f.editor[t].sourceSelector).val(f.editor[t].content)}}c(document).on("click",".switch-wpglobus-language",function(e){if(!f.languageBoxActive){f.languageBoxActive=!0;var t=c(this),i=t.data("widget-id"),a=t.position();a.top+=34,a.left+=10,c("#"+i+" .wpglobus-language-box").css({display:"block",top:a.top+"px",left:a.left+"px"}),f.setBoxTimeout()}}),c(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(f.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){c(".wpglobus-language-box").css({display:"none"}),f.languageBoxActive=!1}),c(document).on("click",".wpglobus-language-box .item",function(e){var t=c(this),i=t.data("language"),a=t.data("widget-id"),o=t.data("editor-id");c("#"+a+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(f.editor[o].content,i,"RETURN_EMPTY");tinymce.get(o).setContent(n,{format:"raw"}),c("textarea#"+o).val(n)}),c(document).on("tinymce-editor-setup",function(e,i){c.each(wp.textWidgets.widgetControls,function(e,t){f.setupWidgetControl(e,t,i)})}),c(document).on("tinymce-editor-init",function(e,t){c(document).on("mouseenter",f.editor[t.id].saveSelector,function(e){c(f.editor[t.id].sourceTitleSelector).val(c(f.editor[t.id].titleSelector).val()),c(f.editor[t.id].sourceSelector).val(f.editor[t.id].content)}),c(document).on("click",f.editor[t.id].saveSelector,function(e){f.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),c("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,a=[];a[0]='input[type="text"]',a[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",c.each(a,function(e,t){f.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",c.each(a,function(e,t){f.makeClone(i,t)}))},makeClone:function(e,u){c(e+" "+u).each(function(e,t){var i,a,o,n,r=c(t),d=!1;if(void 0===(n=r.attr("id"))||-1!=n.indexOf("-number")||""==n)return!0;if(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(d=!0)}),d)return!0;if(i=c("#"+n).clone(),c(r).addClass("wpglobus-dialog-field-source hidden"),a=r.attr("name"),c(i).attr("id","wpglobus-"+n),c(i).attr("name","wpglobus-"+a),c(i).attr("data-source-id",n),c(i).attr("class","wpglobus-dialog-field"),c(i).attr("style","width:90%;"),o=WPGlobusCore.TextFilter(c(r).val(),WPGlobusCoreData.language),c(i).val(o),c('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+n+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(r),c(i).insertAfter(r),'input[type="text"]'==u&&""!=o){var l=r.parents(".widget").attr("id");c("#"+l+" .in-widget-title").text(": "+o)}})},attachListeners:function(){c(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget"))if(-1!=i.data.indexOf("delete_widget=1"));else{if(f.saveArbitraryTextOrHTML){var a=WPGlobusCore.TextFilter(f.editor[f.saveArbitraryTextOrHTML].content,c(f.editor[f.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(f.saveArbitraryTextOrHTML).isHidden()?(c("#"+f.saveArbitraryTextOrHTML).val(a),c("#"+f.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(f.saveArbitraryTextOrHTML).setContent(a,{format:"raw"}),f.arbitraryWidgetTitle(f.saveArbitraryTextOrHTML),void(f.saveArbitraryTextOrHTML=!1)}var o=i.data.split("widget-id=");o=o[1].split("&"),c(".widget-liquid-right .widget").each(function(e,t){var i=c(t).attr("id");-1!==i.indexOf(o[0])&&(f.addElements("id",i),f.wysiwygClean())})}}),c("body").on("change",".wpglobus-dialog-field",function(){var i,a,o=c(this),e="#"+o.data("source-id"),n="";void 0!==e&&(i=c(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(c.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(a=t==WPGlobusCoreData.language?o.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(a,t))}),c(e).val(n)):c(e).val(o.val()))}),c(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),f.wysiwygClean(),f.imageWidget(this)})},imageWidget:function(e){var t=c(e).parents(".widget").attr("id");if(-1!=t.indexOf("media_image")){var i=c("#"+t+" .in-widget-title"),a=c("#"+t).find('input[type="text"]').attr("id");if(-1!=a.indexOf(".")){var o="wpg-"+a.replace(".","_");if(c("#"+t).find('input[type="text"]').attr("name",o),WPGlobusDialogApp.addElement(o)){var n=c("#"+t).find('input[name="'+o+'"]'),r=WPGlobusCore.getTranslations(n.val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+o).val(r)},1e3)}}else if(WPGlobusDialogApp.addElement(a)){r=WPGlobusCore.getTranslations(c("#"+a).val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+a).val(r)},1e3)}}}};WPGlobusWidgets=c.extend({},WPGlobusWidgets,f)}}(jQuery);
1
+ !function(c){"use strict";if("undefined"!=typeof WPGlobusWidgets){var f={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){f.addElements(),f.attachListeners(),f.arbitraryTextOrHTML()},wysiwygClean:function(){c(".wpglobus-dialog-field").each(function(e,t){var i=c(t).data("source-id");if(1==c("#"+i+"-tmce").size()){var a=c(t).next(".wpglobus_dialog_start");c(t).remove(),c(a).remove()}})},setupWidgetControl:function(a,e,i){var o=!1;if(c.each(f.editor,function(e,t){if(t.widgetName==a)return!(o=!0)}),!o){var n=e.$el[0].id;if(""==n){var t=e.$el[0].offsetParent;void 0===(n=c(t).attr("id"))&&c(".widget").each(function(e,t){var i=c(t).attr("id");if(-1!=i.indexOf(a))return n=i,!1})}var r="#"+n+" #widget-"+a+"-text",d="#"+n+" #widget-"+a+"-title";f.editor[i.id]={},f.editor[i.id].widgetName=a,f.editor[i.id].controls=e,f.editor[i.id].sourceTitleSelector=d,f.editor[i.id].titleSelector=null,f.editor[i.id].sourceSelector=r,f.editor[i.id].content=c(r).val(),f.editor[i.id].saveSelector="#"+n+" #widget-"+a+"-savewidget",f.editor[i.id].languageSelector="#"+n+" .wpglobus-current-language",f.editor[i.id].inWidgetTitleSelector="#"+n+" .in-widget-title";var l=WPGlobusCore.TextFilter(f.editor[i.id].content,WPGlobusCoreData.default_language,"RETURN_EMPTY");c("#"+i.id).val(l);var u="",s="";c.each(WPGlobusCoreData.enabled_languages,function(e,t){u=(u=(u=(u=(u=(u=(u='<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}}",a)).replace("{{widgetID}}",n)).replace("{{editorID}}",i.id)).replace("{{source}}",r),s+=u});var g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+n+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="en" style="">En</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>";c("#"+n+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(f.editor[i.id].titleSelector="#"+e.fields.title[0].id),f.arbitraryWidgetTitle(i.id)}},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(c("#"+f.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);c(f.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){f.languageBoxTimeout=setTimeout(function(){f.languageBoxActive=!1,c(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t="";if(t="keyup"==e.type&&"tinymce"==e.target.id?c(e.target).data("id"):e.target.id,f.editor[t]){var i=c(f.editor[t].languageSelector).data("language"),a="";a=tinymce.get(t).isHidden()?c("#"+t).val():tinymce.get(t).getContent({format:"raw"}),f.editor[t].content=WPGlobusCore.getString(f.editor[t].content,a,i),c(f.editor[t].sourceSelector).val(f.editor[t].content)}}c(document).on("click",".switch-wpglobus-language",function(e){if(!f.languageBoxActive){f.languageBoxActive=!0;var t=c(this),i=t.data("widget-id"),a=t.position();a.top+=34,a.left+=10,c("#"+i+" .wpglobus-language-box").css({display:"block",top:a.top+"px",left:a.left+"px"}),f.setBoxTimeout()}}),c(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(f.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){c(".wpglobus-language-box").css({display:"none"}),f.languageBoxActive=!1}),c(document).on("click",".wpglobus-language-box .item",function(e){var t=c(this),i=t.data("language"),a=t.data("widget-id"),o=t.data("editor-id");c("#"+a+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(f.editor[o].content,i,"RETURN_EMPTY");tinymce.get(o).setContent(n,{format:"raw"}),c("textarea#"+o).val(n)}),c(document).on("tinymce-editor-setup",function(e,i){c.each(wp.textWidgets.widgetControls,function(e,t){f.setupWidgetControl(e,t,i)})}),c(document).on("tinymce-editor-init",function(e,t){c(document).on("mouseenter",f.editor[t.id].saveSelector,function(e){c(f.editor[t.id].sourceTitleSelector).val(c(f.editor[t.id].titleSelector).val()),c(f.editor[t.id].sourceSelector).val(f.editor[t.id].content)}),c(document).on("click",f.editor[t.id].saveSelector,function(e){f.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),c("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,a=[];a[0]='input[type="text"]',a[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",c.each(a,function(e,t){f.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",c.each(a,function(e,t){f.makeClone(i,t)}))},makeClone:function(e,u){c(e+" "+u).each(function(e,t){var i,a,o,n,r=c(t),d=!1;if(void 0===(n=r.attr("id"))||-1!=n.indexOf("-number")||""==n)return!0;if(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(d=!0)}),d)return!0;if(i=c("#"+n).clone(),c(r).addClass("wpglobus-dialog-field-source hidden"),a=r.attr("name"),c(i).attr("id","wpglobus-"+n),c(i).attr("name","wpglobus-"+a),c(i).attr("data-source-id",n),c(i).attr("class","wpglobus-dialog-field"),c(i).attr("style","width:90%;"),o=WPGlobusCore.TextFilter(c(r).val(),WPGlobusCoreData.language),c(i).val(o),c('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+n+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(r),c(i).insertAfter(r),'input[type="text"]'==u&&""!=o){var l=r.parents(".widget").attr("id");c("#"+l+" .in-widget-title").text(": "+o)}})},attachListeners:function(){c(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget"))if(-1!=i.data.indexOf("delete_widget=1"));else{if(f.saveArbitraryTextOrHTML){var a=WPGlobusCore.TextFilter(f.editor[f.saveArbitraryTextOrHTML].content,c(f.editor[f.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(f.saveArbitraryTextOrHTML).isHidden()?(c("#"+f.saveArbitraryTextOrHTML).val(a),c("#"+f.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(f.saveArbitraryTextOrHTML).setContent(a,{format:"raw"}),f.arbitraryWidgetTitle(f.saveArbitraryTextOrHTML),void(f.saveArbitraryTextOrHTML=!1)}var o=i.data.split("widget-id=");o=o[1].split("&"),c(".widget-liquid-right .widget").each(function(e,t){var i=c(t).attr("id");-1!==i.indexOf(o[0])&&(f.addElements("id",i),f.wysiwygClean())})}}),c("body").on("change",".wpglobus-dialog-field",function(){var i,a,o=c(this),e="#"+o.data("source-id"),n="";i=c(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(c.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(a=t==WPGlobusCoreData.language?o.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(a,t))}),c(e).val(n)):c(e).val(o.val())}),c(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),f.wysiwygClean(),f.imageWidget(this)})},imageWidget:function(e){var t=c(e).parents(".widget").attr("id");if(-1!=t.indexOf("media_image")){var i=c("#"+t+" .in-widget-title"),a=c("#"+t).find('input[type="text"]').attr("id");if(-1!=a.indexOf(".")){var o="wpg-"+a.replace(".","_");if(c("#"+t).find('input[type="text"]').attr("name",o),WPGlobusDialogApp.addElement(o)){var n=c("#"+t).find('input[name="'+o+'"]'),r=WPGlobusCore.getTranslations(n.val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+o).val(r)},1e3)}}else if(WPGlobusDialogApp.addElement(a)){r=WPGlobusCore.getTranslations(c("#"+a).val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+a).val(r)},1e3)}}}};WPGlobusWidgets=c.extend({},WPGlobusWidgets,f)}}(jQuery);
includes/js/wpglobus-wpseo-21.min.js CHANGED
@@ -1 +1 @@
1
- var wpglobus_wpseo=function(){if("undefined"!=typeof wpseoMetaboxL10n){var l=function(e,s){var t="",o=jQuery("#"+wpseoMetaboxL10n.field_prefix+"title_"+s),n=jQuery("#"+wpseoMetaboxL10n.field_prefix+"title-length-warning_"+s),r=jQuery("<div />"),a=jQuery("#wpseosnippet_title_"+s);if(""==(t=o.val()?o.val():(t=wpseoMetaboxL10n.wpseo_title_template,r.html(t).text())))return a.html(""),void n.hide();t=yst_clean(t),t=jQuery.trim(t),t=r.text(t).html(),e&&o.val(t),t=function(t,e,a){if(void 0===t)return"";if("undefined"==typeof replacedVars&&0==jQuery("#title").size())return t;var s="#title",o="#excerpt-"+e,n="#content";e!=WPGlobusAdmin.data.default_language&&(s="#title_"+e,n="#content_"+e),jQuery(s).length&&(t=t.replace(/%%title%%/g,jQuery(s).val())),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/%%sitedesc%%/g,WPGlobusAdmin.data.blogdescription[e])).replace(/%%sitename%%/g,WPGlobusAdmin.data.blogname[e])).replace(/%%sep%%/g,wpseoMetaboxL10n.sep)).replace(/%%date%%/g,wpseoMetaboxL10n.date)).replace(/%%id%%/g,wpseoMetaboxL10n.id)).replace(/%%page%%/g,wpseoMetaboxL10n.page)).replace(/%%currenttime%%/g,wpseoMetaboxL10n.currenttime)).replace(/%%currentdate%%/g,wpseoMetaboxL10n.currentdate)).replace(/%%currentday%%/g,wpseoMetaboxL10n.currentday)).replace(/%%currentmonth%%/g,wpseoMetaboxL10n.currentmonth)).replace(/%%currentyear%%/g,wpseoMetaboxL10n.currentyear)).replace(/%%focuskw%%/g,jQuery("#yoast_wpseo_focuskw_"+e).val());var r="";jQuery(o).length&&(r=yst_clean(jQuery(o).val()),t=t.replace(/%%excerpt_only%%/g,r)),""==r&&jQuery(n).length&&(r=jQuery(n).val().replace(/(<([^>]+)>)/gi,"").substring(0,wpseoMetaboxL10n.wpseo_meta_desc_length-1)),t=t.replace(/%%excerpt%%/g,r),jQuery("#parent_id").length&&jQuery("#parent_id option:selected").text()!=wpseoMetaboxL10n.no_parent_text&&(t=t.replace(/%%parent_title%%/g,jQuery("#parent_id option:selected").text()));var l=yst_escapeFocusKw(wpseoMetaboxL10n.sep),p=new RegExp(l+" "+l,"g");if(-1!=(t=t.replace(p,wpseoMetaboxL10n.sep)).indexOf("%%")&&null!=t.match(/%%[a-z0-9_-]+%%/i))for(regex=/%%[a-z0-9_-]+%%/gi,matches=t.match(regex),i=0;i<matches.length;i++)null!=replacedVars[matches[i]]?t=t.replace(matches[i],replacedVars[matches[i]]):(replaceableVar=matches[i],replacedVars[replaceableVar]="",jQuery.post(ajaxurl,{action:"wpseo_replace_vars",string:matches[i],post_id:jQuery("#post_ID").val(),_wpnonce:wpseoMetaboxL10n.wpseo_replace_vars_nonce},function(e){e&&(replacedVars[replaceableVar]=e),yst_replaceVariables(t,a)}));a(t)}(t,s,function(e){var t=r.html(e).text();o.attr("placeholder",t),e=_(e=yst_clean(e),!1,s),jQuery("#wpseosnippet_title_"+s).html(e);var a=document.getElementById("wpseosnippet_title_"+s);null!=a&&(a.scrollWidth>a.clientWidth?n.show():n.hide()),y(s)})},p=function(e){l(!1,e),w(e)};jQuery("#wpglobus-wpseo-tabs").tabs();var e=jQuery("#wpglobus-wpseo-attr"),u=jQuery(".wpseotab.general .form-table"),c=e.data("ids"),d=e.data("names"),g="";c=(c=c+","+e.data("qtip")).split(","),d=d.split(","),jQuery("#wpglobus-wpseo-tabs").insertBefore(u),jQuery(".wpglobus-wpseo-general").each(function(e,t){var s=jQuery(t),o=s.data("language");if(s.html('<table class="form-table wpglobus-table-'+o+'" data-language="'+o+'">'+u.html()+"</table>"),jQuery.each(d,function(e,t){jQuery("#"+t).attr("name",t+"_"+o)}),jQuery.each(c,function(e,t){var a=jQuery("#"+t);"wpseosnippet"==t&&a.addClass("wpglobus-wpseosnippet"),"focuskwresults"==t&&a.addClass("wpglobus-focuskwresults"),wpseoMetaboxL10n.field_prefix+"metadesc"==t&&a.addClass("wpglobus-wpseo_metadesc").text(s.data("metadesc")),wpseoMetaboxL10n.field_prefix+"title"==t&&a.addClass("wpglobus-wpseo_title").val(s.data("wpseotitle")),wpseoMetaboxL10n.field_prefix+"focuskw"==t&&a.addClass("wpglobus-wpseo_focuskw").val(s.data("focuskw")),a.attr("id",t+"_"+o),jQuery("#"+t+"_"+o).attr("data-language",o)}),g="complete"==s.data("permalink")?s.data("url-"+o):s.data("url-"+o)+jQuery("#editable-post-name-full").text()+"/",jQuery("#wpseosnippet_"+o+" .url").text(g),p(o),void 0!==jQuery().autocomplete){var n,r={};jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+o).autocomplete({minLength:3,formatResult:function(e){return jQuery("<div/>").html(e).html()},source:function(e,s){var o=e.term;o in r?s(r[o]):(e._ajax_nonce=wpseoMetaboxL10n.wpseo_keyword_suggest_nonce,e.action="wpseo_get_suggest",n=jQuery.getJSON(ajaxurl,e,function(e,t,a){r[o]=e,a===n&&s(e)}))}})}jQuery("#"+wpseoMetaboxL10n.field_prefix+"title_"+o).keyup(function(){l(!1,jQuery(this).data("language"))}),jQuery("#title_"+o).keyup(function(){var e=jQuery(this).data("language")?jQuery(this).data("language"):WPGlobusAdmin.data.default_language;l(!1,e),w(e)}),0==e&&jQuery("#title").keyup(function(){l(!1,WPGlobusAdmin.data.default_language),w(WPGlobusAdmin.data.default_language)}),0==e&&jQuery("body").on("change","#parent_id",function(){jQuery.each(WPGlobusAdmin.data.enabled_languages,function(e,t){l(!1,t),w(t)})}),jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc_"+o).keyup(function(){w(jQuery(this).data("language"))}),jQuery("body").on("keyup","#excerpt-"+o,function(){w(jQuery(this).data("language")?jQuery(this).data("language"):WPGlobusAdmin.data.default_language)}),0==e&&jQuery(".wpglobus-editor").focusout(function(){w(jQuery(this).data("language"))});var a=!1;jQuery(document).on("change","#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+o,function(){var e=jQuery(this).data("language"),t=jQuery("#focuskwhelp_"+e);-1!=jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+e).val().search(",")?(t.click(),a=!0):a&&(t.qtip("hide"),a=!1),p(e)})}),u.addClass("hidden"),jQuery("body").on("change",".wpglobus-wpseo_metadesc",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"metadesc",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("change",".wpglobus-wpseo_title",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"title",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("change",".wpglobus-wpseo_focuskw",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"focuskw",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("click",".wpglobus-post-body-tabs-list li",function(e){$this=jQuery(this),$this.hasClass("wpglobus-post-tab")&&jQuery("#wpglobus-wpseo-tabs").tabs("option","active",jQuery(this).data("order"))}),jQuery(".yoast_help").qtip({content:{attr:"alt"},position:{my:"bottom left",at:"top center"},style:{tip:{corner:!0},classes:"yoast-qtip qtip-rounded qtip-blue"},show:{when:{event:"mouseover"}},hide:{fixed:!0,when:{event:"mouseout"}}}),yst_updateSnippet()}function _(e,t,a){var s,o=yst_escapeFocusKw(jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+a).val()));if(""==o)return e;s=-1!=o.search(" ")?o.split(" "):new Array(o);for(var n=0;n<s.length;n++){var r=yst_clean(s[n]),l="";l=t?(r=r.replace(" ","-").toLowerCase(),new RegExp("([-/])("+r+")([-/])?")):new RegExp("(^|[ s\n\r\t.,'(\"+;!?:-]+)("+r+")($|[ s\n\r\t.,')\"+;!?:-]+)","gim"),null!=e&&(e=e.replace(l,"$1<strong>$2</strong>$3"))}return e}function w(a){var e=jQuery.trim(yst_clean(jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc_"+a).val())),s=jQuery("<div />"),o=jQuery("#wpseosnippet_"+a);if(""==e&&""!=wpseoMetaboxL10n.wpseo_metadesc_template&&(e=wpseoMetaboxL10n.wpseo_metadesc_template),""!=e)e=yst_replaceVariables(e,function(e){var t;e=s.text(e).html(),e=yst_clean(e),t=(t=wpseoMetaboxL10n.wpseo_meta_desc_length-e.length)<0?'<span class="wrong">'+t+"</span>":'<span class="good">'+t+"</span>",jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc-length_"+a).html(t),e=_(e=yst_trimDesc(e),!1),o.find(".desc span.autogen").html(""),o.find(".desc span.content").html(e),y(a)});else{jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc-length_"+a).html(wpseoMetaboxL10n.wpseo_meta_desc_length),o.find(".desc span.content").html(""),y(a);var t="#content";a!=WPGlobusAdmin.data.default_language&&(t="#content_"+a),jQuery(t).length&&(e=jQuery(t).val(),e=yst_clean(e));var n=yst_escapeFocusKw(jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+a).val()));if(""!=n){var r=new RegExp(n,"gim");e=-1!=e.search(r)&&e.length>wpseoMetaboxL10n.wpseo_meta_desc_length?e.substr(e.search(r),wpseoMetaboxL10n.wpseo_meta_desc_length):e.substr(0,wpseoMetaboxL10n.wpseo_meta_desc_length)}else e=e.substr(0,wpseoMetaboxL10n.wpseo_meta_desc_length);e=_(e,!1),e=yst_trimDesc(e),o.find(".desc span.autogen").html(e)}}function y(e){var t=jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+e).val());t=yst_escapeFocusKw(t).toLowerCase();var a="#title",s="#content";e!=WPGlobusAdmin.data.default_language&&(a="#title_"+e,s="#content_"+e);var o=jQuery(document).triggerHandler("wpglobus_post_name_full",{postnamefull:"#editable-post-name-full",language:e})||"#editable-post-name-full";if(jQuery(o).length)var n=jQuery(o).text(),r=wpseoMetaboxL10n.wpseo_permalink_template.replace("%postname%",n).replace("http://","");var l=new RegExp("(^|[ s\n\r\t.,'(\"+;!?:-])"+t+"($|[ s\n\r\t.,')\"+!?:;-])","gim"),p=removeLowerCaseDiacritics(t),u=new RegExp(p.replace(/\s+/g,"[-_\\//]"),"gim"),i=jQuery("#focuskwresults_"+e),c=jQuery("#wpseosnippet_"+e).find(".desc span.content").text();if(""!=t){var d="<p>"+wpseoMetaboxL10n.keyword_header+"</p>";d+="<ul>",jQuery(a).length&&(d+="<li>"+wpseoMetaboxL10n.article_header_text+ptest(jQuery(a).val(),l)+"</li>"),d+="<li>"+wpseoMetaboxL10n.page_title_text+ptest(jQuery("#wpseosnippet_title_"+e).text(),l)+"</li>",d+="<li>"+wpseoMetaboxL10n.page_url_text+ptest(r,u)+"</li>",jQuery(s).length&&(d+="<li>"+wpseoMetaboxL10n.content_text+ptest(jQuery(s).val(),l)+"</li>"),d+="<li>"+wpseoMetaboxL10n.meta_description_text+ptest(c,l)+"</li>",d+="</ul>",i.html(d)}else i.html("")}};
1
+ var wpglobus_wpseo=function(){if("undefined"!=typeof wpseoMetaboxL10n){function l(e,s){var t="",o=jQuery("#"+wpseoMetaboxL10n.field_prefix+"title_"+s),n=jQuery("#"+wpseoMetaboxL10n.field_prefix+"title-length-warning_"+s),r=jQuery("<div />"),a=jQuery("#wpseosnippet_title_"+s);if(""==(t=o.val()?o.val():(t=wpseoMetaboxL10n.wpseo_title_template,r.html(t).text())))return a.html(""),void n.hide();t=yst_clean(t),t=jQuery.trim(t),t=r.text(t).html(),e&&o.val(t),t=function(t,e,a){if(void 0===t)return"";if("undefined"==typeof replacedVars&&0==jQuery("#title").size())return t;var s="#title",o="#excerpt-"+e,n="#content";e!=WPGlobusAdmin.data.default_language&&(s="#title_"+e,n="#content_"+e),jQuery(s).length&&(t=t.replace(/%%title%%/g,jQuery(s).val())),t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(/%%sitedesc%%/g,WPGlobusAdmin.data.blogdescription[e])).replace(/%%sitename%%/g,WPGlobusAdmin.data.blogname[e])).replace(/%%sep%%/g,wpseoMetaboxL10n.sep)).replace(/%%date%%/g,wpseoMetaboxL10n.date)).replace(/%%id%%/g,wpseoMetaboxL10n.id)).replace(/%%page%%/g,wpseoMetaboxL10n.page)).replace(/%%currenttime%%/g,wpseoMetaboxL10n.currenttime)).replace(/%%currentdate%%/g,wpseoMetaboxL10n.currentdate)).replace(/%%currentday%%/g,wpseoMetaboxL10n.currentday)).replace(/%%currentmonth%%/g,wpseoMetaboxL10n.currentmonth)).replace(/%%currentyear%%/g,wpseoMetaboxL10n.currentyear)).replace(/%%focuskw%%/g,jQuery("#yoast_wpseo_focuskw_"+e).val());var r="";jQuery(o).length&&(r=yst_clean(jQuery(o).val()),t=t.replace(/%%excerpt_only%%/g,r)),""==r&&jQuery(n).length&&(r=jQuery(n).val().replace(/(<([^>]+)>)/gi,"").substring(0,wpseoMetaboxL10n.wpseo_meta_desc_length-1)),t=t.replace(/%%excerpt%%/g,r),jQuery("#parent_id").length&&jQuery("#parent_id option:selected").text()!=wpseoMetaboxL10n.no_parent_text&&(t=t.replace(/%%parent_title%%/g,jQuery("#parent_id option:selected").text()));var l=yst_escapeFocusKw(wpseoMetaboxL10n.sep),p=new RegExp(l+" "+l,"g");if(-1!=(t=t.replace(p,wpseoMetaboxL10n.sep)).indexOf("%%")&&null!=t.match(/%%[a-z0-9_-]+%%/i))for(regex=/%%[a-z0-9_-]+%%/gi,matches=t.match(regex),i=0;i<matches.length;i++)null!=replacedVars[matches[i]]?t=t.replace(matches[i],replacedVars[matches[i]]):(replaceableVar=matches[i],replacedVars[replaceableVar]="",jQuery.post(ajaxurl,{action:"wpseo_replace_vars",string:matches[i],post_id:jQuery("#post_ID").val(),_wpnonce:wpseoMetaboxL10n.wpseo_replace_vars_nonce},function(e){e&&(replacedVars[replaceableVar]=e),yst_replaceVariables(t,a)}));a(t)}(t,s,function(e){var t=r.html(e).text();o.attr("placeholder",t),e=_(e=yst_clean(e),!1,s),jQuery("#wpseosnippet_title_"+s).html(e);var a=document.getElementById("wpseosnippet_title_"+s);null!=a&&(a.scrollWidth>a.clientWidth?n.show():n.hide()),y(s)})}function p(e){l(!1,e),w(e)}jQuery("#wpglobus-wpseo-tabs").tabs();var e=jQuery("#wpglobus-wpseo-attr"),u=jQuery(".wpseotab.general .form-table"),c=e.data("ids"),d=e.data("names"),g="";c=(c=c+","+e.data("qtip")).split(","),d=d.split(","),jQuery("#wpglobus-wpseo-tabs").insertBefore(u),jQuery(".wpglobus-wpseo-general").each(function(e,t){var s=jQuery(t),o=s.data("language");if(s.html('<table class="form-table wpglobus-table-'+o+'" data-language="'+o+'">'+u.html()+"</table>"),jQuery.each(d,function(e,t){jQuery("#"+t).attr("name",t+"_"+o)}),jQuery.each(c,function(e,t){var a=jQuery("#"+t);"wpseosnippet"==t&&a.addClass("wpglobus-wpseosnippet"),"focuskwresults"==t&&a.addClass("wpglobus-focuskwresults"),wpseoMetaboxL10n.field_prefix+"metadesc"==t&&a.addClass("wpglobus-wpseo_metadesc").text(s.data("metadesc")),wpseoMetaboxL10n.field_prefix+"title"==t&&a.addClass("wpglobus-wpseo_title").val(s.data("wpseotitle")),wpseoMetaboxL10n.field_prefix+"focuskw"==t&&a.addClass("wpglobus-wpseo_focuskw").val(s.data("focuskw")),a.attr("id",t+"_"+o),jQuery("#"+t+"_"+o).attr("data-language",o)}),g="complete"==s.data("permalink")?s.data("url-"+o):s.data("url-"+o)+jQuery("#editable-post-name-full").text()+"/",jQuery("#wpseosnippet_"+o+" .url").text(g),p(o),void 0!==jQuery().autocomplete){var n,r={};jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+o).autocomplete({minLength:3,formatResult:function(e){return jQuery("<div/>").html(e).html()},source:function(e,s){var o=e.term;o in r?s(r[o]):(e._ajax_nonce=wpseoMetaboxL10n.wpseo_keyword_suggest_nonce,e.action="wpseo_get_suggest",n=jQuery.getJSON(ajaxurl,e,function(e,t,a){r[o]=e,a===n&&s(e)}))}})}jQuery("#"+wpseoMetaboxL10n.field_prefix+"title_"+o).keyup(function(){l(!1,jQuery(this).data("language"))}),jQuery("#title_"+o).keyup(function(){var e=jQuery(this).data("language")?jQuery(this).data("language"):WPGlobusAdmin.data.default_language;l(!1,e),w(e)}),0==e&&jQuery("#title").keyup(function(){l(!1,WPGlobusAdmin.data.default_language),w(WPGlobusAdmin.data.default_language)}),0==e&&jQuery("body").on("change","#parent_id",function(){jQuery.each(WPGlobusAdmin.data.enabled_languages,function(e,t){l(!1,t),w(t)})}),jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc_"+o).keyup(function(){w(jQuery(this).data("language"))}),jQuery("body").on("keyup","#excerpt-"+o,function(){w(jQuery(this).data("language")?jQuery(this).data("language"):WPGlobusAdmin.data.default_language)}),0==e&&jQuery(".wpglobus-editor").focusout(function(){w(jQuery(this).data("language"))});var a=!1;jQuery(document).on("change","#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+o,function(){var e=jQuery(this).data("language"),t=jQuery("#focuskwhelp_"+e);-1!=jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+e).val().search(",")?(t.click(),a=!0):a&&(t.qtip("hide"),a=!1),p(e)})}),u.addClass("hidden"),jQuery("body").on("change",".wpglobus-wpseo_metadesc",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"metadesc",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("change",".wpglobus-wpseo_title",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"title",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("change",".wpglobus-wpseo_focuskw",function(e){var t="#"+wpseoMetaboxL10n.field_prefix+"focuskw",a=jQuery(this);jQuery(t).val(WPGlobusCore.getString(jQuery(t).val(),a.val(),a.data("language")))}),jQuery("body").on("click",".wpglobus-post-body-tabs-list li",function(e){$this=jQuery(this),$this.hasClass("wpglobus-post-tab")&&jQuery("#wpglobus-wpseo-tabs").tabs("option","active",jQuery(this).data("order"))}),jQuery(".yoast_help").qtip({content:{attr:"alt"},position:{my:"bottom left",at:"top center"},style:{tip:{corner:!0},classes:"yoast-qtip qtip-rounded qtip-blue"},show:{when:{event:"mouseover"}},hide:{fixed:!0,when:{event:"mouseout"}}}),yst_updateSnippet()}function _(e,t,a){var s,o=yst_escapeFocusKw(jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+a).val()));if(""==o)return e;s=-1!=o.search(" ")?o.split(" "):new Array(o);for(var n=0;n<s.length;n++){var r=yst_clean(s[n]),l="";l=t?(r=r.replace(" ","-").toLowerCase(),new RegExp("([-/])("+r+")([-/])?")):new RegExp("(^|[ s\n\r\t.,'(\"+;!?:-]+)("+r+")($|[ s\n\r\t.,')\"+;!?:-]+)","gim"),null!=e&&(e=e.replace(l,"$1<strong>$2</strong>$3"))}return e}function w(a){var e=jQuery.trim(yst_clean(jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc_"+a).val())),s=jQuery("<div />"),o=jQuery("#wpseosnippet_"+a);if(""==e&&""!=wpseoMetaboxL10n.wpseo_metadesc_template&&(e=wpseoMetaboxL10n.wpseo_metadesc_template),""!=e)e=yst_replaceVariables(e,function(e){var t;e=s.text(e).html(),e=yst_clean(e),t=(t=wpseoMetaboxL10n.wpseo_meta_desc_length-e.length)<0?'<span class="wrong">'+t+"</span>":'<span class="good">'+t+"</span>",jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc-length_"+a).html(t),e=_(e=yst_trimDesc(e),!1),o.find(".desc span.autogen").html(""),o.find(".desc span.content").html(e),y(a)});else{jQuery("#"+wpseoMetaboxL10n.field_prefix+"metadesc-length_"+a).html(wpseoMetaboxL10n.wpseo_meta_desc_length),o.find(".desc span.content").html(""),y(a);var t="#content";a!=WPGlobusAdmin.data.default_language&&(t="#content_"+a),jQuery(t).length&&(e=jQuery(t).val(),e=yst_clean(e));var n=yst_escapeFocusKw(jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+a).val()));if(""!=n){var r=new RegExp(n,"gim");e=-1!=e.search(r)&&e.length>wpseoMetaboxL10n.wpseo_meta_desc_length?e.substr(e.search(r),wpseoMetaboxL10n.wpseo_meta_desc_length):e.substr(0,wpseoMetaboxL10n.wpseo_meta_desc_length)}else e=e.substr(0,wpseoMetaboxL10n.wpseo_meta_desc_length);e=_(e,!1),e=yst_trimDesc(e),o.find(".desc span.autogen").html(e)}}function y(e){var t=jQuery.trim(jQuery("#"+wpseoMetaboxL10n.field_prefix+"focuskw_"+e).val());t=yst_escapeFocusKw(t).toLowerCase();var a="#title",s="#content";e!=WPGlobusAdmin.data.default_language&&(a="#title_"+e,s="#content_"+e);var o=jQuery(document).triggerHandler("wpglobus_post_name_full",{postnamefull:"#editable-post-name-full",language:e})||"#editable-post-name-full";if(jQuery(o).length)var n=jQuery(o).text(),r=wpseoMetaboxL10n.wpseo_permalink_template.replace("%postname%",n).replace("http://","");var l=new RegExp("(^|[ s\n\r\t.,'(\"+;!?:-])"+t+"($|[ s\n\r\t.,')\"+!?:;-])","gim"),p=removeLowerCaseDiacritics(t),u=new RegExp(p.replace(/\s+/g,"[-_\\//]"),"gim"),i=jQuery("#focuskwresults_"+e),c=jQuery("#wpseosnippet_"+e).find(".desc span.content").text();if(""!=t){var d="<p>"+wpseoMetaboxL10n.keyword_header+"</p>";d+="<ul>",jQuery(a).length&&(d+="<li>"+wpseoMetaboxL10n.article_header_text+ptest(jQuery(a).val(),l)+"</li>"),d+="<li>"+wpseoMetaboxL10n.page_title_text+ptest(jQuery("#wpseosnippet_title_"+e).text(),l)+"</li>",d+="<li>"+wpseoMetaboxL10n.page_url_text+ptest(r,u)+"</li>",jQuery(s).length&&(d+="<li>"+wpseoMetaboxL10n.content_text+ptest(jQuery(s).val(),l)+"</li>"),d+="<li>"+wpseoMetaboxL10n.meta_description_text+ptest(c,l)+"</li>",d+="</ul>",i.html(d)}else i.html("")}};
languages/wpglobus-ar.mo CHANGED
Binary file
languages/wpglobus-ar.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: Arabic (http://www.transifex.com/wp-translations/wpglobus-"
13
  "multilingual/language/ar/)\n"
@@ -767,43 +767,43 @@ msgid ""
767
  "technical information to your email message."
768
  msgstr ""
769
 
770
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
771
  msgid "WPGlobus Recommends:"
772
  msgstr ""
773
 
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
775
  #: includes/options/class-wpglobus-options.php:866
776
  msgid "WPGlobus for WooCommerce"
777
  msgstr ""
778
 
779
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
780
  msgid ""
781
  "Translate product titles and descriptions, product categories, tags and "
782
  "attributes."
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
786
  msgid "Get it now:"
787
  msgstr ""
788
 
789
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
790
- msgid "WPGlobus Multi-Currency"
791
  msgstr ""
792
 
793
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
794
  msgid "Accept multiple currencies in your online store!"
795
  msgstr ""
796
 
797
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
798
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
799
  msgid "Check it out:"
800
  msgstr ""
801
 
802
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
803
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
804
  msgstr ""
805
 
806
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
807
  msgid "To translate permalinks, please activate the module Slug."
808
  msgstr ""
809
 
@@ -820,11 +820,11 @@ msgstr "البانى"
820
  msgid "Сompatibility Settings"
821
  msgstr ""
822
 
823
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
824
  msgid "WPGlobus languages"
825
  msgstr ""
826
 
827
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
828
  msgid "current"
829
  msgstr ""
830
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: Arabic (http://www.transifex.com/wp-translations/wpglobus-"
13
  "multilingual/language/ar/)\n"
767
  "technical information to your email message."
768
  msgstr ""
769
 
770
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
771
  msgid "WPGlobus Recommends:"
772
  msgstr ""
773
 
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
775
  #: includes/options/class-wpglobus-options.php:866
776
  msgid "WPGlobus for WooCommerce"
777
  msgstr ""
778
 
779
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
780
  msgid ""
781
  "Translate product titles and descriptions, product categories, tags and "
782
  "attributes."
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
786
  msgid "Get it now:"
787
  msgstr ""
788
 
789
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
790
+ msgid "WooCommerce Multi-Currency"
791
  msgstr ""
792
 
793
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
794
  msgid "Accept multiple currencies in your online store!"
795
  msgstr ""
796
 
797
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
798
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
799
  msgid "Check it out:"
800
  msgstr ""
801
 
802
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
803
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
804
  msgstr ""
805
 
806
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
807
  msgid "To translate permalinks, please activate the module Slug."
808
  msgstr ""
809
 
820
  msgid "Сompatibility Settings"
821
  msgstr ""
822
 
823
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
824
  msgid "WPGlobus languages"
825
  msgstr ""
826
 
827
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
828
  msgid "current"
829
  msgstr ""
830
 
languages/wpglobus-be.mo CHANGED
Binary file
languages/wpglobus-be.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Belarusian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/be/)\n"
@@ -818,43 +818,43 @@ msgid ""
818
  "technical information to your email message."
819
  msgstr ""
820
 
821
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
822
  msgid "WPGlobus Recommends:"
823
  msgstr "WPGlobus рекомендует:"
824
 
825
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
826
  #: includes/options/class-wpglobus-options.php:866
827
  msgid "WPGlobus for WooCommerce"
828
  msgstr "WPGlobus для WooCommerce"
829
 
830
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
831
  msgid ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
  msgstr "Переведите названия и описания товаров, категорий, свойств и меток."
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
837
  msgid "Get it now:"
838
  msgstr "Установите прямо сейчас:"
839
 
840
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
841
- msgid "WPGlobus Multi-Currency"
842
- msgstr "WPGlobus Мультивалютность"
843
-
844
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Принимайте оплату в нескольких валютах!"
847
 
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
849
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
850
  msgid "Check it out:"
851
  msgstr "Информация - здесь:"
852
 
853
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
@@ -871,11 +871,11 @@ msgstr ""
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
879
  msgid "current"
880
  msgstr ""
881
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Belarusian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/be/)\n"
818
  "technical information to your email message."
819
  msgstr ""
820
 
821
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
822
  msgid "WPGlobus Recommends:"
823
  msgstr "WPGlobus рекомендует:"
824
 
825
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
826
  #: includes/options/class-wpglobus-options.php:866
827
  msgid "WPGlobus for WooCommerce"
828
  msgstr "WPGlobus для WooCommerce"
829
 
830
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
831
  msgid ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
  msgstr "Переведите названия и описания товаров, категорий, свойств и меток."
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
837
  msgid "Get it now:"
838
  msgstr "Установите прямо сейчас:"
839
 
 
 
 
 
840
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
841
+ msgid "WooCommerce Multi-Currency"
842
+ msgstr ""
843
+
844
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Принимайте оплату в нескольких валютах!"
847
 
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
849
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
850
  msgid "Check it out:"
851
  msgstr "Информация - здесь:"
852
 
853
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
879
  msgid "current"
880
  msgstr ""
881
 
languages/wpglobus-bg_BG.mo CHANGED
Binary file
languages/wpglobus-bg_BG.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/bg_BG/)\n"
@@ -743,43 +743,43 @@ msgid ""
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
766
- msgid "WPGlobus Multi-Currency"
767
  msgstr ""
768
 
769
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
@@ -796,11 +796,11 @@ msgstr ""
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
804
  msgid "current"
805
  msgstr ""
806
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/bg_BG/)\n"
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
766
+ msgid "WooCommerce Multi-Currency"
767
  msgstr ""
768
 
769
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
804
  msgid "current"
805
  msgstr ""
806
 
languages/wpglobus-de_CH.mo CHANGED
Binary file
languages/wpglobus-de_CH.po CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
12
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
13
  "Language-Team: German (Switzerland) (http://www.transifex.com/wp-"
14
  "translations/wpglobus-multilingual/language/de_CH/)\n"
@@ -779,43 +779,43 @@ msgid ""
779
  "technical information to your email message."
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
783
  msgid "WPGlobus Recommends:"
784
  msgstr ""
785
 
786
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
787
  #: includes/options/class-wpglobus-options.php:866
788
  msgid "WPGlobus for WooCommerce"
789
  msgstr ""
790
 
791
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
792
  msgid ""
793
  "Translate product titles and descriptions, product categories, tags and "
794
  "attributes."
795
  msgstr ""
796
 
797
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
798
  msgid "Get it now:"
799
  msgstr "Jetzt holen"
800
 
801
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
802
- msgid "WPGlobus Multi-Currency"
803
  msgstr ""
804
 
805
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
806
  msgid "Accept multiple currencies in your online store!"
807
  msgstr ""
808
 
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
810
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
811
  msgid "Check it out:"
812
  msgstr ""
813
 
814
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
815
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
816
  msgstr ""
817
 
818
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
819
  msgid "To translate permalinks, please activate the module Slug."
820
  msgstr ""
821
 
@@ -832,11 +832,11 @@ msgstr ""
832
  msgid "Сompatibility Settings"
833
  msgstr ""
834
 
835
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
836
  msgid "WPGlobus languages"
837
  msgstr ""
838
 
839
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
840
  msgid "current"
841
  msgstr ""
842
 
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
12
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
13
  "Language-Team: German (Switzerland) (http://www.transifex.com/wp-"
14
  "translations/wpglobus-multilingual/language/de_CH/)\n"
779
  "technical information to your email message."
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
783
  msgid "WPGlobus Recommends:"
784
  msgstr ""
785
 
786
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
787
  #: includes/options/class-wpglobus-options.php:866
788
  msgid "WPGlobus for WooCommerce"
789
  msgstr ""
790
 
791
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
792
  msgid ""
793
  "Translate product titles and descriptions, product categories, tags and "
794
  "attributes."
795
  msgstr ""
796
 
797
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
798
  msgid "Get it now:"
799
  msgstr "Jetzt holen"
800
 
801
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
802
+ msgid "WooCommerce Multi-Currency"
803
  msgstr ""
804
 
805
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
806
  msgid "Accept multiple currencies in your online store!"
807
  msgstr ""
808
 
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
810
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
811
  msgid "Check it out:"
812
  msgstr ""
813
 
814
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
815
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
816
  msgstr ""
817
 
818
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
819
  msgid "To translate permalinks, please activate the module Slug."
820
  msgstr ""
821
 
832
  msgid "Сompatibility Settings"
833
  msgstr ""
834
 
835
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
836
  msgid "WPGlobus languages"
837
  msgstr ""
838
 
839
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
840
  msgid "current"
841
  msgstr ""
842
 
languages/wpglobus-de_DE.mo CHANGED
Binary file
languages/wpglobus-de_DE.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 14:00+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: German (Germany) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/de_DE/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr "Jetzt holen"
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: German (Germany) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/de_DE/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr "Jetzt holen"
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-el.mo CHANGED
Binary file
languages/wpglobus-el.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Greek (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/el/)\n"
@@ -744,43 +744,43 @@ msgid ""
744
  "technical information to your email message."
745
  msgstr ""
746
 
747
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
748
  msgid "WPGlobus Recommends:"
749
  msgstr ""
750
 
751
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
752
  #: includes/options/class-wpglobus-options.php:866
753
  msgid "WPGlobus for WooCommerce"
754
  msgstr ""
755
 
756
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
757
  msgid ""
758
  "Translate product titles and descriptions, product categories, tags and "
759
  "attributes."
760
  msgstr ""
761
 
762
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
763
  msgid "Get it now:"
764
  msgstr ""
765
 
766
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
767
- msgid "WPGlobus Multi-Currency"
768
  msgstr ""
769
 
770
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
771
  msgid "Accept multiple currencies in your online store!"
772
  msgstr ""
773
 
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
775
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
776
  msgid "Check it out:"
777
  msgstr ""
778
 
779
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
780
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
781
  msgstr ""
782
 
783
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
784
  msgid "To translate permalinks, please activate the module Slug."
785
  msgstr ""
786
 
@@ -797,11 +797,11 @@ msgstr ""
797
  msgid "Сompatibility Settings"
798
  msgstr ""
799
 
800
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
801
  msgid "WPGlobus languages"
802
  msgstr ""
803
 
804
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
805
  msgid "current"
806
  msgstr ""
807
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Greek (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/el/)\n"
744
  "technical information to your email message."
745
  msgstr ""
746
 
747
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
748
  msgid "WPGlobus Recommends:"
749
  msgstr ""
750
 
751
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
752
  #: includes/options/class-wpglobus-options.php:866
753
  msgid "WPGlobus for WooCommerce"
754
  msgstr ""
755
 
756
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
757
  msgid ""
758
  "Translate product titles and descriptions, product categories, tags and "
759
  "attributes."
760
  msgstr ""
761
 
762
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
763
  msgid "Get it now:"
764
  msgstr ""
765
 
766
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
767
+ msgid "WooCommerce Multi-Currency"
768
  msgstr ""
769
 
770
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
771
  msgid "Accept multiple currencies in your online store!"
772
  msgstr ""
773
 
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
775
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
776
  msgid "Check it out:"
777
  msgstr ""
778
 
779
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
780
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
781
  msgstr ""
782
 
783
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
784
  msgid "To translate permalinks, please activate the module Slug."
785
  msgstr ""
786
 
797
  msgid "Сompatibility Settings"
798
  msgstr ""
799
 
800
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
801
  msgid "WPGlobus languages"
802
  msgstr ""
803
 
804
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
805
  msgid "current"
806
  msgstr ""
807
 
languages/wpglobus-en_AU.mo CHANGED
Binary file
languages/wpglobus-en_AU.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: English (Australia) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/en_AU/)\n"
@@ -816,16 +816,16 @@ msgid ""
816
  "technical information to your email message."
817
  msgstr ""
818
 
819
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
820
  msgid "WPGlobus Recommends:"
821
  msgstr "WPGlobus Recommends:"
822
 
823
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
824
  #: includes/options/class-wpglobus-options.php:866
825
  msgid "WPGlobus for WooCommerce"
826
  msgstr "WPGlobus for WooCommerce"
827
 
828
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
829
  msgid ""
830
  "Translate product titles and descriptions, product categories, tags and "
831
  "attributes."
@@ -833,28 +833,28 @@ msgstr ""
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
837
  msgid "Get it now:"
838
  msgstr "Get it now:"
839
 
840
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
841
- msgid "WPGlobus Multi-Currency"
842
- msgstr "WPGlobus Multi-Currency"
843
-
844
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Accept multiple currencies in your online store!"
847
 
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
849
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
850
  msgid "Check it out:"
851
  msgstr "Check it out:"
852
 
853
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
@@ -871,11 +871,11 @@ msgstr ""
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
879
  msgid "current"
880
  msgstr ""
881
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: English (Australia) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/en_AU/)\n"
816
  "technical information to your email message."
817
  msgstr ""
818
 
819
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
820
  msgid "WPGlobus Recommends:"
821
  msgstr "WPGlobus Recommends:"
822
 
823
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
824
  #: includes/options/class-wpglobus-options.php:866
825
  msgid "WPGlobus for WooCommerce"
826
  msgstr "WPGlobus for WooCommerce"
827
 
828
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
829
  msgid ""
830
  "Translate product titles and descriptions, product categories, tags and "
831
  "attributes."
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
837
  msgid "Get it now:"
838
  msgstr "Get it now:"
839
 
 
 
 
 
840
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
841
+ msgid "WooCommerce Multi-Currency"
842
+ msgstr ""
843
+
844
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Accept multiple currencies in your online store!"
847
 
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
849
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
850
  msgid "Check it out:"
851
  msgstr "Check it out:"
852
 
853
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
879
  msgid "current"
880
  msgstr ""
881
 
languages/wpglobus-en_CA.mo CHANGED
Binary file
languages/wpglobus-en_CA.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (Canada) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/en_CA/)\n"
@@ -815,16 +815,16 @@ msgid ""
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
@@ -832,28 +832,28 @@ msgstr ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
839
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
840
- msgid "WPGlobus Multi-Currency"
841
- msgstr "WPGlobus Multi-Currency"
842
-
843
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
@@ -870,11 +870,11 @@ msgstr ""
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
878
  msgid "current"
879
  msgstr ""
880
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (Canada) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/en_CA/)\n"
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
 
 
 
 
839
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
840
+ msgid "WooCommerce Multi-Currency"
841
+ msgstr ""
842
+
843
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
878
  msgid "current"
879
  msgstr ""
880
 
languages/wpglobus-en_GB.mo CHANGED
Binary file
languages/wpglobus-en_GB.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: English (United Kingdom) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/en_GB/)\n"
@@ -816,16 +816,16 @@ msgid ""
816
  "technical information to your email message."
817
  msgstr ""
818
 
819
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
820
  msgid "WPGlobus Recommends:"
821
  msgstr "WPGlobus Recommends:"
822
 
823
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
824
  #: includes/options/class-wpglobus-options.php:866
825
  msgid "WPGlobus for WooCommerce"
826
  msgstr "WPGlobus for WooCommerce"
827
 
828
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
829
  msgid ""
830
  "Translate product titles and descriptions, product categories, tags and "
831
  "attributes."
@@ -833,28 +833,28 @@ msgstr ""
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
837
  msgid "Get it now:"
838
  msgstr "Get it now:"
839
 
840
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
841
- msgid "WPGlobus Multi-Currency"
842
- msgstr "WPGlobus Multi-Currency"
843
-
844
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Accept multiple currencies in your online store!"
847
 
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
849
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
850
  msgid "Check it out:"
851
  msgstr "Check it out:"
852
 
853
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
@@ -871,11 +871,11 @@ msgstr ""
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
879
  msgid "current"
880
  msgstr ""
881
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: English (United Kingdom) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/en_GB/)\n"
816
  "technical information to your email message."
817
  msgstr ""
818
 
819
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
820
  msgid "WPGlobus Recommends:"
821
  msgstr "WPGlobus Recommends:"
822
 
823
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
824
  #: includes/options/class-wpglobus-options.php:866
825
  msgid "WPGlobus for WooCommerce"
826
  msgstr "WPGlobus for WooCommerce"
827
 
828
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
829
  msgid ""
830
  "Translate product titles and descriptions, product categories, tags and "
831
  "attributes."
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
837
  msgid "Get it now:"
838
  msgstr "Get it now:"
839
 
 
 
 
 
840
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
841
+ msgid "WooCommerce Multi-Currency"
842
+ msgstr ""
843
+
844
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr "Accept multiple currencies in your online store!"
847
 
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
849
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
850
  msgid "Check it out:"
851
  msgstr "Check it out:"
852
 
853
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
879
  msgid "current"
880
  msgstr ""
881
 
languages/wpglobus-en_NZ.mo CHANGED
Binary file
languages/wpglobus-en_NZ.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (New Zealand) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_NZ/)\n"
@@ -815,16 +815,16 @@ msgid ""
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
@@ -832,28 +832,28 @@ msgstr ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
839
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
840
- msgid "WPGlobus Multi-Currency"
841
- msgstr "WPGlobus Multi-Currency"
842
-
843
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
@@ -870,11 +870,11 @@ msgstr ""
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
878
  msgid "current"
879
  msgstr ""
880
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (New Zealand) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_NZ/)\n"
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
 
 
 
 
839
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
840
+ msgid "WooCommerce Multi-Currency"
841
+ msgstr ""
842
+
843
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
878
  msgid "current"
879
  msgstr ""
880
 
languages/wpglobus-en_US.mo CHANGED
Binary file
languages/wpglobus-en_US.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (United States) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_US/)\n"
@@ -819,16 +819,16 @@ msgstr ""
819
  "Alternatively, please email %s. Do not forget to copy and paste the "
820
  "technical information to your email message."
821
 
822
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
823
  msgid "WPGlobus Recommends:"
824
  msgstr "WPGlobus Recommends:"
825
 
826
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
827
  #: includes/options/class-wpglobus-options.php:866
828
  msgid "WPGlobus for WooCommerce"
829
  msgstr "WPGlobus for WooCommerce"
830
 
831
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
832
  msgid ""
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
@@ -836,28 +836,28 @@ msgstr ""
836
  "Translate product titles and descriptions, product categories, tags and "
837
  "attributes."
838
 
839
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
840
  msgid "Get it now:"
841
  msgstr "Get it now:"
842
 
843
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
844
- msgid "WPGlobus Multi-Currency"
845
- msgstr "WPGlobus Multi-Currency"
846
-
847
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
848
  msgid "Accept multiple currencies in your online store!"
849
  msgstr "Accept multiple currencies in your online store!"
850
 
851
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
852
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
853
  msgid "Check it out:"
854
  msgstr "Check it out:"
855
 
856
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
857
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
858
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
859
 
860
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
861
  msgid "To translate permalinks, please activate the module Slug."
862
  msgstr "To translate permalinks, please activate the module Slug."
863
 
@@ -874,13 +874,13 @@ msgstr "Builder"
874
  msgid "Сompatibility Settings"
875
  msgstr "Сompatibility Settings"
876
 
877
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
878
  msgid "WPGlobus languages"
879
  msgstr "WPGlobus languages"
880
 
881
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
882
  msgid "current"
883
- msgstr ""
884
 
885
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:138
886
  msgid "Before switching the language, please save draft or publish."
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (United States) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_US/)\n"
819
  "Alternatively, please email %s. Do not forget to copy and paste the "
820
  "technical information to your email message."
821
 
822
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
823
  msgid "WPGlobus Recommends:"
824
  msgstr "WPGlobus Recommends:"
825
 
826
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
827
  #: includes/options/class-wpglobus-options.php:866
828
  msgid "WPGlobus for WooCommerce"
829
  msgstr "WPGlobus for WooCommerce"
830
 
831
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
832
  msgid ""
833
  "Translate product titles and descriptions, product categories, tags and "
834
  "attributes."
836
  "Translate product titles and descriptions, product categories, tags and "
837
  "attributes."
838
 
839
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
840
  msgid "Get it now:"
841
  msgstr "Get it now:"
842
 
 
 
 
 
843
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
844
+ msgid "WooCommerce Multi-Currency"
845
+ msgstr "WooCommerce Multi-Currency"
846
+
847
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
848
  msgid "Accept multiple currencies in your online store!"
849
  msgstr "Accept multiple currencies in your online store!"
850
 
851
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
852
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
853
  msgid "Check it out:"
854
  msgstr "Check it out:"
855
 
856
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
857
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
858
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
859
 
860
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
861
  msgid "To translate permalinks, please activate the module Slug."
862
  msgstr "To translate permalinks, please activate the module Slug."
863
 
874
  msgid "Сompatibility Settings"
875
  msgstr "Сompatibility Settings"
876
 
877
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
878
  msgid "WPGlobus languages"
879
  msgstr "WPGlobus languages"
880
 
881
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
882
  msgid "current"
883
+ msgstr "current"
884
 
885
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:138
886
  msgid "Before switching the language, please save draft or publish."
languages/wpglobus-en_ZA.mo CHANGED
Binary file
languages/wpglobus-en_ZA.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (South Africa) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_ZA/)\n"
@@ -815,16 +815,16 @@ msgid ""
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
@@ -832,28 +832,28 @@ msgstr ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
839
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
840
- msgid "WPGlobus Multi-Currency"
841
- msgstr "WPGlobus Multi-Currency"
842
-
843
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
@@ -870,11 +870,11 @@ msgstr ""
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
878
  msgid "current"
879
  msgstr ""
880
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (South Africa) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_ZA/)\n"
815
  "technical information to your email message."
816
  msgstr ""
817
 
818
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
819
  msgid "WPGlobus Recommends:"
820
  msgstr "WPGlobus Recommends:"
821
 
822
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
823
  #: includes/options/class-wpglobus-options.php:866
824
  msgid "WPGlobus for WooCommerce"
825
  msgstr "WPGlobus for WooCommerce"
826
 
827
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
828
  msgid ""
829
  "Translate product titles and descriptions, product categories, tags and "
830
  "attributes."
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
 
835
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
836
  msgid "Get it now:"
837
  msgstr "Get it now:"
838
 
 
 
 
 
839
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
840
+ msgid "WooCommerce Multi-Currency"
841
+ msgstr ""
842
+
843
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
844
  msgid "Accept multiple currencies in your online store!"
845
  msgstr "Accept multiple currencies in your online store!"
846
 
847
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
849
  msgid "Check it out:"
850
  msgstr "Check it out:"
851
 
852
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
853
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
854
  msgstr ""
855
 
856
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
857
  msgid "To translate permalinks, please activate the module Slug."
858
  msgstr ""
859
 
870
  msgid "Сompatibility Settings"
871
  msgstr ""
872
 
873
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
874
  msgid "WPGlobus languages"
875
  msgstr ""
876
 
877
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
878
  msgid "current"
879
  msgstr ""
880
 
languages/wpglobus-es_AR.mo CHANGED
Binary file
languages/wpglobus-es_AR.po CHANGED
@@ -6,8 +6,8 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
- "Last-Translator: Andrés Yaz <andresyaz@gmail.com>\n"
11
  "Language-Team: Spanish (Argentina) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_AR/)\n"
13
  "Language: es_AR\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Argentina) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_AR/)\n"
13
  "Language: es_AR\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_CL.mo CHANGED
Binary file
languages/wpglobus-es_CL.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Chile) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_CL/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Chile) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_CL/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_CO.mo CHANGED
Binary file
languages/wpglobus-es_CO.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Colombia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_CO/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Colombia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_CO/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_CR.mo CHANGED
Binary file
languages/wpglobus-es_CR.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Costa Rica) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/es_CR/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Costa Rica) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/es_CR/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_ES.mo CHANGED
Binary file
languages/wpglobus-es_ES.po CHANGED
@@ -6,8 +6,8 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
- "Last-Translator: Jose Garcia <rawzef@gmail.com>\n"
11
  "Language-Team: Spanish (Spain) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_ES/)\n"
13
  "Language: es_ES\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Spain) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_ES/)\n"
13
  "Language: es_ES\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_GT.mo CHANGED
Binary file
languages/wpglobus-es_GT.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Guatemala) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_GT/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Guatemala) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_GT/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_MX.mo CHANGED
Binary file
languages/wpglobus-es_MX.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Mexico) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_MX/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Mexico) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_MX/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_PE.mo CHANGED
Binary file
languages/wpglobus-es_PE.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Peru) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_PE/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Peru) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_PE/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_PR.mo CHANGED
Binary file
languages/wpglobus-es_PR.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Puerto Rico) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/es_PR/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Puerto Rico) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/es_PR/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-es_VE.mo CHANGED
Binary file
languages/wpglobus-es_VE.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Venezuela) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_VE/)\n"
@@ -778,43 +778,43 @@ msgid ""
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
801
- msgid "WPGlobus Multi-Currency"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
@@ -831,11 +831,11 @@ msgstr ""
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
839
  msgid "current"
840
  msgstr ""
841
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Spanish (Venezuela) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/es_VE/)\n"
778
  "technical information to your email message."
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
782
  msgid "WPGlobus Recommends:"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
786
  #: includes/options/class-wpglobus-options.php:866
787
  msgid "WPGlobus for WooCommerce"
788
  msgstr ""
789
 
790
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
791
  msgid ""
792
  "Translate product titles and descriptions, product categories, tags and "
793
  "attributes."
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
797
  msgid "Get it now:"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
801
+ msgid "WooCommerce Multi-Currency"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
805
  msgid "Accept multiple currencies in your online store!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
810
  msgid "Check it out:"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
814
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
815
  msgstr ""
816
 
817
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
818
  msgid "To translate permalinks, please activate the module Slug."
819
  msgstr ""
820
 
831
  msgid "Сompatibility Settings"
832
  msgstr ""
833
 
834
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
835
  msgid "WPGlobus languages"
836
  msgstr ""
837
 
838
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
839
  msgid "current"
840
  msgstr ""
841
 
languages/wpglobus-et.mo CHANGED
Binary file
languages/wpglobus-et.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Estonian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/et/)\n"
@@ -744,43 +744,43 @@ msgid ""
744
  "technical information to your email message."
745
  msgstr ""
746
 
747
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
748
  msgid "WPGlobus Recommends:"
749
  msgstr ""
750
 
751
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
752
  #: includes/options/class-wpglobus-options.php:866
753
  msgid "WPGlobus for WooCommerce"
754
  msgstr ""
755
 
756
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
757
  msgid ""
758
  "Translate product titles and descriptions, product categories, tags and "
759
  "attributes."
760
  msgstr ""
761
 
762
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
763
  msgid "Get it now:"
764
  msgstr "Hangi kohe:"
765
 
766
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
767
- msgid "WPGlobus Multi-Currency"
768
  msgstr ""
769
 
770
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
771
  msgid "Accept multiple currencies in your online store!"
772
  msgstr ""
773
 
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
775
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
776
  msgid "Check it out:"
777
  msgstr ""
778
 
779
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
780
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
781
  msgstr ""
782
 
783
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
784
  msgid "To translate permalinks, please activate the module Slug."
785
  msgstr ""
786
 
@@ -797,11 +797,11 @@ msgstr ""
797
  msgid "Сompatibility Settings"
798
  msgstr ""
799
 
800
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
801
  msgid "WPGlobus languages"
802
  msgstr ""
803
 
804
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
805
  msgid "current"
806
  msgstr ""
807
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Estonian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/et/)\n"
744
  "technical information to your email message."
745
  msgstr ""
746
 
747
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
748
  msgid "WPGlobus Recommends:"
749
  msgstr ""
750
 
751
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
752
  #: includes/options/class-wpglobus-options.php:866
753
  msgid "WPGlobus for WooCommerce"
754
  msgstr ""
755
 
756
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
757
  msgid ""
758
  "Translate product titles and descriptions, product categories, tags and "
759
  "attributes."
760
  msgstr ""
761
 
762
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
763
  msgid "Get it now:"
764
  msgstr "Hangi kohe:"
765
 
766
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
767
+ msgid "WooCommerce Multi-Currency"
768
  msgstr ""
769
 
770
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
771
  msgid "Accept multiple currencies in your online store!"
772
  msgstr ""
773
 
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
775
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
776
  msgid "Check it out:"
777
  msgstr ""
778
 
779
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
780
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
781
  msgstr ""
782
 
783
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
784
  msgid "To translate permalinks, please activate the module Slug."
785
  msgstr ""
786
 
797
  msgid "Сompatibility Settings"
798
  msgstr ""
799
 
800
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
801
  msgid "WPGlobus languages"
802
  msgstr ""
803
 
804
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
805
  msgid "current"
806
  msgstr ""
807
 
languages/wpglobus-fr_BE.mo CHANGED
Binary file
languages/wpglobus-fr_BE.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: French (Belgium) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/fr_BE/)\n"
@@ -841,43 +841,43 @@ msgid ""
841
  "technical information to your email message."
842
  msgstr ""
843
 
844
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
845
  msgid "WPGlobus Recommends:"
846
  msgstr ""
847
 
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
849
  #: includes/options/class-wpglobus-options.php:866
850
  msgid "WPGlobus for WooCommerce"
851
  msgstr ""
852
 
853
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
854
  msgid ""
855
  "Translate product titles and descriptions, product categories, tags and "
856
  "attributes."
857
  msgstr ""
858
 
859
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
860
  msgid "Get it now:"
861
  msgstr ""
862
 
863
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
864
- msgid "WPGlobus Multi-Currency"
865
  msgstr ""
866
 
867
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
868
  msgid "Accept multiple currencies in your online store!"
869
  msgstr ""
870
 
871
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
872
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
873
  msgid "Check it out:"
874
  msgstr ""
875
 
876
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
877
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
878
  msgstr ""
879
 
880
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
881
  msgid "To translate permalinks, please activate the module Slug."
882
  msgstr ""
883
 
@@ -894,11 +894,11 @@ msgstr ""
894
  msgid "Сompatibility Settings"
895
  msgstr ""
896
 
897
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
898
  msgid "WPGlobus languages"
899
  msgstr ""
900
 
901
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
902
  msgid "current"
903
  msgstr ""
904
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: French (Belgium) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/fr_BE/)\n"
841
  "technical information to your email message."
842
  msgstr ""
843
 
844
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
845
  msgid "WPGlobus Recommends:"
846
  msgstr ""
847
 
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
849
  #: includes/options/class-wpglobus-options.php:866
850
  msgid "WPGlobus for WooCommerce"
851
  msgstr ""
852
 
853
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
854
  msgid ""
855
  "Translate product titles and descriptions, product categories, tags and "
856
  "attributes."
857
  msgstr ""
858
 
859
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
860
  msgid "Get it now:"
861
  msgstr ""
862
 
863
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
864
+ msgid "WooCommerce Multi-Currency"
865
  msgstr ""
866
 
867
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
868
  msgid "Accept multiple currencies in your online store!"
869
  msgstr ""
870
 
871
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
872
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
873
  msgid "Check it out:"
874
  msgstr ""
875
 
876
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
877
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
878
  msgstr ""
879
 
880
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
881
  msgid "To translate permalinks, please activate the module Slug."
882
  msgstr ""
883
 
894
  msgid "Сompatibility Settings"
895
  msgstr ""
896
 
897
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
898
  msgid "WPGlobus languages"
899
  msgstr ""
900
 
901
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
902
  msgid "current"
903
  msgstr ""
904
 
languages/wpglobus-fr_CA.mo CHANGED
Binary file
languages/wpglobus-fr_CA.po CHANGED
@@ -8,7 +8,7 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
12
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
13
  "Language-Team: French (Canada) (http://www.transifex.com/wp-translations/"
14
  "wpglobus-multilingual/language/fr_CA/)\n"
@@ -843,43 +843,43 @@ msgid ""
843
  "technical information to your email message."
844
  msgstr ""
845
 
846
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
847
  msgid "WPGlobus Recommends:"
848
  msgstr ""
849
 
850
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
851
  #: includes/options/class-wpglobus-options.php:866
852
  msgid "WPGlobus for WooCommerce"
853
  msgstr ""
854
 
855
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
856
  msgid ""
857
  "Translate product titles and descriptions, product categories, tags and "
858
  "attributes."
859
  msgstr ""
860
 
861
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
862
  msgid "Get it now:"
863
  msgstr ""
864
 
865
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
866
- msgid "WPGlobus Multi-Currency"
867
  msgstr ""
868
 
869
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
870
  msgid "Accept multiple currencies in your online store!"
871
  msgstr ""
872
 
873
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
874
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
875
  msgid "Check it out:"
876
  msgstr ""
877
 
878
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
879
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
883
  msgid "To translate permalinks, please activate the module Slug."
884
  msgstr ""
885
 
@@ -896,11 +896,11 @@ msgstr ""
896
  msgid "Сompatibility Settings"
897
  msgstr ""
898
 
899
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
900
  msgid "WPGlobus languages"
901
  msgstr ""
902
 
903
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
904
  msgid "current"
905
  msgstr ""
906
 
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
12
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
13
  "Language-Team: French (Canada) (http://www.transifex.com/wp-translations/"
14
  "wpglobus-multilingual/language/fr_CA/)\n"
843
  "technical information to your email message."
844
  msgstr ""
845
 
846
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
847
  msgid "WPGlobus Recommends:"
848
  msgstr ""
849
 
850
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
851
  #: includes/options/class-wpglobus-options.php:866
852
  msgid "WPGlobus for WooCommerce"
853
  msgstr ""
854
 
855
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
856
  msgid ""
857
  "Translate product titles and descriptions, product categories, tags and "
858
  "attributes."
859
  msgstr ""
860
 
861
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
862
  msgid "Get it now:"
863
  msgstr ""
864
 
865
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
866
+ msgid "WooCommerce Multi-Currency"
867
  msgstr ""
868
 
869
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
870
  msgid "Accept multiple currencies in your online store!"
871
  msgstr ""
872
 
873
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
874
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
875
  msgid "Check it out:"
876
  msgstr ""
877
 
878
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
879
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
883
  msgid "To translate permalinks, please activate the module Slug."
884
  msgstr ""
885
 
896
  msgid "Сompatibility Settings"
897
  msgstr ""
898
 
899
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
900
  msgid "WPGlobus languages"
901
  msgstr ""
902
 
903
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
904
  msgid "current"
905
  msgstr ""
906
 
languages/wpglobus-fr_FR.mo CHANGED
Binary file
languages/wpglobus-fr_FR.po CHANGED
@@ -8,8 +8,8 @@ msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
12
- "Last-Translator: Franck\n"
13
  "Language-Team: French (France) (http://www.transifex.com/wp-translations/"
14
  "wpglobus-multilingual/language/fr_FR/)\n"
15
  "Language: fr_FR\n"
@@ -843,43 +843,43 @@ msgid ""
843
  "technical information to your email message."
844
  msgstr ""
845
 
846
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
847
  msgid "WPGlobus Recommends:"
848
  msgstr ""
849
 
850
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
851
  #: includes/options/class-wpglobus-options.php:866
852
  msgid "WPGlobus for WooCommerce"
853
  msgstr ""
854
 
855
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
856
  msgid ""
857
  "Translate product titles and descriptions, product categories, tags and "
858
  "attributes."
859
  msgstr ""
860
 
861
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
862
  msgid "Get it now:"
863
  msgstr ""
864
 
865
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
866
- msgid "WPGlobus Multi-Currency"
867
  msgstr ""
868
 
869
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
870
  msgid "Accept multiple currencies in your online store!"
871
  msgstr ""
872
 
873
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
874
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
875
  msgid "Check it out:"
876
  msgstr ""
877
 
878
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
879
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
883
  msgid "To translate permalinks, please activate the module Slug."
884
  msgstr ""
885
 
@@ -896,11 +896,11 @@ msgstr "Constructeur"
896
  msgid "Сompatibility Settings"
897
  msgstr ""
898
 
899
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
900
  msgid "WPGlobus languages"
901
  msgstr ""
902
 
903
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
904
  msgid "current"
905
  msgstr ""
906
 
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
11
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
12
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
13
  "Language-Team: French (France) (http://www.transifex.com/wp-translations/"
14
  "wpglobus-multilingual/language/fr_FR/)\n"
15
  "Language: fr_FR\n"
843
  "technical information to your email message."
844
  msgstr ""
845
 
846
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
847
  msgid "WPGlobus Recommends:"
848
  msgstr ""
849
 
850
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
851
  #: includes/options/class-wpglobus-options.php:866
852
  msgid "WPGlobus for WooCommerce"
853
  msgstr ""
854
 
855
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
856
  msgid ""
857
  "Translate product titles and descriptions, product categories, tags and "
858
  "attributes."
859
  msgstr ""
860
 
861
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
862
  msgid "Get it now:"
863
  msgstr ""
864
 
865
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
866
+ msgid "WooCommerce Multi-Currency"
867
  msgstr ""
868
 
869
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
870
  msgid "Accept multiple currencies in your online store!"
871
  msgstr ""
872
 
873
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
874
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
875
  msgid "Check it out:"
876
  msgstr ""
877
 
878
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
879
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
883
  msgid "To translate permalinks, please activate the module Slug."
884
  msgstr ""
885
 
896
  msgid "Сompatibility Settings"
897
  msgstr ""
898
 
899
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
900
  msgid "WPGlobus languages"
901
  msgstr ""
902
 
903
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
904
  msgid "current"
905
  msgstr ""
906
 
languages/wpglobus-id_ID.mo CHANGED
Binary file
languages/wpglobus-id_ID.po CHANGED
@@ -7,8 +7,8 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
11
- "Last-Translator: Muhammad Yahya Muhaimin <surat.pribadiku@gmail.com>\n"
12
  "Language-Team: Indonesian (Indonesia) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/id_ID/)\n"
14
  "Language: id_ID\n"
@@ -818,43 +818,43 @@ msgid ""
818
  "technical information to your email message."
819
  msgstr ""
820
 
821
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
822
  msgid "WPGlobus Recommends:"
823
  msgstr ""
824
 
825
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
826
  #: includes/options/class-wpglobus-options.php:866
827
  msgid "WPGlobus for WooCommerce"
828
  msgstr ""
829
 
830
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
831
  msgid ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
  msgstr ""
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
837
  msgid "Get it now:"
838
  msgstr ""
839
 
840
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
841
- msgid "WPGlobus Multi-Currency"
842
  msgstr ""
843
 
844
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr ""
847
 
848
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
849
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
850
  msgid "Check it out:"
851
  msgstr ""
852
 
853
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
@@ -871,11 +871,11 @@ msgstr "Builder"
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
879
  msgid "current"
880
  msgstr ""
881
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: Indonesian (Indonesia) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/id_ID/)\n"
14
  "Language: id_ID\n"
818
  "technical information to your email message."
819
  msgstr ""
820
 
821
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
822
  msgid "WPGlobus Recommends:"
823
  msgstr ""
824
 
825
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
826
  #: includes/options/class-wpglobus-options.php:866
827
  msgid "WPGlobus for WooCommerce"
828
  msgstr ""
829
 
830
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
831
  msgid ""
832
  "Translate product titles and descriptions, product categories, tags and "
833
  "attributes."
834
  msgstr ""
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
837
  msgid "Get it now:"
838
  msgstr ""
839
 
840
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
841
+ msgid "WooCommerce Multi-Currency"
842
  msgstr ""
843
 
844
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
845
  msgid "Accept multiple currencies in your online store!"
846
  msgstr ""
847
 
848
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
849
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
850
  msgid "Check it out:"
851
  msgstr ""
852
 
853
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
854
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
855
  msgstr ""
856
 
857
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
858
  msgid "To translate permalinks, please activate the module Slug."
859
  msgstr ""
860
 
871
  msgid "Сompatibility Settings"
872
  msgstr ""
873
 
874
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
875
  msgid "WPGlobus languages"
876
  msgstr ""
877
 
878
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
879
  msgid "current"
880
  msgstr ""
881
 
languages/wpglobus-ko_KR.mo CHANGED
Binary file
languages/wpglobus-ko_KR.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Korean (Korea) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/ko_KR/)\n"
@@ -743,43 +743,43 @@ msgid ""
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
766
- msgid "WPGlobus Multi-Currency"
767
  msgstr ""
768
 
769
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
@@ -796,11 +796,11 @@ msgstr ""
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
804
  msgid "current"
805
  msgstr ""
806
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Korean (Korea) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/ko_KR/)\n"
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
766
+ msgid "WooCommerce Multi-Currency"
767
  msgstr ""
768
 
769
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
804
  msgid "current"
805
  msgstr ""
806
 
languages/wpglobus-pl_PL.mo CHANGED
Binary file
languages/wpglobus-pl_PL.po CHANGED
@@ -5,8 +5,8 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
- "Last-Translator: Hoang Ha <halink0803@gmail.com>\n"
10
  "Language-Team: Polish (Poland) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/pl_PL/)\n"
12
  "Language: pl_PL\n"
@@ -770,43 +770,43 @@ msgid ""
770
  "technical information to your email message."
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
774
  msgid "WPGlobus Recommends:"
775
  msgstr ""
776
 
777
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
778
  #: includes/options/class-wpglobus-options.php:866
779
  msgid "WPGlobus for WooCommerce"
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
783
  msgid ""
784
  "Translate product titles and descriptions, product categories, tags and "
785
  "attributes."
786
  msgstr ""
787
 
788
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
789
  msgid "Get it now:"
790
  msgstr ""
791
 
792
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
793
- msgid "WPGlobus Multi-Currency"
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
797
  msgid "Accept multiple currencies in your online store!"
798
  msgstr ""
799
 
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
801
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
802
  msgid "Check it out:"
803
  msgstr ""
804
 
805
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
806
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
810
  msgid "To translate permalinks, please activate the module Slug."
811
  msgstr ""
812
 
@@ -823,11 +823,11 @@ msgstr "Generator"
823
  msgid "Сompatibility Settings"
824
  msgstr ""
825
 
826
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
827
  msgid "WPGlobus languages"
828
  msgstr ""
829
 
830
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
831
  msgid "current"
832
  msgstr ""
833
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Polish (Poland) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/pl_PL/)\n"
12
  "Language: pl_PL\n"
770
  "technical information to your email message."
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
774
  msgid "WPGlobus Recommends:"
775
  msgstr ""
776
 
777
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
778
  #: includes/options/class-wpglobus-options.php:866
779
  msgid "WPGlobus for WooCommerce"
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
783
  msgid ""
784
  "Translate product titles and descriptions, product categories, tags and "
785
  "attributes."
786
  msgstr ""
787
 
788
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
789
  msgid "Get it now:"
790
  msgstr ""
791
 
792
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
793
+ msgid "WooCommerce Multi-Currency"
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
797
  msgid "Accept multiple currencies in your online store!"
798
  msgstr ""
799
 
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
801
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
802
  msgid "Check it out:"
803
  msgstr ""
804
 
805
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
806
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
810
  msgid "To translate permalinks, please activate the module Slug."
811
  msgstr ""
812
 
823
  msgid "Сompatibility Settings"
824
  msgstr ""
825
 
826
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
827
  msgid "WPGlobus languages"
828
  msgstr ""
829
 
830
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
831
  msgid "current"
832
  msgstr ""
833
 
languages/wpglobus-pt_BR.mo CHANGED
Binary file
languages/wpglobus-pt_BR.po CHANGED
@@ -5,8 +5,8 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
- "Last-Translator: Marcelo Antunes\n"
10
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/pt_BR/)\n"
12
  "Language: pt_BR\n"
@@ -743,43 +743,43 @@ msgid ""
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
766
- msgid "WPGlobus Multi-Currency"
767
  msgstr ""
768
 
769
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
@@ -796,11 +796,11 @@ msgstr "Construtor"
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
804
  msgid "current"
805
  msgstr ""
806
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/pt_BR/)\n"
12
  "Language: pt_BR\n"
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
766
+ msgid "WooCommerce Multi-Currency"
767
  msgstr ""
768
 
769
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
804
  msgid "current"
805
  msgstr ""
806
 
languages/wpglobus-pt_PT.mo CHANGED
Binary file
languages/wpglobus-pt_PT.po CHANGED
@@ -5,8 +5,8 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
- "Last-Translator: Arruma Ideias <arrumaideias@gmail.com>\n"
10
  "Language-Team: Portuguese (Portugal) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/pt_PT/)\n"
12
  "Language: pt_PT\n"
@@ -743,43 +743,43 @@ msgid ""
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
766
- msgid "WPGlobus Multi-Currency"
767
  msgstr ""
768
 
769
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
774
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
@@ -796,11 +796,11 @@ msgstr ""
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
804
  msgid "current"
805
  msgstr ""
806
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Portuguese (Portugal) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/pt_PT/)\n"
12
  "Language: pt_PT\n"
743
  "technical information to your email message."
744
  msgstr ""
745
 
746
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
747
  msgid "WPGlobus Recommends:"
748
  msgstr ""
749
 
750
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
751
  #: includes/options/class-wpglobus-options.php:866
752
  msgid "WPGlobus for WooCommerce"
753
  msgstr ""
754
 
755
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
756
  msgid ""
757
  "Translate product titles and descriptions, product categories, tags and "
758
  "attributes."
759
  msgstr ""
760
 
761
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
762
  msgid "Get it now:"
763
  msgstr ""
764
 
765
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
766
+ msgid "WooCommerce Multi-Currency"
767
  msgstr ""
768
 
769
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
770
  msgid "Accept multiple currencies in your online store!"
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
774
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
775
  msgid "Check it out:"
776
  msgstr ""
777
 
778
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
779
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
780
  msgstr ""
781
 
782
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
783
  msgid "To translate permalinks, please activate the module Slug."
784
  msgstr ""
785
 
796
  msgid "Сompatibility Settings"
797
  msgstr ""
798
 
799
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
800
  msgid "WPGlobus languages"
801
  msgstr ""
802
 
803
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
804
  msgid "current"
805
  msgstr ""
806
 
languages/wpglobus-ro_RO.mo CHANGED
Binary file
languages/wpglobus-ro_RO.po CHANGED
@@ -5,7 +5,7 @@ msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Romanian (Romania) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/ro_RO/)\n"
@@ -773,43 +773,43 @@ msgid ""
773
  "technical information to your email message."
774
  msgstr ""
775
 
776
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
777
  msgid "WPGlobus Recommends:"
778
  msgstr ""
779
 
780
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
781
  #: includes/options/class-wpglobus-options.php:866
782
  msgid "WPGlobus for WooCommerce"
783
  msgstr ""
784
 
785
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
786
  msgid ""
787
  "Translate product titles and descriptions, product categories, tags and "
788
  "attributes."
789
  msgstr ""
790
 
791
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
792
  msgid "Get it now:"
793
  msgstr ""
794
 
795
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
796
- msgid "WPGlobus Multi-Currency"
797
  msgstr ""
798
 
799
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
800
  msgid "Accept multiple currencies in your online store!"
801
  msgstr ""
802
 
803
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
805
  msgid "Check it out:"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
809
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
810
  msgstr ""
811
 
812
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
813
  msgid "To translate permalinks, please activate the module Slug."
814
  msgstr ""
815
 
@@ -826,11 +826,11 @@ msgstr ""
826
  msgid "Сompatibility Settings"
827
  msgstr ""
828
 
829
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
830
  msgid "WPGlobus languages"
831
  msgstr ""
832
 
833
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
834
  msgid "current"
835
  msgstr ""
836
 
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
8
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Romanian (Romania) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/ro_RO/)\n"
773
  "technical information to your email message."
774
  msgstr ""
775
 
776
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
777
  msgid "WPGlobus Recommends:"
778
  msgstr ""
779
 
780
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
781
  #: includes/options/class-wpglobus-options.php:866
782
  msgid "WPGlobus for WooCommerce"
783
  msgstr ""
784
 
785
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
786
  msgid ""
787
  "Translate product titles and descriptions, product categories, tags and "
788
  "attributes."
789
  msgstr ""
790
 
791
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
792
  msgid "Get it now:"
793
  msgstr ""
794
 
795
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
796
+ msgid "WooCommerce Multi-Currency"
797
  msgstr ""
798
 
799
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
800
  msgid "Accept multiple currencies in your online store!"
801
  msgstr ""
802
 
803
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
805
  msgid "Check it out:"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
809
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
810
  msgstr ""
811
 
812
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
813
  msgid "To translate permalinks, please activate the module Slug."
814
  msgstr ""
815
 
826
  msgid "Сompatibility Settings"
827
  msgstr ""
828
 
829
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
830
  msgid "WPGlobus languages"
831
  msgstr ""
832
 
833
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
834
  msgid "current"
835
  msgstr ""
836
 
languages/wpglobus-ru_RU.mo CHANGED
Binary file
languages/wpglobus-ru_RU.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:58+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Russian (Russia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/ru_RU/)\n"
@@ -824,43 +824,43 @@ msgstr ""
824
  "Вы также можете отправить нам сообщение на %s. Не забудьте скопировать "
825
  "техническую информацию в текст вашего сообщения."
826
 
827
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
828
  msgid "WPGlobus Recommends:"
829
  msgstr "WPGlobus рекомендует:"
830
 
831
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
832
  #: includes/options/class-wpglobus-options.php:866
833
  msgid "WPGlobus for WooCommerce"
834
  msgstr "WPGlobus для WooCommerce"
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
837
  msgid ""
838
  "Translate product titles and descriptions, product categories, tags and "
839
  "attributes."
840
  msgstr "Переведите названия и описания товаров, категорий, свойств и меток."
841
 
842
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
843
  msgid "Get it now:"
844
  msgstr "Установите прямо сейчас:"
845
 
846
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
847
- msgid "WPGlobus Multi-Currency"
848
- msgstr "WPGlobus Мультивалютность"
849
-
850
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
 
 
 
 
851
  msgid "Accept multiple currencies in your online store!"
852
  msgstr "Принимайте оплату в нескольких валютах!"
853
 
854
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
855
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
856
  msgid "Check it out:"
857
  msgstr "Информация - здесь:"
858
 
859
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
860
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
861
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
862
 
863
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
864
  msgid "To translate permalinks, please activate the module Slug."
865
  msgstr "Для перевода ссылок необходимо активировать модуль УРЛ."
866
 
@@ -877,11 +877,11 @@ msgstr "Билдер"
877
  msgid "Сompatibility Settings"
878
  msgstr "Совместимость"
879
 
880
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
881
  msgid "WPGlobus languages"
882
  msgstr "Языки WPGlobus"
883
 
884
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
885
  msgid "current"
886
  msgstr ""
887
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:42+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Russian (Russia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/ru_RU/)\n"
824
  "Вы также можете отправить нам сообщение на %s. Не забудьте скопировать "
825
  "техническую информацию в текст вашего сообщения."
826
 
827
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
828
  msgid "WPGlobus Recommends:"
829
  msgstr "WPGlobus рекомендует:"
830
 
831
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
832
  #: includes/options/class-wpglobus-options.php:866
833
  msgid "WPGlobus for WooCommerce"
834
  msgstr "WPGlobus для WooCommerce"
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
837
  msgid ""
838
  "Translate product titles and descriptions, product categories, tags and "
839
  "attributes."
840
  msgstr "Переведите названия и описания товаров, категорий, свойств и меток."
841
 
842
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
843
  msgid "Get it now:"
844
  msgstr "Установите прямо сейчас:"
845
 
 
 
 
 
846
  #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
847
+ msgid "WooCommerce Multi-Currency"
848
+ msgstr "WooCommerce Мультивалютность"
849
+
850
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
851
  msgid "Accept multiple currencies in your online store!"
852
  msgstr "Принимайте оплату в нескольких валютах!"
853
 
854
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
855
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
856
  msgid "Check it out:"
857
  msgstr "Информация - здесь:"
858
 
859
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
860
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
861
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
862
 
863
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
864
  msgid "To translate permalinks, please activate the module Slug."
865
  msgstr "Для перевода ссылок необходимо активировать модуль УРЛ."
866
 
877
  msgid "Сompatibility Settings"
878
  msgstr "Совместимость"
879
 
880
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
881
  msgid "WPGlobus languages"
882
  msgstr "Языки WPGlobus"
883
 
884
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
885
  msgid "current"
886
  msgstr ""
887
 
languages/wpglobus-sv_SE.mo CHANGED
Binary file
languages/wpglobus-sv_SE.po CHANGED
@@ -7,7 +7,7 @@ msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: Swedish (Sweden) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/sv_SE/)\n"
@@ -766,43 +766,43 @@ msgid ""
766
  "technical information to your email message."
767
  msgstr ""
768
 
769
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
770
  msgid "WPGlobus Recommends:"
771
  msgstr ""
772
 
773
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
774
  #: includes/options/class-wpglobus-options.php:866
775
  msgid "WPGlobus for WooCommerce"
776
  msgstr ""
777
 
778
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
779
  msgid ""
780
  "Translate product titles and descriptions, product categories, tags and "
781
  "attributes."
782
  msgstr ""
783
 
784
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
785
  msgid "Get it now:"
786
  msgstr ""
787
 
788
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
789
- msgid "WPGlobus Multi-Currency"
790
  msgstr ""
791
 
792
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
793
  msgid "Accept multiple currencies in your online store!"
794
  msgstr ""
795
 
796
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
797
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
798
  msgid "Check it out:"
799
  msgstr ""
800
 
801
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
802
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
803
  msgstr ""
804
 
805
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
806
  msgid "To translate permalinks, please activate the module Slug."
807
  msgstr ""
808
 
@@ -819,11 +819,11 @@ msgstr ""
819
  msgid "Сompatibility Settings"
820
  msgstr ""
821
 
822
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
823
  msgid "WPGlobus languages"
824
  msgstr ""
825
 
826
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
827
  msgid "current"
828
  msgstr ""
829
 
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
10
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: Swedish (Sweden) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/sv_SE/)\n"
766
  "technical information to your email message."
767
  msgstr ""
768
 
769
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
770
  msgid "WPGlobus Recommends:"
771
  msgstr ""
772
 
773
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
774
  #: includes/options/class-wpglobus-options.php:866
775
  msgid "WPGlobus for WooCommerce"
776
  msgstr ""
777
 
778
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
779
  msgid ""
780
  "Translate product titles and descriptions, product categories, tags and "
781
  "attributes."
782
  msgstr ""
783
 
784
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
785
  msgid "Get it now:"
786
  msgstr ""
787
 
788
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
789
+ msgid "WooCommerce Multi-Currency"
790
  msgstr ""
791
 
792
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
793
  msgid "Accept multiple currencies in your online store!"
794
  msgstr ""
795
 
796
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
797
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
798
  msgid "Check it out:"
799
  msgstr ""
800
 
801
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
802
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
803
  msgstr ""
804
 
805
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
806
  msgid "To translate permalinks, please activate the module Slug."
807
  msgstr ""
808
 
819
  msgid "Сompatibility Settings"
820
  msgstr ""
821
 
822
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
823
  msgid "WPGlobus languages"
824
  msgstr ""
825
 
826
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
827
  msgid "current"
828
  msgstr ""
829
 
languages/wpglobus-tr_TR.mo CHANGED
Binary file
languages/wpglobus-tr_TR.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Turkish (Turkey) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/tr_TR/)\n"
@@ -769,43 +769,43 @@ msgid ""
769
  "technical information to your email message."
770
  msgstr ""
771
 
772
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
773
  msgid "WPGlobus Recommends:"
774
  msgstr ""
775
 
776
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
777
  #: includes/options/class-wpglobus-options.php:866
778
  msgid "WPGlobus for WooCommerce"
779
  msgstr ""
780
 
781
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
782
  msgid ""
783
  "Translate product titles and descriptions, product categories, tags and "
784
  "attributes."
785
  msgstr ""
786
 
787
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
788
  msgid "Get it now:"
789
  msgstr ""
790
 
791
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
792
- msgid "WPGlobus Multi-Currency"
793
  msgstr ""
794
 
795
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
796
  msgid "Accept multiple currencies in your online store!"
797
  msgstr ""
798
 
799
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
800
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
801
  msgid "Check it out:"
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
805
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
809
  msgid "To translate permalinks, please activate the module Slug."
810
  msgstr ""
811
 
@@ -822,11 +822,11 @@ msgstr "Kurucu"
822
  msgid "Сompatibility Settings"
823
  msgstr ""
824
 
825
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
826
  msgid "WPGlobus languages"
827
  msgstr ""
828
 
829
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
830
  msgid "current"
831
  msgstr ""
832
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Turkish (Turkey) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/tr_TR/)\n"
769
  "technical information to your email message."
770
  msgstr ""
771
 
772
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
773
  msgid "WPGlobus Recommends:"
774
  msgstr ""
775
 
776
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
777
  #: includes/options/class-wpglobus-options.php:866
778
  msgid "WPGlobus for WooCommerce"
779
  msgstr ""
780
 
781
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
782
  msgid ""
783
  "Translate product titles and descriptions, product categories, tags and "
784
  "attributes."
785
  msgstr ""
786
 
787
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
788
  msgid "Get it now:"
789
  msgstr ""
790
 
791
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
792
+ msgid "WooCommerce Multi-Currency"
793
  msgstr ""
794
 
795
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
796
  msgid "Accept multiple currencies in your online store!"
797
  msgstr ""
798
 
799
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
800
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
801
  msgid "Check it out:"
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
805
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
809
  msgid "To translate permalinks, please activate the module Slug."
810
  msgstr ""
811
 
822
  msgid "Сompatibility Settings"
823
  msgstr ""
824
 
825
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
826
  msgid "WPGlobus languages"
827
  msgstr ""
828
 
829
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
830
  msgid "current"
831
  msgstr ""
832
 
languages/wpglobus-uk.mo CHANGED
Binary file
languages/wpglobus-uk.po CHANGED
@@ -6,7 +6,7 @@ msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
- "PO-Revision-Date: 2019-04-06 13:51+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Ukrainian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/uk/)\n"
@@ -801,43 +801,43 @@ msgid ""
801
  "technical information to your email message."
802
  msgstr ""
803
 
804
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
805
  msgid "WPGlobus Recommends:"
806
  msgstr ""
807
 
808
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67,
809
  #: includes/options/class-wpglobus-options.php:866
810
  msgid "WPGlobus for WooCommerce"
811
  msgstr ""
812
 
813
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
814
  msgid ""
815
  "Translate product titles and descriptions, product categories, tags and "
816
  "attributes."
817
  msgstr ""
818
 
819
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
820
  msgid "Get it now:"
821
  msgstr ""
822
 
823
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
824
- msgid "WPGlobus Multi-Currency"
825
  msgstr ""
826
 
827
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
828
  msgid "Accept multiple currencies in your online store!"
829
  msgstr ""
830
 
831
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95,
832
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
833
  msgid "Check it out:"
834
  msgstr ""
835
 
836
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
837
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
838
  msgstr ""
839
 
840
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
841
  msgid "To translate permalinks, please activate the module Slug."
842
  msgstr ""
843
 
@@ -854,11 +854,11 @@ msgstr "Конструктор"
854
  msgid "Сompatibility Settings"
855
  msgstr ""
856
 
857
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
858
  msgid "WPGlobus languages"
859
  msgstr ""
860
 
861
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
862
  msgid "current"
863
  msgstr ""
864
 
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
  "Report-Msgid-Bugs-To: support@wpglobus.com\n"
9
+ "PO-Revision-Date: 2019-05-12 13:40+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Ukrainian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/uk/)\n"
801
  "technical information to your email message."
802
  msgstr ""
803
 
804
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
805
  msgid "WPGlobus Recommends:"
806
  msgstr ""
807
 
808
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71,
809
  #: includes/options/class-wpglobus-options.php:866
810
  msgid "WPGlobus for WooCommerce"
811
  msgstr ""
812
 
813
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
814
  msgid ""
815
  "Translate product titles and descriptions, product categories, tags and "
816
  "attributes."
817
  msgstr ""
818
 
819
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
820
  msgid "Get it now:"
821
  msgstr ""
822
 
823
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
824
+ msgid "WooCommerce Multi-Currency"
825
  msgstr ""
826
 
827
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
828
  msgid "Accept multiple currencies in your online store!"
829
  msgstr ""
830
 
831
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99,
832
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
833
  msgid "Check it out:"
834
  msgstr ""
835
 
836
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
837
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
838
  msgstr ""
839
 
840
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
841
  msgid "To translate permalinks, please activate the module Slug."
842
  msgstr ""
843
 
854
  msgid "Сompatibility Settings"
855
  msgstr ""
856
 
857
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
858
  msgid "WPGlobus languages"
859
  msgstr ""
860
 
861
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
862
  msgid "current"
863
  msgstr ""
864
 
languages/wpglobus.pot CHANGED
@@ -599,39 +599,39 @@ msgstr ""
599
  msgid "Alternatively, please email %s. Do not forget to copy and paste the technical information to your email message."
600
  msgstr ""
601
 
602
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:58
603
  msgid "WPGlobus Recommends:"
604
  msgstr ""
605
 
606
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:67, includes/options/class-wpglobus-options.php:866
607
  msgid "WPGlobus for WooCommerce"
608
  msgstr ""
609
 
610
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71
611
  msgid "Translate product titles and descriptions, product categories, tags and attributes."
612
  msgstr ""
613
 
614
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:76
615
  msgid "Get it now:"
616
  msgstr ""
617
 
618
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:86
619
- msgid "WPGlobus Multi-Currency"
620
  msgstr ""
621
 
622
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
623
  msgid "Accept multiple currencies in your online store!"
624
  msgstr ""
625
 
626
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:95, includes/admin/recommendations/class-wpglobus-admin-recommendations.php:154
627
  msgid "Check it out:"
628
  msgstr ""
629
 
630
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:152
631
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
632
  msgstr ""
633
 
634
- #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:164
635
  msgid "To translate permalinks, please activate the module Slug."
636
  msgstr ""
637
 
@@ -647,11 +647,11 @@ msgstr ""
647
  msgid "Сompatibility Settings"
648
  msgstr ""
649
 
650
- #: includes/builders/elementor/class-wpglobus-elementor.php:258
651
  msgid "WPGlobus languages"
652
  msgstr ""
653
 
654
- #: includes/builders/elementor/class-wpglobus-elementor.php:264
655
  msgid "current"
656
  msgstr ""
657
 
599
  msgid "Alternatively, please email %s. Do not forget to copy and paste the technical information to your email message."
600
  msgstr ""
601
 
602
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:62
603
  msgid "WPGlobus Recommends:"
604
  msgstr ""
605
 
606
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:71, includes/options/class-wpglobus-options.php:866
607
  msgid "WPGlobus for WooCommerce"
608
  msgstr ""
609
 
610
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:75
611
  msgid "Translate product titles and descriptions, product categories, tags and attributes."
612
  msgstr ""
613
 
614
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:80
615
  msgid "Get it now:"
616
  msgstr ""
617
 
618
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:90
619
+ msgid "WooCommerce Multi-Currency"
620
  msgstr ""
621
 
622
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:94
623
  msgid "Accept multiple currencies in your online store!"
624
  msgstr ""
625
 
626
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:99, includes/admin/recommendations/class-wpglobus-admin-recommendations.php:158
627
  msgid "Check it out:"
628
  msgstr ""
629
 
630
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:156
631
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
632
  msgstr ""
633
 
634
+ #: includes/admin/recommendations/class-wpglobus-admin-recommendations.php:168
635
  msgid "To translate permalinks, please activate the module Slug."
636
  msgstr ""
637
 
647
  msgid "Сompatibility Settings"
648
  msgstr ""
649
 
650
+ #: includes/builders/elementor/class-wpglobus-elementor.php:260
651
  msgid "WPGlobus languages"
652
  msgstr ""
653
 
654
+ #: includes/builders/elementor/class-wpglobus-elementor.php:266
655
  msgid "current"
656
  msgstr ""
657
 
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: 4.9
6
- Tested up to: 5.1
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
@@ -218,6 +218,11 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
218
 
219
  == Changelog ==
220
 
 
 
 
 
 
221
  = 2.1.15 =
222
 
223
  * Internal: (Builders/Elementor) Beta-3 version of the `Elementor` support.
@@ -232,10 +237,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
232
 
233
  * Internal: (Builders/Elementor) Beta-2 version of the `Elementor` support.
234
 
235
- = 2.1.12 =
236
-
237
- * Internal: (Core/Options) Updated the `Compatibility` tab on the `WPGlobus Options` page.
238
-
239
  = Earlier versions and Add-ons =
240
 
241
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
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: 4.9
6
+ Tested up to: 5.2
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
218
 
219
  == Changelog ==
220
 
221
+ = 2.2.0 =
222
+
223
+ * Compatibility: WordPress 5.2
224
+ * Fixed: (Customizer) WPGlobus language selector alignment for WordPress 5.2.
225
+
226
  = 2.1.15 =
227
 
228
  * Internal: (Builders/Elementor) Beta-3 version of the `Elementor` support.
237
 
238
  * Internal: (Builders/Elementor) Beta-2 version of the `Elementor` support.
239
 
 
 
 
 
240
  = Earlier versions and Add-ons =
241
 
242
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
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.1.15
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.1.15' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
 
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.2.0
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.2.0' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
 
48
  /**