WPGlobus – Multilingual Everything! - Version 2.8.0

Version Description

  • (Compatibility) Tested up to WordPress 5.8
  • (Core/Options) Added use_widgets_block_editor option.
  • (Core/Config) Added use_widgets_block_editor option.
  • (Core/Controller) Added use_widgets_block_editor filter.
  • (Core) Class WPGlobus_Admin_Gutenberg is deprecated.
  • (Core/JS) Checking existing WPGlobusWidgets before init.
  • (Core/JS) Don't run with WP 5.8 when the block editor enables for managing widgets.
Download this release

Release Info

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

Code changes from version 2.7.14 to 2.8.0

Files changed (87) hide show
  1. data/wpglobus-product-info.json +1 -1
  2. includes/admin/gutenberg/class-wpglobus-admin-gutenberg.php +1 -0
  3. includes/builders/class-wpglobus-config-builder.php +0 -7
  4. includes/class-wpglobus-config.php +17 -0
  5. includes/class-wpglobus-filters.php +24 -1
  6. includes/class-wpglobus.php +2 -5
  7. includes/js/wpglobus-admin-56.js +4 -2
  8. includes/js/wpglobus-admin-56.min.js +1 -1
  9. includes/js/wpglobus-widgets.js +5 -0
  10. includes/js/wpglobus-widgets.min.js +1 -1
  11. includes/options/class-wpglobus-options.php +62 -22
  12. includes/wpglobus-controller.php +9 -0
  13. languages/wpglobus-ar.mo +0 -0
  14. languages/wpglobus-ar.po +15 -2
  15. languages/wpglobus-be.mo +0 -0
  16. languages/wpglobus-be.po +15 -2
  17. languages/wpglobus-bg_BG.mo +0 -0
  18. languages/wpglobus-bg_BG.po +15 -2
  19. languages/wpglobus-de_CH.mo +0 -0
  20. languages/wpglobus-de_CH.po +15 -2
  21. languages/wpglobus-de_DE.mo +0 -0
  22. languages/wpglobus-de_DE.po +15 -2
  23. languages/wpglobus-el.mo +0 -0
  24. languages/wpglobus-el.po +15 -2
  25. languages/wpglobus-en_AU.mo +0 -0
  26. languages/wpglobus-en_AU.po +15 -2
  27. languages/wpglobus-en_CA.mo +0 -0
  28. languages/wpglobus-en_CA.po +15 -2
  29. languages/wpglobus-en_GB.mo +0 -0
  30. languages/wpglobus-en_GB.po +15 -2
  31. languages/wpglobus-en_NZ.mo +0 -0
  32. languages/wpglobus-en_NZ.po +15 -2
  33. languages/wpglobus-en_US.mo +0 -0
  34. languages/wpglobus-en_US.po +20 -3
  35. languages/wpglobus-en_ZA.mo +0 -0
  36. languages/wpglobus-en_ZA.po +15 -2
  37. languages/wpglobus-es_AR.mo +0 -0
  38. languages/wpglobus-es_AR.po +15 -2
  39. languages/wpglobus-es_CL.mo +0 -0
  40. languages/wpglobus-es_CL.po +15 -2
  41. languages/wpglobus-es_CO.mo +0 -0
  42. languages/wpglobus-es_CO.po +15 -2
  43. languages/wpglobus-es_CR.mo +0 -0
  44. languages/wpglobus-es_CR.po +15 -2
  45. languages/wpglobus-es_ES.mo +0 -0
  46. languages/wpglobus-es_ES.po +15 -2
  47. languages/wpglobus-es_GT.mo +0 -0
  48. languages/wpglobus-es_GT.po +15 -2
  49. languages/wpglobus-es_MX.mo +0 -0
  50. languages/wpglobus-es_MX.po +15 -2
  51. languages/wpglobus-es_PE.mo +0 -0
  52. languages/wpglobus-es_PE.po +15 -2
  53. languages/wpglobus-es_PR.mo +0 -0
  54. languages/wpglobus-es_PR.po +15 -2
  55. languages/wpglobus-es_VE.mo +0 -0
  56. languages/wpglobus-es_VE.po +15 -2
  57. languages/wpglobus-et.mo +0 -0
  58. languages/wpglobus-et.po +15 -2
  59. languages/wpglobus-fr_BE.mo +0 -0
  60. languages/wpglobus-fr_BE.po +16 -3
  61. languages/wpglobus-fr_CA.mo +0 -0
  62. languages/wpglobus-fr_CA.po +16 -3
  63. languages/wpglobus-fr_FR.mo +0 -0
  64. languages/wpglobus-fr_FR.po +17 -4
  65. languages/wpglobus-id_ID.mo +0 -0
  66. languages/wpglobus-id_ID.po +15 -2
  67. languages/wpglobus-ko_KR.mo +0 -0
  68. languages/wpglobus-ko_KR.po +15 -2
  69. languages/wpglobus-pl_PL.mo +0 -0
  70. languages/wpglobus-pl_PL.po +15 -2
  71. languages/wpglobus-pt_BR.mo +0 -0
  72. languages/wpglobus-pt_BR.po +15 -2
  73. languages/wpglobus-pt_PT.mo +0 -0
  74. languages/wpglobus-pt_PT.po +16 -3
  75. languages/wpglobus-ro_RO.mo +0 -0
  76. languages/wpglobus-ro_RO.po +15 -2
  77. languages/wpglobus-ru_RU.mo +0 -0
  78. languages/wpglobus-ru_RU.po +20 -3
  79. languages/wpglobus-sv_SE.mo +0 -0
  80. languages/wpglobus-sv_SE.po +15 -2
  81. languages/wpglobus-tr_TR.mo +0 -0
  82. languages/wpglobus-tr_TR.po +15 -2
  83. languages/wpglobus-uk.mo +0 -0
  84. languages/wpglobus-uk.po +17 -4
  85. languages/wpglobus.pot +10 -1
  86. readme.txt +10 -1
  87. wpglobus.php +9 -8
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-multi-currency":{"title":"{:en}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-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.6"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"wpglobus-for-ultimate-member":{"title":"{:en}WPGlobus for Ultimate Member{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Ultimate Member{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.6"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"2.0.0","_api_tested_up_to":"5.6"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"2.4.0","_api_tested_up_to":"5.5"},"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":"2.1.0","_api_tested_up_to":"5.7"},"wpglobus-multilingual-popups":{"title":"{:en}WPGlobus Multilingual Popups{:}{:ru}WPGlobus Multilingual Popups{:}","_api_new_version":"1.4.0","_api_tested_up_to":"5.7"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"5.3.0","_api_tested_up_to":"5.7"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.7.2","_api_tested_up_to":"5.7.2"},"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":"2.8.0","_api_tested_up_to":"5.7.2"}}
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-multi-currency":{"title":"{:en}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-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.2.0","_api_tested_up_to":"5.6"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"wpglobus-for-ultimate-member":{"title":"{:en}WPGlobus for Ultimate Member{:}{:ru}WPGlobus \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u0430 Ultimate Member{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.6"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"2.0.0","_api_tested_up_to":"5.6"},"wpglobus-for-bridge-theme":{"title":"{:en}WPGlobus for the \"Bridge\" theme{:}{:ru}WPGlobus \u0434\u043b\u044f \u0442\u0435\u043c\u044b Bridge{:}","_api_new_version":"2.4.0","_api_tested_up_to":"5.5"},"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":"2.1.0","_api_tested_up_to":"5.7"},"wpglobus-multilingual-popups":{"title":"{:en}WPGlobus Multilingual Popups{:}{:ru}WPGlobus Multilingual Popups{:}","_api_new_version":"1.4.0","_api_tested_up_to":"5.7"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"5.3.0","_api_tested_up_to":"5.7"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.7.3","_api_tested_up_to":"5.7.2"},"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":"2.8.0","_api_tested_up_to":"5.7.2"}}
includes/admin/gutenberg/class-wpglobus-admin-gutenberg.php CHANGED
@@ -3,6 +3,7 @@
3
  * File: class-wpglobus-admin-gutenberg.php
4
  *
5
  * @since 2.7.2
 
6
  */
7
 
8
  if ( ! class_exists('WPGlobus_Admin_Gutenberg') ) :
3
  * File: class-wpglobus-admin-gutenberg.php
4
  *
5
  * @since 2.7.2
6
+ * @deprecated 2.8.0
7
  */
8
 
9
  if ( ! class_exists('WPGlobus_Admin_Gutenberg') ) :
includes/builders/class-wpglobus-config-builder.php CHANGED
@@ -17,13 +17,6 @@ if ( ! class_exists( 'WPGlobus_Config_Builder' ) ) :
17
 
18
  protected $is_run = false;
19
 
20
- /**
21
- * May be to use "wpglobus_language" meta (reserved in WPGlobus).
22
- *
23
- * @todo remove after test
24
- */
25
- //protected $language_meta_key = '_wpglobus_builder_language';
26
-
27
  protected $language_cookie = 'wpglobus-builder-language';
28
 
29
  protected $attrs = array();
17
 
18
  protected $is_run = false;
19
 
 
 
 
 
 
 
 
20
  protected $language_cookie = 'wpglobus-builder-language';
21
 
22
  protected $attrs = array();
includes/class-wpglobus-config.php CHANGED
@@ -252,6 +252,14 @@ class WPGlobus_Config {
252
  * @since 2.2.14
253
  */
254
  public $block_editor_switcher_plugin_button_type = '';
 
 
 
 
 
 
 
 
255
 
256
  /**
257
  * Language- and region-specific hreflang.
@@ -789,6 +797,15 @@ class WPGlobus_Config {
789
  unset( $wpglobus_option['block_editor_switcher_plugin_button_type'] );
790
  }
791
 
 
 
 
 
 
 
 
 
 
792
  /**
793
  * Type of hreflang tag. Language- and region-specific hreflang.
794
  * @since 2.3.4
252
  * @since 2.2.14
253
  */
254
  public $block_editor_switcher_plugin_button_type = '';
255
+
256
+ /**
257
+ * To use Block Editor on widgets page. Set through the Options Panel.
258
+ *
259
+ * @var boolean
260
+ * @since 2.8.0
261
+ */
262
+ public $use_widgets_block_editor = false;
263
 
264
  /**
265
  * Language- and region-specific hreflang.
797
  unset( $wpglobus_option['block_editor_switcher_plugin_button_type'] );
798
  }
799
 
800
+ /**
801
+ * Get status of the block editor for managing widgets.
802
+ * @since 2.8.0
803
+ */
804
+ if ( isset( $wpglobus_option['use_widgets_block_editor'] ) ) {
805
+ $this->use_widgets_block_editor = $wpglobus_option['use_widgets_block_editor'];
806
+ unset( $wpglobus_option['use_widgets_block_editor'] );
807
+ }
808
+
809
  /**
810
  * Type of hreflang tag. Language- and region-specific hreflang.
811
  * @since 2.3.4
includes/class-wpglobus-filters.php CHANGED
@@ -1287,9 +1287,32 @@ class WPGlobus_Filters {
1287
  }
1288
 
1289
  return $new_value;
1290
-
1291
  }
1292
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1293
  }
1294
 
1295
  # --- EOF
1287
  }
1288
 
1289
  return $new_value;
 
1290
  }
1291
 
1292
+ /**
1293
+ * Filters whether or not to use the block editor to manage widgets.
1294
+ *
1295
+ * @since 2.8.0
1296
+ *
1297
+ * @param boolean $use_widgets_block_editor Whether or not to use the block editor to manage widgets.
1298
+ */
1299
+ public static function filter__use_widgets_block_editor($use_block_editor) {
1300
+
1301
+ if ( ! $use_block_editor ) {
1302
+
1303
+ $theme_support_widgets_block_editor = get_theme_support( 'widgets-block-editor' );
1304
+
1305
+ if ( ! $theme_support_widgets_block_editor ) {
1306
+ return $theme_support_widgets_block_editor;
1307
+ }
1308
+ }
1309
+
1310
+ if ( ! empty( WPGlobus::Config()->use_widgets_block_editor ) && (bool) WPGlobus::Config()->use_widgets_block_editor ) {
1311
+ return $use_block_editor;
1312
+ }
1313
+
1314
+ return false;
1315
+ }
1316
  }
1317
 
1318
  # --- EOF
includes/class-wpglobus.php CHANGED
@@ -2040,11 +2040,6 @@ class WPGlobus {
2040
  )
2041
  );
2042
 
2043
- /**
2044
- * Enqueue js for ACF support.
2045
- * @since 2.6.6 Code moved to `includes\vendor\acf\class-wpglobus-vendor-acf.php`.
2046
- */
2047
-
2048
  if ( 'widgets.php' == $page ) {
2049
 
2050
  $disabled_widgets_mask = array( 'rss-url' );
@@ -2082,6 +2077,8 @@ class WPGlobus {
2082
  'wpglobus_version' => WPGLOBUS_VERSION,
2083
  'disabledMask' => $disabled_widgets_mask,
2084
  'l10n' => $l10n,
 
 
2085
  );
2086
 
2087
  /**
2040
  )
2041
  );
2042
 
 
 
 
 
 
2043
  if ( 'widgets.php' == $page ) {
2044
 
2045
  $disabled_widgets_mask = array( 'rss-url' );
2077
  'wpglobus_version' => WPGLOBUS_VERSION,
2078
  'disabledMask' => $disabled_widgets_mask,
2079
  'l10n' => $l10n,
2080
+ 'wp_version' => $GLOBALS['wp_version'], // @since 2.8.0
2081
+ 'useWidgetsBlockEditor' => WPGlobus::Config()->use_widgets_block_editor // @since 2.8.0
2082
  );
2083
 
2084
  /**
includes/js/wpglobus-admin-56.js CHANGED
@@ -713,8 +713,10 @@ jQuery(document).ready(function () {
713
  this.optionsGeneral();
714
  WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data});
715
  } else if ('widgets.php' == WPGlobusAdmin.page) {
716
- WPGlobusWidgets.init();
717
- WPGlobusDialogApp.init({dialogTitle:'Edit text'});
 
 
718
  } else if ('wpglobus_options' == WPGlobusAdmin.page) {
719
  this.start();
720
  } else if ('wpglobusAdminCentral' == WPGlobusAdmin.page) {
713
  this.optionsGeneral();
714
  WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data});
715
  } else if ('widgets.php' == WPGlobusAdmin.page) {
716
+ if ( 'undefined' !== typeof WPGlobusWidgets ) {
717
+ WPGlobusWidgets.init();
718
+ WPGlobusDialogApp.init({dialogTitle:'Edit text'});
719
+ }
720
  } else if ('wpglobus_options' == WPGlobusAdmin.page) {
721
  this.start();
722
  } else if ('wpglobusAdminCentral' == WPGlobusAdmin.page) {
includes/js/wpglobus-admin-56.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){e=(t=""+t).indexOf(a,e);return 0<=e&&e},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))}),o=""!=t[WPGlobusCoreData.default_language]?""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o:o}}}(jQuery),function(c){var g=WPGlobusDialogApp={inited:!1,option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){g.inited||(g.option.dialog=g.option.dialogOptions,g.option=c.extend(g.option,t),c(g.option.dialogTabs).tabs(),g.dialogTitle=g.option.dialogTitle,this.attachListener(),null!=g.option.customData&&void 0!==g.option.customData.addElements&&c.each(g.option.customData.addElements,function(t,a){g.addElement(a)}),g.inited=!0)},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){g.init();var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:g.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=c.extend(a,t)}var e,o=null,n=null,i=null,l=null,s=g.startButton,d="";if(g.element_by="name",0==(l=document.getElementsByName(a.id)).length&&(g.element_by="id",l=document.getElementById(a.id)),null!==l){if(n=a.id,i=void 0===(o="id"==g.element_by?c("#"+n):(d=(d=l[0].nodeName).toLowerCase(),c(d+'[name="'+n+'"]'))).attr("name")||""==o.attr("name")?n:o.attr("name"),g.clone_id=g.convertToId(n),-1!=i.indexOf("wpglobus")||-1!=g.clone_id.indexOf("wpglobus"))return!1;if(0<c("#wpglobus-"+g.clone_id).length)return!1;t=c(o.clone()),l=o.attr("style")||"",o.attr("style","display:none;"),t.attr("id","wpglobus-"+g.clone_id).attr("name","wpglobus-"+i),t.addClass(g.trClass),""!=a.onChangeClass&&t.addClass(a.onChangeClass),("id"==g.element_by?t.attr("data-source-id",n).attr("data-source-name",""):t.attr("data-source-id","").attr("data-source-name",i)).attr("data-source-get-by",g.element_by),"textarea"==d?(e=WPGlobusCore.getTranslations(o.val())[WPGlobusCoreData.language],t.val(e),t.attr("data-nodename","textarea"),""==a.style?t.attr("style",l+";width:95%;float:left;"):t.attr("style",l+";"+a.style)):(e=WPGlobusCore.getTranslations(o.val())[WPGlobusCoreData.language],t.val(e),t.attr("data-nodename","input"),""!=a.style&&t.attr("style",l+";"+a.style)),""!=a.dialog&&t.attr("data-dialog",JSON.stringify(a.dialog)),s=s.replace(/{{clone_id}}/g,g.clone_id),s="id"==g.element_by?(s=(s=s.replace(/{{id}}/g,g.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(s=(s=s.replace(/{{id}}/g,"")).replace(/{{name}}/g,i)).replace(/{{nodename}}/g,d);s="textarea"==d?s.replace("{{style}}","float:left;margin-top:0;"):s.replace("{{style}}",""),i="textarea"==d?g.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+g.clone_id:g.startButtonClass;s=s.replace("{{classes}}",i),s=""==a.dialogTitle?s.replace("{{title}}",g.dialogTitle):s.replace("{{title}}",a.dialogTitle),s=""==a.sbTitle?s.replace("{{sbTitle}}",a.sbTitle):s.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),c(s).insertAfter(o),c(t).insertAfter(o),"textarea"==d&&(c("#wpglobus-"+g.clone_id).addClass("wpglobus-textarea-"+g.clone_id),c(".wpglobus-textarea-"+g.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var u,r=!1;return(""==a.onChangeClass?u="#wpglobus-"+g.clone_id:(u="."+a.onChangeClass,void 0===(a=c._data(c(document)[0],"events"))?r=!0:void 0!==a.change&&c.each(a.change,function(t,a){if(a.selector==u)return!(r=!0)})),r)?!0:(c(document).on("change",u,function(){var t=c(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;c(a).val(WPGlobusCore.getString(c(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n="",i="",l="";c(".wpglobus_dialog_textarea").each(function(t,a){o=c(a),e=o.val(),(o=o.data("language"))==WPGlobusAdmin.data.language&&(l=e),""!=e&&(n+=WPGlobusCore.addLocaleMarks(e,o),o==WPGlobusCoreData.default_language&&(i=e))}),n=n.length==i.length+8?i:n,c(g.id).val(n),n=""==l?i:l,c(g.wpglobus_id).val(n),g.runCallback(g.option.dialog.afterSave)},dialog:c("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){g.saveDialog(),g.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){g.dialog.dialog("close")}}],open:function(t,a){var e=g.dialogTitle;void 0!==g.attrs.maxlength&&(c(".wpglobus_dialog_textarea").attr("maxlength",g.attrs.maxlength),e+=" | maxlength="+g.attrs.maxlength),c(".wpglobus-dialog .ui-dialog-title").text(e),c(this).removeClass("hidden")},close:function(){c(this).addClass("hidden"),g.runCallback(g.option.dialog.close),g.form[0].reset()}}),attachListener:function(){c(document).on("click",g.option.settingsClass,function(){c(".wpglobus_dialog_options_wrapper").hasClass("hidden")?c(".wpglobus_dialog_options_wrapper").removeClass("hidden"):c(".wpglobus_dialog_options_wrapper").addClass("hidden")}),c(document).on("click",".wpglobus_dialog_option",function(t){var a=c(this),e=a.data("object");g.order.action="save_post_meta_settings",g.order.post_type=WPGlobusAdmin.data.post_type,g.order.checked=a.prop("checked"),g.order.id=a.attr("id"),g.order.meta_key=a.data("meta-key"),g.ajax(g.order).done(function(t){"ok"==t.result&&("true"==t.checked?c(e).removeClass("wpglobus_dialog_start_hidden"):c(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),c(document).on("click",g.option.listenClass,function(a){g.element=c(this),g.id=g.element.data("source-id"),""==g.id?(g.id=g.element.data("nodename")+'[name="'+g.element.data("source-name")+'"]',g.wpglobus_id="#wpglobus-"+g.convertToId(g.element.data("source-name"))):(g.wpglobus_id="#wpglobus-"+g.id,g.id="#"+g.id),g.clicks++,1==g.clicks&&setTimeout(function(){var t;1==g.clicks?g.onClick(a):(t=c(g.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),g.clicks=0},200)}),g.form=g.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),g.saveDialog()})},ajax:function(t){return c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===g.element.data("dialog-title")||""==g.element.data("dialog-title")?g.dialogTitle=g.option.dialogTitle:g.dialogTitle=g.element.data("dialog-title"),void 0!==g.id&&(g.attrs.maxlength=c(g.id).attr("maxlength")),g.source=g.element.data("source-value"),void 0===g.source&&(g.source=c(g.id).val(),"ajax"==g.request||(g.value=WPGlobusCore.getTranslations(g.source))),g.option.dialog=c.extend({},g.option.dialogOptions,c(g.wpglobus_id).data("dialog")),""!=g.option.dialog.title&&(g.dialogTitle=g.option.dialog.title),c.each(g.value,function(t,a){var e=c("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(g.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),c("#wpglobus-dialog-form-footer").html(g.option.dialog.formFooter),g.runCallback(g.option.dialog.beforeOpen),g.dialog.dialog("open"),g.runCallback(g.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,r;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},r=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(""),r.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:r(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),r("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),r("textarea[id^=content_]").each(function(t,a){var e=r(a).attr("id").replace("content_","");r(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 r(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t=r(".wpglobus-addons-group a").data("key");void 0!==t&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=r("#toplevel_page_wpglobus_options li").eq(t+1),(WPGlobusCoreData.multisite?r(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite):r(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single)).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var e=r("#blogname"),t=r("body");e.addClass("hidden"),r("#wpglobus-blogname").insertAfter(e).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){r(".wpglobus-blogname").each(function(t,a){a=r(a);e.val(WPGlobusCore.getString(e.val(),a.val(),a.data("language")))})});var o=r("#blogdescription");o.addClass("hidden"),r("#wpglobus-blogdescription").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){r(".wpglobus-blogdesc").each(function(t,a){a=r(a);o.val(WPGlobusCore.getString(o.val(),a.val(),a.data("language")))})})},quickEdit:function(o){var n,i,l,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(n="",i=0,r(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=n&&0<=e.data.indexOf("action=inline-save-tax&")&&(r("#"+n+" a.row-title").text(WPGlobusAdmin.qedit_titles[i][WPGlobusAdmin.data.language].name),r("#"+n+" .description").text(WPGlobusAdmin.qedit_titles[i][WPGlobusAdmin.data.language].description))}),l={},r("#the-list tr").each(function(t,a){var e=r(a),a="post"===o?"post-":"tag-";i=e.attr("id").replace(a,""),l[i]={},"post"===o?l[i].source=e.find(".post_title").text():"taxonomy"===o&&(l[i].source=r("#inline_"+i+" .name").text())}),(t={action:"get_titles"}).type=o,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=l,r.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,r.each(t.bulkedit_post_titles,function(t,a){r("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),r("body").on("change",".wpglobus-quick-edit-title",function(){var o="",n=[];r(".wpglobus-quick-edit-title").each(function(t,a){var e=r(a),a=e.data("language");""!==e.val()&&(o=WPGlobusCore.getString(o,e.val(),a)),WPGlobusAdmin.qedit_titles[i][a].name=e.val(),n[t]=a});var t=r(document).triggerHandler("wpglobus_get_translations",{string:o,lang:n,id:i});void 0!==t&&(o=t),r("input.ptitle").eq(0).val(o),WPGlobusAdmin.qedit_titles[i].source=o}),void 0!==WPGlobusAdmin.data.tags&&r.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),r("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&(("bulk_edit"==t.currentTarget.id?r("input#bulk_edit"):r("button.save")).unbind("click"),r("button.save, input#bulk_edit").on("click",function(a){var t=r.when(),e=(r(this),r.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&r.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");r.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(", "))})}(r(this))),t=t.then(function(){return r.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(i),r.ajaxSetup({async:!0})},50)})}))}),r("#the-list").on("click",".editinline",function(){var t=r(this);if(n=t.parents("tr").attr("id"),"post"===o)i=n.replace("post-","");else{if("taxonomy"!==o)return;i=n.replace("tag-","")}"post"===o&&void 0!==WPGlobusAdmin.data.tags&&r.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=r("#edit-"+i+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),r.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),r("#edit-"+i+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=r("#edit-"+i+" input.ptitle").eq(0),t=a.parents("label");void 0!==WPGlobusAdmin.qedit_titles&&(a.val(WPGlobusAdmin.qedit_titles[i].source),a.addClass("hidden"),r(WPGlobusAdmin.data.template).insertAfter(t),void 0===WPGlobusAdmin.qedit_titles[i]&&(WPGlobusAdmin.qedit_titles[i]={},WPGlobusAdmin.qedit_titles[i].source=r("#"+n+" .name a.row-title").text(),r(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[i][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i].source:WPGlobusAdmin.qedit_titles[i][a].name="",WPGlobusAdmin.qedit_titles[i][a].description=""})),r(".wpglobus-quick-edit-title").each(function(t,a){var e=r(a),a=e.data("language");e.attr("id",a+i),void 0!==WPGlobusAdmin.qedit_titles[i][a]&&(WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i][a].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i][a].name.replace(/\\\"/g,'"'),e.val(WPGlobusAdmin.qedit_titles[i][a].name),WPGlobusAdmin.qedit_titles[i].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[i].source,WPGlobusAdmin.qedit_titles[i][a].name,a))}),r("input.ptitle").eq(0).val(WPGlobusAdmin.qedit_titles[i].source))}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";r.each(WPGlobusCoreData.enabled_languages,function(t,e){r.each(a,function(t,a){!function(t,a){var e=r("#"+t);if(1!=e.length)return;var o=e.clone(),n=e.attr("name"),i="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable",l=document.getElementById(t);l=l.nodeName,r(o).attr("id",t+"_"+a),r(o).attr("name",n+"_"+a),a!==WPGlobusCoreData.default_language&&(i+=" hidden"),r(o).attr("class",i),r(o).attr("data-save-to",t),r(o).attr("data-language",a),"INPUT"==l?r(o).attr("value",r("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==l&&r(o).text(r("#wpglobus-link-tab-"+a).data(t)),e.addClass("hidden"),0==r(".wpglobus-element_"+t).length?r(o).insertAfter(e):r(o).insertAfter(r(".wpglobus-element_"+t).last())}(a,e)})}),r(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),r(".wrap").tabs(),r("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=r(this).data("language");r(".wpglobus-element").addClass("hidden"),r(".wpglobus-element_"+a).removeClass("hidden"),r(".wpglobus-tax-edit-tab a").removeClass("wpglobus-tab-link-active"),r("#wpglobus-link-tab-"+a+" a").addClass("wpglobus-tab-link-active")}),r(".wpglobus-element").on("change",function(){var o=r(this).data("save-to"),n="";r(".wpglobus-element").each(function(t,a){var e=r(a),a=e.val();e.data("save-to")==o&&""!==a&&(n+=WPGlobusCore.addLocaleMarks(a,e.data("language")))}),r("#"+o).val(n)}),r(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==r(i).length&&(clearInterval(o),r(i).each(function(t,a){var o,e=r(a);e.hasClass("wpglobus-menu-item")||(o=r(a).attr("id"),r.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=r("#"+o+" "+a),a=r(e);a.hasClass("wpglobus-hidden")||(a.addClass("wpglobus-hidden"),a.css("display","none"),e=a.parent("label"),a=a.parents("p"),r(a).css("height","80px"),r(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";r.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=r(i).length,o=setInterval(e,500))}}),r(i).each(function(t,a){var e=r(a).attr("id"),u=e.replace("menu-item-","");r.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=r("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=r("#"+e+" "+i).parents("p"),d=0;r.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"),r(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),r(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),r(a).addClass("wpglobus-menu-item")}),r(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=r(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&r.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),r(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,r(".wpglobus-menu-item").on("change",function(){var t,a,e=r(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(r("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=r(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),r("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(r("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=r(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),r("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){r(".edit-menu-item-description").each(function(){var t=r(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),r(".wpglobus_dialog_start").each(function(){r(this).css({"font-style":"normal"}),r(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,r.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&r.each(t,function(t,a){""!=a&&(r("#"+t).val(a),r("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){r(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",r.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=r("#title_"+a).val()||"";""!=(e=e.trim())&&(o.wp_autosave["post_title_"+a]=e),""!=(e=(e=r("#content_"+a).val()||"").trim())&&(o.wp_autosave["content_"+a]=e)}))});var a,i,l,e="#postdivrich",o=!0,s="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),r(s).prepend(r(".wpglobus-post-body-tabs-list")),r.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(r(e).wrap('<div id="tab-default"></div>'),o&&r(r("#titlediv")).insertBefore(e)):(r(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&r(r("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var n=!1;r(s).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,i,l;n||(o=(e=r("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(i=e.attr("style"),l=o.attr("style"),r.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=r("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),a=o.attr("style");i!=n&&e.attr("style",i),l!=a&&o.attr("style",l)}}),n=!0));var o=a.oldTab[0].id.replace("link-tab-",""),a=a.newTab[0].id.replace("link-tab-","");r(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),r("#link-tab-"+a+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==o&&(o=WPGlobusCoreData.default_language),"default"==a&&(a=WPGlobusCoreData.default_language);a=r(document).triggerHandler("wpglobus_post_body_tabs",[o,a]);return!(!a&&void 0!==a)}})},500),r("#title").val(WPGlobusAdmin.title),r("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=r("#excerpt")).addClass("hidden").css({display:"none"}),r(WPGlobusAdmin.data.template).insertAfter(a),r("body").on("change",".wpglobus-excerpt",function(){var t=r(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},i=this,l={},r.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(l[t]="content_"+a,n=jQuery,t=new wp.utils.WordCounter,e=a,WPGlobusCoreData.wordCounter[e]={},WPGlobusCoreData.wordCounter[e].counter=t,void n(function(){function o(t){var a;"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"}),(a=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(a),WPGlobusCoreData.wordCounter[t].prevCount=a)}WPGlobusCoreData.wordCounter[e].content=n("#content_"+e),WPGlobusCoreData.wordCounter[e].count=n("#wp-word-count-"+e).find(".word-count-"+e),WPGlobusCoreData.wordCounter[e].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,l)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[e].content.on("input keyup",_.debounce(o,1e3)),o(e)}));var n,e})),r(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(r(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:s}),e=r("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),r(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=r("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&r("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||r(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==r("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==r("#tax-input-"+e).length)return!0;var o,n=[];r("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=r(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),r("#tax-input-"+e).val(n.join(", "))})}),r(".ui-state-default").on("click",function(){"link-tab-default"===r(this).attr("id")&&(r(window).scrollTop(r(window).scrollTop()+1),r(window).scrollTop(r(window).scrollTop()-1))}),r(document).on("tabsactivate",s,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),r("#titlewrap input").addClass("wpglobus-translatable"),r(".title_wpglobus").addClass("wpglobus-translatable"),r(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){r(".wpglobus-admin-central-tab").css({display:"none"}),1<r(".nav-tab-active").length&&r(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&r(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){r(a).attr("href")==location.hash&&(e=!1,r(a).addClass("nav-tab-active"))}),e&&r(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=r(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&r("#"+t).css({display:"block"}),r(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=r(this);a.hasClass("nav-tab-active")||(r(".wpglobus-admin-central-tab").css({display:"none"}),r(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&r("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;r("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),r("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),r(".redux-save-warn").css({display:"none"}),r("#enabled_languages-list").find("li:first > input").val("1"),0===r("#disable_first_language").length&&r(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,a,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),a=!1,(n=function(t){var l,s,d="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(""),t=void 0===t?"#the-list tr":"#the-list tr#"+t;r(t).each(function(){var t,a,e=r(this),o=e.attr("id"),n=e.find("textarea"),i=d;return void 0===(l=n.attr("id"))||(a=r("#"+o+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==r.inArray(a,WPGlobusAdmin.data.excludeCustomFields))||(t=r("#"+l).clone(),r(n).addClass("wpglobus-dialog-field-source hidden"),o=n.attr("name"),r(t).attr("id","wpglobus-"+l),r(t).attr("name","wpglobus-"+o),r(t).attr("data-source-id",l),r(t).attr("class","wpglobus-dialog-field"),r(t).val(WPGlobusCore.TextFilter(r(n).val(),WPGlobusCoreData.language)),r(t).insertAfter(n),s=(s=u.replace(/{{id}}/g,l)).replace(/{{meta-key}}/g,a),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?s=s.replace(/{{checked}}/,"checked"):i=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][a]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][a]?(s=s.replace(/{{checked}}/,""),d+" wpglobus_dialog_start_hidden"):(s=s.replace(/{{checked}}/,"checked"),d),void e.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+l+'" data-type="control" data-source-type="textarea" data-source-id="'+l+'" class="'+i+'"></div>'+s+"</td>")))}),!a&&0<r("#list-table .wpglobus_dialog_start").length&&(r("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),a=!0)})(),r("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=r(this),t="#"+n.data("source-id"),i="";e=r(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(r.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),r(t).val(i)):r(t).val(n.val())}),r(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),r(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+r(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=WPGlobusCore={strpos:function(t,a,e){e=(t=""+t).indexOf(a,e);return 0<=e&&e},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))}),o=""!=t[WPGlobusCoreData.default_language]?""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o:o}}}(jQuery),function(c){var g=WPGlobusDialogApp={inited:!1,option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){g.inited||(g.option.dialog=g.option.dialogOptions,g.option=c.extend(g.option,t),c(g.option.dialogTabs).tabs(),g.dialogTitle=g.option.dialogTitle,this.attachListener(),null!=g.option.customData&&void 0!==g.option.customData.addElements&&c.each(g.option.customData.addElements,function(t,a){g.addElement(a)}),g.inited=!0)},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){g.init();var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:g.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=c.extend(a,t)}var e,o=null,n=null,i=null,l=null,s=g.startButton,d="";if(g.element_by="name",0==(l=document.getElementsByName(a.id)).length&&(g.element_by="id",l=document.getElementById(a.id)),null!==l){if(n=a.id,i=void 0===(o="id"==g.element_by?c("#"+n):(d=(d=l[0].nodeName).toLowerCase(),c(d+'[name="'+n+'"]'))).attr("name")||""==o.attr("name")?n:o.attr("name"),g.clone_id=g.convertToId(n),-1!=i.indexOf("wpglobus")||-1!=g.clone_id.indexOf("wpglobus"))return!1;if(0<c("#wpglobus-"+g.clone_id).length)return!1;t=c(o.clone()),l=o.attr("style")||"",o.attr("style","display:none;"),t.attr("id","wpglobus-"+g.clone_id).attr("name","wpglobus-"+i),t.addClass(g.trClass),""!=a.onChangeClass&&t.addClass(a.onChangeClass),("id"==g.element_by?t.attr("data-source-id",n).attr("data-source-name",""):t.attr("data-source-id","").attr("data-source-name",i)).attr("data-source-get-by",g.element_by),"textarea"==d?(e=WPGlobusCore.getTranslations(o.val())[WPGlobusCoreData.language],t.val(e),t.attr("data-nodename","textarea"),""==a.style?t.attr("style",l+";width:95%;float:left;"):t.attr("style",l+";"+a.style)):(e=WPGlobusCore.getTranslations(o.val())[WPGlobusCoreData.language],t.val(e),t.attr("data-nodename","input"),""!=a.style&&t.attr("style",l+";"+a.style)),""!=a.dialog&&t.attr("data-dialog",JSON.stringify(a.dialog)),s=s.replace(/{{clone_id}}/g,g.clone_id),s="id"==g.element_by?(s=(s=s.replace(/{{id}}/g,g.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(s=(s=s.replace(/{{id}}/g,"")).replace(/{{name}}/g,i)).replace(/{{nodename}}/g,d);s="textarea"==d?s.replace("{{style}}","float:left;margin-top:0;"):s.replace("{{style}}",""),i="textarea"==d?g.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+g.clone_id:g.startButtonClass;s=s.replace("{{classes}}",i),s=""==a.dialogTitle?s.replace("{{title}}",g.dialogTitle):s.replace("{{title}}",a.dialogTitle),s=""==a.sbTitle?s.replace("{{sbTitle}}",a.sbTitle):s.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),c(s).insertAfter(o),c(t).insertAfter(o),"textarea"==d&&(c("#wpglobus-"+g.clone_id).addClass("wpglobus-textarea-"+g.clone_id),c(".wpglobus-textarea-"+g.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var u,r=!1;return(""==a.onChangeClass?u="#wpglobus-"+g.clone_id:(u="."+a.onChangeClass,void 0===(a=c._data(c(document)[0],"events"))?r=!0:void 0!==a.change&&c.each(a.change,function(t,a){if(a.selector==u)return!(r=!0)})),r)?!0:(c(document).on("change",u,function(){var t=c(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;c(a).val(WPGlobusCore.getString(c(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n="",i="",l="";c(".wpglobus_dialog_textarea").each(function(t,a){o=c(a),e=o.val(),(o=o.data("language"))==WPGlobusAdmin.data.language&&(l=e),""!=e&&(n+=WPGlobusCore.addLocaleMarks(e,o),o==WPGlobusCoreData.default_language&&(i=e))}),n=n.length==i.length+8?i:n,c(g.id).val(n),n=""==l?i:l,c(g.wpglobus_id).val(n),g.runCallback(g.option.dialog.afterSave)},dialog:c("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){g.saveDialog(),g.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){g.dialog.dialog("close")}}],open:function(t,a){var e=g.dialogTitle;void 0!==g.attrs.maxlength&&(c(".wpglobus_dialog_textarea").attr("maxlength",g.attrs.maxlength),e+=" | maxlength="+g.attrs.maxlength),c(".wpglobus-dialog .ui-dialog-title").text(e),c(this).removeClass("hidden")},close:function(){c(this).addClass("hidden"),g.runCallback(g.option.dialog.close),g.form[0].reset()}}),attachListener:function(){c(document).on("click",g.option.settingsClass,function(){c(".wpglobus_dialog_options_wrapper").hasClass("hidden")?c(".wpglobus_dialog_options_wrapper").removeClass("hidden"):c(".wpglobus_dialog_options_wrapper").addClass("hidden")}),c(document).on("click",".wpglobus_dialog_option",function(t){var a=c(this),e=a.data("object");g.order.action="save_post_meta_settings",g.order.post_type=WPGlobusAdmin.data.post_type,g.order.checked=a.prop("checked"),g.order.id=a.attr("id"),g.order.meta_key=a.data("meta-key"),g.ajax(g.order).done(function(t){"ok"==t.result&&("true"==t.checked?c(e).removeClass("wpglobus_dialog_start_hidden"):c(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),c(document).on("click",g.option.listenClass,function(a){g.element=c(this),g.id=g.element.data("source-id"),""==g.id?(g.id=g.element.data("nodename")+'[name="'+g.element.data("source-name")+'"]',g.wpglobus_id="#wpglobus-"+g.convertToId(g.element.data("source-name"))):(g.wpglobus_id="#wpglobus-"+g.id,g.id="#"+g.id),g.clicks++,1==g.clicks&&setTimeout(function(){var t;1==g.clicks?g.onClick(a):(t=c(g.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),g.clicks=0},200)}),g.form=g.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),g.saveDialog()})},ajax:function(t){return c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===g.element.data("dialog-title")||""==g.element.data("dialog-title")?g.dialogTitle=g.option.dialogTitle:g.dialogTitle=g.element.data("dialog-title"),void 0!==g.id&&(g.attrs.maxlength=c(g.id).attr("maxlength")),g.source=g.element.data("source-value"),void 0===g.source&&(g.source=c(g.id).val(),"ajax"==g.request||(g.value=WPGlobusCore.getTranslations(g.source))),g.option.dialog=c.extend({},g.option.dialogOptions,c(g.wpglobus_id).data("dialog")),""!=g.option.dialog.title&&(g.dialogTitle=g.option.dialog.title),c.each(g.value,function(t,a){var e=c("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(g.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),c("#wpglobus-dialog-form-footer").html(g.option.dialog.formFooter),g.runCallback(g.option.dialog.beforeOpen),g.dialog.dialog("open"),g.runCallback(g.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,r;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},r=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(""),r.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:r(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),r("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),r("textarea[id^=content_]").each(function(t,a){var e=r(a).attr("id").replace("content_","");r(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?"undefined"!=typeof WPGlobusWidgets&&(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 r(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t=r(".wpglobus-addons-group a").data("key");void 0!==t&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+t)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=r("#toplevel_page_wpglobus_options li").eq(t+1),(WPGlobusCoreData.multisite?r(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite):r(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single)).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var e=r("#blogname"),t=r("body");e.addClass("hidden"),r("#wpglobus-blogname").insertAfter(e).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){r(".wpglobus-blogname").each(function(t,a){a=r(a);e.val(WPGlobusCore.getString(e.val(),a.val(),a.data("language")))})});var o=r("#blogdescription");o.addClass("hidden"),r("#wpglobus-blogdescription").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){r(".wpglobus-blogdesc").each(function(t,a){a=r(a);o.val(WPGlobusCore.getString(o.val(),a.val(),a.data("language")))})})},quickEdit:function(o){var n,i,l,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(n="",i=0,r(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=n&&0<=e.data.indexOf("action=inline-save-tax&")&&(r("#"+n+" a.row-title").text(WPGlobusAdmin.qedit_titles[i][WPGlobusAdmin.data.language].name),r("#"+n+" .description").text(WPGlobusAdmin.qedit_titles[i][WPGlobusAdmin.data.language].description))}),l={},r("#the-list tr").each(function(t,a){var e=r(a),a="post"===o?"post-":"tag-";i=e.attr("id").replace(a,""),l[i]={},"post"===o?l[i].source=e.find(".post_title").text():"taxonomy"===o&&(l[i].source=r("#inline_"+i+" .name").text())}),(t={action:"get_titles"}).type=o,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=l,r.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,r.each(t.bulkedit_post_titles,function(t,a){r("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),r("body").on("change",".wpglobus-quick-edit-title",function(){var o="",n=[];r(".wpglobus-quick-edit-title").each(function(t,a){var e=r(a),a=e.data("language");""!==e.val()&&(o=WPGlobusCore.getString(o,e.val(),a)),WPGlobusAdmin.qedit_titles[i][a].name=e.val(),n[t]=a});var t=r(document).triggerHandler("wpglobus_get_translations",{string:o,lang:n,id:i});void 0!==t&&(o=t),r("input.ptitle").eq(0).val(o),WPGlobusAdmin.qedit_titles[i].source=o}),void 0!==WPGlobusAdmin.data.tags&&r.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),r("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&(("bulk_edit"==t.currentTarget.id?r("input#bulk_edit"):r("button.save")).unbind("click"),r("button.save, input#bulk_edit").on("click",function(a){var t=r.when(),e=(r(this),r.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&r.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");r.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(", "))})}(r(this))),t=t.then(function(){return r.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(i),r.ajaxSetup({async:!0})},50)})}))}),r("#the-list").on("click",".editinline",function(){var t=r(this);if(n=t.parents("tr").attr("id"),"post"===o)i=n.replace("post-","");else{if("taxonomy"!==o)return;i=n.replace("tag-","")}"post"===o&&void 0!==WPGlobusAdmin.data.tags&&r.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=r("#edit-"+i+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),r.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),r("#edit-"+i+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=r("#edit-"+i+" input.ptitle").eq(0),t=a.parents("label");void 0!==WPGlobusAdmin.qedit_titles&&(a.val(WPGlobusAdmin.qedit_titles[i].source),a.addClass("hidden"),r(WPGlobusAdmin.data.template).insertAfter(t),void 0===WPGlobusAdmin.qedit_titles[i]&&(WPGlobusAdmin.qedit_titles[i]={},WPGlobusAdmin.qedit_titles[i].source=r("#"+n+" .name a.row-title").text(),r(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[i][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i].source:WPGlobusAdmin.qedit_titles[i][a].name="",WPGlobusAdmin.qedit_titles[i][a].description=""})),r(".wpglobus-quick-edit-title").each(function(t,a){var e=r(a),a=e.data("language");e.attr("id",a+i),void 0!==WPGlobusAdmin.qedit_titles[i][a]&&(WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i][a].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[i][a].name=WPGlobusAdmin.qedit_titles[i][a].name.replace(/\\\"/g,'"'),e.val(WPGlobusAdmin.qedit_titles[i][a].name),WPGlobusAdmin.qedit_titles[i].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[i].source,WPGlobusAdmin.qedit_titles[i][a].name,a))}),r("input.ptitle").eq(0).val(WPGlobusAdmin.qedit_titles[i].source))}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";r.each(WPGlobusCoreData.enabled_languages,function(t,e){r.each(a,function(t,a){!function(t,a){var e=r("#"+t);if(1!=e.length)return;var o=e.clone(),n=e.attr("name"),i="wpglobus-element wpglobus-element_"+t+" wpglobus-element_"+a+" wpglobus-translatable",l=document.getElementById(t);l=l.nodeName,r(o).attr("id",t+"_"+a),r(o).attr("name",n+"_"+a),a!==WPGlobusCoreData.default_language&&(i+=" hidden"),r(o).attr("class",i),r(o).attr("data-save-to",t),r(o).attr("data-language",a),"INPUT"==l?r(o).attr("value",r("#wpglobus-link-tab-"+a).data(t)):"TEXTAREA"==l&&r(o).text(r("#wpglobus-link-tab-"+a).data(t)),e.addClass("hidden"),0==r(".wpglobus-element_"+t).length?r(o).insertAfter(e):r(o).insertAfter(r(".wpglobus-element_"+t).last())}(a,e)})}),r(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),r(".wrap").tabs(),r("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=r(this).data("language");r(".wpglobus-element").addClass("hidden"),r(".wpglobus-element_"+a).removeClass("hidden"),r(".wpglobus-tax-edit-tab a").removeClass("wpglobus-tab-link-active"),r("#wpglobus-link-tab-"+a+" a").addClass("wpglobus-tab-link-active")}),r(".wpglobus-element").on("change",function(){var o=r(this).data("save-to"),n="";r(".wpglobus-element").each(function(t,a){var e=r(a),a=e.val();e.data("save-to")==o&&""!==a&&(n+=WPGlobusCore.addLocaleMarks(a,e.data("language")))}),r("#"+o).val(n)}),r(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==r(i).length&&(clearInterval(o),r(i).each(function(t,a){var o,e=r(a);e.hasClass("wpglobus-menu-item")||(o=r(a).attr("id"),r.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e=r("#"+o+" "+a),a=r(e);a.hasClass("wpglobus-hidden")||(a.addClass("wpglobus-hidden"),a.css("display","none"),e=a.parent("label"),a=a.parents("p"),r(a).css("height","80px"),r(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";r.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=r(i).length,o=setInterval(e,500))}}),r(i).each(function(t,a){var e=r(a).attr("id"),u=e.replace("menu-item-","");r.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=r("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=r("#"+e+" "+i).parents("p"),d=0;r.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"),r(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),r(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),r(a).addClass("wpglobus-menu-item")}),r(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=r(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&r.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),r(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,r(".wpglobus-menu-item").on("change",function(){var t,a,e=r(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(r("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=r(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),r("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(r("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=r(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),r("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){r(".edit-menu-item-description").each(function(){var t=r(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),r(".wpglobus_dialog_start").each(function(){r(this).css({"font-style":"normal"}),r(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,r.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&r.each(t,function(t,a){""!=a&&(r("#"+t).val(a),r("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){r(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",r.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=r("#title_"+a).val()||"";""!=(e=e.trim())&&(o.wp_autosave["post_title_"+a]=e),""!=(e=(e=r("#content_"+a).val()||"").trim())&&(o.wp_autosave["content_"+a]=e)}))});var a,i,l,e="#postdivrich",o=!0,s="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),r(s).prepend(r(".wpglobus-post-body-tabs-list")),r.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(r(e).wrap('<div id="tab-default"></div>'),o&&r(r("#titlediv")).insertBefore(e)):(r(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&r(r("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var n=!1;r(s).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,i,l;n||(o=(e=r("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(i=e.attr("style"),l=o.attr("style"),r.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=r("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),a=o.attr("style");i!=n&&e.attr("style",i),l!=a&&o.attr("style",l)}}),n=!0));var o=a.oldTab[0].id.replace("link-tab-",""),a=a.newTab[0].id.replace("link-tab-","");r(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),r("#link-tab-"+a+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==o&&(o=WPGlobusCoreData.default_language),"default"==a&&(a=WPGlobusCoreData.default_language);a=r(document).triggerHandler("wpglobus_post_body_tabs",[o,a]);return!(!a&&void 0!==a)}})},500),r("#title").val(WPGlobusAdmin.title),r("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=r("#excerpt")).addClass("hidden").css({display:"none"}),r(WPGlobusAdmin.data.template).insertAfter(a),r("body").on("change",".wpglobus-excerpt",function(){var t=r(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},i=this,l={},r.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(l[t]="content_"+a,n=jQuery,t=new wp.utils.WordCounter,e=a,WPGlobusCoreData.wordCounter[e]={},WPGlobusCoreData.wordCounter[e].counter=t,void n(function(){function o(t){var a;"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"}),(a=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(a),WPGlobusCoreData.wordCounter[t].prevCount=a)}WPGlobusCoreData.wordCounter[e].content=n("#content_"+e),WPGlobusCoreData.wordCounter[e].count=n("#wp-word-count-"+e).find(".word-count-"+e),WPGlobusCoreData.wordCounter[e].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,l)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[e].content.on("input keyup",_.debounce(o,1e3)),o(e)}));var n,e})),r(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(r(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:s}),e=r("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),r(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=r("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&r("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||r(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==r("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==r("#tax-input-"+e).length)return!0;var o,n=[];r("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=r(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),r("#tax-input-"+e).val(n.join(", "))})}),r(".ui-state-default").on("click",function(){"link-tab-default"===r(this).attr("id")&&(r(window).scrollTop(r(window).scrollTop()+1),r(window).scrollTop(r(window).scrollTop()-1))}),r(document).on("tabsactivate",s,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),r("#titlewrap input").addClass("wpglobus-translatable"),r(".title_wpglobus").addClass("wpglobus-translatable"),r(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){r(".wpglobus-admin-central-tab").css({display:"none"}),1<r(".nav-tab-active").length&&r(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&r(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){r(a).attr("href")==location.hash&&(e=!1,r(a).addClass("nav-tab-active"))}),e&&r(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=r(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&r("#"+t).css({display:"block"}),r(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=r(this);a.hasClass("nav-tab-active")||(r(".wpglobus-admin-central-tab").css({display:"none"}),r(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&r("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;r("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),r("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),r(".redux-save-warn").css({display:"none"}),r("#enabled_languages-list").find("li:first > input").val("1"),0===r("#disable_first_language").length&&r(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,a,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),a=!1,(n=function(t){var l,s,d="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(""),t=void 0===t?"#the-list tr":"#the-list tr#"+t;r(t).each(function(){var t,a,e=r(this),o=e.attr("id"),n=e.find("textarea"),i=d;return void 0===(l=n.attr("id"))||(a=r("#"+o+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==r.inArray(a,WPGlobusAdmin.data.excludeCustomFields))||(t=r("#"+l).clone(),r(n).addClass("wpglobus-dialog-field-source hidden"),o=n.attr("name"),r(t).attr("id","wpglobus-"+l),r(t).attr("name","wpglobus-"+o),r(t).attr("data-source-id",l),r(t).attr("class","wpglobus-dialog-field"),r(t).val(WPGlobusCore.TextFilter(r(n).val(),WPGlobusCoreData.language)),r(t).insertAfter(n),s=(s=u.replace(/{{id}}/g,l)).replace(/{{meta-key}}/g,a),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?s=s.replace(/{{checked}}/,"checked"):i=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][a]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][a]?(s=s.replace(/{{checked}}/,""),d+" wpglobus_dialog_start_hidden"):(s=s.replace(/{{checked}}/,"checked"),d),void e.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+l+'" data-type="control" data-source-type="textarea" data-source-id="'+l+'" class="'+i+'"></div>'+s+"</td>")))}),!a&&0<r("#list-table .wpglobus_dialog_start").length&&(r("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),a=!0)})(),r("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=r(this),t="#"+n.data("source-id"),i="";e=r(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(r.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),r(t).val(i)):r(t).val(n.val())}),r(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),r(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+r(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-widgets.js CHANGED
@@ -6,6 +6,7 @@
6
  * @since 2.4.17 To use WPGlobusCoreData.language instead of WPGlobusCoreData.default_language.
7
  * Hide unneeded dialog icons.
8
  * @since 2.6.0 Code refactored for Image widgets.
 
9
  *
10
  * @package WPGlobus
11
  * @subpackage Administration
@@ -26,7 +27,11 @@
26
  languageBoxActive: false,
27
  languageBoxTimeout: null,
28
  imageWidgets: {},
 
29
  init: function() {
 
 
 
30
  api.addElements();
31
  api.attachListeners();
32
  api.arbitraryTextOrHTML();
6
  * @since 2.4.17 To use WPGlobusCoreData.language instead of WPGlobusCoreData.default_language.
7
  * Hide unneeded dialog icons.
8
  * @since 2.6.0 Code refactored for Image widgets.
9
+ * @since 2.8.0 Don't run with WP 5.8 when the block editor enables for managing widgets.
10
  *
11
  * @package WPGlobus
12
  * @subpackage Administration
27
  languageBoxActive: false,
28
  languageBoxTimeout: null,
29
  imageWidgets: {},
30
+ parseBool: function(b){return !(/^(false|0)$/i).test(b) && !!b;},
31
  init: function() {
32
+ if ( api.parseBool(WPGlobusWidgets.useWidgetsBlockEditor) ) {
33
+ return;
34
+ }
35
  api.addElements();
36
  api.attachListeners();
37
  api.arbitraryTextOrHTML();
includes/js/wpglobus-widgets.min.js CHANGED
@@ -1 +1 @@
1
- !function(g){"use strict";var s;"undefined"!=typeof WPGlobusWidgets&&(s={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,imageWidgets:{},init:function(){s.addElements(),s.attachListeners(),s.arbitraryTextOrHTML()},wysiwygClean:function(){g(".wpglobus-dialog-field").each(function(e,t){var i=g(t).data("source-id");1==g("#"+i+"-tmce").length&&(i=g(t).next(".wpglobus_dialog_start"),g(t).remove(),g(i).remove())})},setupWidgetControl:function(i,e,o){var a,n,d,l,t,r=!1;g.each(s.editor,function(e,t){if(t.widgetName==i)return!(r=!0)}),r||(""==(a=e.$el[0].id)&&(t=e.$el[0].offsetParent,void 0===(a=g(t).attr("id"))&&g(".widget").each(function(e,t){t=g(t).attr("id");if(-1!=t.indexOf(i))return a=t,!1})),n="#"+a+" #widget-"+i+"-text",t="#"+a+" #widget-"+i+"-title",s.editor[o.id]={},s.editor[o.id].widgetName=i,s.editor[o.id].controls=e,s.editor[o.id].sourceTitleSelector=t,s.editor[o.id].titleSelector=null,s.editor[o.id].sourceSelector=n,s.editor[o.id].content=g(n).val(),s.editor[o.id].saveSelector="#"+a+" #widget-"+i+"-savewidget",s.editor[o.id].languageSelector="#"+a+" .wpglobus-current-language",s.editor[o.id].inWidgetTitleSelector="#"+a+" .in-widget-title",t=WPGlobusCore.TextFilter(s.editor[o.id].content,WPGlobusCoreData.language,"RETURN_EMPTY"),g("#"+o.id).val(t),l=d="",g.each(WPGlobusCoreData.enabled_languages,function(e,t){d=(d=(d=(d=(d=(d=(d='<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}}",i)).replace("{{widgetID}}",a)).replace("{{editorID}}",o.id)).replace("{{source}}",n),l+=d}),t='<button style="z-index:200000;" type="button" id="'+o.id+'-wpglobus-button" data-widget-id="'+a+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="'+WPGlobusCoreData.language+'" style="">'+WPGlobusCoreData.language+'</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+l+"</div></div>",g("#"+a+" .wp-editor-tabs").append(t),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(s.editor[o.id].titleSelector="#"+e.fields.title[0].id),s.arbitraryWidgetTitle(o.id),g(n).hasClass("hidden")&&(e=g(n).parent(),g(e).find("div.wpglobus-widgets.wpglobus_dialog_start.wpglobus_dialog_icon").css({display:"none"})))},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(g("#"+s.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);g(s.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){s.languageBoxTimeout=setTimeout(function(){s.languageBoxActive=!1,g(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t,i="",i="keyup"==e.type&&"tinymce"==e.target.id?g(e.target).data("id"):e.target.id;s.editor[i]&&(t=g(s.editor[i].languageSelector).data("language"),e="",e=tinymce.get(i).isHidden()?g("#"+i).val():tinymce.get(i).getContent({format:"raw"}),s.editor[i].content=WPGlobusCore.getString(s.editor[i].content,e,t),g(s.editor[i].sourceSelector).val(s.editor[i].content))}g(document).on("click",".switch-wpglobus-language",function(e){var t,i;s.languageBoxActive||(s.languageBoxActive=!0,t=(i=g(this)).data("widget-id"),(i=i.position()).top+=34,i.left+=10,g("#"+t+" .wpglobus-language-box").css({display:"block",top:i.top+"px",left:i.left+"px"}),s.setBoxTimeout())}),g(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(s.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){g(".wpglobus-language-box").css({display:"none"}),s.languageBoxActive=!1}),g(document).on("click",".wpglobus-language-box .item",function(e){var t=g(this),i=t.data("language"),o=t.data("widget-id"),t=t.data("editor-id");g("#"+o+" .wpglobus-current-language").text(i).data("language",i);i=WPGlobusCore.TextFilter(s.editor[t].content,i,"RETURN_EMPTY");tinymce.get(t).setContent(i,{format:"raw"}),g("textarea#"+t).val(i)}),g(document).on("tinymce-editor-setup",function(e,i){g.each(wp.textWidgets.widgetControls,function(e,t){s.setupWidgetControl(e,t,i)})}),g(document).on("tinymce-editor-init",function(e,t){g(document).on("mouseenter",s.editor[t.id].saveSelector,function(e){g(s.editor[t.id].sourceTitleSelector).val(g(s.editor[t.id].titleSelector).val()),g(s.editor[t.id].sourceSelector).val(s.editor[t.id].content)}),g(document).on("click",s.editor[t.id].saveSelector,function(e){s.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),g("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,o=[];o[0]='input[type="text"]',o[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",g.each(o,function(e,t){s.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",g.each(o,function(e,t){s.makeClone(i,t)}))},makeClone:function(e,d){g(e+" "+d).each(function(e,t){var i,o=g(t),a=!1,n=o.attr("id");return void 0===n||-1!=n.indexOf("-number")||""==n||(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(a=!0)}),!!a||void(-1!=n.indexOf("-title")&&(i=g("#"+n).clone(),g(o).addClass("wpglobus-dialog-field-source hidden"),t=o.attr("name"),g(i).attr("id","wpglobus-"+n),g(i).attr("name","wpglobus-"+t),g(i).attr("data-source-id",n),g(i).attr("class","wpglobus-dialog-field"),g(i).attr("style","width:90%;"),t=WPGlobusCore.TextFilter(g(o).val(),WPGlobusCoreData.language),g(i).val(t),g('<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(o),g(i).insertAfter(o),'input[type="text"]'==d&&""!=t&&(o=o.parents(".widget").attr("id"),g("#"+o+" .in-widget-title").text(": "+t)))))})},attachListeners:function(){g(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")&&-1==i.data.indexOf("delete_widget=1")){if(s.saveArbitraryTextOrHTML){var o=WPGlobusCore.TextFilter(s.editor[s.saveArbitraryTextOrHTML].content,g(s.editor[s.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(s.saveArbitraryTextOrHTML).isHidden()?(g("#"+s.saveArbitraryTextOrHTML).val(o),g("#"+s.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(s.saveArbitraryTextOrHTML).setContent(o,{format:"raw"}),s.arbitraryWidgetTitle(s.saveArbitraryTextOrHTML),void(s.saveArbitraryTextOrHTML=!1)}var a=(a=i.data.split("widget-id="))[1].split("&");g(".widget-liquid-right .widget").each(function(e,t){t=g(t).attr("id");-1!==t.indexOf(a[0])&&(s.addElements("id",t),s.wysiwygClean())})}}),g("body").on("change",".wpglobus-dialog-field",function(){var i,o,a=g(this),e="#"+a.data("source-id"),n="";i=g(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(g.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(o=t==WPGlobusCoreData.language?a.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(o,t))}),g(e).val(n)):g(e).val(a.val())}),g(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),s.wysiwygClean(),s.setImageWidget(this)})},getImageWidgets:function(e){return s.imageWidgets},setImageWidget:function(e){e=g(e).parents(".widget").attr("id");void 0!==e&&-1!=e.indexOf("media_image")&&void 0===s.imageWidgets[e]&&(g('<hr /><div class="">'+WPGlobusWidgets.l10n.imageWidget.suggest+"</div>").appendTo("#"+e+" .widget-inside"),s.imageWidgets[e]=!0)},__getEditorContent:function(){if(0!=Object.keys(s.editor).length)for(var i in console.log("WPGlobusWidgets editors length is: ",Object.keys(s.editor).length),s.editor)console.log("editor : ",i," -> widgetName: ",s.editor[i].widgetName),console.log("source content: ",s.editor[i].content),g.each(WPGlobusCoreData.enabled_languages,function(e,t){console.log("Language: ",t);t=WPGlobusCore.TextFilter(s.editor[i].content,t,"RETURN_EMPTY");""==t?console.log("empty"):console.log("Content: ",t)}),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")},__getEditorLanguage:function(){if(0!=Object.keys(s.editor).length)for(var e in console.log("WPGlobusWidgets editors length is: ",Object.keys(s.editor).length),s.editor)console.log("editor : ",e," -> widgetName: ",s.editor[e].widgetName),console.log("current language : ",g(s.editor[e].languageSelector).data("language")),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")}},WPGlobusWidgets=g.extend({},WPGlobusWidgets,s))}(jQuery);
1
+ !function(g){"use strict";var s;"undefined"!=typeof WPGlobusWidgets&&(s={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,imageWidgets:{},parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},init:function(){s.parseBool(WPGlobusWidgets.useWidgetsBlockEditor)||(s.addElements(),s.attachListeners(),s.arbitraryTextOrHTML())},wysiwygClean:function(){g(".wpglobus-dialog-field").each(function(e,t){var i=g(t).data("source-id");1==g("#"+i+"-tmce").length&&(i=g(t).next(".wpglobus_dialog_start"),g(t).remove(),g(i).remove())})},setupWidgetControl:function(i,e,o){var a,n,d,l,t,r=!1;g.each(s.editor,function(e,t){if(t.widgetName==i)return!(r=!0)}),r||(""==(a=e.$el[0].id)&&(t=e.$el[0].offsetParent,void 0===(a=g(t).attr("id"))&&g(".widget").each(function(e,t){t=g(t).attr("id");if(-1!=t.indexOf(i))return a=t,!1})),n="#"+a+" #widget-"+i+"-text",t="#"+a+" #widget-"+i+"-title",s.editor[o.id]={},s.editor[o.id].widgetName=i,s.editor[o.id].controls=e,s.editor[o.id].sourceTitleSelector=t,s.editor[o.id].titleSelector=null,s.editor[o.id].sourceSelector=n,s.editor[o.id].content=g(n).val(),s.editor[o.id].saveSelector="#"+a+" #widget-"+i+"-savewidget",s.editor[o.id].languageSelector="#"+a+" .wpglobus-current-language",s.editor[o.id].inWidgetTitleSelector="#"+a+" .in-widget-title",t=WPGlobusCore.TextFilter(s.editor[o.id].content,WPGlobusCoreData.language,"RETURN_EMPTY"),g("#"+o.id).val(t),l=d="",g.each(WPGlobusCoreData.enabled_languages,function(e,t){d=(d=(d=(d=(d=(d=(d='<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}}",i)).replace("{{widgetID}}",a)).replace("{{editorID}}",o.id)).replace("{{source}}",n),l+=d}),t='<button style="z-index:200000;" type="button" id="'+o.id+'-wpglobus-button" data-widget-id="'+a+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="'+WPGlobusCoreData.language+'" style="">'+WPGlobusCoreData.language+'</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+l+"</div></div>",g("#"+a+" .wp-editor-tabs").append(t),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(s.editor[o.id].titleSelector="#"+e.fields.title[0].id),s.arbitraryWidgetTitle(o.id),g(n).hasClass("hidden")&&(e=g(n).parent(),g(e).find("div.wpglobus-widgets.wpglobus_dialog_start.wpglobus_dialog_icon").css({display:"none"})))},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(g("#"+s.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);g(s.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){s.languageBoxTimeout=setTimeout(function(){s.languageBoxActive=!1,g(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t,i="",i="keyup"==e.type&&"tinymce"==e.target.id?g(e.target).data("id"):e.target.id;s.editor[i]&&(t=g(s.editor[i].languageSelector).data("language"),e="",e=tinymce.get(i).isHidden()?g("#"+i).val():tinymce.get(i).getContent({format:"raw"}),s.editor[i].content=WPGlobusCore.getString(s.editor[i].content,e,t),g(s.editor[i].sourceSelector).val(s.editor[i].content))}g(document).on("click",".switch-wpglobus-language",function(e){var t,i;s.languageBoxActive||(s.languageBoxActive=!0,t=(i=g(this)).data("widget-id"),(i=i.position()).top+=34,i.left+=10,g("#"+t+" .wpglobus-language-box").css({display:"block",top:i.top+"px",left:i.left+"px"}),s.setBoxTimeout())}),g(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(s.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){g(".wpglobus-language-box").css({display:"none"}),s.languageBoxActive=!1}),g(document).on("click",".wpglobus-language-box .item",function(e){var t=g(this),i=t.data("language"),o=t.data("widget-id"),t=t.data("editor-id");g("#"+o+" .wpglobus-current-language").text(i).data("language",i);i=WPGlobusCore.TextFilter(s.editor[t].content,i,"RETURN_EMPTY");tinymce.get(t).setContent(i,{format:"raw"}),g("textarea#"+t).val(i)}),g(document).on("tinymce-editor-setup",function(e,i){g.each(wp.textWidgets.widgetControls,function(e,t){s.setupWidgetControl(e,t,i)})}),g(document).on("tinymce-editor-init",function(e,t){g(document).on("mouseenter",s.editor[t.id].saveSelector,function(e){g(s.editor[t.id].sourceTitleSelector).val(g(s.editor[t.id].titleSelector).val()),g(s.editor[t.id].sourceSelector).val(s.editor[t.id].content)}),g(document).on("click",s.editor[t.id].saveSelector,function(e){s.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),g("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,o=[];o[0]='input[type="text"]',o[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",g.each(o,function(e,t){s.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",g.each(o,function(e,t){s.makeClone(i,t)}))},makeClone:function(e,d){g(e+" "+d).each(function(e,t){var i,o=g(t),a=!1,n=o.attr("id");return void 0===n||-1!=n.indexOf("-number")||""==n||(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(a=!0)}),!!a||void(-1!=n.indexOf("-title")&&(i=g("#"+n).clone(),g(o).addClass("wpglobus-dialog-field-source hidden"),t=o.attr("name"),g(i).attr("id","wpglobus-"+n),g(i).attr("name","wpglobus-"+t),g(i).attr("data-source-id",n),g(i).attr("class","wpglobus-dialog-field"),g(i).attr("style","width:90%;"),t=WPGlobusCore.TextFilter(g(o).val(),WPGlobusCoreData.language),g(i).val(t),g('<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(o),g(i).insertAfter(o),'input[type="text"]'==d&&""!=t&&(o=o.parents(".widget").attr("id"),g("#"+o+" .in-widget-title").text(": "+t)))))})},attachListeners:function(){g(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")&&-1==i.data.indexOf("delete_widget=1")){if(s.saveArbitraryTextOrHTML){var o=WPGlobusCore.TextFilter(s.editor[s.saveArbitraryTextOrHTML].content,g(s.editor[s.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(s.saveArbitraryTextOrHTML).isHidden()?(g("#"+s.saveArbitraryTextOrHTML).val(o),g("#"+s.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(s.saveArbitraryTextOrHTML).setContent(o,{format:"raw"}),s.arbitraryWidgetTitle(s.saveArbitraryTextOrHTML),void(s.saveArbitraryTextOrHTML=!1)}var a=(a=i.data.split("widget-id="))[1].split("&");g(".widget-liquid-right .widget").each(function(e,t){t=g(t).attr("id");-1!==t.indexOf(a[0])&&(s.addElements("id",t),s.wysiwygClean())})}}),g("body").on("change",".wpglobus-dialog-field",function(){var i,o,a=g(this),e="#"+a.data("source-id"),n="";i=g(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(g.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(o=t==WPGlobusCoreData.language?a.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(o,t))}),g(e).val(n)):g(e).val(a.val())}),g(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),s.wysiwygClean(),s.setImageWidget(this)})},getImageWidgets:function(e){return s.imageWidgets},setImageWidget:function(e){e=g(e).parents(".widget").attr("id");void 0!==e&&-1!=e.indexOf("media_image")&&void 0===s.imageWidgets[e]&&(g('<hr /><div class="">'+WPGlobusWidgets.l10n.imageWidget.suggest+"</div>").appendTo("#"+e+" .widget-inside"),s.imageWidgets[e]=!0)},__getEditorContent:function(){if(0!=Object.keys(s.editor).length)for(var i in console.log("WPGlobusWidgets editors length is: ",Object.keys(s.editor).length),s.editor)console.log("editor : ",i," -> widgetName: ",s.editor[i].widgetName),console.log("source content: ",s.editor[i].content),g.each(WPGlobusCoreData.enabled_languages,function(e,t){console.log("Language: ",t);t=WPGlobusCore.TextFilter(s.editor[i].content,t,"RETURN_EMPTY");""==t?console.log("empty"):console.log("Content: ",t)}),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")},__getEditorLanguage:function(){if(0!=Object.keys(s.editor).length)for(var e in console.log("WPGlobusWidgets editors length is: ",Object.keys(s.editor).length),s.editor)console.log("editor : ",e," -> widgetName: ",s.editor[e].widgetName),console.log("current language : ",g(s.editor[e].languageSelector).data("language")),console.log("--------------------");else console.log("WPGlobusWidgets editors length is: 0")}},WPGlobusWidgets=g.extend({},WPGlobusWidgets,s))}(jQuery);
includes/options/class-wpglobus-options.php CHANGED
@@ -1584,47 +1584,87 @@ class WPGlobus_Options {
1584
  * Section "Block Editor".
1585
  *
1586
  * @since 2.2.3
 
1587
  * @return array
1588
  */
1589
  protected function section_block_editor() {
1590
 
1591
- /**
1592
- * @since 2.5.4
1593
- */
1594
- $_li_class = 'hidden';
1595
- if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
1596
- $_li_class = '';
1597
  }
1598
 
1599
  $fields = array();
1600
 
1601
  $wpglobus_option = get_option( $this->args['opt_name'] );
1602
-
1603
  /**
1604
- * When we add more options, need to update the @see WPGlobus_Options::sanitize_posted_data() method.
1605
  */
1606
- $_checked = false;
1607
- if ( ! empty( $wpglobus_option['block_editor_old_fashioned_language_switcher'] ) && 1 == $wpglobus_option['block_editor_old_fashioned_language_switcher'] ) { // phpcs:ignore
1608
- $_checked = true;
1609
- }
1610
-
1611
- $fields[] =
1612
- array(
1613
- 'id' => 'block_editor_old_fashioned_language_switcher',
1614
- 'type' => 'wpglobus_checkbox',
1615
- 'checked' => $_checked,
1616
- 'name' => 'wpglobus_option[block_editor_old_fashioned_language_switcher]',
1617
- 'title' => esc_html__( 'Old fashioned language switcher', 'wpglobus' ),
1618
- 'label' => esc_html__( 'Enabled', 'wpglobus' ),
 
 
 
 
 
 
1619
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1620
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1621
  return array(
1622
  'wpglobus_id' => 'wpglobus_block_editor',
1623
  'title' => esc_html__( 'Block Editor', 'wpglobus' ),
1624
  'caption' => esc_html__( 'Block Editor Options', 'wpglobus' ),
1625
  'icon' => 'dashicons dashicons-layout',
1626
  'fields' => $fields,
1627
- 'li_class' => $_li_class,
1628
  );
1629
  }
1630
 
1584
  * Section "Block Editor".
1585
  *
1586
  * @since 2.2.3
1587
+ * @since 2.8.0 Added `use_widgets_block_editor` option.
1588
  * @return array
1589
  */
1590
  protected function section_block_editor() {
1591
 
1592
+ if ( version_compare( $GLOBALS['wp_version'], '5.7.99', '<' ) ) {
1593
+ /**
1594
+ * @since 2.8.0
1595
+ */
1596
+ return array();
 
1597
  }
1598
 
1599
  $fields = array();
1600
 
1601
  $wpglobus_option = get_option( $this->args['opt_name'] );
1602
+
1603
  /**
1604
+ * Get the theme support `widgets-block-editor` feature.
1605
  */
1606
+ $theme_support_widgets_block_editor = (bool) get_theme_support( 'widgets-block-editor' );
1607
+
1608
+ if ( ! $theme_support_widgets_block_editor ) {
1609
+
1610
+ $fields[] =
1611
+ array(
1612
+ 'id' => 'use_widgets_block_editor_info',
1613
+ 'type' => 'wpglobus_info',
1614
+ 'title' => esc_html__( 'You cannot use block editor on the Widgets page because your theme disabled it.', 'wpglobus' ),
1615
+ #'html' => '',
1616
+ 'class' => 'normal',
1617
+ );
1618
+
1619
+ } else {
1620
+
1621
+ $_desc = sprintf(
1622
+ esc_html__( '%1$sAttention%2$s', 'wpglobus' ),
1623
+ '<strong>',
1624
+ '</strong>'
1625
  );
1626
+ $_desc .= ': ' . esc_html__( 'The current version of WPGlobus does not support multililngual widgets with block editor', 'wpglobus' );
1627
+
1628
+ $_checked = false;
1629
+ if ( ! empty( $wpglobus_option['use_widgets_block_editor'] ) && 1 == $wpglobus_option['use_widgets_block_editor'] ) { // phpcs:ignore
1630
+ $_checked = true;
1631
+ }
1632
+ $fields[] =
1633
+ array(
1634
+ 'id' => 'use_widgets_block_editor',
1635
+ 'type' => 'wpglobus_checkbox',
1636
+ 'checked' => $_checked,
1637
+ 'name' => 'wpglobus_option[use_widgets_block_editor]',
1638
+ 'title' => esc_html__( 'Use block editor on the Widgets page', 'wpglobus' ),
1639
+ 'label' => esc_html__( 'Enabled', 'wpglobus' ),
1640
+ 'desc' => $_desc
1641
+ );
1642
 
1643
+ /**
1644
+ * @todo may be need to use this option too.
1645
+ $_checked = false;
1646
+ if ( ! empty( $wpglobus_option['gutenberg_use_widgets_block_editor'] ) && 1 == $wpglobus_option['gutenberg_use_widgets_block_editor'] ) { // phpcs:ignore
1647
+ $_checked = true;
1648
+ }
1649
+ $fields[] =
1650
+ array(
1651
+ 'id' => 'gutenberg_use_widgets_block_editor',
1652
+ 'type' => 'wpglobus_checkbox',
1653
+ 'checked' => $_checked,
1654
+ 'name' => 'wpglobus_option[gutenberg_use_widgets_block_editor]',
1655
+ 'title' => esc_html__( 'Использовать редактор блоков на странице Виджеты в плагине Gutenberg', 'wpglobus' ),
1656
+ 'label' => esc_html__( 'Enabled', 'wpglobus' ),
1657
+ );
1658
+ // */
1659
+ }
1660
+
1661
  return array(
1662
  'wpglobus_id' => 'wpglobus_block_editor',
1663
  'title' => esc_html__( 'Block Editor', 'wpglobus' ),
1664
  'caption' => esc_html__( 'Block Editor Options', 'wpglobus' ),
1665
  'icon' => 'dashicons dashicons-layout',
1666
  'fields' => $fields,
1667
+ 'li_class' => '',
1668
  );
1669
  }
1670
 
includes/wpglobus-controller.php CHANGED
@@ -347,6 +347,15 @@ add_filter( 'wp_mail', array( 'WPGlobus_Filters', 'filter__wp_mail' ), 5 );
347
  */
348
  add_filter( 'embed_oembed_html', array( 'WPGlobus_Filters', 'filter__embed_oembed_html' ), 5, 4 );
349
 
 
 
 
 
 
 
 
 
 
350
  /**
351
  * ACF filters
352
  * @todo Move to a separate controller
347
  */
348
  add_filter( 'embed_oembed_html', array( 'WPGlobus_Filters', 'filter__embed_oembed_html' ), 5, 4 );
349
 
350
+ /**
351
+ * Filter to use the block editor to manage widgets.
352
+ * @since 2.8.0
353
+ */
354
+ /** @see wp-includes\widgets.php */
355
+ add_filter( 'use_widgets_block_editor', array( 'WPGlobus_Filters', 'filter__use_widgets_block_editor' ) );
356
+ /** @see gutenberg\lib\widgets.php @todo may be need to use this filter too. */
357
+ // add_filter( 'gutenberg_use_widgets_block_editor', array( 'WPGlobus_Filters', 'filter__use_widgets_block_editor' ) );
358
+
359
  /**
360
  * ACF filters
361
  * @todo Move to a separate controller
languages/wpglobus-ar.mo CHANGED
Binary file
languages/wpglobus-ar.po CHANGED
@@ -6,7 +6,7 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Arabic (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/ar/)\n"
@@ -1014,7 +1014,20 @@ msgstr ""
1014
  msgid "Builder mode is enabled on these Post Types"
1015
  msgstr ""
1016
 
1017
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1018
  msgstr ""
1019
 
1020
  msgid "Block Editor"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: Arabic (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/ar/)\n"
1014
  msgid "Builder mode is enabled on these Post Types"
1015
  msgstr ""
1016
 
1017
+ msgid "%1$sAttention%2$s"
1018
+ msgstr ""
1019
+
1020
+ msgid ""
1021
+ "The current version of WPGlobus does not support multililngual widgets with "
1022
+ "block editor"
1023
+ msgstr ""
1024
+
1025
+ msgid "Use block editor on the Widgets page"
1026
+ msgstr ""
1027
+
1028
+ msgid ""
1029
+ "You cannot use block editor on the Widgets page because your theme disabled "
1030
+ "it."
1031
  msgstr ""
1032
 
1033
  msgid "Block Editor"
languages/wpglobus-be.mo CHANGED
Binary file
languages/wpglobus-be.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Belarusian (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/be/)\n"
@@ -1067,7 +1067,20 @@ msgstr ""
1067
  msgid "Builder mode is enabled on these Post Types"
1068
  msgstr ""
1069
 
1070
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1071
  msgstr ""
1072
 
1073
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Belarusian (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/be/)\n"
1067
  msgid "Builder mode is enabled on these Post Types"
1068
  msgstr ""
1069
 
1070
+ msgid "%1$sAttention%2$s"
1071
+ msgstr ""
1072
+
1073
+ msgid ""
1074
+ "The current version of WPGlobus does not support multililngual widgets with "
1075
+ "block editor"
1076
+ msgstr ""
1077
+
1078
+ msgid "Use block editor on the Widgets page"
1079
+ msgstr ""
1080
+
1081
+ msgid ""
1082
+ "You cannot use block editor on the Widgets page because your theme disabled "
1083
+ "it."
1084
  msgstr ""
1085
 
1086
  msgid "Block Editor"
languages/wpglobus-bg_BG.mo CHANGED
Binary file
languages/wpglobus-bg_BG.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/bg_BG/)\n"
@@ -990,7 +990,20 @@ msgstr ""
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  msgstr ""
995
 
996
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/bg_BG/)\n"
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
+ msgid "%1$sAttention%2$s"
994
+ msgstr ""
995
+
996
+ msgid ""
997
+ "The current version of WPGlobus does not support multililngual widgets with "
998
+ "block editor"
999
+ msgstr ""
1000
+
1001
+ msgid "Use block editor on the Widgets page"
1002
+ msgstr ""
1003
+
1004
+ msgid ""
1005
+ "You cannot use block editor on the Widgets page because your theme disabled "
1006
+ "it."
1007
  msgstr ""
1008
 
1009
  msgid "Block Editor"
languages/wpglobus-de_CH.mo CHANGED
Binary file
languages/wpglobus-de_CH.po CHANGED
@@ -7,7 +7,7 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: German (Switzerland) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/de_CH/)\n"
@@ -1031,7 +1031,20 @@ msgstr ""
1031
  msgid "Builder mode is enabled on these Post Types"
1032
  msgstr ""
1033
 
1034
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1035
  msgstr ""
1036
 
1037
  msgid "Block Editor"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: German (Switzerland) (http://www.transifex.com/wp-"
13
  "translations/wpglobus-multilingual/language/de_CH/)\n"
1031
  msgid "Builder mode is enabled on these Post Types"
1032
  msgstr ""
1033
 
1034
+ msgid "%1$sAttention%2$s"
1035
+ msgstr ""
1036
+
1037
+ msgid ""
1038
+ "The current version of WPGlobus does not support multililngual widgets with "
1039
+ "block editor"
1040
+ msgstr ""
1041
+
1042
+ msgid "Use block editor on the Widgets page"
1043
+ msgstr ""
1044
+
1045
+ msgid ""
1046
+ "You cannot use block editor on the Widgets page because your theme disabled "
1047
+ "it."
1048
  msgstr ""
1049
 
1050
  msgid "Block Editor"
languages/wpglobus-de_DE.mo CHANGED
Binary file
languages/wpglobus-de_DE.po CHANGED
@@ -7,7 +7,7 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+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"
@@ -1032,7 +1032,20 @@ msgstr ""
1032
  msgid "Builder mode is enabled on these Post Types"
1033
  msgstr ""
1034
 
1035
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1036
  msgstr ""
1037
 
1038
  msgid "Block Editor"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+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"
1032
  msgid "Builder mode is enabled on these Post Types"
1033
  msgstr ""
1034
 
1035
+ msgid "%1$sAttention%2$s"
1036
+ msgstr ""
1037
+
1038
+ msgid ""
1039
+ "The current version of WPGlobus does not support multililngual widgets with "
1040
+ "block editor"
1041
+ msgstr ""
1042
+
1043
+ msgid "Use block editor on the Widgets page"
1044
+ msgstr ""
1045
+
1046
+ msgid ""
1047
+ "You cannot use block editor on the Widgets page because your theme disabled "
1048
+ "it."
1049
  msgstr ""
1050
 
1051
  msgid "Block Editor"
languages/wpglobus-el.mo CHANGED
Binary file
languages/wpglobus-el.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Greek (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/el/)\n"
@@ -991,7 +991,20 @@ msgstr ""
991
  msgid "Builder mode is enabled on these Post Types"
992
  msgstr ""
993
 
994
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
995
  msgstr ""
996
 
997
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Greek (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/el/)\n"
991
  msgid "Builder mode is enabled on these Post Types"
992
  msgstr ""
993
 
994
+ msgid "%1$sAttention%2$s"
995
+ msgstr ""
996
+
997
+ msgid ""
998
+ "The current version of WPGlobus does not support multililngual widgets with "
999
+ "block editor"
1000
+ msgstr ""
1001
+
1002
+ msgid "Use block editor on the Widgets page"
1003
+ msgstr ""
1004
+
1005
+ msgid ""
1006
+ "You cannot use block editor on the Widgets page because your theme disabled "
1007
+ "it."
1008
  msgstr ""
1009
 
1010
  msgid "Block Editor"
languages/wpglobus-en_AU.mo CHANGED
Binary file
languages/wpglobus-en_AU.po CHANGED
@@ -6,7 +6,7 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (Australia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/en_AU/)\n"
@@ -1063,7 +1063,20 @@ msgstr ""
1063
  msgid "Builder mode is enabled on these Post Types"
1064
  msgstr ""
1065
 
1066
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1067
  msgstr ""
1068
 
1069
  msgid "Block Editor"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (Australia) (http://www.transifex.com/wp-translations/"
12
  "wpglobus-multilingual/language/en_AU/)\n"
1063
  msgid "Builder mode is enabled on these Post Types"
1064
  msgstr ""
1065
 
1066
+ msgid "%1$sAttention%2$s"
1067
+ msgstr ""
1068
+
1069
+ msgid ""
1070
+ "The current version of WPGlobus does not support multililngual widgets with "
1071
+ "block editor"
1072
+ msgstr ""
1073
+
1074
+ msgid "Use block editor on the Widgets page"
1075
+ msgstr ""
1076
+
1077
+ msgid ""
1078
+ "You cannot use block editor on the Widgets page because your theme disabled "
1079
+ "it."
1080
  msgstr ""
1081
 
1082
  msgid "Block Editor"
languages/wpglobus-en_CA.mo CHANGED
Binary file
languages/wpglobus-en_CA.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (Canada) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/en_CA/)\n"
@@ -1062,7 +1062,20 @@ msgstr ""
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1066
  msgstr ""
1067
 
1068
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (Canada) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/en_CA/)\n"
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
+ msgid "%1$sAttention%2$s"
1066
+ msgstr ""
1067
+
1068
+ msgid ""
1069
+ "The current version of WPGlobus does not support multililngual widgets with "
1070
+ "block editor"
1071
+ msgstr ""
1072
+
1073
+ msgid "Use block editor on the Widgets page"
1074
+ msgstr ""
1075
+
1076
+ msgid ""
1077
+ "You cannot use block editor on the Widgets page because your theme disabled "
1078
+ "it."
1079
  msgstr ""
1080
 
1081
  msgid "Block Editor"
languages/wpglobus-en_GB.mo CHANGED
Binary file
languages/wpglobus-en_GB.po CHANGED
@@ -6,7 +6,7 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (United Kingdom) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_GB/)\n"
@@ -1063,7 +1063,20 @@ msgstr ""
1063
  msgid "Builder mode is enabled on these Post Types"
1064
  msgstr ""
1065
 
1066
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1067
  msgstr ""
1068
 
1069
  msgid "Block Editor"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
10
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
11
  "Language-Team: English (United Kingdom) (http://www.transifex.com/wp-"
12
  "translations/wpglobus-multilingual/language/en_GB/)\n"
1063
  msgid "Builder mode is enabled on these Post Types"
1064
  msgstr ""
1065
 
1066
+ msgid "%1$sAttention%2$s"
1067
+ msgstr ""
1068
+
1069
+ msgid ""
1070
+ "The current version of WPGlobus does not support multililngual widgets with "
1071
+ "block editor"
1072
+ msgstr ""
1073
+
1074
+ msgid "Use block editor on the Widgets page"
1075
+ msgstr ""
1076
+
1077
+ msgid ""
1078
+ "You cannot use block editor on the Widgets page because your theme disabled "
1079
+ "it."
1080
  msgstr ""
1081
 
1082
  msgid "Block Editor"
languages/wpglobus-en_NZ.mo CHANGED
Binary file
languages/wpglobus-en_NZ.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (New Zealand) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_NZ/)\n"
@@ -1062,7 +1062,20 @@ msgstr ""
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1066
  msgstr ""
1067
 
1068
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (New Zealand) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_NZ/)\n"
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
+ msgid "%1$sAttention%2$s"
1066
+ msgstr ""
1067
+
1068
+ msgid ""
1069
+ "The current version of WPGlobus does not support multililngual widgets with "
1070
+ "block editor"
1071
+ msgstr ""
1072
+
1073
+ msgid "Use block editor on the Widgets page"
1074
+ msgstr ""
1075
+
1076
+ msgid ""
1077
+ "You cannot use block editor on the Widgets page because your theme disabled "
1078
+ "it."
1079
  msgstr ""
1080
 
1081
  msgid "Block Editor"
languages/wpglobus-en_US.mo CHANGED
Binary file
languages/wpglobus-en_US.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: English (United States) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/en_US/)\n"
@@ -1129,8 +1129,25 @@ msgstr "Builders support"
1129
  msgid "Builder mode is enabled on these Post Types"
1130
  msgstr "Builder mode is enabled on these Post Types"
1131
 
1132
- msgid "Old fashioned language switcher"
1133
- msgstr "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1134
 
1135
  msgid "Block Editor"
1136
  msgstr "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: English (United States) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/en_US/)\n"
1129
  msgid "Builder mode is enabled on these Post Types"
1130
  msgstr "Builder mode is enabled on these Post Types"
1131
 
1132
+ msgid "%1$sAttention%2$s"
1133
+ msgstr "%1$sAttention%2$s"
1134
+
1135
+ msgid ""
1136
+ "The current version of WPGlobus does not support multililngual widgets with "
1137
+ "block editor"
1138
+ msgstr ""
1139
+ "The current version of WPGlobus does not support multililngual widgets with "
1140
+ "block editor"
1141
+
1142
+ msgid "Use block editor on the Widgets page"
1143
+ msgstr "Use block editor on the Widgets page"
1144
+
1145
+ msgid ""
1146
+ "You cannot use block editor on the Widgets page because your theme disabled "
1147
+ "it."
1148
+ msgstr ""
1149
+ "You cannot use block editor on the Widgets page because your theme disabled "
1150
+ "it."
1151
 
1152
  msgid "Block Editor"
1153
  msgstr "Block Editor"
languages/wpglobus-en_ZA.mo CHANGED
Binary file
languages/wpglobus-en_ZA.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (South Africa) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_ZA/)\n"
@@ -1062,7 +1062,20 @@ msgstr ""
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1066
  msgstr ""
1067
 
1068
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: English (South Africa) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/en_ZA/)\n"
1062
  msgid "Builder mode is enabled on these Post Types"
1063
  msgstr ""
1064
 
1065
+ msgid "%1$sAttention%2$s"
1066
+ msgstr ""
1067
+
1068
+ msgid ""
1069
+ "The current version of WPGlobus does not support multililngual widgets with "
1070
+ "block editor"
1071
+ msgstr ""
1072
+
1073
+ msgid "Use block editor on the Widgets page"
1074
+ msgstr ""
1075
+
1076
+ msgid ""
1077
+ "You cannot use block editor on the Widgets page because your theme disabled "
1078
+ "it."
1079
  msgstr ""
1080
 
1081
  msgid "Block Editor"
languages/wpglobus-es_AR.mo CHANGED
Binary file
languages/wpglobus-es_AR.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Argentina) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_AR/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Argentina) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_AR/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_CL.mo CHANGED
Binary file
languages/wpglobus-es_CL.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Chile) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_CL/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Chile) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_CL/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_CO.mo CHANGED
Binary file
languages/wpglobus-es_CO.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Colombia) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_CO/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Colombia) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_CO/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_CR.mo CHANGED
Binary file
languages/wpglobus-es_CR.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Costa Rica) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/es_CR/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Costa Rica) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/es_CR/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_ES.mo CHANGED
Binary file
languages/wpglobus-es_ES.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Spain) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_ES/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Spain) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_ES/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_GT.mo CHANGED
Binary file
languages/wpglobus-es_GT.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Guatemala) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_GT/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Guatemala) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_GT/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_MX.mo CHANGED
Binary file
languages/wpglobus-es_MX.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Mexico) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_MX/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Mexico) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_MX/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_PE.mo CHANGED
Binary file
languages/wpglobus-es_PE.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Peru) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_PE/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Peru) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_PE/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_PR.mo CHANGED
Binary file
languages/wpglobus-es_PR.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Puerto Rico) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/es_PR/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Puerto Rico) (http://www.transifex.com/wp-"
11
  "translations/wpglobus-multilingual/language/es_PR/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-es_VE.mo CHANGED
Binary file
languages/wpglobus-es_VE.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Venezuela) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_VE/)\n"
@@ -1028,7 +1028,20 @@ msgstr ""
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1032
  msgstr ""
1033
 
1034
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Spanish (Venezuela) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/es_VE/)\n"
1028
  msgid "Builder mode is enabled on these Post Types"
1029
  msgstr ""
1030
 
1031
+ msgid "%1$sAttention%2$s"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "The current version of WPGlobus does not support multililngual widgets with "
1036
+ "block editor"
1037
+ msgstr ""
1038
+
1039
+ msgid "Use block editor on the Widgets page"
1040
+ msgstr ""
1041
+
1042
+ msgid ""
1043
+ "You cannot use block editor on the Widgets page because your theme disabled "
1044
+ "it."
1045
  msgstr ""
1046
 
1047
  msgid "Block Editor"
languages/wpglobus-et.mo CHANGED
Binary file
languages/wpglobus-et.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Estonian (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/et/)\n"
@@ -991,7 +991,20 @@ msgstr ""
991
  msgid "Builder mode is enabled on these Post Types"
992
  msgstr ""
993
 
994
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
995
  msgstr ""
996
 
997
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Estonian (http://www.transifex.com/wp-translations/wpglobus-"
11
  "multilingual/language/et/)\n"
991
  msgid "Builder mode is enabled on these Post Types"
992
  msgstr ""
993
 
994
+ msgid "%1$sAttention%2$s"
995
+ msgstr ""
996
+
997
+ msgid ""
998
+ "The current version of WPGlobus does not support multililngual widgets with "
999
+ "block editor"
1000
+ msgstr ""
1001
+
1002
+ msgid "Use block editor on the Widgets page"
1003
+ msgstr ""
1004
+
1005
+ msgid ""
1006
+ "You cannot use block editor on the Widgets page because your theme disabled "
1007
+ "it."
1008
  msgstr ""
1009
 
1010
  msgid "Block Editor"
languages/wpglobus-fr_BE.mo CHANGED
Binary file
languages/wpglobus-fr_BE.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: French (Belgium) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/fr_BE/)\n"
@@ -1155,8 +1155,21 @@ msgstr "Soutien des constructeurs"
1155
  msgid "Builder mode is enabled on these Post Types"
1156
  msgstr "Le mode Constructeur est activé sur ces types de post"
1157
 
1158
- msgid "Old fashioned language switcher"
1159
- msgstr "Commutateur de langue démodé"
 
 
 
 
 
 
 
 
 
 
 
 
 
1160
 
1161
  msgid "Block Editor"
1162
  msgstr "Éditeur de blocs"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: French (Belgium) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/fr_BE/)\n"
1155
  msgid "Builder mode is enabled on these Post Types"
1156
  msgstr "Le mode Constructeur est activé sur ces types de post"
1157
 
1158
+ msgid "%1$sAttention%2$s"
1159
+ msgstr ""
1160
+
1161
+ msgid ""
1162
+ "The current version of WPGlobus does not support multililngual widgets with "
1163
+ "block editor"
1164
+ msgstr ""
1165
+
1166
+ msgid "Use block editor on the Widgets page"
1167
+ msgstr ""
1168
+
1169
+ msgid ""
1170
+ "You cannot use block editor on the Widgets page because your theme disabled "
1171
+ "it."
1172
+ msgstr ""
1173
 
1174
  msgid "Block Editor"
1175
  msgstr "Éditeur de blocs"
languages/wpglobus-fr_CA.mo CHANGED
Binary file
languages/wpglobus-fr_CA.po CHANGED
@@ -7,7 +7,7 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: French (Canada) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/fr_CA/)\n"
@@ -1157,8 +1157,21 @@ msgstr "Soutien des constructeurs"
1157
  msgid "Builder mode is enabled on these Post Types"
1158
  msgstr "Le mode Constructeur est activé sur ces types de post"
1159
 
1160
- msgid "Old fashioned language switcher"
1161
- msgstr "Commutateur de langue démodé"
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
 
1163
  msgid "Block Editor"
1164
  msgstr "Éditeur de blocs"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
11
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: French (Canada) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/fr_CA/)\n"
1157
  msgid "Builder mode is enabled on these Post Types"
1158
  msgstr "Le mode Constructeur est activé sur ces types de post"
1159
 
1160
+ msgid "%1$sAttention%2$s"
1161
+ msgstr ""
1162
+
1163
+ msgid ""
1164
+ "The current version of WPGlobus does not support multililngual widgets with "
1165
+ "block editor"
1166
+ msgstr ""
1167
+
1168
+ msgid "Use block editor on the Widgets page"
1169
+ msgstr ""
1170
+
1171
+ msgid ""
1172
+ "You cannot use block editor on the Widgets page because your theme disabled "
1173
+ "it."
1174
+ msgstr ""
1175
 
1176
  msgid "Block Editor"
1177
  msgstr "Éditeur de blocs"
languages/wpglobus-fr_FR.mo CHANGED
Binary file
languages/wpglobus-fr_FR.po CHANGED
@@ -7,8 +7,8 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
11
- "Last-Translator: FX Bénard <fxb@wp-translations.org>\n"
12
  "Language-Team: French (France) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/fr_FR/)\n"
14
  "Language: fr_FR\n"
@@ -1157,8 +1157,21 @@ msgstr "Soutien des constructeurs"
1157
  msgid "Builder mode is enabled on these Post Types"
1158
  msgstr "Le mode Constructeur est activé sur ces types de post"
1159
 
1160
- msgid "Old fashioned language switcher"
1161
- msgstr "Commutateur de langue démodé"
 
 
 
 
 
 
 
 
 
 
 
 
 
1162
 
1163
  msgid "Block Editor"
1164
  msgstr "Éditeur de blocs"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
11
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
12
  "Language-Team: French (France) (http://www.transifex.com/wp-translations/"
13
  "wpglobus-multilingual/language/fr_FR/)\n"
14
  "Language: fr_FR\n"
1157
  msgid "Builder mode is enabled on these Post Types"
1158
  msgstr "Le mode Constructeur est activé sur ces types de post"
1159
 
1160
+ msgid "%1$sAttention%2$s"
1161
+ msgstr ""
1162
+
1163
+ msgid ""
1164
+ "The current version of WPGlobus does not support multililngual widgets with "
1165
+ "block editor"
1166
+ msgstr ""
1167
+
1168
+ msgid "Use block editor on the Widgets page"
1169
+ msgstr ""
1170
+
1171
+ msgid ""
1172
+ "You cannot use block editor on the Widgets page because your theme disabled "
1173
+ "it."
1174
+ msgstr ""
1175
 
1176
  msgid "Block Editor"
1177
  msgstr "Éditeur de blocs"
languages/wpglobus-id_ID.mo CHANGED
Binary file
languages/wpglobus-id_ID.po CHANGED
@@ -7,7 +7,7 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+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"
@@ -1066,7 +1066,20 @@ msgstr ""
1066
  msgid "Builder mode is enabled on these Post Types"
1067
  msgstr ""
1068
 
1069
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1070
  msgstr ""
1071
 
1072
  msgid "Block Editor"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+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"
1066
  msgid "Builder mode is enabled on these Post Types"
1067
  msgstr ""
1068
 
1069
+ msgid "%1$sAttention%2$s"
1070
+ msgstr ""
1071
+
1072
+ msgid ""
1073
+ "The current version of WPGlobus does not support multililngual widgets with "
1074
+ "block editor"
1075
+ msgstr ""
1076
+
1077
+ msgid "Use block editor on the Widgets page"
1078
+ msgstr ""
1079
+
1080
+ msgid ""
1081
+ "You cannot use block editor on the Widgets page because your theme disabled "
1082
+ "it."
1083
  msgstr ""
1084
 
1085
  msgid "Block Editor"
languages/wpglobus-ko_KR.mo CHANGED
Binary file
languages/wpglobus-ko_KR.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Korean (Korea) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/ko_KR/)\n"
@@ -990,7 +990,20 @@ msgstr ""
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  msgstr ""
995
 
996
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Korean (Korea) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/ko_KR/)\n"
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
+ msgid "%1$sAttention%2$s"
994
+ msgstr ""
995
+
996
+ msgid ""
997
+ "The current version of WPGlobus does not support multililngual widgets with "
998
+ "block editor"
999
+ msgstr ""
1000
+
1001
+ msgid "Use block editor on the Widgets page"
1002
+ msgstr ""
1003
+
1004
+ msgid ""
1005
+ "You cannot use block editor on the Widgets page because your theme disabled "
1006
+ "it."
1007
  msgstr ""
1008
 
1009
  msgid "Block Editor"
languages/wpglobus-pl_PL.mo CHANGED
Binary file
languages/wpglobus-pl_PL.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Polish (Poland) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/pl_PL/)\n"
@@ -1020,7 +1020,20 @@ msgstr ""
1020
  msgid "Builder mode is enabled on these Post Types"
1021
  msgstr ""
1022
 
1023
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1024
  msgstr ""
1025
 
1026
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Polish (Poland) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/pl_PL/)\n"
1020
  msgid "Builder mode is enabled on these Post Types"
1021
  msgstr ""
1022
 
1023
+ msgid "%1$sAttention%2$s"
1024
+ msgstr ""
1025
+
1026
+ msgid ""
1027
+ "The current version of WPGlobus does not support multililngual widgets with "
1028
+ "block editor"
1029
+ msgstr ""
1030
+
1031
+ msgid "Use block editor on the Widgets page"
1032
+ msgstr ""
1033
+
1034
+ msgid ""
1035
+ "You cannot use block editor on the Widgets page because your theme disabled "
1036
+ "it."
1037
  msgstr ""
1038
 
1039
  msgid "Block Editor"
languages/wpglobus-pt_BR.mo CHANGED
Binary file
languages/wpglobus-pt_BR.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/pt_BR/)\n"
@@ -990,7 +990,20 @@ msgstr ""
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  msgstr ""
995
 
996
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/pt_BR/)\n"
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
+ msgid "%1$sAttention%2$s"
994
+ msgstr ""
995
+
996
+ msgid ""
997
+ "The current version of WPGlobus does not support multililngual widgets with "
998
+ "block editor"
999
+ msgstr ""
1000
+
1001
+ msgid "Use block editor on the Widgets page"
1002
+ msgstr ""
1003
+
1004
+ msgid ""
1005
+ "You cannot use block editor on the Widgets page because your theme disabled "
1006
+ "it."
1007
  msgstr ""
1008
 
1009
  msgid "Block Editor"
languages/wpglobus-pt_PT.mo CHANGED
Binary file
languages/wpglobus-pt_PT.po CHANGED
@@ -4,8 +4,8 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-07-07 16:47+0000\n"
8
- "Last-Translator: clovio\n"
9
  "Language-Team: Portuguese (Portugal) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/pt_PT/)\n"
11
  "Language: pt_PT\n"
@@ -990,7 +990,20 @@ msgstr ""
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
994
  msgstr ""
995
 
996
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
+ "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Portuguese (Portugal) (http://www.transifex.com/wp-"
10
  "translations/wpglobus-multilingual/language/pt_PT/)\n"
11
  "Language: pt_PT\n"
990
  msgid "Builder mode is enabled on these Post Types"
991
  msgstr ""
992
 
993
+ msgid "%1$sAttention%2$s"
994
+ msgstr ""
995
+
996
+ msgid ""
997
+ "The current version of WPGlobus does not support multililngual widgets with "
998
+ "block editor"
999
+ msgstr ""
1000
+
1001
+ msgid "Use block editor on the Widgets page"
1002
+ msgstr ""
1003
+
1004
+ msgid ""
1005
+ "You cannot use block editor on the Widgets page because your theme disabled "
1006
+ "it."
1007
  msgstr ""
1008
 
1009
  msgid "Block Editor"
languages/wpglobus-ro_RO.mo CHANGED
Binary file
languages/wpglobus-ro_RO.po CHANGED
@@ -4,7 +4,7 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Romanian (Romania) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/ro_RO/)\n"
@@ -1023,7 +1023,20 @@ msgstr ""
1023
  msgid "Builder mode is enabled on these Post Types"
1024
  msgstr ""
1025
 
1026
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1027
  msgstr ""
1028
 
1029
  msgid "Block Editor"
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: WPGlobus Multilingual\n"
7
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
8
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
9
  "Language-Team: Romanian (Romania) (http://www.transifex.com/wp-translations/"
10
  "wpglobus-multilingual/language/ro_RO/)\n"
1023
  msgid "Builder mode is enabled on these Post Types"
1024
  msgstr ""
1025
 
1026
+ msgid "%1$sAttention%2$s"
1027
+ msgstr ""
1028
+
1029
+ msgid ""
1030
+ "The current version of WPGlobus does not support multililngual widgets with "
1031
+ "block editor"
1032
+ msgstr ""
1033
+
1034
+ msgid "Use block editor on the Widgets page"
1035
+ msgstr ""
1036
+
1037
+ msgid ""
1038
+ "You cannot use block editor on the Widgets page because your theme disabled "
1039
+ "it."
1040
  msgstr ""
1041
 
1042
  msgid "Block Editor"
languages/wpglobus-ru_RU.mo CHANGED
Binary file
languages/wpglobus-ru_RU.po CHANGED
@@ -6,7 +6,7 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
- "PO-Revision-Date: 2021-06-04 12:20+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"
@@ -1133,8 +1133,25 @@ msgstr "Поддержка конструкторов страниц (Builders)"
1133
  msgid "Builder mode is enabled on these Post Types"
1134
  msgstr "Режим `Builder` активен для этих типов записей"
1135
 
1136
- msgid "Old fashioned language switcher"
1137
- msgstr "Использовать прежний переключатель языка"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1138
 
1139
  msgid "Block Editor"
1140
  msgstr "Редактор блоков"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
+ "PO-Revision-Date: 2021-07-18 15:13+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"
1133
  msgid "Builder mode is enabled on these Post Types"
1134
  msgstr "Режим `Builder` активен для этих типов записей"
1135
 
1136
+ msgid "%1$sAttention%2$s"
1137
+ msgstr "%1$sВнимание%2$s"
1138
+
1139
+ msgid ""
1140
+ "The current version of WPGlobus does not support multililngual widgets with "
1141
+ "block editor"
1142
+ msgstr ""
1143
+ "Текущая версия WPGlobus не поддерживает мультиязычность виджетов при "
1144
+ "использовании редактора блоков"
1145
+
1146
+ msgid "Use block editor on the Widgets page"
1147
+ msgstr "Использовать редактор блоков на странице Виджеты"
1148
+
1149
+ msgid ""
1150
+ "You cannot use block editor on the Widgets page because your theme disabled "
1151
+ "it."
1152
+ msgstr ""
1153
+ "Вы не можете использовать редактор блоков на странице Виджеты, так как его "
1154
+ "поддержка отключена в теме."
1155
 
1156
  msgid "Block Editor"
1157
  msgstr "Редактор блоков"
languages/wpglobus-sv_SE.mo CHANGED
Binary file
languages/wpglobus-sv_SE.po CHANGED
@@ -7,7 +7,7 @@
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
- "PO-Revision-Date: 2021-06-04 12:20+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"
@@ -1022,7 +1022,20 @@ msgstr ""
1022
  msgid "Builder mode is enabled on these Post Types"
1023
  msgstr ""
1024
 
1025
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1026
  msgstr ""
1027
 
1028
  msgid "Block Editor"
7
  msgid ""
8
  msgstr ""
9
  "Project-Id-Version: WPGlobus Multilingual\n"
10
+ "PO-Revision-Date: 2021-07-18 15:12+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"
1022
  msgid "Builder mode is enabled on these Post Types"
1023
  msgstr ""
1024
 
1025
+ msgid "%1$sAttention%2$s"
1026
+ msgstr ""
1027
+
1028
+ msgid ""
1029
+ "The current version of WPGlobus does not support multililngual widgets with "
1030
+ "block editor"
1031
+ msgstr ""
1032
+
1033
+ msgid "Use block editor on the Widgets page"
1034
+ msgstr ""
1035
+
1036
+ msgid ""
1037
+ "You cannot use block editor on the Widgets page because your theme disabled "
1038
+ "it."
1039
  msgstr ""
1040
 
1041
  msgid "Block Editor"
languages/wpglobus-tr_TR.mo CHANGED
Binary file
languages/wpglobus-tr_TR.po CHANGED
@@ -5,7 +5,7 @@
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
- "PO-Revision-Date: 2021-06-04 12:20+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Turkish (Turkey) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/tr_TR/)\n"
@@ -1019,7 +1019,20 @@ msgstr ""
1019
  msgid "Builder mode is enabled on these Post Types"
1020
  msgstr ""
1021
 
1022
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
 
 
 
 
1023
  msgstr ""
1024
 
1025
  msgid "Block Editor"
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: WPGlobus Multilingual\n"
8
+ "PO-Revision-Date: 2021-07-18 15:12+0000\n"
9
  "Last-Translator: Gregory Karpinsky <gregory@tiv.net>\n"
10
  "Language-Team: Turkish (Turkey) (http://www.transifex.com/wp-translations/"
11
  "wpglobus-multilingual/language/tr_TR/)\n"
1019
  msgid "Builder mode is enabled on these Post Types"
1020
  msgstr ""
1021
 
1022
+ msgid "%1$sAttention%2$s"
1023
+ msgstr ""
1024
+
1025
+ msgid ""
1026
+ "The current version of WPGlobus does not support multililngual widgets with "
1027
+ "block editor"
1028
+ msgstr ""
1029
+
1030
+ msgid "Use block editor on the Widgets page"
1031
+ msgstr ""
1032
+
1033
+ msgid ""
1034
+ "You cannot use block editor on the Widgets page because your theme disabled "
1035
+ "it."
1036
  msgstr ""
1037
 
1038
  msgid "Block Editor"
languages/wpglobus-uk.mo CHANGED
Binary file
languages/wpglobus-uk.po CHANGED
@@ -6,8 +6,8 @@
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
- "PO-Revision-Date: 2021-06-12 20:19+0000\n"
10
- "Last-Translator: Jack Willson <666noob404@gmail.com>\n"
11
  "Language-Team: Ukrainian (http://www.transifex.com/wp-translations/wpglobus-"
12
  "multilingual/language/uk/)\n"
13
  "Language: uk\n"
@@ -1133,8 +1133,21 @@ msgstr "Підтримка конструкторів сторінок"
1133
  msgid "Builder mode is enabled on these Post Types"
1134
  msgstr "Режим `Builder` активний для цих типів записів"
1135
 
1136
- msgid "Old fashioned language switcher"
1137
- msgstr "Використовувати колишній перемикач мови"
 
 
 
 
 
 
 
 
 
 
 
 
 
1138
 
1139
  msgid "Block Editor"
1140
  msgstr "Редактор блоків"
6
  msgid ""
7
  msgstr ""
8
  "Project-Id-Version: WPGlobus Multilingual\n"
9
+ "PO-Revision-Date: 2021-07-18 15:12+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"
13
  "Language: uk\n"
1133
  msgid "Builder mode is enabled on these Post Types"
1134
  msgstr "Режим `Builder` активний для цих типів записів"
1135
 
1136
+ msgid "%1$sAttention%2$s"
1137
+ msgstr ""
1138
+
1139
+ msgid ""
1140
+ "The current version of WPGlobus does not support multililngual widgets with "
1141
+ "block editor"
1142
+ msgstr ""
1143
+
1144
+ msgid "Use block editor on the Widgets page"
1145
+ msgstr ""
1146
+
1147
+ msgid ""
1148
+ "You cannot use block editor on the Widgets page because your theme disabled "
1149
+ "it."
1150
+ msgstr ""
1151
 
1152
  msgid "Block Editor"
1153
  msgstr "Редактор блоків"
languages/wpglobus.pot CHANGED
@@ -846,7 +846,16 @@ msgstr ""
846
  msgid "Builder mode is enabled on these Post Types"
847
  msgstr ""
848
 
849
- msgid "Old fashioned language switcher"
 
 
 
 
 
 
 
 
 
850
  msgstr ""
851
 
852
  msgid "Block Editor"
846
  msgid "Builder mode is enabled on these Post Types"
847
  msgstr ""
848
 
849
+ msgid "%1$sAttention%2$s"
850
+ msgstr ""
851
+
852
+ msgid "The current version of WPGlobus does not support multililngual widgets with block editor"
853
+ msgstr ""
854
+
855
+ msgid "Use block editor on the Widgets page"
856
+ msgstr ""
857
+
858
+ msgid "You cannot use block editor on the Widgets page because your theme disabled it."
859
  msgstr ""
860
 
861
  msgid "Block Editor"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: tivnetinc, alexgff, tivnet
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 5.5
6
- Tested up to: 5.7
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
@@ -220,6 +220,15 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
220
 
221
  == Changelog ==
222
 
 
 
 
 
 
 
 
 
 
223
  = 2.7.14 =
224
  * (Vendor/Yoast) Fixed incorrect meta description output in some situations.
225
  * (Vendor/Yoast) Additional multilingual filters.
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SLF8M4YNZHNQN
4
  Tags: WPGlobus, localization, multilanguage, multilingual, translate
5
  Requires at least: 5.5
6
+ Tested up to: 5.8
7
  Requires PHP: 5.6
8
  Stable tag: trunk
9
  License: GPL-3.0-or-later
220
 
221
  == Changelog ==
222
 
223
+ = 2.8.0 =
224
+ * (Compatibility) Tested up to WordPress 5.8
225
+ * (Core/Options) Added `use_widgets_block_editor` option.
226
+ * (Core/Config) Added `use_widgets_block_editor` option.
227
+ * (Core/Controller) Added `use_widgets_block_editor` filter.
228
+ * (Core) Class `WPGlobus_Admin_Gutenberg` is deprecated.
229
+ * (Core/JS) Checking existing WPGlobusWidgets before init.
230
+ * (Core/JS) Don't run with WP 5.8 when the block editor enables for managing widgets.
231
+
232
  = 2.7.14 =
233
  * (Vendor/Yoast) Fixed incorrect meta description output in some situations.
234
  * (Vendor/Yoast) Additional multilingual filters.
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.7.14
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
44
  exit;
45
  }
46
 
47
- define( 'WPGLOBUS_VERSION', '2.7.14' );
48
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
49
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
50
 
@@ -214,13 +214,14 @@ if ( WPGlobus_WP::in_wp_admin() ) :
214
  * define( 'WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR', false );
215
  *
216
  * @since 2.7.2
 
217
  */
218
- if ( ! defined('WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR') || WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR ) {
219
- if ( defined('GUTENBERG_VERSION') ) {
220
- require_once dirname( __FILE__ ) . '/includes/admin/gutenberg/class-wpglobus-admin-gutenberg.php';
221
- WPGlobus_Admin_Gutenberg::construct();
222
- }
223
- }
224
 
225
  endif;
226
 
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.8.0
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
44
  exit;
45
  }
46
 
47
+ define( 'WPGLOBUS_VERSION', '2.8.0' );
48
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
49
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
50
 
214
  * define( 'WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR', false );
215
  *
216
  * @since 2.7.2
217
+ * @deprecated 2.8.0
218
  */
219
+ // if ( ! defined('WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR') || WPGLOBUS_GUTENBERG_WIDGETS_BLOCK_EDITOR ) {
220
+ // if ( defined('GUTENBERG_VERSION') ) {
221
+ // require_once dirname( __FILE__ ) . '/includes/admin/gutenberg/class-wpglobus-admin-gutenberg.php';
222
+ // WPGlobus_Admin_Gutenberg::construct();
223
+ // }
224
+ // }
225
 
226
  endif;
227