WPGlobus – Multilingual Everything! - Version 2.5.3

Version Description

  • (Core) Added WP_USER_EDIT_PAGE constant to set the User edit page name.
  • (Core/Options) Added support of subsections on the WPGlobus Options page.
  • (Core/Post Types) Added post types of Molongui Author Box plugin to the hidden types array.
  • (Builders/Elementor) Added language switcher for Elementor v.3.
Download this release

Release Info

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

Code changes from version 2.5.2 to 2.5.3

Files changed (53) hide show
  1. data/wpglobus-product-info.json +1 -1
  2. includes/builders/elementor/class-wpglobus-elementor.php +6 -2
  3. includes/builders/gutenberg/assets/js/wpglobus-gutenberg.min.js +1 -1
  4. includes/class-wpglobus-post-types.php +3 -1
  5. includes/class-wpglobus.php +7 -0
  6. includes/css/wpglobus-options.css +1 -1
  7. includes/css/wpglobus-options.css.map +1 -1
  8. includes/js/wpglobus-admin-47.min.js +1 -1
  9. includes/js/wpglobus-admin-49.min.js +1 -1
  10. includes/js/wpglobus-admin-51.min.js +1 -1
  11. includes/js/wpglobus-admin-55.min.js +1 -1
  12. includes/js/wpglobus-admin.min.js +1 -1
  13. includes/js/wpglobus-options.js +36 -1
  14. includes/js/wpglobus-options.min.js +1 -1
  15. languages/wpglobus-ar.po +12 -12
  16. languages/wpglobus-be.po +12 -12
  17. languages/wpglobus-bg_BG.po +12 -12
  18. languages/wpglobus-de_CH.po +12 -12
  19. languages/wpglobus-de_DE.po +12 -12
  20. languages/wpglobus-el.po +12 -12
  21. languages/wpglobus-en_AU.po +12 -12
  22. languages/wpglobus-en_CA.po +12 -12
  23. languages/wpglobus-en_GB.po +12 -12
  24. languages/wpglobus-en_NZ.po +12 -12
  25. languages/wpglobus-en_US.po +12 -12
  26. languages/wpglobus-en_ZA.po +12 -12
  27. languages/wpglobus-es_AR.po +12 -12
  28. languages/wpglobus-es_CL.po +12 -12
  29. languages/wpglobus-es_CO.po +12 -12
  30. languages/wpglobus-es_CR.po +12 -12
  31. languages/wpglobus-es_ES.po +12 -12
  32. languages/wpglobus-es_GT.po +12 -12
  33. languages/wpglobus-es_MX.po +12 -12
  34. languages/wpglobus-es_PE.po +12 -12
  35. languages/wpglobus-es_PR.po +12 -12
  36. languages/wpglobus-es_VE.po +12 -12
  37. languages/wpglobus-et.po +12 -12
  38. languages/wpglobus-fr_BE.po +12 -12
  39. languages/wpglobus-fr_CA.po +12 -12
  40. languages/wpglobus-fr_FR.po +12 -12
  41. languages/wpglobus-id_ID.po +12 -12
  42. languages/wpglobus-ko_KR.po +12 -12
  43. languages/wpglobus-pl_PL.po +12 -12
  44. languages/wpglobus-pt_BR.po +12 -12
  45. languages/wpglobus-pt_PT.po +12 -12
  46. languages/wpglobus-ro_RO.po +12 -12
  47. languages/wpglobus-ru_RU.po +12 -12
  48. languages/wpglobus-sv_SE.po +12 -12
  49. languages/wpglobus-tr_TR.po +12 -12
  50. languages/wpglobus-uk.po +12 -12
  51. languages/wpglobus.pot +15 -15
  52. readme.txt +7 -4
  53. wpglobus.php +2 -2
data/wpglobus-product-info.json CHANGED
@@ -1 +1 @@
1
- {"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.4.0"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.2"},"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.2.0","_api_tested_up_to":"5.2"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.12","_api_tested_up_to":"5.4.1"},"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.1.0","_api_tested_up_to":"5.4"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.3.11","_api_tested_up_to":"5.4.0"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"}}
1
+ {"multilingual-woocommerce-nets-netaxept":{"title":"{:en}Multilingual WooCommerce Nets Netaxept{:}{:ru}\u041c\u0443\u043b\u044c\u0442\u0438\u044f\u0437\u044b\u0447\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce Nets Netaxept{:}","_api_new_version":"1.0.3","_api_tested_up_to":"4.9.8"},"wpglobus-menu-visibility":{"title":"WPGlobus Menu Visibility","_api_new_version":"1.2.0","_api_tested_up_to":"4.9.6"},"wpglobus-multi-currency":{"title":"{:en}WPGlobus Multi-Currency for WooCommerce{:}{:ru}WPGlobus - \u041c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043b\u044f WooCommerce{:}","_api_new_version":"1.1.1","_api_tested_up_to":"4.9.4"},"wpglobus-language-widgets":{"title":"{:en}WPGlobus Language Widgets{:}{:ru}\u042f\u0437\u044b\u043a\u0438 WPGlobus \u0434\u043b\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432{:}","_api_new_version":"1.1.0","_api_tested_up_to":"5.4.0"},"wpglobus-mobile-menu":{"title":"{:en}WPGlobus Mobile Menu{:}{:ru}WPGlobus Mobile Menu{:}","_api_new_version":"2.0.0","_api_tested_up_to":"5.2"},"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.2.0","_api_tested_up_to":"5.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.1.0","_api_tested_up_to":"5.4"},"wpglobus-plus":{"title":"{:en}WPGlobus Plus multilingual extension{:}{:ru}WPGlobus \u041f\u043b\u044e\u0441{:}","_api_new_version":"1.3.11","_api_tested_up_to":"5.4.0"},"wpglobus-header-images":{"title":"{:en}WPGlobus Header Images{:}{:ru}WPGlobus Header Images{:}","_api_new_version":"2.1.0","_api_tested_up_to":"5.5"},"woocommerce-wpglobus":{"title":"{:en}WPGlobus for WooCommerce{:}{:ru}\u0420\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 WooCommerce WPGlobus{:}","_api_new_version":"3.5.13","_api_tested_up_to":"5.4.1"}}
includes/builders/elementor/class-wpglobus-elementor.php CHANGED
@@ -530,13 +530,17 @@ if ( ! class_exists( 'WPGlobus_Elementor' ) ) :
530
  /* <![CDATA[ */
531
  var WPGlobusTimeID;
532
  WPGlobusTimeID = setInterval(function(){
533
- if ( jQuery("#elementor-panel-header-menu-button").length === 0 ) {
534
  return;
535
  }
536
  clearInterval(WPGlobusTimeID);
537
  var wpglobusElementorPanelMenu = jQuery("#wpglobus-elementor-wrapper").html();
538
  jQuery(document).on('click', "#elementor-panel-header-menu-button", function () {
539
- jQuery(".elementor-panel-menu-item").eq(7).after(wpglobusElementorPanelMenu);
 
 
 
 
540
  });
541
  jQuery(document).on('click', "#wpglobus-elementor-selector-title", function () {
542
  var $t = jQuery("#wpglobus-elementor-selector");
530
  /* <![CDATA[ */
531
  var WPGlobusTimeID;
532
  WPGlobusTimeID = setInterval(function(){
533
+ if ( jQuery("#elementor-panel-header-menu-button").length === 0 || 'undefined' === typeof elementor.config.version ) {
534
  return;
535
  }
536
  clearInterval(WPGlobusTimeID);
537
  var wpglobusElementorPanelMenu = jQuery("#wpglobus-elementor-wrapper").html();
538
  jQuery(document).on('click', "#elementor-panel-header-menu-button", function () {
539
+ if ( elementor.config.version[0] == '3' ) {
540
+ jQuery(".elementor-panel-menu-item-exit-to-dashboard").before(wpglobusElementorPanelMenu);
541
+ } else {
542
+ jQuery(".elementor-panel-menu-item").eq(7).after(wpglobusElementorPanelMenu);
543
+ }
544
  });
545
  jQuery(document).on('click', "#wpglobus-elementor-selector-title", function () {
546
  var $t = jQuery("#wpglobus-elementor-selector");
includes/builders/gutenberg/assets/js/wpglobus-gutenberg.min.js CHANGED
@@ -1 +1 @@
1
- "use strict";jQuery(document).ready(function(E){var C={counter:0,noticeOn:!1,initDone:!1,languageSelectorBoxDelta:0,oldLanguageSelector:!1,languageSelectorEnabled:!0,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},getCounter:function(){return C.counter},getOptionKey:function(e){return e=e||"",WPGlobusGutenberg.keyOption[e]},getOptions:function(){return WPGlobusGutenberg.options},isOldLanguageSelector:function(){return C.oldLanguageSelector},isPostDisabled:function(){return WPGlobusGutenberg.__post.disabled},isEnabledTab:function(e){void 0===e&&(e="options");var t=!1;return"options"==e&&C.parseBool(WPGlobusGutenberg.enabledOptionsTab)&&(t=!0),t},init:function(){WPGlobusGutenberg.yoastSeo=C.parseBool(WPGlobusGutenberg.yoastSeo),WPGlobusGutenberg.elementor=C.parseBool(WPGlobusGutenberg.elementor),C.isPostDisabled()||(C.initListeners(),C.initNotifications(),C.setTabs(),C.formHandler(),C.attachListeners())},initListeners:function(){WPGlobusGutenberg.yoastSeo&&1==E(".yoast.wpseo-metabox").length&&E(window).on("beforeunload",function(e){e.stopImmediatePropagation()})},formHandler:function(){var e=E(".metabox-base-form #referredby").attr("value");void 0!==e&&(e=-1==e.indexOf("language=en")?e+"&language="+WPGlobusGutenberg.language:e.replace("language=en","language="+WPGlobusGutenberg.language),E(".metabox-base-form #referredby").attr("value",e)),void 0!==(e=E('input[name="_wp_original_http_referer"]').attr("value"))&&(e=-1==e.indexOf("language=en")?e+"&language="+WPGlobusGutenberg.language:e.replace("language=en","language="+WPGlobusGutenberg.language),E('input[name="_wp_original_http_referer"]').attr("value",e))},initNotifications:function(){void 0!==wp.editPost&&void 0!==wp.plugins&&WPGlobusGutenberg.elementor&&"internal"==WPGlobusGutenberg.data.elementorCssPrintMethod&&wp.data.dispatch("core/notices").createNotice("error",WPGlobusGutenberg.i18n.elementorWarning,{id:"elementorcssprintmethodnotice",isDismissible:!0,actions:[{url:WPGlobusGutenberg.i18n.elementorActionLink,label:WPGlobusGutenberg.i18n.elementorActionLabel}]})},setTabs:function(){var t;0!=WPGlobusGutenberg.tabs.length?(C.oldLanguageSelector=!0,t=setInterval(function(){var e=E(".edit-post-header__settings");1==e.length&&(e.before(WPGlobusGutenberg.tabs),clearInterval(t))},200)):C.WPGlobusSwitcherPlugin()},setSelectorStatus:function(){var e;C.isOldLanguageSelector()&&(E(".wpglobus-gutenberg-selector-box").css({opacity:"0.2"}).attr("onclick","return false;"),C.languageSelectorEnabled=!1,e=setInterval(function(){if(0==E(".is-saving").length){if(clearInterval(e),WPGlobusGutenberg.pagenow==WPGlobusGutenberg.postNewPage&&-1!=location.pathname.indexOf(WPGlobusGutenberg.postEditPage))return WPGlobusGutenberg.pagenow=WPGlobusGutenberg.postEditPage,E(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick",""),void C.reloadPage();C.languageSelectorEnabled=!0,E(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick","")}},400))},reloadPage:function(){E(".wpglobus-selector-grid").css({"grid-template-columns":"10% 90%"}),E(".wpglobus-gutenberg-selector-text").text(WPGlobusGutenberg.i18n.reload),function e(){E(".wpglobus-gutenberg-selector").fadeOut(500).fadeIn(500,e)}(),setTimeout(function(){location.reload()},500)},attachListeners:function(){C.isOldLanguageSelector()&&(E(document).on("mouseenter",".wpglobus-gutenberg-selector",function(e){C.languageSelectorEnabled&&(E(".wpglobus-gutenberg-selector-dropdown").css({display:"block"}),C.languageSelectorBoxDelta=e.screenY,E(".edit-post-header").css({"z-index":"100000"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"100001"}))}),E(document).on("mouseleave",".wpglobus-gutenberg-selector",function(e){0!=C.languageSelectorBoxDelta&&e.screenY-C.languageSelectorBoxDelta<=0&&(E(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),E(".edit-post-header").css({"z-index":"9989"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"100"}))}),E(document).on("mouseleave",".wpglobus-gutenberg-selector-dropdown",function(e){E(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),E(".edit-post-header").css({"z-index":"9989"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"10000"})}),E(document).on("click",".editor-post-save-draft",function(){C.setSelectorStatus()}),E(document).on("click",".editor-post-publish-button",function(){C.setSelectorStatus()}))},WPGlobusSwitcherPlugin:function(){if(void 0!==wp.editPost&&void 0!==wp.plugins){var e=WPGlobusGutenberg.language,t=WPGlobusCoreData.enabled_languages,n=WPGlobusCoreData.en_language_name,o=WPGlobusGutenberg.flags_url,s="WPGlobus Switcher",a=location.href,l={};for(var u in t)-1==a.indexOf("language="+e)?l[t[u]]=a+"&language="+t[u]:l[t[u]]=a.replace("language="+e,"language="+t[u]);var i=wp.i18n.__,r=wp.element.createElement,g=wp.element.Fragment,c=wp.components.TabPanel,b=wp.compose.withState,p=wp.components.RadioControl,d=wp.components.Notice,w=wp.components.Button,m=wp.editPost.PluginSidebarMoreMenuItem,G=wp.components.PanelBody,f=wp.editPost.PluginSidebar,h=wp.plugins.registerPlugin,P=E(".components-panel__header.edit-post-sidebar-header button.components-icon-button").eq(0),v={flagOnly:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />',flagLanguage:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />&nbsp;'+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],flagCode:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />&nbsp;'+WPGlobusGutenberg.language,languageOnly:"&nbsp;"+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],languageCode:"&nbsp;"+WPGlobusGutenberg.language},W="",_="",x=C.getOptionKey("switcherButtonType");S(WPGlobusGutenberg.options[x]),_=W,E(document).on("click",P,function(){T()});var y=b({value:_})(function(e){e.value;var t=e.setState;return r(p,{label:"",help:"Select type of switcher language button.",selected:_,className:"wpglobus-switcher-components-radio-control",options:[{label:"Flag only",value:"flagOnly"},{label:"Flag with language",value:"flagLanguage"},{label:"Flag with language code",value:"flagCode"},{label:"Language only",value:"languageOnly"},{label:"Language code",value:"languageCode"}],onChange:function(e){t({value:_=e}),O(x,e)}})});h("wpglobus-switcher",{icon:"",render:function(){return T(),r(g,{},r(m,{target:"wpglobus-switcher-sidebar",icon:"admin-site"},i("WPGlobus")),r(f,{name:"wpglobus-switcher-sidebar",title:s,className:"wpglobus-switcher-components-panel"},r("div",{className:"wpglobus-switcher-message wpglobus-switcher-error-message hidden",style:{}},""),r(G,{className:"wpglobus-switcher-panel__body"},(e=[{name:"switcher",title:"Languages",className:"wpglobus-panel-tab wpglobus-panel-tab-selector edit-post-sidebar__panel-tab"}],WPGlobusGutenberg.isEnabledTab("options")&&e.push({name:"options",title:"Options",className:"wpglobus-panel-tab wpglobus-panel-tab-options edit-post-sidebar__panel-tab"}),r(c,{name:"WPGlobusSwitcherTabPanel",className:"wpglobus-tab-panel",activeClass:"is-active",tabs:e},B)))));var e}})}function S(e){W=e=e||"flagLanguage"}function L(e){void 0===e&&(e=!0);var t,n=document.querySelectorAll(".wpglobus-switcher-components-radio-control .components-radio-control__input");0!=n.length&&(e?(n.forEach(function(e){e.classList.add(e.value),e.classList.remove("wpglobus-switcher-pulsate-radio"),e.classList.add("wpglobus-switcher-pulsate-radio-off")}),(t=document.querySelector(".wpglobus-switcher-components-radio-control ."+_)).classList.remove("wpglobus-switcher-pulsate-radio-off"),t.classList.add("wpglobus-switcher-pulsate-radio")):n.forEach(function(e){e.classList.remove("wpglobus-switcher-pulsate-radio"),e.classList.remove("wpglobus-switcher-pulsate-radio-off"),e.classList.add("wpglobus-switcher-pulsate-radio-on")}))}function N(e,t){void 0===e||C.noticeOn||(C.noticeOn=!0,e.innerText=t,e.classList.remove("hidden"),setTimeout(function(){e.classList.add("hidden"),C.noticeOn=!1},3e3))}function O(e,t){t=t||"",x==(e=e||"")&&(L(!0),function(e,t){if(""==(e=e||""))return;var n={sender:"WPGlobusGutenberg",_action:"saveOption",is_admin:1};return n.counter=C.counter++,n.options={},n.options[e]=t,wp.ajax.post(WPGlobusGutenberg.wpglobusAjax,{data:n})}(e,t).then(function(e){"success"==e.result&&(S(t),T(WPGlobusGutenberg.options[x]=t))}).fail(function(e){var t=document.getElementsByClassName("wpglobus-switcher-error-message");void 0!==t[0]&&("error"==e.result?N(t[0],e.message):400==e.status&&N(t[0],"Error: "+e.status+" ("+e.statusText+")"),_=W);var n=document.getElementsByClassName("wpglobus-panel-tab-options");void 0!==n[0]&&-1!=n[0].classList.value.indexOf("is-active")&&n[0].click()}).always(function(){L(!1)}))}function k(e){return void 0===v[e]&&(e=W),v[e]}function T(n){void 0!==n&&void 0!==v[n]||(n=W),setTimeout(function(){var e,t=document.querySelector('[aria-label="'+s+'"]');null!=t&&(void 0===t.dataset.status?(e=t.innerHTML,t.innerHTML=e+k(n),t.dataset.status="init"):(t.innerHTML=k(n),t.dataset.status="changed"))},300)}function B(e){return"switcher"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-selector-tab-content"},r(d,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},i("Select language")),r("div",{className:"wpglobus-switcher-panel__switcher-box"},WPGlobusGutenberg.pagenow==WPGlobusGutenberg.postNewPage?r("div",{style:{marginBottom:"20px"},className:"wpglobus-switcher-panel__switcher-notice"},WPGlobusGutenberg.i18n.save_post):r("ul",{className:"language-list"},t.map(function(e){return r("li",{key:e,className:"language-item"},r("img",{style:{marginRight:"7px"},className:"wpglobus-switcher-panel__flag",height:"20px",width:"20px",src:o[e]}),r(w,{href:l[e],isSmall:!0,isPrimary:!0},n[e]))}))),r(w,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__info",href:WPGlobusGutenberg.store_link,isLink:!0,target:"_blank"},i("WPGlobus Premium Add-ons")),r(w,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__settings-link",href:WPGlobusGutenberg.block_editor_tab_url,isLink:!0},i("Settings"))):"options"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-options-tab-content"},r(d,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},i("Select type")),r(y,null)):void 0}}};WPGlobusGutenberg=E.extend({},WPGlobusGutenberg,C),WPGlobusGutenberg.init()});
1
+ "use strict";jQuery(document).ready(function(E){var C={counter:0,noticeOn:!1,initDone:!1,languageSelectorBoxDelta:0,oldLanguageSelector:!1,languageSelectorEnabled:!0,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},getCounter:function(){return C.counter},getOptionKey:function(e){return e=e||"",WPGlobusGutenberg.keyOption[e]},getOptions:function(){return WPGlobusGutenberg.options},isOldLanguageSelector:function(){return C.oldLanguageSelector},isPostDisabled:function(){return WPGlobusGutenberg.__post.disabled},isEnabledTab:function(e){void 0===e&&(e="options");var t=!1;return"options"==e&&C.parseBool(WPGlobusGutenberg.enabledOptionsTab)&&(t=!0),t},init:function(){WPGlobusGutenberg.yoastSeo=C.parseBool(WPGlobusGutenberg.yoastSeo),WPGlobusGutenberg.elementor=C.parseBool(WPGlobusGutenberg.elementor),C.isPostDisabled()||(C.initListeners(),C.initNotifications(),C.setTabs(),C.formHandler(),C.attachListeners())},initListeners:function(){WPGlobusGutenberg.yoastSeo&&1==E(".yoast.wpseo-metabox").length&&E(window).on("beforeunload",function(e){e.stopImmediatePropagation()})},formHandler:function(){var e=E(".metabox-base-form #referredby").attr("value");void 0!==e&&(e=-1==e.indexOf("language=en")?e+"&language="+WPGlobusGutenberg.language:e.replace("language=en","language="+WPGlobusGutenberg.language),E(".metabox-base-form #referredby").attr("value",e)),void 0!==(e=E('input[name="_wp_original_http_referer"]').attr("value"))&&(e=-1==e.indexOf("language=en")?e+"&language="+WPGlobusGutenberg.language:e.replace("language=en","language="+WPGlobusGutenberg.language),E('input[name="_wp_original_http_referer"]').attr("value",e))},initNotifications:function(){void 0!==wp.editPost&&void 0!==wp.plugins&&WPGlobusGutenberg.elementor&&"internal"==WPGlobusGutenberg.data.elementorCssPrintMethod&&wp.data.dispatch("core/notices").createNotice("error",WPGlobusGutenberg.i18n.elementorWarning,{id:"elementorcssprintmethodnotice",isDismissible:!0,actions:[{url:WPGlobusGutenberg.i18n.elementorActionLink,label:WPGlobusGutenberg.i18n.elementorActionLabel}]})},setTabs:function(){var t;0!=WPGlobusGutenberg.tabs.length?(C.oldLanguageSelector=!0,t=setInterval(function(){var e=E(".edit-post-header__settings");1==e.length&&(e.before(WPGlobusGutenberg.tabs),clearInterval(t))},200)):C.WPGlobusSwitcherPlugin()},setSelectorStatus:function(){var e;C.isOldLanguageSelector()&&(E(".wpglobus-gutenberg-selector-box").css({opacity:"0.2"}).attr("onclick","return false;"),C.languageSelectorEnabled=!1,e=setInterval(function(){if(0==E(".is-saving").length){if(clearInterval(e),WPGlobusGutenberg.pagenow==WPGlobusGutenberg.postNewPage&&-1!=location.pathname.indexOf(WPGlobusGutenberg.postEditPage))return WPGlobusGutenberg.pagenow=WPGlobusGutenberg.postEditPage,E(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick",""),void C.reloadPage();C.languageSelectorEnabled=!0,E(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick","")}},400))},reloadPage:function(){E(".wpglobus-selector-grid").css({"grid-template-columns":"10% 90%"}),E(".wpglobus-gutenberg-selector-text").text(WPGlobusGutenberg.i18n.reload),function e(){E(".wpglobus-gutenberg-selector").fadeOut(500).fadeIn(500,e)}(),setTimeout(function(){location.reload()},500)},attachListeners:function(){C.isOldLanguageSelector()&&(E(document).on("mouseenter",".wpglobus-gutenberg-selector",function(e){C.languageSelectorEnabled&&(E(".wpglobus-gutenberg-selector-dropdown").css({display:"block"}),C.languageSelectorBoxDelta=e.screenY,E(".edit-post-header").css({"z-index":"100000"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"100001"}))}),E(document).on("mouseleave",".wpglobus-gutenberg-selector",function(e){0!=C.languageSelectorBoxDelta&&e.screenY-C.languageSelectorBoxDelta<=0&&(E(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),E(".edit-post-header").css({"z-index":"9989"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"100"}))}),E(document).on("mouseleave",".wpglobus-gutenberg-selector-dropdown",function(e){E(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),E(".edit-post-header").css({"z-index":"9989"}),E(".wpglobus-gutenberg-selector-box").css({"z-index":"10000"})}),E(document).on("click",".editor-post-save-draft",function(){C.setSelectorStatus()}),E(document).on("click",".editor-post-publish-button",function(){C.setSelectorStatus()}))},WPGlobusSwitcherPlugin:function(){if(void 0!==wp.editPost&&void 0!==wp.plugins){var e,t=WPGlobusGutenberg.language,n=WPGlobusCoreData.enabled_languages,o=WPGlobusCoreData.en_language_name,s=WPGlobusGutenberg.flags_url,a="WPGlobus Switcher",l=location.href,u={};for(e in n)-1==l.indexOf("language="+t)?u[n[e]]=l+"&language="+n[e]:u[n[e]]=l.replace("language="+t,"language="+n[e]);var i=wp.i18n.__,r=wp.element.createElement,g=wp.element.Fragment,c=wp.components.TabPanel,b=wp.compose.withState,p=wp.components.RadioControl,d=wp.components.Notice,w=wp.components.Button,m=wp.editPost.PluginSidebarMoreMenuItem,G=wp.components.PanelBody,f=wp.editPost.PluginSidebar,h=wp.plugins.registerPlugin,P=E(".components-panel__header.edit-post-sidebar-header button.components-icon-button").eq(0),v={flagOnly:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />',flagLanguage:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />&nbsp;'+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],flagCode:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />&nbsp;'+WPGlobusGutenberg.language,languageOnly:"&nbsp;"+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],languageCode:"&nbsp;"+WPGlobusGutenberg.language},W="",_="",x=C.getOptionKey("switcherButtonType");S(WPGlobusGutenberg.options[x]),_=W,E(document).on("click",P,function(){T()});var y=b({value:_})(function(e){e.value;var t=e.setState;return r(p,{label:"",help:"Select type of switcher language button.",selected:_,className:"wpglobus-switcher-components-radio-control",options:[{label:"Flag only",value:"flagOnly"},{label:"Flag with language",value:"flagLanguage"},{label:"Flag with language code",value:"flagCode"},{label:"Language only",value:"languageOnly"},{label:"Language code",value:"languageCode"}],onChange:function(e){t({value:_=e}),O(x,e)}})});h("wpglobus-switcher",{icon:"",render:function(){return T(),r(g,{},r(m,{target:"wpglobus-switcher-sidebar",icon:"admin-site"},i("WPGlobus")),r(f,{name:"wpglobus-switcher-sidebar",title:a,className:"wpglobus-switcher-components-panel"},r("div",{className:"wpglobus-switcher-message wpglobus-switcher-error-message hidden",style:{}},""),r(G,{className:"wpglobus-switcher-panel__body"},(e=[{name:"switcher",title:"Languages",className:"wpglobus-panel-tab wpglobus-panel-tab-selector edit-post-sidebar__panel-tab"}],WPGlobusGutenberg.isEnabledTab("options")&&e.push({name:"options",title:"Options",className:"wpglobus-panel-tab wpglobus-panel-tab-options edit-post-sidebar__panel-tab"}),r(c,{name:"WPGlobusSwitcherTabPanel",className:"wpglobus-tab-panel",activeClass:"is-active",tabs:e},B)))));var e}})}function S(e){W=e=e||"flagLanguage"}function L(e){void 0===e&&(e=!0);var t,n=document.querySelectorAll(".wpglobus-switcher-components-radio-control .components-radio-control__input");0!=n.length&&(e?(n.forEach(function(e){e.classList.add(e.value),e.classList.remove("wpglobus-switcher-pulsate-radio"),e.classList.add("wpglobus-switcher-pulsate-radio-off")}),(t=document.querySelector(".wpglobus-switcher-components-radio-control ."+_)).classList.remove("wpglobus-switcher-pulsate-radio-off"),t.classList.add("wpglobus-switcher-pulsate-radio")):n.forEach(function(e){e.classList.remove("wpglobus-switcher-pulsate-radio"),e.classList.remove("wpglobus-switcher-pulsate-radio-off"),e.classList.add("wpglobus-switcher-pulsate-radio-on")}))}function N(e,t){void 0===e||C.noticeOn||(C.noticeOn=!0,e.innerText=t,e.classList.remove("hidden"),setTimeout(function(){e.classList.add("hidden"),C.noticeOn=!1},3e3))}function O(e,t){t=t||"",x==(e=e||"")&&(L(!0),function(e,t){if(""==(e=e||""))return;var n={sender:"WPGlobusGutenberg",_action:"saveOption",is_admin:1};return n.counter=C.counter++,n.options={},n.options[e]=t,wp.ajax.post(WPGlobusGutenberg.wpglobusAjax,{data:n})}(e,t).then(function(e){"success"==e.result&&(S(t),T(WPGlobusGutenberg.options[x]=t))}).fail(function(e){var t=document.getElementsByClassName("wpglobus-switcher-error-message");void 0!==t[0]&&("error"==e.result?N(t[0],e.message):400==e.status&&N(t[0],"Error: "+e.status+" ("+e.statusText+")"),_=W);var n=document.getElementsByClassName("wpglobus-panel-tab-options");void 0!==n[0]&&-1!=n[0].classList.value.indexOf("is-active")&&n[0].click()}).always(function(){L(!1)}))}function k(e){return void 0===v[e]&&(e=W),v[e]}function T(n){void 0!==n&&void 0!==v[n]||(n=W),setTimeout(function(){var e,t=document.querySelector('[aria-label="'+a+'"]');null!=t&&(void 0===t.dataset.status?(e=t.innerHTML,t.innerHTML=e+k(n),t.dataset.status="init"):(t.innerHTML=k(n),t.dataset.status="changed"))},300)}function B(e){return"switcher"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-selector-tab-content"},r(d,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},i("Select language")),r("div",{className:"wpglobus-switcher-panel__switcher-box"},WPGlobusGutenberg.pagenow==WPGlobusGutenberg.postNewPage?r("div",{style:{marginBottom:"20px"},className:"wpglobus-switcher-panel__switcher-notice"},WPGlobusGutenberg.i18n.save_post):r("ul",{className:"language-list"},n.map(function(e){return r("li",{key:e,className:"language-item"},r("img",{style:{marginRight:"7px"},className:"wpglobus-switcher-panel__flag",height:"20px",width:"20px",src:s[e]}),r(w,{href:u[e],isSmall:!0,isPrimary:!0},o[e]))}))),r(w,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__info",href:WPGlobusGutenberg.store_link,isLink:!0,target:"_blank"},i("WPGlobus Premium Add-ons")),r(w,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__settings-link",href:WPGlobusGutenberg.block_editor_tab_url,isLink:!0},i("Settings"))):"options"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-options-tab-content"},r(d,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},i("Select type")),r(y,null)):void 0}}};WPGlobusGutenberg=E.extend({},WPGlobusGutenberg,C),WPGlobusGutenberg.init()});
includes/class-wpglobus-post-types.php CHANGED
@@ -81,7 +81,9 @@ class WPGlobus_Post_Types {
81
  'cookielawinfo',
82
  // Advanced Post List: https://wordpress.org/plugins/advanced-post-list/ @since 2.4.15
83
  'apl_post_list',
84
- 'apl_design'
 
 
85
  );
86
 
87
  /**
81
  'cookielawinfo',
82
  // Advanced Post List: https://wordpress.org/plugins/advanced-post-list/ @since 2.4.15
83
  'apl_post_list',
84
+ 'apl_design',
85
+ // Molongui Author Box: https://wordpress.org/plugins/molongui-authorship/ @since 2.5.3
86
+ 'guest_author'
87
  );
88
 
89
  /**
includes/class-wpglobus.php CHANGED
@@ -76,6 +76,13 @@ class WPGlobus {
76
  * @since 1.6.6
77
  */
78
  const PAGE_WPGLOBUS_ADMIN_CENTRAL = 'wpglobus-admin-central';
 
 
 
 
 
 
 
79
 
80
  /**
81
  * List navigation menus
76
  * @since 1.6.6
77
  */
78
  const PAGE_WPGLOBUS_ADMIN_CENTRAL = 'wpglobus-admin-central';
79
+
80
+ /**
81
+ * WordPress User edit page name.
82
+ *
83
+ * @since 2.5.3
84
+ */
85
+ const WP_USER_EDIT_PAGE = 'user-edit.php';
86
 
87
  /**
88
  * List navigation menus
includes/css/wpglobus-options.css CHANGED
@@ -1,3 +1,3 @@
1
- @supports (display: grid){#wpglobus-options-old-browser-warning{display:none}}#wpglobus-options-intro-text{display:grid;grid-template-columns:100%;place-items:center;grid-gap:0;background-color:#d3e4f4}@media screen and (min-width: 699px){#wpglobus-options-intro-text{grid-template-columns:20% 40% 40%}}#wpglobus-options-intro-text .grid__item{padding:initial;max-width:none}.wpg-bnr{display:grid;grid-template-columns:100%;place-items:center}@media screen and (min-width: 1499px){.wpg-bnr{grid-template-columns:30% 70%}}.wpg-bnr .wpg-bnr__item{max-width:none}#wpglobus-options-intro-text .wpg-bnr-title{padding:20px 0}.wpg-bnr .wpg-img-block{height:150px;width:150px;background-color:#fff}.wpg-bnr .wpg-text-block{width:40%;padding:10px}@media screen and (min-width: 699px){.wpg-bnr .wpg-text-block{width:95%}}.wpglobus-options-wrap{display:grid;grid-template-columns:15% 85%;grid-gap:0;background-color:#f3f3f3}@media screen and (max-width: 750px){.wpglobus-options-wrap{grid-template-columns:7% 93%}}.wpglobus-options-tab{display:none}.wpglobus-options-sidebar li a{display:block;padding:10px 4px 10px 14px;background:transparent;border-width:1px 0;border-style:solid;border-bottom-color:#E7E7E7;border-top-color:#F9F9F9;opacity:0.7;color:#555;font-weight:bold;text-decoration:none;transition:none}@media screen and (max-width: 750px){.wpglobus-options-sidebar li a{padding:10px 0;text-align:center}}.wpglobus-options-sidebar li a:hover{color:#00f !important}.wpglobus-options-sidebar .wpglobus-tab-link-active{background-color:#fcfcfc}@media screen and (max-width: 750px){.wpglobus-options-sidebar .group_title{display:none}}.wpglobus-options-main{padding:0 10px 10px;background-color:#fcfcfc}.wpglobus-options-main h2{padding-left:20px}.wpglobus-options-main #wpglobus_add_language.button-primary{margin:15px 15px 0}.wpglobus-options-main .tablenav .one-page .displaying-num{margin-right:15px}.wpglobus-options-main .wpglobus-options-field{border:1px solid #a9b6c2;border-radius:0;margin:10px 0}.wpglobus-options-main .wpglobus-options-field .title{margin:0;padding:1em 2em 1em 0;font-size:14px;font-weight:600}.wpglobus-options-main .wpglobus-options-field .grid__item .title{padding:1em 1em 0.5em 1.5em}.wpglobus-options-main .wpglobus-options-field .subtitle{padding:0 2em 0 1.5em;font-size:13px;font-weight:400}.wpglobus-options-main .wpglobus-options-field .description{font-size:13px;font-style:normal}.wpglobus-options-main .wpglobus-options-field-wpglobus_info{min-height:20px;padding:8px 19px;color:#000;background-color:#d3e4f4}.wpglobus-options-main .wpglobus-options-field-wpglobus_info.info{background-color:#d3e4f4;border-color:#a9b6c2}.wpglobus-options-main .wpglobus-options-field-wpglobus_info.normal{background-color:#eeeeee;border-color:#cccccc}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .dashicons-move{cursor:move}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .ui-state-highlight{height:2em;line-height:1.5em;background-color:#f1f1f1;width:200px;border-radius:5px}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_select{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_select .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_select .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor{display:grid;grid-template-columns:20% 80%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .ace_editor{margin:0 1em 0 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .checkbox{margin:0 1em 0 0}.wpglobus-options-menu li i,.wpglobus-options-menu li .group_title{color:#1445b8}#wpglobus-tab-link-helpdesk i,#wpglobus-tab-link-helpdesk .group_title{color:#178217}#wpglobus-tab-link-helpdesk .group_title{border-bottom:1px dotted}#wpglobus-tab-link-uninstall i,#wpglobus-tab-link-uninstall .group_title{color:#79867d}#wpglobus-tab-link-recommendations i{color:maroon;-webkit-animation:filter-animation-blink 8s infinite;animation:filter-animation-blink 8s infinite}@-webkit-keyframes filter-animation-blink{0%{-webkit-filter:opacity(0.1);filter:opacity(0.1)}50%{-webkit-filter:opacity(1);filter:opacity(1)}100%{-webkit-filter:opacity(0.1);filter:opacity(0.1)}}@keyframes filter-animation-blink{0%{-webkit-filter:opacity(0.1);filter:opacity(0.1)}50%{-webkit-filter:opacity(1);filter:opacity(1)}100%{-webkit-filter:opacity(0.1);filter:opacity(0.1)}}.wpglobus-recommend-container{display:grid;grid-template-columns:20% 80%;grid-gap:2em}.wpglobus-recommend-container .grid__item{padding:initial;max-width:none}.wpglobus-recommend-container .wpglobus-recommend-logo img{background-color:white;width:100%;max-width:200px;border:1px solid #a9b6c2}.wpglobus-recommend-container h3{margin-top:0;color:#0070a8}@media screen and (max-width: 500px){.wpglobus-recommend-container{grid-template-columns:100%;place-items:center;grid-gap:0}}.wpglobus-options-main #section-tab-customizer ul{margin-left:3em;list-style:initial}#wpglobus-options-compatibility{border-collapse:collapse}#wpglobus-options-compatibility th,#wpglobus-options-compatibility td{border:1px solid black;padding:3px}
2
 
3
  /*# sourceMappingURL=wpglobus-options.css.map */
1
+ @supports (display: grid){#wpglobus-options-old-browser-warning{display:none}}#wpglobus-options-intro-text{display:grid;grid-template-columns:100%;place-items:center;grid-gap:0;background-color:#d3e4f4}@media screen and (min-width: 699px){#wpglobus-options-intro-text{grid-template-columns:20% 40% 40%}}#wpglobus-options-intro-text .grid__item{padding:initial;max-width:none}.wpg-bnr{display:grid;grid-template-columns:100%;place-items:center}@media screen and (min-width: 1499px){.wpg-bnr{grid-template-columns:30% 70%}}.wpg-bnr .wpg-bnr__item{max-width:none}#wpglobus-options-intro-text .wpg-bnr-title{padding:20px 0}.wpg-bnr .wpg-img-block{height:150px;width:150px;background-color:#fff}.wpg-bnr .wpg-text-block{width:40%;padding:10px}@media screen and (min-width: 699px){.wpg-bnr .wpg-text-block{width:95%}}.wpglobus-options-wrap{display:grid;grid-template-columns:15% 85%;grid-gap:0;background-color:#f3f3f3}@media screen and (max-width: 750px){.wpglobus-options-wrap{grid-template-columns:7% 93%}}.wpglobus-options-tab{display:none}.wpglobus-options-sidebar li a{display:block;padding:10px 4px 10px 14px;background:transparent;border-width:1px 0;border-style:solid;border-bottom-color:#E7E7E7;border-top-color:#F9F9F9;opacity:0.7;color:#555;font-weight:bold;text-decoration:none;transition:none}@media screen and (max-width: 750px){.wpglobus-options-sidebar li a{padding:10px 0;text-align:center}}.wpglobus-options-sidebar li a:hover{color:#00f !important}.wpglobus-options-sidebar .wpglobus-tab-link-active{background-color:#fcfcfc}@media screen and (max-width: 750px){.wpglobus-options-sidebar .group_title{display:none}}.wpglobus-options-main{padding:0 10px 10px;background-color:#fcfcfc}.wpglobus-options-main h2{padding-left:20px}.wpglobus-options-main #wpglobus_add_language.button-primary{margin:15px 15px 0}.wpglobus-options-main .tablenav .one-page .displaying-num{margin-right:15px}.wpglobus-options-main .wpglobus-options-field{border:1px solid #a9b6c2;border-radius:0;margin:10px 0}.wpglobus-options-main .wpglobus-options-field .title{margin:0;padding:1em 2em 1em 0;font-size:14px;font-weight:600}.wpglobus-options-main .wpglobus-options-field .grid__item .title{padding:1em 1em 0.5em 1.5em}.wpglobus-options-main .wpglobus-options-field .subtitle{padding:0 2em 0 1.5em;font-size:13px;font-weight:400}.wpglobus-options-main .wpglobus-options-field .description{font-size:13px;font-style:normal}.wpglobus-options-main .wpglobus-options-field-wpglobus_info{min-height:20px;padding:8px 19px;color:#000;background-color:#d3e4f4}.wpglobus-options-main .wpglobus-options-field-wpglobus_info.info{background-color:#d3e4f4;border-color:#a9b6c2}.wpglobus-options-main .wpglobus-options-field-wpglobus_info.normal{background-color:#eeeeee;border-color:#cccccc}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .dashicons-move{cursor:move}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .ui-state-highlight{height:2em;line-height:1.5em;background-color:#f1f1f1;width:200px;border-radius:5px}.wpglobus-options-main .wpglobus-options-field-wpglobus_sortable .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_select{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_select .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_select .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor{display:grid;grid-template-columns:20% 80%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_ace_editor .ace_editor{margin:0 1em 0 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox{display:grid;grid-template-columns:30% 70%;align-items:center;grid-gap:0;background-color:#d3e4f4;padding:20px 0 20px}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .grid__item{padding:initial;max-width:none}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .subtitle{margin:1em 0}.wpglobus-options-main .wpglobus-options-field-wpglobus_checkbox .checkbox{margin:0 1em 0 0}.wpglobus-options-menu li i,.wpglobus-options-menu li .group_title{color:#1445b8}#wpglobus-tab-link-helpdesk i,#wpglobus-tab-link-helpdesk .group_title{color:#178217}#wpglobus-tab-link-helpdesk .group_title{border-bottom:1px dotted}#wpglobus-tab-link-uninstall i,#wpglobus-tab-link-uninstall .group_title{color:#79867d}#wpglobus-tab-link-recommendations i{color:maroon;-webkit-animation:filter-animation-blink 8s infinite;animation:filter-animation-blink 8s infinite}@-webkit-keyframes filter-animation-blink{0%{filter:opacity(0.1)}50%{filter:opacity(1)}100%{filter:opacity(0.1)}}@keyframes filter-animation-blink{0%{filter:opacity(0.1)}50%{filter:opacity(1)}100%{filter:opacity(0.1)}}.wpglobus-recommend-container{display:grid;grid-template-columns:20% 80%;grid-gap:2em}.wpglobus-recommend-container .grid__item{padding:initial;max-width:none}.wpglobus-recommend-container .wpglobus-recommend-logo img{background-color:white;width:100%;max-width:200px;border:1px solid #a9b6c2}.wpglobus-recommend-container h3{margin-top:0;color:#0070a8}@media screen and (max-width: 500px){.wpglobus-recommend-container{grid-template-columns:100%;place-items:center;grid-gap:0}}.wpglobus-options-main #section-tab-customizer ul{margin-left:3em;list-style:initial}#wpglobus-options-compatibility{border-collapse:collapse}#wpglobus-options-compatibility th,#wpglobus-options-compatibility td{border:1px solid black;padding:3px}
2
 
3
  /*# sourceMappingURL=wpglobus-options.css.map */
includes/css/wpglobus-options.css.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["wpglobus-options.scss"],"names":[],"mappings":"AAAwB,0BACtB,sCACE,YAAa,CACd,CAMH,6BACE,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CAC1B,qCAGC,6BACE,iCAAkC,CACnC,CAGH,yCACE,eAAgB,CAChB,cAAe,CAChB,SAIC,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACpB,sCAGC,SACE,6BAA8B,CAC/B,CAGH,wBACE,cAAe,CAChB,4CAGC,cAAe,CAChB,wBAGC,YAAa,CACb,WAAY,CACZ,qBAAsB,CACvB,yBAGC,SAAU,CACV,YAAa,CACd,qCAGC,yBACE,SAAU,CACX,CAMH,uBACE,YAAa,CACb,6BAA8B,CAC9B,UAAW,CACX,wBAAoC,CACrC,qCAGC,uBACE,4BAA6B,CAC9B,CAIH,sBACE,YAAa,CACd,+BAMC,aAAc,CACd,0BAA2B,CAC3B,sBAAuB,CACvB,kBAAmB,CACnB,kBAAmB,CACnB,2BAA4B,CAC5B,wBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,gBAAiB,CACjB,oBAAqB,CAErB,eAAgB,CACjB,qCAGC,+BACE,cAAe,CACf,iBAAkB,CACnB,CAGH,qCACE,qBAAsB,CACvB,oDAGC,wBAAoC,CACrC,qCAGC,uCACE,YAAa,CACd,CAIH,uBACE,mBAAoB,CACpB,wBAAoC,CACrC,0BAGC,iBAAkB,CACnB,6DAIC,kBAAmB,CACpB,2DAGC,iBAAkB,CACnB,+CAIC,wBAAyB,CACzB,eAAgB,CAChB,aAAc,CACf,sDAGC,QAAS,CACT,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,kEAGC,2BAA4B,CAC7B,yDAGC,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,4DAGC,cAAe,CACf,iBAAkB,CACnB,6DAIC,eAAgB,CAChB,gBAAiB,CACjB,UAAW,CACX,wBAAyB,CAE1B,kEAGC,wBAAyB,CACzB,oBAAqB,CACtB,oEAGC,wBAAyB,CACzB,oBAAqB,CACtB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CAEnB,UAAW,CACX,wBAAyB,CAC1B,iFAGC,WAAY,CACb,qFAGC,UAAW,CACX,iBAAkB,CAClB,wBAAyB,CACzB,WAAY,CACZ,iBAAkB,CACnB,6EAGC,eAAgB,CAChB,cAAe,CAChB,+DAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,2EAGC,eAAgB,CAChB,cAAe,CAChB,yEAGC,YAAa,CACd,mEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,+EAGC,eAAgB,CAChB,cAAe,CAChB,6EAGC,YAAa,CACd,+EAGC,gBAAiB,CAClB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,6EAGC,eAAgB,CAChB,cAAe,CAChB,2EAGC,YAAa,CACd,2EAGC,gBAAiB,CAClB,mEAQC,aAAyB,CAC1B,uEAWC,aAAyB,CAC1B,yCAGC,wBAAyB,CAC1B,yEAeC,aAAwB,CACzB,qCAGC,YAAwB,CACxB,oDAAW,CAAX,4CAA6C,CAC9C,0CAGC,GACE,2BAAQ,CAAR,mBAAmB,CAGrB,IACE,yBAAQ,CAAR,iBAAkB,CAGpB,KACE,2BAAQ,CAAR,mBAAmB,CAAA,CAZtB,kCAGC,GACE,2BAAQ,CAAR,mBAAmB,CAGrB,IACE,yBAAQ,CAAR,iBAAkB,CAGpB,KACE,2BAAQ,CAAR,mBAAmB,CAAA,CAOvB,8BACE,YAAa,CACb,6BAA8B,CAC9B,YAAa,CACd,0CAGC,eAAgB,CAChB,cAAe,CAChB,2DAGC,sBAAuB,CACvB,UAAW,CACX,eAAgB,CAChB,wBAAyB,CAC1B,iCAGC,YAAa,CACb,aAA0B,CAC3B,qCAGC,8BACE,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACZ,CAGH,kDAEI,eAAgB,CAChB,kBAAmB,CACpB,gCAID,wBAAyB,CAC1B,sEAIC,sBAAuB,CACvB,WAAY","file":"wpglobus-options.css"}
1
+ {"version":3,"sources":["wpglobus-options.scss"],"names":[],"mappings":"AAAwB,0BACtB,sCACE,YAAa,CACd,CAMH,6BACE,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CAC1B,qCAGC,6BACE,iCAAkC,CACnC,CAGH,yCACE,eAAgB,CAChB,cAAe,CAChB,SAIC,YAAa,CACb,0BAA2B,CAC3B,kBAAmB,CACpB,sCAGC,SACE,6BAA8B,CAC/B,CAGH,wBACE,cAAe,CAChB,4CAGC,cAAe,CAChB,wBAGC,YAAa,CACb,WAAY,CACZ,qBAAsB,CACvB,yBAGC,SAAU,CACV,YAAa,CACd,qCAGC,yBACE,SAAU,CACX,CAMH,uBACE,YAAa,CACb,6BAA8B,CAC9B,UAAW,CACX,wBAAoC,CACrC,qCAGC,uBACE,4BAA6B,CAC9B,CAIH,sBACE,YAAa,CACd,+BAMC,aAAc,CACd,0BAA2B,CAC3B,sBAAuB,CACvB,kBAAmB,CACnB,kBAAmB,CACnB,2BAA4B,CAC5B,wBAAyB,CACzB,WAAY,CACZ,UAAW,CACX,gBAAiB,CACjB,oBAAqB,CAErB,eAAgB,CACjB,qCAGC,+BACE,cAAe,CACf,iBAAkB,CACnB,CAGH,qCACE,qBAAsB,CACvB,oDAGC,wBAAoC,CACrC,qCAGC,uCACE,YAAa,CACd,CAIH,uBACE,mBAAoB,CACpB,wBAAoC,CACrC,0BAGC,iBAAkB,CACnB,6DAIC,kBAAmB,CACpB,2DAGC,iBAAkB,CACnB,+CAIC,wBAAyB,CACzB,eAAgB,CAChB,aAAc,CACf,sDAGC,QAAS,CACT,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,kEAGC,2BAA4B,CAC7B,yDAGC,qBAAsB,CACtB,cAAe,CACf,eAAgB,CACjB,4DAGC,cAAe,CACf,iBAAkB,CACnB,6DAIC,eAAgB,CAChB,gBAAiB,CACjB,UAAW,CACX,wBAAyB,CAE1B,kEAGC,wBAAyB,CACzB,oBAAqB,CACtB,oEAGC,wBAAyB,CACzB,oBAAqB,CACtB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CAEnB,UAAW,CACX,wBAAyB,CAC1B,iFAGC,WAAY,CACb,qFAGC,UAAW,CACX,iBAAkB,CAClB,wBAAyB,CACzB,WAAY,CACZ,iBAAkB,CACnB,6EAGC,eAAgB,CAChB,cAAe,CAChB,+DAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,2EAGC,eAAgB,CAChB,cAAe,CAChB,yEAGC,YAAa,CACd,mEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,+EAGC,eAAgB,CAChB,cAAe,CAChB,6EAGC,YAAa,CACd,+EAGC,gBAAiB,CAClB,iEAIC,YAAa,CACb,6BAA8B,CAC9B,kBAAmB,CACnB,UAAW,CACX,wBAAyB,CACzB,mBAAoB,CACrB,6EAGC,eAAgB,CAChB,cAAe,CAChB,2EAGC,YAAa,CACd,2EAGC,gBAAiB,CAClB,mEAQC,aAAyB,CAC1B,uEAWC,aAAyB,CAC1B,yCAGC,wBAAyB,CAC1B,yEAeC,aAAwB,CACzB,qCAGC,YAAwB,CACxB,oDAAW,CAAX,4CAA6C,CAC9C,0CAGC,GACE,mBAAmB,CAGrB,IACE,iBAAkB,CAGpB,KACE,mBAAmB,CAAA,CAZtB,kCAGC,GACE,mBAAmB,CAGrB,IACE,iBAAkB,CAGpB,KACE,mBAAmB,CAAA,CAOvB,8BACE,YAAa,CACb,6BAA8B,CAC9B,YAAa,CACd,0CAGC,eAAgB,CAChB,cAAe,CAChB,2DAGC,sBAAuB,CACvB,UAAW,CACX,eAAgB,CAChB,wBAAyB,CAC1B,iCAGC,YAAa,CACb,aAA0B,CAC3B,qCAGC,8BACE,0BAA2B,CAC3B,kBAAmB,CACnB,UAAW,CACZ,CAGH,kDAEI,eAAgB,CAChB,kBAAmB,CACpB,gCAID,wBAAyB,CAC1B,sEAIC,sBAAuB,CACvB,WAAY","file":"wpglobus-options.css"}
includes/js/wpglobus-admin-47.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open")},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]()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.navMenus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.optionsGeneral():"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))})},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist > span").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open")},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]()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.navMenus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.optionsGeneral():"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))})},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist > span").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-admin-49.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p,b=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(p=m._data(m(document)[0],"events"))?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})),b)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open")},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]()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,p,b=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(p=m._data(m(document)[0],"events"))?b=!0:void 0!==p.change&&m.each(p.change,function(t,a){if(a.selector==g)return!(b=!0)})),b)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e)},close:function(){v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open")},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]()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium.init(),WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-admin-51.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i),v.runCallback(v.option.dialog.afterSave)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open"),v.runCallback(v.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click",".editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var u=!1;c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,o,l,s;u||(o=(e=c("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(l=e.attr("style"),s=o.attr("style"),c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=c("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),i=o.attr("style");l!=n&&e.attr("style",l),s!=i&&o.attr("style",s)}}),u=!0));var n=a.oldTab[0].id.replace("link-tab-",""),i=a.newTab[0].id.replace("link-tab-","");c(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),c("#link-tab-"+i+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==n&&(n=WPGlobusCoreData.default_language),"default"==i&&(i=WPGlobusCoreData.default_language);var d=c(document).triggerHandler("wpglobus_post_body_tabs",[n,i]);return!(!d&&void 0!==d)}})},500),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c("#titlewrap input").addClass("wpglobus-translatable"),c(".title_wpglobus").addClass("wpglobus-translatable"),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;return void 0===(s=i.attr("id"))||(e=c("#"+n+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==c.inArray(e,WPGlobusAdmin.data.excludeCustomFields))||(t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),void o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")))}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i),v.runCallback(v.option.dialog.afterSave)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open"),v.runCallback(v.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click",".editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var u=!1;c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,o,l,s;u||(o=(e=c("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(l=e.attr("style"),s=o.attr("style"),c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=c("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),i=o.attr("style");l!=n&&e.attr("style",l),s!=i&&o.attr("style",s)}}),u=!0));var n=a.oldTab[0].id.replace("link-tab-",""),i=a.newTab[0].id.replace("link-tab-","");c(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),c("#link-tab-"+i+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==n&&(n=WPGlobusCoreData.default_language),"default"==i&&(i=WPGlobusCoreData.default_language);var d=c(document).triggerHandler("wpglobus_post_body_tabs",[n,i]);return!(!d&&void 0!==d)}})},500),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c("#titlewrap input").addClass("wpglobus-translatable"),c(".title_wpglobus").addClass("wpglobus-translatable"),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;return void 0===(s=i.attr("id"))||(e=c("#"+n+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==c.inArray(e,WPGlobusAdmin.data.excludeCustomFields))||(t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),void o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")))}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-admin-55.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i),v.runCallback(v.option.dialog.afterSave)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open"),v.runCallback(v.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click",".editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden"),c(".wpglobus-tax-edit-tab a").removeClass("wpglobus-tab-link-active"),c("#wpglobus-link-tab-"+a+" a").addClass("wpglobus-tab-link-active")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var u=!1;c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,o,l,s;u||(o=(e=c("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(l=e.attr("style"),s=o.attr("style"),c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=c("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),i=o.attr("style");l!=n&&e.attr("style",l),s!=i&&o.attr("style",s)}}),u=!0));var n=a.oldTab[0].id.replace("link-tab-",""),i=a.newTab[0].id.replace("link-tab-","");c(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),c("#link-tab-"+i+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==n&&(n=WPGlobusCoreData.default_language),"default"==i&&(i=WPGlobusCoreData.default_language);var d=c(document).triggerHandler("wpglobus_post_body_tabs",[n,i]);return!(!d&&void 0!==d)}})},500),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c("#titlewrap input").addClass("wpglobus-translatable"),c(".title_wpglobus").addClass("wpglobus-translatable"),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;return void 0===(s=i.attr("id"))||(e=c("#"+n+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==c.inArray(e,WPGlobusAdmin.data.excludeCustomFields))||(t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),void o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")))}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){},dialogOptions:{title:"",placeholder:"",formFooter:"",beforeOpen:function(){},afterOpen:function(){},afterSave:function(){},close:function(){}},dialog:{}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option.dialog=v.option.dialogOptions,v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:"",dialogTitle:"",dialog:v.option.dialogOptions};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i=null,l=null,s=null,d=null,u=v.startButton,r="";if(v.element_by="name",0==(d=document.getElementsByName(a.id)).length&&(v.element_by="id",d=document.getElementById(a.id)),null!==d){if(l=a.id,s=void 0===(i="id"==v.element_by?m("#"+l):(r=(r=d[0].nodeName).toLowerCase(),m(r+'[name="'+l+'"]'))).attr("name")||""==i.attr("name")?l:i.attr("name"),v.clone_id=v.convertToId(l),-1!=s.indexOf("wpglobus")||-1!=v.clone_id.indexOf("wpglobus"))return!1;if(0<m("#wpglobus-"+v.clone_id).length)return!1;if(0<m(r+'[name="wpglobus-'+s+'"]').length)return!1;e=m(i.clone()),n=i.attr("style")||"",i.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+s),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",l).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",s).attr("data-source-get-by",v.element_by),"textarea"==r?(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(i.val())[WPGlobusCoreData.language],e.val(o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),""!=a.dialog&&e.attr("data-dialog",JSON.stringify(a.dialog)),u=u.replace(/{{clone_id}}/g,v.clone_id),u="id"==v.element_by?(u=(u=u.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(u=(u=u.replace(/{{id}}/g,"")).replace(/{{name}}/g,s)).replace(/{{nodename}}/g,r),u="textarea"==r?u.replace("{{style}}","float:left;margin-top:0;"):u.replace("{{style}}","");var c="textarea"==r?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,u=u.replace("{{classes}}",c);u=""==a.dialogTitle?u.replace("{{title}}",v.dialogTitle):u.replace("{{title}}",a.dialogTitle),u=""==a.sbTitle?u.replace("{{sbTitle}}",a.sbTitle):u.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(u).insertAfter(i),m(e).insertAfter(i),"textarea"==r&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>'));var g,b,p=!1;return(""==a.onChangeClass?g="#wpglobus-"+v.clone_id:(g="."+a.onChangeClass,void 0===(b=m._data(m(document)[0],"events"))?p=!0:void 0!==b.change&&m.each(b.change,function(t,a){if(a.selector==g)return!(p=!0)})),p)?!0:(m(document).on("change",g,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}),!0)}},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i),v.runCallback(v.option.dialog.afterSave)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(t,a){var e=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),e+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(e),m(this).removeClass("hidden")},close:function(){m(this).addClass("hidden"),v.runCallback(v.option.dialog.close),v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),v.option.dialog=m.extend({},v.option.dialogOptions,m(v.wpglobus_id).data("dialog")),""!=v.option.dialog.title&&(v.dialogTitle=v.option.dialog.title),m.each(v.value,function(t,a){var e=m("#wpglobus-dialog-"+t);e.val(a),e.attr("placeholder",WPGlobusCore.TextFilter(v.option.dialog.placeholder,t,"RETURN_IN_DEFAULT_LANGUAGE"))}),m("#wpglobus-dialog-form-footer").html(v.option.dialog.formFooter),v.runCallback(v.option.dialog.beforeOpen),v.dialog.dialog("open"),v.runCallback(v.option.dialog.afterOpen)},runCallback:function(t){var a,e;"object"==typeof t?(a=Object.keys(t)[0],e=t[Object.keys(t)[0]],"window"===a?"function"==typeof window[e]&&window[e](t[Object.keys(t)[1]]):"function"==typeof window[a][e]&&window[a][e](t[Object.keys(t)[1]])):"string"==typeof t?"function"==typeof window[t]&&window[t]():"function"==typeof t&&t()}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"==typeof WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("WPGlobus: error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.adminInit(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.postEdit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?(WPGlobusDialogApp.init({dialogTitle:"Edit description"}),this.navMenus()):"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomyEdit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?(this.quickEdit("post"),0<_.size(WPGlobusAdmin.$_get)&&WPGlobusDialogApp.init()):"options-general.php"==WPGlobusAdmin.page?(this.optionsGeneral(),WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})):"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},adminInit:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},optionsGeneral:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click",".editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomyEdit:function(){var a=[];a[0]="name",a[1]="description";c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).length?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden"),c(".wpglobus-tax-edit-tab a").removeClass("wpglobus-tab-link-active"),c("#wpglobus-link-tab-"+a+" a").addClass("wpglobus-tab-link-active")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)}),c(WPGlobusAdmin.data.multilingualSlug.title).insertAfter(".term-slug-wrap th label")},navMenus:function(){function e(){n!==c(i).length&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).length,o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))});var a=[];setTimeout(function(){c(".edit-menu-item-description").each(function(){var t=c(this).attr("id");a.push(t),WPGlobusDialogApp.addElement(t)}),c(".wpglobus_dialog_start").each(function(){c(this).css({"font-style":"normal"}),c(this).after("<br />")});var t={action:"getNavMenuItemsDescription"};t.menuItems=a,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){"object"==typeof t&&c.each(t,function(t,a){""!=a&&(c("#"+t).val(a),c("#wpglobus-"+t).val(WPGlobusCore.TextFilter(a,WPGlobus.language,"RETURN_EMPTY")))})}).fail(function(t){}).always(function(t,a){})},1e3)},postEdit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,l,s,e="#postdivrich",o=!0,i="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(o=!(e="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(o=!1),c(i).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(e).wrap('<div id="tab-default"></div>'),o&&c(c("#titlediv")).insertBefore(e)):(c(e+"-"+a).wrap('<div id="tab-'+a+'"></div>'),o&&c(c("#titlediv-"+a)).insertBefore(e+"-"+a))}),setTimeout(function(){var u=!1;c(i).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e,o,l,s;u||(o=(e=c("#wp-content-editor-container .mce-btn-group").eq(0)).children("div"),0!=e.length&&0!=o.length&&(l=e.attr("style"),s=o.attr("style"),c.each(WPGlobusCoreData.enabled_languages,function(t,a){if(a!=WPGlobusCoreData.default_language){var e=c("#wp-content_"+a+"-editor-container .mce-btn-group").eq(0),o=e.children("div");if(0==e.length||0==o.length)return!0;var n=e.attr("style"),i=o.attr("style");l!=n&&e.attr("style",l),s!=i&&o.attr("style",s)}}),u=!0));var n=a.oldTab[0].id.replace("link-tab-",""),i=a.newTab[0].id.replace("link-tab-","");c(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),c("#link-tab-"+i+" .wpglobus-tab-link").addClass("wpglobus-tab-link-active"),"default"==n&&(n=WPGlobusCoreData.default_language),"default"==i&&(i=WPGlobusCoreData.default_language);var d=c(document).triggerHandler("wpglobus_post_body_tabs",[n,i]);return!(!d&&void 0!==d)}})},500),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&("undefined"!=typeof WPGlobusYoastSeoPremium&&WPGlobusYoastSeoPremium&&"function"==typeof WPGlobusYoastSeoPremium.init&&WPGlobusYoastSeoPremium.init(),"function"==typeof WPGlobusYoastSeo.init&&WPGlobusYoastSeo.init())),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},l=this,s={},c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(s[t]="content_"+a,n=jQuery,e=new wp.utils.WordCounter,i=a,WPGlobusCoreData.wordCounter[i]={},WPGlobusCoreData.wordCounter[i].counter=e,void n(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?l.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[i].content=n("#content_"+i),WPGlobusCoreData.wordCounter[i].count=n("#wp-word-count-"+i).find(".word-count-"+i),WPGlobusCoreData.wordCounter[i].prevCount=0,n(document).on("tinymce-editor-init",function(t,a){var e;-1!=n.inArray(a.id,s)&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[i].content.on("input keyup",_.debounce(o,1e3)),o(i)}));var n,e,i})),c(document).on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:i}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).length)return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).length)return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist li").each(function(t,a){o=(o=c(a).html()).replace(/<button.*<\/button>&nbsp;/,""),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))}),c(document).on("tabsactivate",i,function(t,a){WPGlobusAdmin.currentTab=a.newTab[0].dataset.language}),c("#titlewrap input").addClass("wpglobus-translatable"),c(".title_wpglobus").addClass("wpglobus-translatable"),c(document).triggerHandler("wpglobus_after_post_edit")},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(void 0===WPGlobusAdmin.data.excludeCustomFields&&(WPGlobusAdmin.data.excludeCustomFields=!1),e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;return void 0===(s=i.attr("id"))||(e=c("#"+n+"-key").val(),!(!WPGlobusAdmin.data.excludeCustomFields||-1==c.inArray(e,WPGlobusAdmin.data.excludeCustomFields))||(t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),void o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")))}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-admin.min.js CHANGED
@@ -1 +1 @@
1
- var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,dialogTitle:"",style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:""};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i,l,s,d,u=null,r=null,c=null,g=null,b=v.startButton,p="";v.element_by="id",null===(g=document.getElementById(a.id))?(v.element_by="name",g=document.getElementsByName(a.id)):p=(p=g.nodeName).toLowerCase(),0!=g.length&&(r=a.id,c="undefined"===(u="id"==v.element_by?m("#"+r):(p=(p=g[0].nodeName).toLowerCase(),m(p+'[name="'+r+'"]'))).attr("name")?r:u.attr("name"),v.clone_id=v.convertToId(r),-1==c.indexOf("wpglobus")&&-1==v.clone_id.indexOf("wpglobus")&&(0<m("#wpglobus-"+v.clone_id).length||0<m(p+'[name="wpglobus-'+c+'"]').length||(e=m(u.clone()),n=u.attr("style")||"",u.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+c),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",r).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",c).attr("data-source-get-by",v.element_by),"textarea"==p?(o=WPGlobusCore.getTranslations(u.text())[WPGlobusCoreData.language],e.text(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(u.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),b=b.replace(/{{clone_id}}/g,v.clone_id),b="id"==v.element_by?(b=(b=b.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(b=(b=b.replace(/{{id}}/g,"")).replace(/{{name}}/g,c)).replace(/{{nodename}}/g,p),b="textarea"==p?b.replace("{{style}}","float:left;margin-top:0;"):b.replace("{{style}}",""),i="textarea"==p?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,b=b.replace("{{classes}}",i),b=""==a.dialogTitle?b.replace("{{title}}",v.dialogTitle):b.replace("{{title}}",a.dialogTitle),b=""==a.sbTitle?b.replace("{{sbTitle}}",a.sbTitle):b.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(b).insertAfter(u),m(e).insertAfter(u),"textarea"==p&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>')),s=!1,""==a.onChangeClass?l="#wpglobus-"+v.clone_id:(l="."+a.onChangeClass,void 0===(d=m._data(m(document)[0],"events"))?s=!0:void 0!==d.change&&m.each(d.change,function(t,a){if(a.selector==l)return!(s=!0)})),s||m(document).on("change",l,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}))))},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(){var t=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),t+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(t)},close:function(){v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),m.each(v.value,function(t,a){m("#wpglobus-dialog-"+t).val(a)}),v.dialog.dialog("open")}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"===WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("Error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.admin_init(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.post_edit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.nav_menus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomy_edit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.options_general():"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},admin_init:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},options_general:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){console.log("Start Updating");var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomy_edit:function(){var a=[];a[0]="name",a[1]="description",c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).size()?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)})},nav_menus:function(){function e(){n!==c(i).size()&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).size(),o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))})},post_edit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,i,n,t,l,e,o,s="#postdivrich",d=!0,u="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(d=!(s="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(d=!1),c(u).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(s).wrap('<div id="tab-default"></div>'),d&&c(c("#titlediv")).insertBefore(s)):(c(s+"-"+a).wrap('<div id="tab-'+a+'"></div>'),d&&c(c("#titlediv-"+a)).insertBefore(s+"-"+a))}),c(u).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&WPGlobusYoastSeo.init()),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},i=this,c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(e=jQuery,o=new wp.utils.WordCounter,n=a,WPGlobusCoreData.wordCounter[n]={},WPGlobusCoreData.wordCounter[n].counter=o,void e(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?i.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[n].content=e("#content_"+n),WPGlobusCoreData.wordCounter[n].count=e("#wp-word-count-"+n).find(".word-count-"+n),WPGlobusCoreData.wordCounter[n].prevCount=0,e(document).on("tinymce-editor-init",function(t,a){var e;-1!=a.id.indexOf("content_")&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[n].content.on("input keyup",_.debounce(o,1e3)),o(n)}));var e,o,n})),"undefined"!=typeof wpWordCount&&(n=0,t=WPGlobusCoreData.open_languages,l=this.$document,e={},t.shift(),c.each(WPGlobusCoreData.open_languages,function(t,a){e[a]=0}),o={settings:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,w:/\S\s+/g,c:/\S/g},block:e,wc:function(t,a,e){var o=this,n=0,i=a==WPGlobusCoreData.default_language?c(".word-count"):c(".word-count-"+a);void 0===e&&(e=wordCountL10n.type),"w"!==e&&"c"!==e&&(e="w"),o.block[a]||(o.block[a]=1,setTimeout(function(){t&&(t=(t=t.replace(o.settings.strip," ").replace(/&nbsp;|&#160;/gi," ")).replace(o.settings.clean,"")).replace(o.settings[e],function(){n++}),i.html(n.toString()),setTimeout(function(){o.block[a]=0},2e3)},1))}},l.bind("wpglobuscountwords",function(t,a,e){o.wc(a,e)}),c.each(t,function(t,e){var o=c("#content_"+e);l.triggerHandler("wpglobuscountwords",[o.val(),e]),o.keyup(function(t){var a=t.keyCode||t.charCode;return a==n||(13!=a&&8!=n&&46!=n||l.triggerHandler("wpglobuscountwords",[o.val(),e]),n=a),!0})}),c(document).triggerHandler("wpglobuscountwords",[c("#content").val(),WPGlobusCoreData.default_language])),c("body").on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:u}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).size())return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).size())return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist span").each(function(t,a){o=(o=c(a).text()).replace("X","").trim(" "),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))})},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
1
+ var WPGlobusCore,WPGlobusDialogApp;!function(i){var d=WPGlobusCore={strpos:function(t,a,e){var o=(t=""+t).indexOf(a,e);return 0<=o&&o},TextFilter:function(t,a,e){if(void 0===t||""===t)return t;var o,n,i=[],l=!1;a=""==a?"en":a,e=void 0===e||""==e?"RETURN_IN_DEFAULT_LANGUAGE":e,i[0]=[],i[0].start=WPGlobusCoreData.locale_tag_start.replace("%s",a),i[0].end=WPGlobusCoreData.locale_tag_end,i[1]=[],i[1].start="\x3c!--:"+a+"--\x3e",i[1].end="\x3c!--:--\x3e",i[2]=[],i[2].start="[:"+a+"]",i[2].end="[:";for(var s=0;s<3;s++)if(!1!==(o=d.strpos(t,i[s].start))){o+=i[s].start.length,t=!1===(n=d.strpos(t,i[s].end,o))?t.substr(o):t.substr(o,n-o),l=!0;break}return l||("RETURN_EMPTY"==e?a==WPGlobusCoreData.default_language&&!/(\{:|\[:|<!--:)[a-z]{2}/.test(t)||(t=""):a==WPGlobusCoreData.default_language?/(\{:|\[:|<!--:)[a-z]{2}/.test(t)&&(t=""):t=d.TextFilter(t,WPGlobusCoreData.default_language)),t},addLocaleMarks:function(t,a){return WPGlobusCoreData.locale_tag_start.replace("%s",a)+t+WPGlobusCoreData.locale_tag_end},getTranslations:function(e){var o,n={};return i.each(WPGlobusCoreData.enabled_languages,function(t,a){o=a==WPGlobusCoreData.default_language?"RETURN_IN_DEFAULT_LANGUAGE":"RETURN_EMPTY",n[a]=d.TextFilter(e,a,o)}),n},getString:function(t,a,e){if(void 0===t)return t;void 0===a&&(a=""),void 0===e&&(e=WPGlobusCoreData.language),(t=d.getTranslations(t))[e]=a;var o="";return i.each(t,function(t,a){""!=a&&t!=WPGlobusCoreData.default_language&&(o+=d.addLocaleMarks(a,t))}),""!=t[WPGlobusCoreData.default_language]&&(o=""==o?t[WPGlobusCoreData.default_language]:d.addLocaleMarks(t[WPGlobusCoreData.default_language],WPGlobusCoreData.default_language)+o),o}}}(jQuery),function(m){var v=WPGlobusDialogApp={option:{listenClass:".wpglobus_dialog_start",settingsClass:".wpglobus_dialog_settings",dialogTabs:"#wpglobus-dialog-tabs",dialogTitle:"",customData:null,callback:function(){}},form:void 0,element:void 0,element_by:"id",id:"",clone_id:"",wpglobus_id:"",type:"textarea",source:"",order:{},value:{},request:"core",attrs:{},dialogTitle:"",trClass:"wpglobus-translatable",startButton:['<span id="wpglobus-dialog-start-{{clone_id}}" ','style="{{style}}" ','data-type="control" data-dialog-title="{{title}}" ','data-source-type="" data-source-id="{{id}}" data-source-name="{{name}}" ','data-nodename="{{nodename}}"',"{{sbTitle}} ",'class="{{classes}}"></span>'].join(""),startButtonClass:"wpglobus_dialog_start wpglobus_dialog_icon",clicks:0,init:function(t){v.option=m.extend(v.option,t),m(v.option.dialogTabs).tabs(),v.dialogTitle=v.option.dialogTitle,this.attachListener(),null!=v.option.customData&&void 0!==v.option.customData.addElements&&m.each(v.option.customData.addElements,function(t,a){v.addElement(a)})},convertToId:function(t){return t=(t=t.replace(/\]/g,"")).replace(/\[/g,"-")},addElement:function(t){var a={id:null,dialogTitle:"",style:"",styleTextareaWrapper:"",sbTitle:"",onChangeClass:""};if("string"==typeof t)a.id=t;else{if("object"!=typeof t)return;a=m.extend(a,t)}var e,o,n,i,l,s,d,u=null,r=null,c=null,g=null,b=v.startButton,p="";v.element_by="id",null===(g=document.getElementById(a.id))?(v.element_by="name",g=document.getElementsByName(a.id)):p=(p=g.nodeName).toLowerCase(),0!=g.length&&(r=a.id,c="undefined"===(u="id"==v.element_by?m("#"+r):(p=(p=g[0].nodeName).toLowerCase(),m(p+'[name="'+r+'"]'))).attr("name")?r:u.attr("name"),v.clone_id=v.convertToId(r),-1==c.indexOf("wpglobus")&&-1==v.clone_id.indexOf("wpglobus")&&(0<m("#wpglobus-"+v.clone_id).length||0<m(p+'[name="wpglobus-'+c+'"]').length||(e=m(u.clone()),n=u.attr("style")||"",u.attr("style","display:none;"),e.attr("id","wpglobus-"+v.clone_id).attr("name","wpglobus-"+c),e.addClass(v.trClass),""!=a.onChangeClass&&e.addClass(a.onChangeClass),"id"==v.element_by?e.attr("data-source-id",r).attr("data-source-name","").attr("data-source-get-by",v.element_by):e.attr("data-source-id","").attr("data-source-name",c).attr("data-source-get-by",v.element_by),"textarea"==p?(o=WPGlobusCore.getTranslations(u.text())[WPGlobusCoreData.language],e.text(o),e.attr("data-nodename","textarea"),""==a.style?e.attr("style",n+";width:95%;float:left;"):e.attr("style",n+";"+a.style)):(o=WPGlobusCore.getTranslations(u.val())[WPGlobusCoreData.language],e.attr("value",o),e.attr("data-nodename","input"),""!=a.style&&e.attr("style",n+";"+a.style)),b=b.replace(/{{clone_id}}/g,v.clone_id),b="id"==v.element_by?(b=(b=b.replace(/{{id}}/g,v.clone_id)).replace(/{{name}}/g,"")).replace(/{{nodename}}/g,""):(b=(b=b.replace(/{{id}}/g,"")).replace(/{{name}}/g,c)).replace(/{{nodename}}/g,p),b="textarea"==p?b.replace("{{style}}","float:left;margin-top:0;"):b.replace("{{style}}",""),i="textarea"==p?v.startButtonClass+" wpglobus-textarea wpglobus-textarea-"+v.clone_id:v.startButtonClass,b=b.replace("{{classes}}",i),b=""==a.dialogTitle?b.replace("{{title}}",v.dialogTitle):b.replace("{{title}}",a.dialogTitle),b=""==a.sbTitle?b.replace("{{sbTitle}}",a.sbTitle):b.replace("{{sbTitle}}",'title="'+a.sbTitle+'"'),m(b).insertAfter(u),m(e).insertAfter(u),"textarea"==p&&(m("#wpglobus-"+v.clone_id).addClass("wpglobus-textarea-"+v.clone_id),m(".wpglobus-textarea-"+v.clone_id).wrapAll('<div class="wpglobus-textarea-wrapper" style="'+a.styleTextareaWrapper+'"></div>')),s=!1,""==a.onChangeClass?l="#wpglobus-"+v.clone_id:(l="."+a.onChangeClass,void 0===(d=m._data(m(document)[0],"events"))?s=!0:void 0!==d.change&&m.each(d.change,function(t,a){if(a.selector==l)return!(s=!0)})),s||m(document).on("change",l,function(){var t=m(this),a=""==(a=t.data("source-id"))?t.data("nodename")+'[name="'+t.data("source-name")+'"]':"#"+a;m(a).val(WPGlobusCore.getString(m(a).val(),t.val()))}))))},saveDialog:function(){var e,o,n,i="",l="",s="";m(".wpglobus_dialog_textarea").each(function(t,a){e=m(a),o=e.val(),(n=e.data("language"))==WPGlobusAdmin.data.language&&(s=o),""!=o&&(i+=WPGlobusCore.addLocaleMarks(o,n),n==WPGlobusCoreData.default_language&&(l=o))}),i=i.length==l.length+8?l:i,m(v.id).val(i),i=""==s?l:s,m(v.wpglobus_id).val(i)},dialog:m("#wpglobus-dialog-wrapper").dialog({autoOpen:!1,width:650,modal:!0,dialogClass:"wpglobus-dialog",buttons:[{text:"Save",class:"wpglobus-button-save",click:function(){v.saveDialog(),v.dialog.dialog("close")}},{text:"Cancel",class:"wpglobus-button-cancel",click:function(){v.dialog.dialog("close")}}],open:function(){var t=v.dialogTitle;void 0!==v.attrs.maxlength&&(m(".wpglobus_dialog_textarea").attr("maxlength",v.attrs.maxlength),t+=" | maxlength="+v.attrs.maxlength),m(".wpglobus-dialog .ui-dialog-title").text(t)},close:function(){v.form[0].reset()}}),attachListener:function(){m(document).on("click",v.option.settingsClass,function(){m(".wpglobus_dialog_options_wrapper").hasClass("hidden")?m(".wpglobus_dialog_options_wrapper").removeClass("hidden"):m(".wpglobus_dialog_options_wrapper").addClass("hidden")}),m(document).on("click",".wpglobus_dialog_option",function(t){var a=m(this),e=a.data("object");v.order.action="save_post_meta_settings",v.order.post_type=WPGlobusAdmin.data.post_type,v.order.checked=a.prop("checked"),v.order.id=a.attr("id"),v.order.meta_key=a.data("meta-key"),v.ajax(v.order).done(function(t){"ok"==t.result&&("true"==t.checked?m(e).removeClass("wpglobus_dialog_start_hidden"):m(e).addClass("wpglobus_dialog_start_hidden"))}).fail(function(t){}).always(function(t,a){})}),m(document).on("click",v.option.listenClass,function(a){v.element=m(this),v.id=v.element.data("source-id"),""==v.id?(v.id=v.element.data("nodename")+'[name="'+v.element.data("source-name")+'"]',v.wpglobus_id="#wpglobus-"+v.convertToId(v.element.data("source-name"))):(v.wpglobus_id="#wpglobus-"+v.id,v.id="#"+v.id),v.clicks++,1==v.clicks&&setTimeout(function(){var t;1==v.clicks?v.onClick(a):(t=m(v.id)).hasClass("hidden")?t.removeClass("hidden").attr("style","display:block;"):t.addClass("hidden").attr("style","display:none;"),v.clicks=0},200)}),v.form=v.dialog.find("form#wpglobus-dialog-form").on("submit",function(t){t.preventDefault(),v.saveDialog()})},ajax:function(t){return m.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json",async:!1})},onClick:function(t){void 0===v.element.data("dialog-title")||""==v.element.data("dialog-title")?v.dialogTitle=v.option.dialogTitle:v.dialogTitle=v.element.data("dialog-title"),void 0!==v.id&&(v.attrs.maxlength=m(v.id).attr("maxlength")),v.source=v.element.data("source-value"),void 0===v.source&&(v.source=m(v.id).val(),"ajax"==v.request||(v.value=WPGlobusCore.getTranslations(v.source))),m.each(v.value,function(t,a){m("#wpglobus-dialog-"+t).val(a)}),v.dialog.dialog("open")}}}(jQuery),jQuery(document).ready(function(){"use strict";var t,c;window.WPGlobusAdminApp=(t=window.WPGlobusAdminApp||{},c=jQuery,t.App=function(t){void 0===window.WPGlobusAdminApp&&(this.config={debug:!1,version:WPGlobusAdmin.version},this.status="ok","undefined"===WPGlobusAdmin?(this.status="error",this.config.debug&&console.log("Error options loading")):this.config.debug&&console.dir(WPGlobusAdmin),this.config.disable_first_language=['<div id="disable_first_language" style="display:block;" class="redux-field-errors notice-red">',"<strong>","<span>&nbsp;</span>",WPGlobusAdmin.i18n.cannot_disable_language,"</strong>","</div>"].join(""),c.extend(this.config,t),"ok"===this.status&&this.init())},t.App.prototype={$document:c(document),init:function(){WPGlobusCoreData.multisite=this.parseBool(WPGlobusCoreData.multisite),this.admin_init(),c("#content").addClass("wpglobus-editor").attr("data-language",WPGlobusAdmin.data.default_language),c("textarea[id^=content_]").each(function(t,a){var e=c(a).attr("id").replace("content_","");c(a).attr("data-language",e)}),"post.php"===WPGlobusAdmin.page?(this.post_edit(),this.set_dialog(),"undefined"!=typeof WPGlobusAioseop&&WPGlobusAioseop.init()):"menu-edit"===WPGlobusAdmin.page?this.nav_menus():"taxonomy-edit"===WPGlobusAdmin.page?WPGlobusAdmin.data.tag_id&&this.taxonomy_edit():"taxonomy-quick-edit"===WPGlobusAdmin.page?this.quickEdit("taxonomy"):"edit.php"===WPGlobusAdmin.page?this.quickEdit("post"):"options-general.php"==WPGlobusAdmin.page?this.options_general():"widgets.php"==WPGlobusAdmin.page?(WPGlobusWidgets.init(),WPGlobusDialogApp.init({dialogTitle:"Edit text"})):"wpglobus_options"==WPGlobusAdmin.page?this.start():"wpglobusAdminCentral"==WPGlobusAdmin.page?this.adminCentral():WPGlobusDialogApp.init({customData:WPGlobusCoreData.page_custom_data})},parseBool:function(t){return!/^(false|0)$/i.test(t)&&!!t},getCurrentTab:function(){return c(".wpglobus-post-body-tabs-list .ui-tabs-active").data("language")},admin_init:function(){var t,a=c(".wpglobus-addons-group a").data("key");void 0!==a&&(0<=window.location.search.indexOf("page=wpglobus_options&tab="+a)?WPGlobusCoreData.multisite?window.location=WPGlobusCoreData.pluginInstallLocation.multisite:window.location=WPGlobusCoreData.pluginInstallLocation.single:(t=c("#toplevel_page_wpglobus_options li").eq(a+1),WPGlobusCoreData.multisite?c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.multisite).attr("onclick","window.location=jQuery(this).attr('href');return false;"):c(t).find("a").attr("href",WPGlobusCoreData.pluginInstallLocation.single).attr("onclick","window.location=jQuery(this).attr('href');return false;")))},options_general:function(){var o=c("#blogname"),t=c("body");o.addClass("hidden"),c("#wpglobus-blogname").insertAfter(o).removeClass("hidden"),t.on("blur",".wpglobus-blogname",function(){c(".wpglobus-blogname").each(function(t,a){var e=c(a);o.val(WPGlobusCore.getString(o.val(),e.val(),e.data("language")))})});var n=c("#blogdescription");n.addClass("hidden"),c("#wpglobus-blogdescription").insertAfter(n).removeClass("hidden"),t.on("blur",".wpglobus-blogdesc",function(){c(".wpglobus-blogdesc").each(function(t,a){var e=c(a);n.val(WPGlobusCore.getString(n.val(),e.val(),e.data("language")))})})},quickEdit:function(n){var o,l,i,t;void 0!==WPGlobusAdmin.data.has_items&&WPGlobusAdmin.data.has_items&&(o="",l=0,c(document).ajaxComplete(function(t,a,e){void 0!==e.data&&""!=o&&0<=e.data.indexOf("action=inline-save-tax&")&&(c("#"+o+" a.row-title").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].name),c("#"+o+" .description").text(WPGlobusAdmin.qedit_titles[l][WPGlobusAdmin.data.language].description))}),i={},c("#the-list tr").each(function(t,a){var e=c(a),o="post"===n?"post-":"tag-";l=e.attr("id").replace(o,""),i[l]={},"post"===n?i[l].source=e.find(".post_title").text():"taxonomy"===n&&(i[l].source=c("#inline_"+l+" .name").text())}),(t={action:"get_titles"}).type=n,t.taxonomy=void 0!==WPGlobusAdmin.data.taxonomy&&WPGlobusAdmin.data.taxonomy,t.title=i,c.ajax({type:"POST",url:WPGlobusAdmin.ajaxurl,data:{action:WPGlobusAdmin.process_ajax,order:t},dataType:"json"}).done(function(t){WPGlobusAdmin.qedit_titles=t.qedit_titles,c.each(t.bulkedit_post_titles,function(t,a){c("#inline_"+t+" .post_title").text(a[WPGlobusAdmin.data.language].name)})}).fail(function(t){}).always(function(t,a){}),c("body").on("change",".wpglobus-quick-edit-title",function(){var n="",i=[];c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");""!==e.val()&&(n=WPGlobusCore.getString(n,e.val(),o)),WPGlobusAdmin.qedit_titles[l][o].name=e.val(),i[t]=o});var t=c(document).triggerHandler("wpglobus_get_translations",{string:n,lang:i,id:l});void 0!==t&&(n=t),c("input.ptitle").eq(0).attr("value",n),WPGlobusAdmin.qedit_titles[l].source=n}),void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){WPGlobusAdmin.data.value[a].post_id={}}),c("button.save, input#bulk_edit").on("mouseenter",function(t){void 0!==WPGlobusAdmin.data.tags&&("bulk_edit"==t.currentTarget.id?c("input#bulk_edit").unbind("click"):c("button.save").unbind("click"),c("button.save, input#bulk_edit").on("click",function(a){console.log("Start Updating");var t=c.when(),e=(c(this),c.Deferred());e.resolve(function(t){t.next(".spinner").css({visibility:"visible"}),"bulk_edit"!=a.currentTarget.id&&c.ajaxSetup({async:!1});var o,n,i,l=t.parents("tr"),s=l.attr("id").replace("edit-","");c.each(WPGlobusAdmin.data.tags,function(t,a){if(0==(o=l.find("textarea[name='"+WPGlobusAdmin.data.names[a]+"']")).length)return!0;WPGlobusAdmin.data.value[a].post_id[s]=o.val(),n=WPGlobusAdmin.data.value[a].post_id[s].split(","),i=[];for(var e=0;e<n.length;e++)n[e]=n[e].trim(" "),""!=n[e]&&(void 0===WPGlobusAdmin.data.tag[a][n[e]]?i[e]=n[e]:i[e]=WPGlobusAdmin.data.tag[a][n[e]]);o.val(i.join(", "))})}(c(this))),t=t.then(function(){return c.when(e.done())}).then(function(){"bulk_edit"!=a.currentTarget.id&&setTimeout(function(){inlineEditPost.save(l),c.ajaxSetup({async:!0})},50)})}))}),c("#the-list").on("click","a.editinline",function(){var t=c(this);if(o=t.parents("tr").attr("id"),"post"===n)l=o.replace("post-","");else{if("taxonomy"!==n)return;l=o.replace("tag-","")}"post"===n&&void 0!==WPGlobusAdmin.data.tags&&c.each(WPGlobusAdmin.data.tags,function(t,a){var e,o;""==WPGlobusAdmin.data.value[a]||void 0!==(e=c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val())&&(o=e.split(","),c.each(o,function(t,a){e=e.replace(a,WPGlobusCore.TextFilter(a,WPGlobusCoreData.language))}),c("#edit-"+l+' textarea[name="'+WPGlobusAdmin.data.names[a]+'"]').val(e))});var a=c("#edit-"+l+" input.ptitle").eq(0),e=a.parents("label");a.val(WPGlobusAdmin.qedit_titles[l].source),a.addClass("hidden"),c(WPGlobusAdmin.data.template).insertAfter(e),void 0===WPGlobusAdmin.qedit_titles[l]&&(WPGlobusAdmin.qedit_titles[l]={},WPGlobusAdmin.qedit_titles[l].source=c("#"+o+" .name a.row-title").text(),c(WPGlobusAdmin.data.enabled_languages).each(function(t,a){WPGlobusAdmin.qedit_titles[l][a]={},a==WPGlobusAdmin.data.default_language?WPGlobusAdmin.qedit_titles[l][a].name=WPGlobusAdmin.qedit_titles[l].source:WPGlobusAdmin.qedit_titles[l][a].name="",WPGlobusAdmin.qedit_titles[l][a].description=""})),c(".wpglobus-quick-edit-title").each(function(t,a){var e=c(a),o=e.data("language");e.attr("id",o+l),void 0!==WPGlobusAdmin.qedit_titles[l][o]&&(WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\'/g,"'"),WPGlobusAdmin.qedit_titles[l][o].name=WPGlobusAdmin.qedit_titles[l][o].name.replace(/\\\"/g,'"'),e.attr("value",WPGlobusAdmin.qedit_titles[l][o].name),WPGlobusAdmin.qedit_titles[l].source=WPGlobusCore.getString(WPGlobusAdmin.qedit_titles[l].source,WPGlobusAdmin.qedit_titles[l][o].name,o))}),c("input.ptitle").eq(0).attr("value",WPGlobusAdmin.qedit_titles[l].source)}))},taxonomy_edit:function(){var a=[];a[0]="name",a[1]="description";c.each(WPGlobusCoreData.enabled_languages,function(t,u){c.each(a,function(t,a){var e,o,n,i,l,s,d;o=u,n=c("#"+(e=a)),i=n.clone(),l=n.attr("name"),s="wpglobus-element wpglobus-element_"+e+" wpglobus-element_"+o+" wpglobus-translatable",d=(d=document.getElementById(e)).nodeName,c(i).attr("id",e+"_"+o),c(i).attr("name",l+"_"+o),o!==WPGlobusCoreData.default_language&&(s+=" hidden"),c(i).attr("class",s),c(i).attr("data-save-to",e),c(i).attr("data-language",o),"INPUT"==d?c(i).attr("value",c("#wpglobus-link-tab-"+o).data(e)):"TEXTAREA"==d&&c(i).text(c("#wpglobus-link-tab-"+o).data(e)),n.addClass("hidden"),0==c(".wpglobus-element_"+e).size()?c(i).insertAfter(n):c(i).insertAfter(c(".wpglobus-element_"+e).last())})}),c(".wpglobus-taxonomy-tabs").insertAfter("#ajax-response"),c(".wrap").tabs(),c("body").on("click",".wpglobus-taxonomy-tabs li",function(t){var a=c(this).data("language");c(".wpglobus-element").addClass("hidden"),c(".wpglobus-element_"+a).removeClass("hidden")}),c(".wpglobus-element").on("change",function(){var n=c(this).data("save-to"),i="";c(".wpglobus-element").each(function(t,a){var e=c(a),o=e.val();e.data("save-to")==n&&""!==o&&(i+=WPGlobusCore.addLocaleMarks(o,e.data("language")))}),c("#"+n).val(i)})},nav_menus:function(){function e(){n!==c(i).size()&&(clearInterval(o),c(i).each(function(t,a){var l,e=c(a);e.hasClass("wpglobus-menu-item")||(l=c(a).attr("id"),c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(t,a){var e,o,n=c("#"+l+" "+a),i=c(n);i.hasClass("wpglobus-hidden")||(i.addClass("wpglobus-hidden"),i.css("display","none"),e=i.parent("label"),o=i.parents("p"),c(o).css("height","80px"),c(e).append('<div style="color:#f00;">'+WPGlobusAdmin.i18n.save_nav_menu+"</div>"))}),e.addClass("wpglobus-menu-item"))}))}var o,n,i="#menu-to-edit .menu-item";c.ajaxSetup({beforeSend:function(t,a){void 0!==a.data&&0<=a.data.indexOf("action=add-menu-item")&&(n=c(i).size(),o=setInterval(e,500))}}),c(i).each(function(t,a){var e=c(a).attr("id"),u=e.replace("menu-item-","");c.each(["input.edit-menu-item-title","input.edit-menu-item-attr-title"],function(n,i){var l=c("#"+e+" "+i);l.val()!=WPGlobusAdmin.data.items[u][i].source&&l.val(WPGlobusAdmin.data.items[u][i].source);var s=c("#"+e+" "+i).parents("p"),d=0;c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=l.clone();e.attr("id",l.attr("id")+"-"+a),e.attr("name",l.attr("id")+"-"+a),e.attr("data-language",a),e.attr("data-item-id",u),e.attr("placeholder",WPGlobusAdmin.data.en_language_name[a]);var o=WPGlobusAdmin.data.items[u][a][i].class;0===n&&a===WPGlobusAdmin.data.default_language?e.attr("class",o+" edit-menu-item-title"):e.attr("class",o),""!=WPGlobusAdmin.data.items[u][a][i].caption?e.attr("value",WPGlobusAdmin.data.items[u][a][i].caption):e.attr("value",""),e.css("margin-bottom","0.6em"),c(s).append(e),d=t}),d=40*(d+1),l.css("display","none").attr("class","").addClass("widefat wpglobus-hidden"),c(s).css("height",d+"px").addClass("wpglobus-menu-item-box")}),c(a).addClass("wpglobus-menu-item")}),c(".menus-move-left, .menus-move-right").each(function(t,a){var e,o=c(a),n=(o.parents("li").attr("id").replace("menu-item-",""),o.attr("title"));void 0!==n&&c.each(WPGlobusAdmin.data.post_titles,function(t,a){0<=n.indexOf(t)&&(e=n.replace(t,a),o.attr("title",e),o.text(e))})}),c(".edit-menu-item-title").trigger("change"),wpNavMenu.refreshAdvancedAccessibility(),wpNavMenu.menusChanged=!1,c(".wpglobus-menu-item").on("change",function(){var t,a,e=c(this),o=e.data("item-id");e.hasClass("wpglobus-item-title")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-title"}))&&(t=a),c("input#edit-menu-item-title-"+o).val(t)),e.hasClass("wpglobus-item-attr")&&(t=WPGlobusCore.getString(c("input#edit-menu-item-attr-title-"+o).val(),e.val(),e.data("language")),void 0!==(a=c(document).triggerHandler("wpglobus_get_menu_translations",{string:t,lang:WPGlobusCoreData.open_languages,id:o,type:"input.edit-menu-item-attr-title"}))&&(t=a),c("input#edit-menu-item-attr-title-"+o).val(t))})},post_edit:function(){c(document).on("heartbeat-send",function(t,o){void 0!==o.wp_autosave&&(o.wpglobus_heartbeat="wpglobus",c.each(WPGlobusAdmin.data.open_languages,function(t,a){var e=c("#title_"+a).val()||"";""!=(e=c.trim(e))&&(o.wp_autosave["post_title_"+a]=e),e=c("#content_"+a).val()||"",""!=(e=c.trim(e))&&(o.wp_autosave["content_"+a]=e)}))});var a,i,n,t,l,e,o,s="#postdivrich",d=!0,u="#post-body-content";!1===WPGlobusAdmin.data.support.editor&&(d=!(s="#titlediv")),!1===WPGlobusAdmin.data.support.title&&(d=!1),c(u).prepend(c(".wpglobus-post-body-tabs-list")),c.each(WPGlobusAdmin.tabs,function(t,a){"default"===a?(c(s).wrap('<div id="tab-default"></div>'),d&&c(c("#titlediv")).insertBefore(s)):(c(s+"-"+a).wrap('<div id="tab-'+a+'"></div>'),d&&c(c("#titlediv-"+a)).insertBefore(s+"-"+a))}),c(u).addClass("wpglobus-post-body-tabs").tabs({beforeActivate:function(t,a){var e=a.oldTab[0].id.replace("link-tab-",""),o=a.newTab[0].id.replace("link-tab-","");"default"==e&&(e=WPGlobusCoreData.default_language),"default"==o&&(o=WPGlobusCoreData.default_language);var n=c(document).triggerHandler("wpglobus_post_body_tabs",[e,o]);return!(!n&&void 0!==n)}}),c("#title").val(WPGlobusAdmin.title),c("#content").text(WPGlobusAdmin.content),"undefined"!=typeof WPGlobusVendor&&WPGlobusVendor.vendor.WPSEO&&("undefined"!=typeof wpglobus_wpseo?wpglobus_wpseo():"undefined"!=typeof WPGlobusYoastSeo&&WPGlobusYoastSeo.init()),WPGlobusAdmin.data.modify_excerpt&&((a=c("#excerpt")).addClass("hidden").css({display:"none"}),c(WPGlobusAdmin.data.template).insertAfter(a),c("body").on("change",".wpglobus-excerpt",function(){var t=c(this);a.val(WPGlobusCore.getString(a.val(),t.val(),t.data("language")))})),void 0!==wp.utils&&void 0!==wp.utils.WordCounter&&(WPGlobusCoreData.wordCounter={},i=this,c.each(WPGlobusCoreData.enabled_languages,function(t,a){return a==WPGlobusCoreData.default_language||(e=jQuery,o=new wp.utils.WordCounter,n=a,WPGlobusCoreData.wordCounter[n]={},WPGlobusCoreData.wordCounter[n].counter=o,void e(function(){function o(t){var a,e;"object"==typeof t&&(t="tinymce"==t?i.getCurrentTab():t.target.id.replace("content_","")),void 0!==WPGlobusCoreData.wordCounter[t]&&(a=!WPGlobusCoreData.wordCounter[t].contentEditor||WPGlobusCoreData.wordCounter[t].contentEditor.isHidden()?WPGlobusCoreData.wordCounter[t].content.val():WPGlobusCoreData.wordCounter[t].contentEditor.getContent({format:"raw"}),(e=WPGlobusCoreData.wordCounter[t].counter.count(a))!==WPGlobusCoreData.wordCounter[t].prevCount&&WPGlobusCoreData.wordCounter[t].count.text(e),WPGlobusCoreData.wordCounter[t].prevCount=e)}WPGlobusCoreData.wordCounter[n].content=e("#content_"+n),WPGlobusCoreData.wordCounter[n].count=e("#wp-word-count-"+n).find(".word-count-"+n),WPGlobusCoreData.wordCounter[n].prevCount=0,e(document).on("tinymce-editor-init",function(t,a){var e;-1!=a.id.indexOf("content_")&&(e=a.id.replace("content_",""),(WPGlobusCoreData.wordCounter[e].contentEditor=a).on("nodechange keyup",_.debounce(o,1e3)))}),WPGlobusCoreData.wordCounter[n].content.on("input keyup",_.debounce(o,1e3)),o(n)}));var e,o,n})),"undefined"!=typeof wpWordCount&&(n=0,t=WPGlobusCoreData.open_languages,l=this.$document,e={},t.shift(),c.each(WPGlobusCoreData.open_languages,function(t,a){e[a]=0}),o={settings:{strip:/<[a-zA-Z\/][^<>]*>/g,clean:/[0-9.(),;:!?%#$¿'"_+=\\/-]+/g,w:/\S\s+/g,c:/\S/g},block:e,wc:function(t,a,e){var o=this,n=0,i=a==WPGlobusCoreData.default_language?c(".word-count"):c(".word-count-"+a);void 0===e&&(e=wordCountL10n.type),"w"!==e&&"c"!==e&&(e="w"),o.block[a]||(o.block[a]=1,setTimeout(function(){t&&(t=(t=t.replace(o.settings.strip," ").replace(/&nbsp;|&#160;/gi," ")).replace(o.settings.clean,"")).replace(o.settings[e],function(){n++}),i.html(n.toString()),setTimeout(function(){o.block[a]=0},2e3)},1))}},l.bind("wpglobuscountwords",function(t,a,e){o.wc(a,e)}),c.each(t,function(t,e){var o=c("#content_"+e);l.triggerHandler("wpglobuscountwords",[o.val(),e]),o.keyup(function(t){var a=t.keyCode||t.charCode;return a==n||(13!=a&&8!=n&&46!=n||l.triggerHandler("wpglobuscountwords",[o.val(),e]),n=a),!0})}),c(document).triggerHandler("wpglobuscountwords",[c("#content").val(),WPGlobusCoreData.default_language])),c("body").on("click","#publish, #save-post",function(){var e,t,o,n;1<WPGlobusAdmin.data.open_languages.length&&(c(document).triggerHandler("wpglobus_before_save_post",{content_tabs_id:u}),e=c("#title").val(),n=o="",0==e.length&&(t=WPGlobusAdmin.data.open_languages.indexOf(WPGlobusAdmin.data.default_language),WPGlobusAdmin.data.open_languages.splice(t,1),c(WPGlobusAdmin.data.open_languages).each(function(t,a){n=0==t?"":"-",0<(e=c("#title_"+a).val()).length&&(0==o.length&&(n=""),o=o+n+e)})),0<o.length&&c("#title").val(o)),void 0===WPGlobusAdmin.data.tagsdiv||WPGlobusAdmin.data.tagsdiv.length<1||c(WPGlobusAdmin.data.tagsdiv).each(function(t,a){if(0==c("#"+a).size())return!0;var e=a.replace("tagsdiv-","");if("undefined"===e)return!0;if(0==c("#tax-input-"+e).size())return!0;var o,n=[];c("#tagsdiv-"+e+" .tagchecklist span").each(function(t,a){o=(o=c(a).text()).replace("X","").trim(" "),void 0===WPGlobusAdmin.data.tag[e][o]?n[t]=o:n[t]=WPGlobusAdmin.data.tag[e][o]}),c("#tax-input-"+e).val(n.join(", "))})}),c(".ui-state-default").on("click",function(){"link-tab-default"===c(this).attr("id")&&(c(window).scrollTop(c(window).scrollTop()+1),c(window).scrollTop(c(window).scrollTop()-1))})},adminCentral:function(){c(".wpglobus-admin-central-tab").css({display:"none"}),1<c(".nav-tab-active").length&&c(".wpglobus-about-wrap .nav-tab-wrapper a").removeClass("nav-tab-active");var e=!0;0==location.hash.indexOf("#")&&c(".wpglobus-about-wrap .nav-tab-wrapper a").each(function(t,a){c(a).attr("href")==location.hash&&(e=!1,c(a).addClass("nav-tab-active"))}),e&&c(".wpglobus-about-wrap .nav-tab-wrapper a").eq(0).addClass("nav-tab-active");var t=c(".wpglobus-about-wrap .nav-tab-active").data("tab-id");""!=t&&c("#"+t).css({display:"block"}),c(document).on("click",".wpglobus-about-wrap .nav-tab",function(t){var a=c(this);a.hasClass("nav-tab-active")||(c(".wpglobus-admin-central-tab").css({display:"none"}),c(".wpglobus-about-wrap .nav-tab").removeClass("nav-tab-active"),a.addClass("nav-tab-active"),""!=a.data("tab-id")&&c("#"+a.data("tab-id")).css({display:"block"}))})},start:function(){var a=this;c("#wpglobus_flags").select2({formatResult:this.format,formatSelection:this.format,minimumResultsForSearch:-1,escapeMarkup:function(t){return t}}),c("body").on("click","#enabled_languages-list li:first input",function(t){return t.preventDefault(),c(".redux-save-warn").css({display:"none"}),c("#enabled_languages-list").find("li:first > input").val("1"),0===c("#disable_first_language").length&&c(a.config.disable_first_language).insertAfter("#info_bar"),!1})},format:function(t){return'<img class="wpglobus_flag" src="'+WPGlobusAdmin.flag_url+t.text+'"/>&nbsp;&nbsp;'+t.text},set_dialog:function(){var o,e,n;void 0!==WPGlobusAdmin.data.customFieldsEnabled&&(WPGlobusAdmin.data.customFieldsEnabled=this.parseBool(WPGlobusAdmin.data.customFieldsEnabled),!WPGlobusAdmin.data.customFieldsEnabled)||(e=!1,(n=function(t){var s,d,u="wpglobus_dialog_start wpglobus_dialog_icon",r=['<div class="wpglobus_dialog_options_wrapper hidden">','<input style="width:initial;" id="wpglobus-cb-{{id}}" data-object="#wpglobus-dialog-start-{{id}}" data-meta-key="{{meta-key}}" class="wpglobus_dialog_option wpglobus_dialog_cb" type="checkbox" {{checked}} />',"</div>"].join(""),a=void 0===t?"#the-list tr":"#the-list tr#"+t;c(a).each(function(){var t,a,e,o=c(this),n=o.attr("id"),i=o.find("textarea"),l=u;if(void 0===(s=i.attr("id")))return!0;e=c("#"+n+"-key").val(),t=c("#"+s).clone(),c(i).addClass("wpglobus-dialog-field-source hidden"),a=i.attr("name"),c(t).attr("id","wpglobus-"+s),c(t).attr("name","wpglobus-"+a),c(t).attr("data-source-id",s),c(t).attr("class","wpglobus-dialog-field"),c(t).val(WPGlobusCore.TextFilter(c(i).val(),WPGlobusCoreData.language)),c(t).insertAfter(i),d=(d=r.replace(/{{id}}/g,s)).replace(/{{meta-key}}/g,e),void 0===WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type]?d=d.replace(/{{checked}}/,"checked"):l=void 0!==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]&&"false"==WPGlobusAdmin.data.post_meta_settings[WPGlobusAdmin.data.post_type][e]?(d=d.replace(/{{checked}}/,""),u+" wpglobus_dialog_start_hidden"):(d=d.replace(/{{checked}}/,"checked"),u),o.append('<td style="width:20px;"><div id="wpglobus-dialog-start-'+s+'" data-type="control" data-source-type="textarea" data-source-id="'+s+'" class="'+l+'"></div>'+d+"</td>")}),!e&&0<c("#list-table .wpglobus_dialog_start").length&&(c("#list-table thead tr").append('<th class="wpglobus-control-head"><div class="wpglobus_dialog_settings wpglobus_dialog_icon"></div></th>'),e=!0)})(),c("body").on("change",".wpglobus-dialog-field",function(){var e,o,n=c(this),t="#"+n.data("source-id"),i="";e=c(t).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(e)?(c.each(WPGlobusCoreData.enabled_languages,function(t,a){""!=(o=a==WPGlobusCoreData.language?n.val():WPGlobusCore.TextFilter(e,a,"RETURN_EMPTY"))&&(i+=WPGlobusCore.addLocaleMarks(o,a))}),c(t).val(i)):c(t).val(n.val())}),c(document).ajaxSend(function(t,a,e){"add-meta"==e.action&&(o=e.element)}),c(document).ajaxComplete(function(t,a,e){"add-meta"==e.action&&void 0!==a.responseXML&&n("newmeta"==o?"meta-"+c(a.responseXML.documentElement.outerHTML).find("meta").attr("id"):o)}),WPGlobusDialogApp.init({dialogTitle:"Edit meta"}))}},new t.App,t)});
includes/js/wpglobus-options.js CHANGED
@@ -79,6 +79,20 @@ jQuery(document).ready(function ($) {
79
  $('#wpglobus-tab-link-'+api.currentTabID).addClass('wpglobus-tab-link-active');
80
 
81
  api.initLanguageTable();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  },
83
  initLanguageTable: function() {
84
  var $items = $('.wpglobus-the-language-item-installed');
@@ -116,7 +130,28 @@ jQuery(document).ready(function ($) {
116
  $('.wpglobus-tab-link').removeClass('wpglobus-tab-link-active');
117
  $('#wpglobus-tab-link-'+tab).addClass('wpglobus-tab-link-active');
118
  $('#wpglobus_options_current_tab').val(tab);
119
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
120
  },
121
  initSpecs: function() {
122
  $(document).on('dblclick', '#section-tab-customizer h2', function(ev){
79
  $('#wpglobus-tab-link-'+api.currentTabID).addClass('wpglobus-tab-link-active');
80
 
81
  api.initLanguageTable();
82
+
83
+ /**
84
+ * Fix no JS elements.
85
+ * @since 2.5.3
86
+ */
87
+ $('.wpglobus-options-wrap .no-inline-js').attr('onclick', 'return false;');
88
+
89
+ /**
90
+ * Display subsection if exists.
91
+ * @since 2.5.3
92
+ */
93
+ setTimeout(function(){
94
+ $('#section-tab-'+WPGlobusOptions.tab+' .wpglobus-options-menu .wpglobus-tab-link-subsection').eq(0).click();
95
+ }, 200);
96
  },
97
  initLanguageTable: function() {
98
  var $items = $('.wpglobus-the-language-item-installed');
130
  $('.wpglobus-tab-link').removeClass('wpglobus-tab-link-active');
131
  $('#wpglobus-tab-link-'+tab).addClass('wpglobus-tab-link-active');
132
  $('#wpglobus_options_current_tab').val(tab);
133
+
134
+ /**
135
+ * Display/Set active subsection.
136
+ * @since 2.5.3
137
+ */
138
+ if ( $('#section-tab-'+tab+' .wpglobus-tab-link-subsection.wpglobus-tab-link-active').length == 1 ) {
139
+ $('#section-tab-'+tab+' .wpglobus-tab-link-subsection.wpglobus-tab-link-active').click();
140
+ } else {
141
+ if ( $('#section-tab-'+tab+' .wpglobus-tab-link-subsection').length > 0 ) {
142
+ $('#section-tab-'+tab+' .wpglobus-tab-link-subsection').eq(0).click();
143
+ }
144
+ }
145
+ });
146
+ /* @since 2.5.3 */
147
+ $(document).on('click', '.wpglobus-tab-link-subsection', function(event){
148
+ var tab = $(this).data('tab');
149
+ $('.wpglobus-options-tab-subsection').css({'display':'none'});
150
+ $('#subsection-tab-'+tab).css({'display':'block'});
151
+
152
+ $('.wpglobus-tab-link-subsection').removeClass('wpglobus-tab-link-active');
153
+ $('#wpglobus-tab-link-subsection-'+tab).addClass('wpglobus-tab-link-active');
154
+ });
155
  },
156
  initSpecs: function() {
157
  $(document).on('dblclick', '#section-tab-customizer h2', function(ev){
includes/js/wpglobus-options.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(i){"use strict";var e;"undefined"!=typeof WPGlobusOptions&&(e={currentTabID:0,firstLanguageCb:null,init:function(){e.initTab(),e.checkHandlers(),e.addListeners(),e.initSpecs()},setFirstLanguageCb:function(){null!==e.firstLanguageCb&&e.firstLanguageCb.off("click"),i('#enabled_languages-list li input[type="checkbox"]').prop("disabled",!1);var a=i("#enabled_languages-list li").eq(0);e.firstLanguageCb=a.find('input[type="checkbox"]'),e.firstLanguageCb.prop("checked","checked"),e.firstLanguageCb.prop("disabled","disabled"),e.firstLanguageCb.css({visibility:"hidden"}),e.firstLanguageCb.on("click",function(a){return a.preventDefault(),!1})},handlerEnabled_languages:function(){i(".wpglobus-sortable").sortable({placeholder:"ui-state-highlight",update:function(a,t){i('#enabled_languages-list li input[type="checkbox"]').css({visibility:"visible"}),e.setFirstLanguageCb()}}),i(".wpglobus-sortable").disableSelection(),e.setFirstLanguageCb()},handlerLanguagesTable:function(){var e=i("#wpglobus-options-languagesTable").parents(".wpglobus-options-tab").data("tab");i("#wpglobus-options-languagesTable .manage-column.sortable a").each(function(a,t){var n=i(t).attr("href");-1!=n.indexOf("tab")?-1==n.indexOf("tab-from")&&(n=n.replace(/tab/,"tab-from"),n+="&tab="+e):n+="&tab="+e,i(t).attr("href",n)})},checkHandlers:function(){i(".wpglobus-options-field").each(function(a,t){if(void 0===i(t).data("js-handler"))return!0;var n=i(t).data("js-handler");"function"==typeof e[n]&&e[n]()})},initTab:function(){var a=i("#section-tab-"+WPGlobusOptions.tab);e.currentTabID=WPGlobusOptions.tab,0==a.length&&(e.currentTabID=WPGlobusOptions.defaultTab,a=i("#section-tab-"+e.currentTabID)),a.css({display:"block"}),i("#wpglobus-tab-link-"+e.currentTabID).addClass("wpglobus-tab-link-active"),e.initLanguageTable()},initLanguageTable:function(){var n,e,a=i(".wpglobus-the-language-item-installed");9<a.length||(n=[],a.each(function(a){var t=+i(this).data("order");n[t]=i(this)}),e=i("#wpglobus-options-languagesTable #the-list tr").eq(0),i.each(n,function(a,t){i(e).before(t)}))},addListeners:function(){i(document).on("click","input.wpglobus-enabled_languages",function(a){var t=i(this).prop("checked"),n=i(this).attr("rel");t?i("#"+n).val("1"):i("#"+n).val("")}),i(document).on("click",".wpglobus-tab-link",function(a){var t=i(this).data("tab");window.history.pushState("data","Title",WPGlobusOptions.newUrl.replace("{*}",t)),i(".wpglobus-options-tab").css({display:"none"}),i("#section-tab-"+t).css({display:"block"}),i(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),i("#wpglobus-tab-link-"+t).addClass("wpglobus-tab-link-active"),i("#wpglobus_options_current_tab").val(t)})},initSpecs:function(){i(document).on("dblclick","#section-tab-customizer h2",function(a){i(".wpglobus-theme-info-spec").removeClass("hidden")}),i(document).on("dblclick",".column-wpglobus_flag",function(a){location=location.href+"&flags"})}},(WPGlobusOptions=i.extend({},WPGlobusOptions,e)).init())});
1
+ jQuery(document).ready(function(i){"use strict";var e;"undefined"!=typeof WPGlobusOptions&&(e={currentTabID:0,firstLanguageCb:null,init:function(){e.initTab(),e.checkHandlers(),e.addListeners(),e.initSpecs()},setFirstLanguageCb:function(){null!==e.firstLanguageCb&&e.firstLanguageCb.off("click"),i('#enabled_languages-list li input[type="checkbox"]').prop("disabled",!1);var t=i("#enabled_languages-list li").eq(0);e.firstLanguageCb=t.find('input[type="checkbox"]'),e.firstLanguageCb.prop("checked","checked"),e.firstLanguageCb.prop("disabled","disabled"),e.firstLanguageCb.css({visibility:"hidden"}),e.firstLanguageCb.on("click",function(t){return t.preventDefault(),!1})},handlerEnabled_languages:function(){i(".wpglobus-sortable").sortable({placeholder:"ui-state-highlight",update:function(t,n){i('#enabled_languages-list li input[type="checkbox"]').css({visibility:"visible"}),e.setFirstLanguageCb()}}),i(".wpglobus-sortable").disableSelection(),e.setFirstLanguageCb()},handlerLanguagesTable:function(){var e=i("#wpglobus-options-languagesTable").parents(".wpglobus-options-tab").data("tab");i("#wpglobus-options-languagesTable .manage-column.sortable a").each(function(t,n){var a=i(n).attr("href");-1!=a.indexOf("tab")?-1==a.indexOf("tab-from")&&(a=a.replace(/tab/,"tab-from"),a+="&tab="+e):a+="&tab="+e,i(n).attr("href",a)})},checkHandlers:function(){i(".wpglobus-options-field").each(function(t,n){if(void 0===i(n).data("js-handler"))return!0;var a=i(n).data("js-handler");"function"==typeof e[a]&&e[a]()})},initTab:function(){var t=i("#section-tab-"+WPGlobusOptions.tab);e.currentTabID=WPGlobusOptions.tab,0==t.length&&(e.currentTabID=WPGlobusOptions.defaultTab,t=i("#section-tab-"+e.currentTabID)),t.css({display:"block"}),i("#wpglobus-tab-link-"+e.currentTabID).addClass("wpglobus-tab-link-active"),e.initLanguageTable(),i(".wpglobus-options-wrap .no-inline-js").attr("onclick","return false;"),setTimeout(function(){i("#section-tab-"+WPGlobusOptions.tab+" .wpglobus-options-menu .wpglobus-tab-link-subsection").eq(0).click()},200)},initLanguageTable:function(){var a,e,t=i(".wpglobus-the-language-item-installed");9<t.length||(a=[],t.each(function(t){var n=+i(this).data("order");a[n]=i(this)}),e=i("#wpglobus-options-languagesTable #the-list tr").eq(0),i.each(a,function(t,n){i(e).before(n)}))},addListeners:function(){i(document).on("click","input.wpglobus-enabled_languages",function(t){var n=i(this).prop("checked"),a=i(this).attr("rel");n?i("#"+a).val("1"):i("#"+a).val("")}),i(document).on("click",".wpglobus-tab-link",function(t){var n=i(this).data("tab");window.history.pushState("data","Title",WPGlobusOptions.newUrl.replace("{*}",n)),i(".wpglobus-options-tab").css({display:"none"}),i("#section-tab-"+n).css({display:"block"}),i(".wpglobus-tab-link").removeClass("wpglobus-tab-link-active"),i("#wpglobus-tab-link-"+n).addClass("wpglobus-tab-link-active"),i("#wpglobus_options_current_tab").val(n),1==i("#section-tab-"+n+" .wpglobus-tab-link-subsection.wpglobus-tab-link-active").length?i("#section-tab-"+n+" .wpglobus-tab-link-subsection.wpglobus-tab-link-active").click():0<i("#section-tab-"+n+" .wpglobus-tab-link-subsection").length&&i("#section-tab-"+n+" .wpglobus-tab-link-subsection").eq(0).click()}),i(document).on("click",".wpglobus-tab-link-subsection",function(t){var n=i(this).data("tab");i(".wpglobus-options-tab-subsection").css({display:"none"}),i("#subsection-tab-"+n).css({display:"block"}),i(".wpglobus-tab-link-subsection").removeClass("wpglobus-tab-link-active"),i("#wpglobus-tab-link-subsection-"+n).addClass("wpglobus-tab-link-active")})},initSpecs:function(){i(document).on("dblclick","#section-tab-customizer h2",function(t){i(".wpglobus-theme-info-spec").removeClass("hidden")}),i(document).on("dblclick",".column-wpglobus_flag",function(t){location=location.href+"&flags"})}},(WPGlobusOptions=i.extend({},WPGlobusOptions,e)).init())});
languages/wpglobus-ar.po CHANGED
@@ -305,7 +305,7 @@ msgstr ""
305
 
306
  #: includes/admin/class-wpglobus-customize-options.php:553,
307
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
308
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
309
  msgid "WPGlobus"
310
  msgstr "WPGlobus"
311
 
@@ -831,7 +831,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
831
  msgstr ""
832
 
833
  #: includes/builders/class-wpglobus-builder.php:278,
834
- #: includes/class-wpglobus.php:3570
835
  msgid "Save draft before using extra language."
836
  msgstr ""
837
 
@@ -846,22 +846,22 @@ msgstr ""
846
  #. translators: ON/OFF status of WPGlobus on the edit pages.
847
  #. translators: ON/OFF status of WPGlobus on the edit pages.
848
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
849
- #: includes/class-wpglobus.php:1256
850
  msgid "ON"
851
  msgstr ""
852
 
853
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
854
- #: includes/class-wpglobus.php:1257
855
  msgid "Turn off"
856
  msgstr ""
857
 
858
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
859
- #: includes/class-wpglobus.php:1251
860
  msgid "OFF"
861
  msgstr ""
862
 
863
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
864
- #: includes/class-wpglobus.php:1252
865
  msgid "Turn on"
866
  msgstr ""
867
 
@@ -877,7 +877,7 @@ msgstr ""
877
  msgid "current"
878
  msgstr ""
879
 
880
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
881
  msgid ""
882
  "WPGlobus provides multilingual support for Elementor only when the option "
883
  "%1$s%2$s%3$s is set to %4$s."
@@ -953,23 +953,23 @@ msgstr ""
953
  msgid "Selector type"
954
  msgstr ""
955
 
956
- #: includes/class-wpglobus.php:1440
957
  msgid "You cannot disable the main language."
958
  msgstr ""
959
 
960
- #: includes/class-wpglobus.php:1665
961
  msgid "Need a multilingual slug?"
962
  msgstr ""
963
 
964
- #: includes/class-wpglobus.php:1648
965
  msgid "*) Available after the menu is saved."
966
  msgstr ""
967
 
968
- #: includes/class-wpglobus.php:4018
969
  msgid "You must enable Pretty Permalinks to use WPGlobus."
970
  msgstr ""
971
 
972
- #: includes/class-wpglobus.php:4020
973
  msgid ""
974
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
975
  "default option."
305
 
306
  #: includes/admin/class-wpglobus-customize-options.php:553,
307
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
308
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
309
  msgid "WPGlobus"
310
  msgstr "WPGlobus"
311
 
831
  msgstr ""
832
 
833
  #: includes/builders/class-wpglobus-builder.php:278,
834
+ #: includes/class-wpglobus.php:3577
835
  msgid "Save draft before using extra language."
836
  msgstr ""
837
 
846
  #. translators: ON/OFF status of WPGlobus on the edit pages.
847
  #. translators: ON/OFF status of WPGlobus on the edit pages.
848
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
849
+ #: includes/class-wpglobus.php:1263
850
  msgid "ON"
851
  msgstr ""
852
 
853
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
854
+ #: includes/class-wpglobus.php:1264
855
  msgid "Turn off"
856
  msgstr ""
857
 
858
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
859
+ #: includes/class-wpglobus.php:1258
860
  msgid "OFF"
861
  msgstr ""
862
 
863
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
864
+ #: includes/class-wpglobus.php:1259
865
  msgid "Turn on"
866
  msgstr ""
867
 
877
  msgid "current"
878
  msgstr ""
879
 
880
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
881
  msgid ""
882
  "WPGlobus provides multilingual support for Elementor only when the option "
883
  "%1$s%2$s%3$s is set to %4$s."
953
  msgid "Selector type"
954
  msgstr ""
955
 
956
+ #: includes/class-wpglobus.php:1447
957
  msgid "You cannot disable the main language."
958
  msgstr ""
959
 
960
+ #: includes/class-wpglobus.php:1672
961
  msgid "Need a multilingual slug?"
962
  msgstr ""
963
 
964
+ #: includes/class-wpglobus.php:1655
965
  msgid "*) Available after the menu is saved."
966
  msgstr ""
967
 
968
+ #: includes/class-wpglobus.php:4025
969
  msgid "You must enable Pretty Permalinks to use WPGlobus."
970
  msgstr ""
971
 
972
+ #: includes/class-wpglobus.php:4027
973
  msgid ""
974
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
975
  "default option."
languages/wpglobus-be.po CHANGED
@@ -327,7 +327,7 @@ msgstr "Сохранить и перезагрузить"
327
 
328
  #: includes/admin/class-wpglobus-customize-options.php:553,
329
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
330
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
331
  msgid "WPGlobus"
332
  msgstr "WPGlobus"
333
 
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3570
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -894,22 +894,22 @@ msgstr ""
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
- #: includes/class-wpglobus.php:1256
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
- #: includes/class-wpglobus.php:1257
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
- #: includes/class-wpglobus.php:1251
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
- #: includes/class-wpglobus.php:1252
913
  msgid "Turn on"
914
  msgstr ""
915
 
@@ -925,7 +925,7 @@ msgstr ""
925
  msgid "current"
926
  msgstr ""
927
 
928
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
@@ -1001,25 +1001,25 @@ msgstr "Выпадающее меню с флагами"
1001
  msgid "Selector type"
1002
  msgstr "Способ выбора языка"
1003
 
1004
- #: includes/class-wpglobus.php:1440
1005
  msgid "You cannot disable the main language."
1006
  msgstr "Нельзя отключить основной язык."
1007
 
1008
- #: includes/class-wpglobus.php:1665
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Нужен мультиязычный ярлык?"
1011
 
1012
- #: includes/class-wpglobus.php:1648
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Доступно после сохранения меню."
1015
 
1016
- #: includes/class-wpglobus.php:4018
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr ""
1019
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1020
  "ссылки."
1021
 
1022
- #: includes/class-wpglobus.php:4020
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
327
 
328
  #: includes/admin/class-wpglobus-customize-options.php:553,
329
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
330
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
331
  msgid "WPGlobus"
332
  msgstr "WPGlobus"
333
 
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3577
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
+ #: includes/class-wpglobus.php:1263
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
+ #: includes/class-wpglobus.php:1264
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
+ #: includes/class-wpglobus.php:1258
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
+ #: includes/class-wpglobus.php:1259
913
  msgid "Turn on"
914
  msgstr ""
915
 
925
  msgid "current"
926
  msgstr ""
927
 
928
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
1001
  msgid "Selector type"
1002
  msgstr "Способ выбора языка"
1003
 
1004
+ #: includes/class-wpglobus.php:1447
1005
  msgid "You cannot disable the main language."
1006
  msgstr "Нельзя отключить основной язык."
1007
 
1008
+ #: includes/class-wpglobus.php:1672
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Нужен мультиязычный ярлык?"
1011
 
1012
+ #: includes/class-wpglobus.php:1655
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Доступно после сохранения меню."
1015
 
1016
+ #: includes/class-wpglobus.php:4025
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr ""
1019
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1020
  "ссылки."
1021
 
1022
+ #: includes/class-wpglobus.php:4027
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
languages/wpglobus-bg_BG.po CHANGED
@@ -281,7 +281,7 @@ msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3570
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -822,22 +822,22 @@ msgstr ""
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
- #: includes/class-wpglobus.php:1256
826
  msgid "ON"
827
  msgstr ""
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
- #: includes/class-wpglobus.php:1257
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
- #: includes/class-wpglobus.php:1251
836
  msgid "OFF"
837
  msgstr ""
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
- #: includes/class-wpglobus.php:1252
841
  msgid "Turn on"
842
  msgstr ""
843
 
@@ -853,7 +853,7 @@ msgstr ""
853
  msgid "current"
854
  msgstr ""
855
 
856
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
@@ -929,23 +929,23 @@ msgstr ""
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
- #: includes/class-wpglobus.php:1440
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
- #: includes/class-wpglobus.php:1665
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
- #: includes/class-wpglobus.php:1648
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:4018
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4020
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3577
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
+ #: includes/class-wpglobus.php:1263
826
  msgid "ON"
827
  msgstr ""
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
+ #: includes/class-wpglobus.php:1264
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
+ #: includes/class-wpglobus.php:1258
836
  msgid "OFF"
837
  msgstr ""
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
+ #: includes/class-wpglobus.php:1259
841
  msgid "Turn on"
842
  msgstr ""
843
 
853
  msgid "current"
854
  msgstr ""
855
 
856
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
+ #: includes/class-wpglobus.php:1447
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
+ #: includes/class-wpglobus.php:1672
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
+ #: includes/class-wpglobus.php:1655
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4025
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4027
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-de_CH.po CHANGED
@@ -301,7 +301,7 @@ msgstr ""
301
 
302
  #: includes/admin/class-wpglobus-customize-options.php:553,
303
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
304
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
305
  msgid "WPGlobus"
306
  msgstr "WPGlobus"
307
 
@@ -843,7 +843,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
843
  msgstr ""
844
 
845
  #: includes/builders/class-wpglobus-builder.php:278,
846
- #: includes/class-wpglobus.php:3570
847
  msgid "Save draft before using extra language."
848
  msgstr ""
849
 
@@ -858,22 +858,22 @@ msgstr ""
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #. translators: ON/OFF status of WPGlobus on the edit pages.
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
861
- #: includes/class-wpglobus.php:1256
862
  msgid "ON"
863
  msgstr ""
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
866
- #: includes/class-wpglobus.php:1257
867
  msgid "Turn off"
868
  msgstr ""
869
 
870
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
871
- #: includes/class-wpglobus.php:1251
872
  msgid "OFF"
873
  msgstr ""
874
 
875
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
876
- #: includes/class-wpglobus.php:1252
877
  msgid "Turn on"
878
  msgstr ""
879
 
@@ -889,7 +889,7 @@ msgstr ""
889
  msgid "current"
890
  msgstr ""
891
 
892
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
893
  msgid ""
894
  "WPGlobus provides multilingual support for Elementor only when the option "
895
  "%1$s%2$s%3$s is set to %4$s."
@@ -965,24 +965,24 @@ msgstr "Dropdown mit Flaggen"
965
  msgid "Selector type"
966
  msgstr "Selektor-Typ"
967
 
968
- #: includes/class-wpglobus.php:1440
969
  msgid "You cannot disable the main language."
970
  msgstr "Die Hauptsprache kann nicht deaktiviert werden."
971
 
972
- #: includes/class-wpglobus.php:1665
973
  msgid "Need a multilingual slug?"
974
  msgstr ""
975
 
976
- #: includes/class-wpglobus.php:1648
977
  msgid "*) Available after the menu is saved."
978
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
979
 
980
- #: includes/class-wpglobus.php:4018
981
  msgid "You must enable Pretty Permalinks to use WPGlobus."
982
  msgstr ""
983
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
984
 
985
- #: includes/class-wpglobus.php:4020
986
  msgid ""
987
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
988
  "default option."
301
 
302
  #: includes/admin/class-wpglobus-customize-options.php:553,
303
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
304
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
305
  msgid "WPGlobus"
306
  msgstr "WPGlobus"
307
 
843
  msgstr ""
844
 
845
  #: includes/builders/class-wpglobus-builder.php:278,
846
+ #: includes/class-wpglobus.php:3577
847
  msgid "Save draft before using extra language."
848
  msgstr ""
849
 
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #. translators: ON/OFF status of WPGlobus on the edit pages.
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
861
+ #: includes/class-wpglobus.php:1263
862
  msgid "ON"
863
  msgstr ""
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
866
+ #: includes/class-wpglobus.php:1264
867
  msgid "Turn off"
868
  msgstr ""
869
 
870
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
871
+ #: includes/class-wpglobus.php:1258
872
  msgid "OFF"
873
  msgstr ""
874
 
875
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
876
+ #: includes/class-wpglobus.php:1259
877
  msgid "Turn on"
878
  msgstr ""
879
 
889
  msgid "current"
890
  msgstr ""
891
 
892
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
893
  msgid ""
894
  "WPGlobus provides multilingual support for Elementor only when the option "
895
  "%1$s%2$s%3$s is set to %4$s."
965
  msgid "Selector type"
966
  msgstr "Selektor-Typ"
967
 
968
+ #: includes/class-wpglobus.php:1447
969
  msgid "You cannot disable the main language."
970
  msgstr "Die Hauptsprache kann nicht deaktiviert werden."
971
 
972
+ #: includes/class-wpglobus.php:1672
973
  msgid "Need a multilingual slug?"
974
  msgstr ""
975
 
976
+ #: includes/class-wpglobus.php:1655
977
  msgid "*) Available after the menu is saved."
978
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
979
 
980
+ #: includes/class-wpglobus.php:4025
981
  msgid "You must enable Pretty Permalinks to use WPGlobus."
982
  msgstr ""
983
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
984
 
985
+ #: includes/class-wpglobus.php:4027
986
  msgid ""
987
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
988
  "default option."
languages/wpglobus-de_DE.po CHANGED
@@ -301,7 +301,7 @@ msgstr ""
301
 
302
  #: includes/admin/class-wpglobus-customize-options.php:553,
303
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
304
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
305
  msgid "WPGlobus"
306
  msgstr "WPGlobus"
307
 
@@ -844,7 +844,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
844
  msgstr ""
845
 
846
  #: includes/builders/class-wpglobus-builder.php:278,
847
- #: includes/class-wpglobus.php:3570
848
  msgid "Save draft before using extra language."
849
  msgstr ""
850
 
@@ -859,22 +859,22 @@ msgstr ""
859
  #. translators: ON/OFF status of WPGlobus on the edit pages.
860
  #. translators: ON/OFF status of WPGlobus on the edit pages.
861
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
862
- #: includes/class-wpglobus.php:1256
863
  msgid "ON"
864
  msgstr "EIN"
865
 
866
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
867
- #: includes/class-wpglobus.php:1257
868
  msgid "Turn off"
869
  msgstr ""
870
 
871
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
872
- #: includes/class-wpglobus.php:1251
873
  msgid "OFF"
874
  msgstr "AUS"
875
 
876
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
877
- #: includes/class-wpglobus.php:1252
878
  msgid "Turn on"
879
  msgstr ""
880
 
@@ -890,7 +890,7 @@ msgstr ""
890
  msgid "current"
891
  msgstr ""
892
 
893
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
894
  msgid ""
895
  "WPGlobus provides multilingual support for Elementor only when the option "
896
  "%1$s%2$s%3$s is set to %4$s."
@@ -966,24 +966,24 @@ msgstr "Dropdown mit Flaggen"
966
  msgid "Selector type"
967
  msgstr "Selektor-Typ"
968
 
969
- #: includes/class-wpglobus.php:1440
970
  msgid "You cannot disable the main language."
971
  msgstr "Die Hauptsprache kann nicht deaktiviert werden."
972
 
973
- #: includes/class-wpglobus.php:1665
974
  msgid "Need a multilingual slug?"
975
  msgstr ""
976
 
977
- #: includes/class-wpglobus.php:1648
978
  msgid "*) Available after the menu is saved."
979
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
980
 
981
- #: includes/class-wpglobus.php:4018
982
  msgid "You must enable Pretty Permalinks to use WPGlobus."
983
  msgstr ""
984
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
985
 
986
- #: includes/class-wpglobus.php:4020
987
  msgid ""
988
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
989
  "default option."
301
 
302
  #: includes/admin/class-wpglobus-customize-options.php:553,
303
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
304
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
305
  msgid "WPGlobus"
306
  msgstr "WPGlobus"
307
 
844
  msgstr ""
845
 
846
  #: includes/builders/class-wpglobus-builder.php:278,
847
+ #: includes/class-wpglobus.php:3577
848
  msgid "Save draft before using extra language."
849
  msgstr ""
850
 
859
  #. translators: ON/OFF status of WPGlobus on the edit pages.
860
  #. translators: ON/OFF status of WPGlobus on the edit pages.
861
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
862
+ #: includes/class-wpglobus.php:1263
863
  msgid "ON"
864
  msgstr "EIN"
865
 
866
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
867
+ #: includes/class-wpglobus.php:1264
868
  msgid "Turn off"
869
  msgstr ""
870
 
871
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
872
+ #: includes/class-wpglobus.php:1258
873
  msgid "OFF"
874
  msgstr "AUS"
875
 
876
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
877
+ #: includes/class-wpglobus.php:1259
878
  msgid "Turn on"
879
  msgstr ""
880
 
890
  msgid "current"
891
  msgstr ""
892
 
893
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
894
  msgid ""
895
  "WPGlobus provides multilingual support for Elementor only when the option "
896
  "%1$s%2$s%3$s is set to %4$s."
966
  msgid "Selector type"
967
  msgstr "Selektor-Typ"
968
 
969
+ #: includes/class-wpglobus.php:1447
970
  msgid "You cannot disable the main language."
971
  msgstr "Die Hauptsprache kann nicht deaktiviert werden."
972
 
973
+ #: includes/class-wpglobus.php:1672
974
  msgid "Need a multilingual slug?"
975
  msgstr ""
976
 
977
+ #: includes/class-wpglobus.php:1655
978
  msgid "*) Available after the menu is saved."
979
  msgstr "*) Verfügbar nachdem das Menü gespeichert wurde."
980
 
981
+ #: includes/class-wpglobus.php:4025
982
  msgid "You must enable Pretty Permalinks to use WPGlobus."
983
  msgstr ""
984
  "Sie müssen schöne Permalinks aktivieren um WPGlobus verwenden zu können."
985
 
986
+ #: includes/class-wpglobus.php:4027
987
  msgid ""
988
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
989
  "default option."
languages/wpglobus-el.po CHANGED
@@ -282,7 +282,7 @@ msgstr ""
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:553,
284
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
285
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
288
 
@@ -808,7 +808,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
- #: includes/class-wpglobus.php:3570
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
@@ -823,22 +823,22 @@ msgstr ""
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #. translators: ON/OFF status of WPGlobus on the edit pages.
825
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
826
- #: includes/class-wpglobus.php:1256
827
  msgid "ON"
828
  msgstr ""
829
 
830
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
831
- #: includes/class-wpglobus.php:1257
832
  msgid "Turn off"
833
  msgstr ""
834
 
835
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
836
- #: includes/class-wpglobus.php:1251
837
  msgid "OFF"
838
  msgstr ""
839
 
840
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
841
- #: includes/class-wpglobus.php:1252
842
  msgid "Turn on"
843
  msgstr ""
844
 
@@ -854,7 +854,7 @@ msgstr ""
854
  msgid "current"
855
  msgstr ""
856
 
857
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
858
  msgid ""
859
  "WPGlobus provides multilingual support for Elementor only when the option "
860
  "%1$s%2$s%3$s is set to %4$s."
@@ -930,23 +930,23 @@ msgstr ""
930
  msgid "Selector type"
931
  msgstr ""
932
 
933
- #: includes/class-wpglobus.php:1440
934
  msgid "You cannot disable the main language."
935
  msgstr ""
936
 
937
- #: includes/class-wpglobus.php:1665
938
  msgid "Need a multilingual slug?"
939
  msgstr ""
940
 
941
- #: includes/class-wpglobus.php:1648
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
- #: includes/class-wpglobus.php:4018
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
- #: includes/class-wpglobus.php:4020
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:553,
284
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
285
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
288
 
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
+ #: includes/class-wpglobus.php:3577
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #. translators: ON/OFF status of WPGlobus on the edit pages.
825
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
826
+ #: includes/class-wpglobus.php:1263
827
  msgid "ON"
828
  msgstr ""
829
 
830
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
831
+ #: includes/class-wpglobus.php:1264
832
  msgid "Turn off"
833
  msgstr ""
834
 
835
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
836
+ #: includes/class-wpglobus.php:1258
837
  msgid "OFF"
838
  msgstr ""
839
 
840
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
841
+ #: includes/class-wpglobus.php:1259
842
  msgid "Turn on"
843
  msgstr ""
844
 
854
  msgid "current"
855
  msgstr ""
856
 
857
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
858
  msgid ""
859
  "WPGlobus provides multilingual support for Elementor only when the option "
860
  "%1$s%2$s%3$s is set to %4$s."
930
  msgid "Selector type"
931
  msgstr ""
932
 
933
+ #: includes/class-wpglobus.php:1447
934
  msgid "You cannot disable the main language."
935
  msgstr ""
936
 
937
+ #: includes/class-wpglobus.php:1672
938
  msgid "Need a multilingual slug?"
939
  msgstr ""
940
 
941
+ #: includes/class-wpglobus.php:1655
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
+ #: includes/class-wpglobus.php:4025
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
+ #: includes/class-wpglobus.php:4027
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
languages/wpglobus-en_AU.po CHANGED
@@ -325,7 +325,7 @@ msgstr "Save &amp; Reload"
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
@@ -880,7 +880,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
- #: includes/class-wpglobus.php:3570
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
@@ -895,22 +895,22 @@ msgstr ""
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
898
- #: includes/class-wpglobus.php:1256
899
  msgid "ON"
900
  msgstr ""
901
 
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
903
- #: includes/class-wpglobus.php:1257
904
  msgid "Turn off"
905
  msgstr ""
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
908
- #: includes/class-wpglobus.php:1251
909
  msgid "OFF"
910
  msgstr ""
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
913
- #: includes/class-wpglobus.php:1252
914
  msgid "Turn on"
915
  msgstr ""
916
 
@@ -926,7 +926,7 @@ msgstr ""
926
  msgid "current"
927
  msgstr ""
928
 
929
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
930
  msgid ""
931
  "WPGlobus provides multilingual support for Elementor only when the option "
932
  "%1$s%2$s%3$s is set to %4$s."
@@ -1002,23 +1002,23 @@ msgstr "Dropdown with flags"
1002
  msgid "Selector type"
1003
  msgstr "Selector type"
1004
 
1005
- #: includes/class-wpglobus.php:1440
1006
  msgid "You cannot disable the main language."
1007
  msgstr "You cannot disable the main language."
1008
 
1009
- #: includes/class-wpglobus.php:1665
1010
  msgid "Need a multilingual slug?"
1011
  msgstr "Need a multilingual slug?"
1012
 
1013
- #: includes/class-wpglobus.php:1648
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
- #: includes/class-wpglobus.php:4018
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
- #: includes/class-wpglobus.php:4020
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
+ #: includes/class-wpglobus.php:3577
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
898
+ #: includes/class-wpglobus.php:1263
899
  msgid "ON"
900
  msgstr ""
901
 
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
903
+ #: includes/class-wpglobus.php:1264
904
  msgid "Turn off"
905
  msgstr ""
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
908
+ #: includes/class-wpglobus.php:1258
909
  msgid "OFF"
910
  msgstr ""
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
913
+ #: includes/class-wpglobus.php:1259
914
  msgid "Turn on"
915
  msgstr ""
916
 
926
  msgid "current"
927
  msgstr ""
928
 
929
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
930
  msgid ""
931
  "WPGlobus provides multilingual support for Elementor only when the option "
932
  "%1$s%2$s%3$s is set to %4$s."
1002
  msgid "Selector type"
1003
  msgstr "Selector type"
1004
 
1005
+ #: includes/class-wpglobus.php:1447
1006
  msgid "You cannot disable the main language."
1007
  msgstr "You cannot disable the main language."
1008
 
1009
+ #: includes/class-wpglobus.php:1672
1010
  msgid "Need a multilingual slug?"
1011
  msgstr "Need a multilingual slug?"
1012
 
1013
+ #: includes/class-wpglobus.php:1655
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
+ #: includes/class-wpglobus.php:4025
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
+ #: includes/class-wpglobus.php:4027
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
languages/wpglobus-en_CA.po CHANGED
@@ -324,7 +324,7 @@ msgstr "Save &amp; Reload"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3570
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -894,22 +894,22 @@ msgstr ""
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
- #: includes/class-wpglobus.php:1256
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
- #: includes/class-wpglobus.php:1257
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
- #: includes/class-wpglobus.php:1251
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
- #: includes/class-wpglobus.php:1252
913
  msgid "Turn on"
914
  msgstr ""
915
 
@@ -925,7 +925,7 @@ msgstr ""
925
  msgid "current"
926
  msgstr ""
927
 
928
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
@@ -1001,23 +1001,23 @@ msgstr "Dropdown with flags"
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
- #: includes/class-wpglobus.php:1440
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
- #: includes/class-wpglobus.php:1665
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
- #: includes/class-wpglobus.php:1648
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:4018
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4020
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3577
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
+ #: includes/class-wpglobus.php:1263
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
+ #: includes/class-wpglobus.php:1264
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
+ #: includes/class-wpglobus.php:1258
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
+ #: includes/class-wpglobus.php:1259
913
  msgid "Turn on"
914
  msgstr ""
915
 
925
  msgid "current"
926
  msgstr ""
927
 
928
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
+ #: includes/class-wpglobus.php:1447
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
+ #: includes/class-wpglobus.php:1672
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
+ #: includes/class-wpglobus.php:1655
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4025
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4027
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-en_GB.po CHANGED
@@ -325,7 +325,7 @@ msgstr "Save &amp; Reload"
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
@@ -880,7 +880,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
- #: includes/class-wpglobus.php:3570
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
@@ -895,22 +895,22 @@ msgstr ""
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
898
- #: includes/class-wpglobus.php:1256
899
  msgid "ON"
900
  msgstr "ON"
901
 
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
903
- #: includes/class-wpglobus.php:1257
904
  msgid "Turn off"
905
  msgstr ""
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
908
- #: includes/class-wpglobus.php:1251
909
  msgid "OFF"
910
  msgstr "OFF"
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
913
- #: includes/class-wpglobus.php:1252
914
  msgid "Turn on"
915
  msgstr ""
916
 
@@ -926,7 +926,7 @@ msgstr ""
926
  msgid "current"
927
  msgstr ""
928
 
929
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
930
  msgid ""
931
  "WPGlobus provides multilingual support for Elementor only when the option "
932
  "%1$s%2$s%3$s is set to %4$s."
@@ -1002,23 +1002,23 @@ msgstr "Dropdown with flags"
1002
  msgid "Selector type"
1003
  msgstr "Selector type"
1004
 
1005
- #: includes/class-wpglobus.php:1440
1006
  msgid "You cannot disable the main language."
1007
  msgstr "You cannot disable the main language."
1008
 
1009
- #: includes/class-wpglobus.php:1665
1010
  msgid "Need a multilingual slug?"
1011
  msgstr "Need a multilingual slug?"
1012
 
1013
- #: includes/class-wpglobus.php:1648
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
- #: includes/class-wpglobus.php:4018
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
- #: includes/class-wpglobus.php:4020
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
880
  msgstr ""
881
 
882
  #: includes/builders/class-wpglobus-builder.php:278,
883
+ #: includes/class-wpglobus.php:3577
884
  msgid "Save draft before using extra language."
885
  msgstr ""
886
 
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
898
+ #: includes/class-wpglobus.php:1263
899
  msgid "ON"
900
  msgstr "ON"
901
 
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
903
+ #: includes/class-wpglobus.php:1264
904
  msgid "Turn off"
905
  msgstr ""
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
908
+ #: includes/class-wpglobus.php:1258
909
  msgid "OFF"
910
  msgstr "OFF"
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
913
+ #: includes/class-wpglobus.php:1259
914
  msgid "Turn on"
915
  msgstr ""
916
 
926
  msgid "current"
927
  msgstr ""
928
 
929
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
930
  msgid ""
931
  "WPGlobus provides multilingual support for Elementor only when the option "
932
  "%1$s%2$s%3$s is set to %4$s."
1002
  msgid "Selector type"
1003
  msgstr "Selector type"
1004
 
1005
+ #: includes/class-wpglobus.php:1447
1006
  msgid "You cannot disable the main language."
1007
  msgstr "You cannot disable the main language."
1008
 
1009
+ #: includes/class-wpglobus.php:1672
1010
  msgid "Need a multilingual slug?"
1011
  msgstr "Need a multilingual slug?"
1012
 
1013
+ #: includes/class-wpglobus.php:1655
1014
  msgid "*) Available after the menu is saved."
1015
  msgstr "*) Available after the menu is saved."
1016
 
1017
+ #: includes/class-wpglobus.php:4025
1018
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1019
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1020
 
1021
+ #: includes/class-wpglobus.php:4027
1022
  msgid ""
1023
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1024
  "default option."
languages/wpglobus-en_NZ.po CHANGED
@@ -324,7 +324,7 @@ msgstr "Save &amp; Reload"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3570
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -894,22 +894,22 @@ msgstr ""
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
- #: includes/class-wpglobus.php:1256
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
- #: includes/class-wpglobus.php:1257
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
- #: includes/class-wpglobus.php:1251
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
- #: includes/class-wpglobus.php:1252
913
  msgid "Turn on"
914
  msgstr ""
915
 
@@ -925,7 +925,7 @@ msgstr ""
925
  msgid "current"
926
  msgstr ""
927
 
928
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
@@ -1001,23 +1001,23 @@ msgstr "Dropdown with flags"
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
- #: includes/class-wpglobus.php:1440
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
- #: includes/class-wpglobus.php:1665
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
- #: includes/class-wpglobus.php:1648
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:4018
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4020
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3577
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
+ #: includes/class-wpglobus.php:1263
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
+ #: includes/class-wpglobus.php:1264
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
+ #: includes/class-wpglobus.php:1258
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
+ #: includes/class-wpglobus.php:1259
913
  msgid "Turn on"
914
  msgstr ""
915
 
925
  msgid "current"
926
  msgstr ""
927
 
928
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
+ #: includes/class-wpglobus.php:1447
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
+ #: includes/class-wpglobus.php:1672
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
+ #: includes/class-wpglobus.php:1655
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4025
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4027
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-en_US.po CHANGED
@@ -323,7 +323,7 @@ msgstr "Save &amp; Reload"
323
 
324
  #: includes/admin/class-wpglobus-customize-options.php:553,
325
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
326
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
327
  msgid "WPGlobus"
328
  msgstr "WPGlobus"
329
 
@@ -883,7 +883,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
883
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
884
 
885
  #: includes/builders/class-wpglobus-builder.php:278,
886
- #: includes/class-wpglobus.php:3570
887
  msgid "Save draft before using extra language."
888
  msgstr "Save draft before using extra language."
889
 
@@ -898,22 +898,22 @@ msgstr "Сompatibility Settings"
898
  #. translators: ON/OFF status of WPGlobus on the edit pages.
899
  #. translators: ON/OFF status of WPGlobus on the edit pages.
900
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
901
- #: includes/class-wpglobus.php:1256
902
  msgid "ON"
903
  msgstr "ON"
904
 
905
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
906
- #: includes/class-wpglobus.php:1257
907
  msgid "Turn off"
908
  msgstr "Turn off"
909
 
910
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
911
- #: includes/class-wpglobus.php:1251
912
  msgid "OFF"
913
  msgstr "OFF"
914
 
915
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
916
- #: includes/class-wpglobus.php:1252
917
  msgid "Turn on"
918
  msgstr "Turn on"
919
 
@@ -929,7 +929,7 @@ msgstr "WPGlobus languages"
929
  msgid "current"
930
  msgstr "current"
931
 
932
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
933
  msgid ""
934
  "WPGlobus provides multilingual support for Elementor only when the option "
935
  "%1$s%2$s%3$s is set to %4$s."
@@ -1009,23 +1009,23 @@ msgstr "Dropdown with flags"
1009
  msgid "Selector type"
1010
  msgstr "Selector type"
1011
 
1012
- #: includes/class-wpglobus.php:1440
1013
  msgid "You cannot disable the main language."
1014
  msgstr "You cannot disable the main language."
1015
 
1016
- #: includes/class-wpglobus.php:1665
1017
  msgid "Need a multilingual slug?"
1018
  msgstr "Need a multilingual slug?"
1019
 
1020
- #: includes/class-wpglobus.php:1648
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Available after the menu is saved."
1023
 
1024
- #: includes/class-wpglobus.php:4018
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1027
 
1028
- #: includes/class-wpglobus.php:4020
1029
  msgid ""
1030
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1031
  "default option."
323
 
324
  #: includes/admin/class-wpglobus-customize-options.php:553,
325
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
326
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
327
  msgid "WPGlobus"
328
  msgstr "WPGlobus"
329
 
883
  msgstr "Translate permalinks with our premium add-on, WPGlobus Plus!"
884
 
885
  #: includes/builders/class-wpglobus-builder.php:278,
886
+ #: includes/class-wpglobus.php:3577
887
  msgid "Save draft before using extra language."
888
  msgstr "Save draft before using extra language."
889
 
898
  #. translators: ON/OFF status of WPGlobus on the edit pages.
899
  #. translators: ON/OFF status of WPGlobus on the edit pages.
900
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
901
+ #: includes/class-wpglobus.php:1263
902
  msgid "ON"
903
  msgstr "ON"
904
 
905
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
906
+ #: includes/class-wpglobus.php:1264
907
  msgid "Turn off"
908
  msgstr "Turn off"
909
 
910
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
911
+ #: includes/class-wpglobus.php:1258
912
  msgid "OFF"
913
  msgstr "OFF"
914
 
915
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
916
+ #: includes/class-wpglobus.php:1259
917
  msgid "Turn on"
918
  msgstr "Turn on"
919
 
929
  msgid "current"
930
  msgstr "current"
931
 
932
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
933
  msgid ""
934
  "WPGlobus provides multilingual support for Elementor only when the option "
935
  "%1$s%2$s%3$s is set to %4$s."
1009
  msgid "Selector type"
1010
  msgstr "Selector type"
1011
 
1012
+ #: includes/class-wpglobus.php:1447
1013
  msgid "You cannot disable the main language."
1014
  msgstr "You cannot disable the main language."
1015
 
1016
+ #: includes/class-wpglobus.php:1672
1017
  msgid "Need a multilingual slug?"
1018
  msgstr "Need a multilingual slug?"
1019
 
1020
+ #: includes/class-wpglobus.php:1655
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Available after the menu is saved."
1023
 
1024
+ #: includes/class-wpglobus.php:4025
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1027
 
1028
+ #: includes/class-wpglobus.php:4027
1029
  msgid ""
1030
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1031
  "default option."
languages/wpglobus-en_ZA.po CHANGED
@@ -324,7 +324,7 @@ msgstr "Save &amp; Reload"
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
@@ -879,7 +879,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
- #: includes/class-wpglobus.php:3570
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
@@ -894,22 +894,22 @@ msgstr ""
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
- #: includes/class-wpglobus.php:1256
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
- #: includes/class-wpglobus.php:1257
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
- #: includes/class-wpglobus.php:1251
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
- #: includes/class-wpglobus.php:1252
913
  msgid "Turn on"
914
  msgstr ""
915
 
@@ -925,7 +925,7 @@ msgstr ""
925
  msgid "current"
926
  msgstr ""
927
 
928
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
@@ -1001,23 +1001,23 @@ msgstr "Dropdown with flags"
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
- #: includes/class-wpglobus.php:1440
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
- #: includes/class-wpglobus.php:1665
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
- #: includes/class-wpglobus.php:1648
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
- #: includes/class-wpglobus.php:4018
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
- #: includes/class-wpglobus.php:4020
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
324
 
325
  #: includes/admin/class-wpglobus-customize-options.php:553,
326
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
327
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
328
  msgid "WPGlobus"
329
  msgstr "WPGlobus"
330
 
879
  msgstr ""
880
 
881
  #: includes/builders/class-wpglobus-builder.php:278,
882
+ #: includes/class-wpglobus.php:3577
883
  msgid "Save draft before using extra language."
884
  msgstr ""
885
 
894
  #. translators: ON/OFF status of WPGlobus on the edit pages.
895
  #. translators: ON/OFF status of WPGlobus on the edit pages.
896
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
897
+ #: includes/class-wpglobus.php:1263
898
  msgid "ON"
899
  msgstr ""
900
 
901
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
902
+ #: includes/class-wpglobus.php:1264
903
  msgid "Turn off"
904
  msgstr ""
905
 
906
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
907
+ #: includes/class-wpglobus.php:1258
908
  msgid "OFF"
909
  msgstr ""
910
 
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
912
+ #: includes/class-wpglobus.php:1259
913
  msgid "Turn on"
914
  msgstr ""
915
 
925
  msgid "current"
926
  msgstr ""
927
 
928
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
929
  msgid ""
930
  "WPGlobus provides multilingual support for Elementor only when the option "
931
  "%1$s%2$s%3$s is set to %4$s."
1001
  msgid "Selector type"
1002
  msgstr "Selector type"
1003
 
1004
+ #: includes/class-wpglobus.php:1447
1005
  msgid "You cannot disable the main language."
1006
  msgstr "You cannot disable the main language."
1007
 
1008
+ #: includes/class-wpglobus.php:1672
1009
  msgid "Need a multilingual slug?"
1010
  msgstr "Need a multilingual slug?"
1011
 
1012
+ #: includes/class-wpglobus.php:1655
1013
  msgid "*) Available after the menu is saved."
1014
  msgstr "*) Available after the menu is saved."
1015
 
1016
+ #: includes/class-wpglobus.php:4025
1017
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1018
  msgstr "You must enable Pretty Permalinks to use WPGlobus."
1019
 
1020
+ #: includes/class-wpglobus.php:4027
1021
  msgid ""
1022
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1023
  "default option."
languages/wpglobus-es_AR.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CL.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CO.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_CR.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_ES.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr "ON"
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr "ON"
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_GT.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_MX.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr "ON"
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr "APAGADO"
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr "ON"
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr "APAGADO"
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_PE.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_PR.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-es_VE.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
@@ -842,7 +842,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
- #: includes/class-wpglobus.php:3570
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
@@ -857,22 +857,22 @@ msgstr ""
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
- #: includes/class-wpglobus.php:1256
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
- #: includes/class-wpglobus.php:1257
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
- #: includes/class-wpglobus.php:1251
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
- #: includes/class-wpglobus.php:1252
876
  msgid "Turn on"
877
  msgstr ""
878
 
@@ -888,7 +888,7 @@ msgstr ""
888
  msgid "current"
889
  msgstr ""
890
 
891
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
@@ -964,24 +964,24 @@ msgstr "Desplegable con banderas"
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
- #: includes/class-wpglobus.php:1440
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
- #: includes/class-wpglobus.php:1665
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
- #: includes/class-wpglobus.php:1648
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
- #: includes/class-wpglobus.php:4018
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
- #: includes/class-wpglobus.php:4020
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr ""
304
 
842
  msgstr ""
843
 
844
  #: includes/builders/class-wpglobus-builder.php:278,
845
+ #: includes/class-wpglobus.php:3577
846
  msgid "Save draft before using extra language."
847
  msgstr ""
848
 
857
  #. translators: ON/OFF status of WPGlobus on the edit pages.
858
  #. translators: ON/OFF status of WPGlobus on the edit pages.
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
860
+ #: includes/class-wpglobus.php:1263
861
  msgid "ON"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
865
+ #: includes/class-wpglobus.php:1264
866
  msgid "Turn off"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
870
+ #: includes/class-wpglobus.php:1258
871
  msgid "OFF"
872
  msgstr ""
873
 
874
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
875
+ #: includes/class-wpglobus.php:1259
876
  msgid "Turn on"
877
  msgstr ""
878
 
888
  msgid "current"
889
  msgstr ""
890
 
891
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
892
  msgid ""
893
  "WPGlobus provides multilingual support for Elementor only when the option "
894
  "%1$s%2$s%3$s is set to %4$s."
964
  msgid "Selector type"
965
  msgstr "Tipo de selector"
966
 
967
+ #: includes/class-wpglobus.php:1447
968
  msgid "You cannot disable the main language."
969
  msgstr "No se puede desactivar el idioma principal."
970
 
971
+ #: includes/class-wpglobus.php:1672
972
  msgid "Need a multilingual slug?"
973
  msgstr ""
974
 
975
+ #: includes/class-wpglobus.php:1655
976
  msgid "*) Available after the menu is saved."
977
  msgstr "No Se Puede Desactivar el director idioma."
978
 
979
+ #: includes/class-wpglobus.php:4025
980
  msgid "You must enable Pretty Permalinks to use WPGlobus."
981
  msgstr ""
982
  "Debes habilitar los Enlaces permanentes Pretty para utilizar WPGlobus ."
983
 
984
+ #: includes/class-wpglobus.php:4027
985
  msgid ""
986
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
987
  "default option."
languages/wpglobus-et.po CHANGED
@@ -282,7 +282,7 @@ msgstr "Salvesta ja laadi uuesti"
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:553,
284
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
285
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
288
 
@@ -808,7 +808,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
- #: includes/class-wpglobus.php:3570
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
@@ -823,22 +823,22 @@ msgstr ""
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #. translators: ON/OFF status of WPGlobus on the edit pages.
825
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
826
- #: includes/class-wpglobus.php:1256
827
  msgid "ON"
828
  msgstr "SEES"
829
 
830
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
831
- #: includes/class-wpglobus.php:1257
832
  msgid "Turn off"
833
  msgstr "Lülita välja"
834
 
835
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
836
- #: includes/class-wpglobus.php:1251
837
  msgid "OFF"
838
  msgstr "VÄLJAS"
839
 
840
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
841
- #: includes/class-wpglobus.php:1252
842
  msgid "Turn on"
843
  msgstr "Lülita sisse"
844
 
@@ -854,7 +854,7 @@ msgstr ""
854
  msgid "current"
855
  msgstr ""
856
 
857
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
858
  msgid ""
859
  "WPGlobus provides multilingual support for Elementor only when the option "
860
  "%1$s%2$s%3$s is set to %4$s."
@@ -930,23 +930,23 @@ msgstr ""
930
  msgid "Selector type"
931
  msgstr ""
932
 
933
- #: includes/class-wpglobus.php:1440
934
  msgid "You cannot disable the main language."
935
  msgstr ""
936
 
937
- #: includes/class-wpglobus.php:1665
938
  msgid "Need a multilingual slug?"
939
  msgstr ""
940
 
941
- #: includes/class-wpglobus.php:1648
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
- #: includes/class-wpglobus.php:4018
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
- #: includes/class-wpglobus.php:4020
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
282
 
283
  #: includes/admin/class-wpglobus-customize-options.php:553,
284
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
285
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
286
  msgid "WPGlobus"
287
  msgstr "WPGlobus"
288
 
808
  msgstr ""
809
 
810
  #: includes/builders/class-wpglobus-builder.php:278,
811
+ #: includes/class-wpglobus.php:3577
812
  msgid "Save draft before using extra language."
813
  msgstr ""
814
 
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #. translators: ON/OFF status of WPGlobus on the edit pages.
825
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
826
+ #: includes/class-wpglobus.php:1263
827
  msgid "ON"
828
  msgstr "SEES"
829
 
830
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
831
+ #: includes/class-wpglobus.php:1264
832
  msgid "Turn off"
833
  msgstr "Lülita välja"
834
 
835
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
836
+ #: includes/class-wpglobus.php:1258
837
  msgid "OFF"
838
  msgstr "VÄLJAS"
839
 
840
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
841
+ #: includes/class-wpglobus.php:1259
842
  msgid "Turn on"
843
  msgstr "Lülita sisse"
844
 
854
  msgid "current"
855
  msgstr ""
856
 
857
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
858
  msgid ""
859
  "WPGlobus provides multilingual support for Elementor only when the option "
860
  "%1$s%2$s%3$s is set to %4$s."
930
  msgid "Selector type"
931
  msgstr ""
932
 
933
+ #: includes/class-wpglobus.php:1447
934
  msgid "You cannot disable the main language."
935
  msgstr ""
936
 
937
+ #: includes/class-wpglobus.php:1672
938
  msgid "Need a multilingual slug?"
939
  msgstr ""
940
 
941
+ #: includes/class-wpglobus.php:1655
942
  msgid "*) Available after the menu is saved."
943
  msgstr ""
944
 
945
+ #: includes/class-wpglobus.php:4025
946
  msgid "You must enable Pretty Permalinks to use WPGlobus."
947
  msgstr ""
948
 
949
+ #: includes/class-wpglobus.php:4027
950
  msgid ""
951
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
952
  "default option."
languages/wpglobus-fr_BE.po CHANGED
@@ -335,7 +335,7 @@ msgstr "Enregistrer & recharger"
335
 
336
  #: includes/admin/class-wpglobus-customize-options.php:553,
337
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
338
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
339
  msgid "WPGlobus"
340
  msgstr "WPGlobus"
341
 
@@ -902,7 +902,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
902
  msgstr ""
903
 
904
  #: includes/builders/class-wpglobus-builder.php:278,
905
- #: includes/class-wpglobus.php:3570
906
  msgid "Save draft before using extra language."
907
  msgstr ""
908
 
@@ -917,22 +917,22 @@ msgstr ""
917
  #. translators: ON/OFF status of WPGlobus on the edit pages.
918
  #. translators: ON/OFF status of WPGlobus on the edit pages.
919
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
920
- #: includes/class-wpglobus.php:1256
921
  msgid "ON"
922
  msgstr ""
923
 
924
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
925
- #: includes/class-wpglobus.php:1257
926
  msgid "Turn off"
927
  msgstr ""
928
 
929
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
930
- #: includes/class-wpglobus.php:1251
931
  msgid "OFF"
932
  msgstr ""
933
 
934
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
935
- #: includes/class-wpglobus.php:1252
936
  msgid "Turn on"
937
  msgstr ""
938
 
@@ -948,7 +948,7 @@ msgstr ""
948
  msgid "current"
949
  msgstr ""
950
 
951
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
952
  msgid ""
953
  "WPGlobus provides multilingual support for Elementor only when the option "
954
  "%1$s%2$s%3$s is set to %4$s."
@@ -1024,25 +1024,25 @@ msgstr "Liste déroulante avec drapeaux"
1024
  msgid "Selector type"
1025
  msgstr "Type de sélecteur"
1026
 
1027
- #: includes/class-wpglobus.php:1440
1028
  msgid "You cannot disable the main language."
1029
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1030
 
1031
- #: includes/class-wpglobus.php:1665
1032
  msgid "Need a multilingual slug?"
1033
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1034
 
1035
- #: includes/class-wpglobus.php:1648
1036
  msgid "*) Available after the menu is saved."
1037
  msgstr "*) Disponible après que le menu ait été enregistré."
1038
 
1039
- #: includes/class-wpglobus.php:4018
1040
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1041
  msgstr ""
1042
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1043
  "correctement."
1044
 
1045
- #: includes/class-wpglobus.php:4020
1046
  msgid ""
1047
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1048
  "default option."
335
 
336
  #: includes/admin/class-wpglobus-customize-options.php:553,
337
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
338
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
339
  msgid "WPGlobus"
340
  msgstr "WPGlobus"
341
 
902
  msgstr ""
903
 
904
  #: includes/builders/class-wpglobus-builder.php:278,
905
+ #: includes/class-wpglobus.php:3577
906
  msgid "Save draft before using extra language."
907
  msgstr ""
908
 
917
  #. translators: ON/OFF status of WPGlobus on the edit pages.
918
  #. translators: ON/OFF status of WPGlobus on the edit pages.
919
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
920
+ #: includes/class-wpglobus.php:1263
921
  msgid "ON"
922
  msgstr ""
923
 
924
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
925
+ #: includes/class-wpglobus.php:1264
926
  msgid "Turn off"
927
  msgstr ""
928
 
929
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
930
+ #: includes/class-wpglobus.php:1258
931
  msgid "OFF"
932
  msgstr ""
933
 
934
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
935
+ #: includes/class-wpglobus.php:1259
936
  msgid "Turn on"
937
  msgstr ""
938
 
948
  msgid "current"
949
  msgstr ""
950
 
951
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
952
  msgid ""
953
  "WPGlobus provides multilingual support for Elementor only when the option "
954
  "%1$s%2$s%3$s is set to %4$s."
1024
  msgid "Selector type"
1025
  msgstr "Type de sélecteur"
1026
 
1027
+ #: includes/class-wpglobus.php:1447
1028
  msgid "You cannot disable the main language."
1029
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1030
 
1031
+ #: includes/class-wpglobus.php:1672
1032
  msgid "Need a multilingual slug?"
1033
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1034
 
1035
+ #: includes/class-wpglobus.php:1655
1036
  msgid "*) Available after the menu is saved."
1037
  msgstr "*) Disponible après que le menu ait été enregistré."
1038
 
1039
+ #: includes/class-wpglobus.php:4025
1040
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1041
  msgstr ""
1042
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1043
  "correctement."
1044
 
1045
+ #: includes/class-wpglobus.php:4027
1046
  msgid ""
1047
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1048
  "default option."
languages/wpglobus-fr_CA.po CHANGED
@@ -337,7 +337,7 @@ msgstr "Enregistrer & recharger"
337
 
338
  #: includes/admin/class-wpglobus-customize-options.php:553,
339
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
340
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
341
  msgid "WPGlobus"
342
  msgstr "WPGlobus"
343
 
@@ -904,7 +904,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
904
  msgstr ""
905
 
906
  #: includes/builders/class-wpglobus-builder.php:278,
907
- #: includes/class-wpglobus.php:3570
908
  msgid "Save draft before using extra language."
909
  msgstr ""
910
 
@@ -919,22 +919,22 @@ msgstr ""
919
  #. translators: ON/OFF status of WPGlobus on the edit pages.
920
  #. translators: ON/OFF status of WPGlobus on the edit pages.
921
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
922
- #: includes/class-wpglobus.php:1256
923
  msgid "ON"
924
  msgstr ""
925
 
926
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
927
- #: includes/class-wpglobus.php:1257
928
  msgid "Turn off"
929
  msgstr ""
930
 
931
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
932
- #: includes/class-wpglobus.php:1251
933
  msgid "OFF"
934
  msgstr ""
935
 
936
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
937
- #: includes/class-wpglobus.php:1252
938
  msgid "Turn on"
939
  msgstr ""
940
 
@@ -950,7 +950,7 @@ msgstr ""
950
  msgid "current"
951
  msgstr ""
952
 
953
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
954
  msgid ""
955
  "WPGlobus provides multilingual support for Elementor only when the option "
956
  "%1$s%2$s%3$s is set to %4$s."
@@ -1026,25 +1026,25 @@ msgstr "Liste déroulante avec drapeaux"
1026
  msgid "Selector type"
1027
  msgstr "Type de sélecteur"
1028
 
1029
- #: includes/class-wpglobus.php:1440
1030
  msgid "You cannot disable the main language."
1031
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1032
 
1033
- #: includes/class-wpglobus.php:1665
1034
  msgid "Need a multilingual slug?"
1035
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1036
 
1037
- #: includes/class-wpglobus.php:1648
1038
  msgid "*) Available after the menu is saved."
1039
  msgstr "*) Disponible après que le menu ait été enregistré."
1040
 
1041
- #: includes/class-wpglobus.php:4018
1042
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1043
  msgstr ""
1044
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1045
  "correctement."
1046
 
1047
- #: includes/class-wpglobus.php:4020
1048
  msgid ""
1049
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1050
  "default option."
337
 
338
  #: includes/admin/class-wpglobus-customize-options.php:553,
339
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
340
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
341
  msgid "WPGlobus"
342
  msgstr "WPGlobus"
343
 
904
  msgstr ""
905
 
906
  #: includes/builders/class-wpglobus-builder.php:278,
907
+ #: includes/class-wpglobus.php:3577
908
  msgid "Save draft before using extra language."
909
  msgstr ""
910
 
919
  #. translators: ON/OFF status of WPGlobus on the edit pages.
920
  #. translators: ON/OFF status of WPGlobus on the edit pages.
921
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
922
+ #: includes/class-wpglobus.php:1263
923
  msgid "ON"
924
  msgstr ""
925
 
926
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
927
+ #: includes/class-wpglobus.php:1264
928
  msgid "Turn off"
929
  msgstr ""
930
 
931
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
932
+ #: includes/class-wpglobus.php:1258
933
  msgid "OFF"
934
  msgstr ""
935
 
936
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
937
+ #: includes/class-wpglobus.php:1259
938
  msgid "Turn on"
939
  msgstr ""
940
 
950
  msgid "current"
951
  msgstr ""
952
 
953
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
954
  msgid ""
955
  "WPGlobus provides multilingual support for Elementor only when the option "
956
  "%1$s%2$s%3$s is set to %4$s."
1026
  msgid "Selector type"
1027
  msgstr "Type de sélecteur"
1028
 
1029
+ #: includes/class-wpglobus.php:1447
1030
  msgid "You cannot disable the main language."
1031
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1032
 
1033
+ #: includes/class-wpglobus.php:1672
1034
  msgid "Need a multilingual slug?"
1035
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1036
 
1037
+ #: includes/class-wpglobus.php:1655
1038
  msgid "*) Available after the menu is saved."
1039
  msgstr "*) Disponible après que le menu ait été enregistré."
1040
 
1041
+ #: includes/class-wpglobus.php:4025
1042
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1043
  msgstr ""
1044
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1045
  "correctement."
1046
 
1047
+ #: includes/class-wpglobus.php:4027
1048
  msgid ""
1049
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1050
  "default option."
languages/wpglobus-fr_FR.po CHANGED
@@ -337,7 +337,7 @@ msgstr "Enregistrer & recharger"
337
 
338
  #: includes/admin/class-wpglobus-customize-options.php:553,
339
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
340
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
341
  msgid "WPGlobus"
342
  msgstr "WPGlobus"
343
 
@@ -912,7 +912,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
912
  msgstr "Traduisez les permalinks avec notre add-on premium, WPGlobus Plus!"
913
 
914
  #: includes/builders/class-wpglobus-builder.php:278,
915
- #: includes/class-wpglobus.php:3570
916
  msgid "Save draft before using extra language."
917
  msgstr "Enregistrer le brouillon avant d’utiliser un langage supplémentaire."
918
 
@@ -927,22 +927,22 @@ msgstr "Paramètres de compatibilité"
927
  #. translators: ON/OFF status of WPGlobus on the edit pages.
928
  #. translators: ON/OFF status of WPGlobus on the edit pages.
929
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
930
- #: includes/class-wpglobus.php:1256
931
  msgid "ON"
932
  msgstr "OUI"
933
 
934
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
935
- #: includes/class-wpglobus.php:1257
936
  msgid "Turn off"
937
  msgstr "Désactiver"
938
 
939
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
940
- #: includes/class-wpglobus.php:1251
941
  msgid "OFF"
942
  msgstr "NON"
943
 
944
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
945
- #: includes/class-wpglobus.php:1252
946
  msgid "Turn on"
947
  msgstr "Activer"
948
 
@@ -958,7 +958,7 @@ msgstr "Langues WPGlobus"
958
  msgid "current"
959
  msgstr "actuel"
960
 
961
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
962
  msgid ""
963
  "WPGlobus provides multilingual support for Elementor only when the option "
964
  "%1$s%2$s%3$s is set to %4$s."
@@ -1039,25 +1039,25 @@ msgstr "Liste déroulante avec drapeaux"
1039
  msgid "Selector type"
1040
  msgstr "Type de sélecteur"
1041
 
1042
- #: includes/class-wpglobus.php:1440
1043
  msgid "You cannot disable the main language."
1044
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1045
 
1046
- #: includes/class-wpglobus.php:1665
1047
  msgid "Need a multilingual slug?"
1048
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1049
 
1050
- #: includes/class-wpglobus.php:1648
1051
  msgid "*) Available after the menu is saved."
1052
  msgstr "*) Disponible après que le menu ait été enregistré."
1053
 
1054
- #: includes/class-wpglobus.php:4018
1055
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1056
  msgstr ""
1057
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1058
  "correctement."
1059
 
1060
- #: includes/class-wpglobus.php:4020
1061
  msgid ""
1062
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1063
  "default option."
337
 
338
  #: includes/admin/class-wpglobus-customize-options.php:553,
339
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
340
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
341
  msgid "WPGlobus"
342
  msgstr "WPGlobus"
343
 
912
  msgstr "Traduisez les permalinks avec notre add-on premium, WPGlobus Plus!"
913
 
914
  #: includes/builders/class-wpglobus-builder.php:278,
915
+ #: includes/class-wpglobus.php:3577
916
  msgid "Save draft before using extra language."
917
  msgstr "Enregistrer le brouillon avant d’utiliser un langage supplémentaire."
918
 
927
  #. translators: ON/OFF status of WPGlobus on the edit pages.
928
  #. translators: ON/OFF status of WPGlobus on the edit pages.
929
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
930
+ #: includes/class-wpglobus.php:1263
931
  msgid "ON"
932
  msgstr "OUI"
933
 
934
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
935
+ #: includes/class-wpglobus.php:1264
936
  msgid "Turn off"
937
  msgstr "Désactiver"
938
 
939
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
940
+ #: includes/class-wpglobus.php:1258
941
  msgid "OFF"
942
  msgstr "NON"
943
 
944
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
945
+ #: includes/class-wpglobus.php:1259
946
  msgid "Turn on"
947
  msgstr "Activer"
948
 
958
  msgid "current"
959
  msgstr "actuel"
960
 
961
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
962
  msgid ""
963
  "WPGlobus provides multilingual support for Elementor only when the option "
964
  "%1$s%2$s%3$s is set to %4$s."
1039
  msgid "Selector type"
1040
  msgstr "Type de sélecteur"
1041
 
1042
+ #: includes/class-wpglobus.php:1447
1043
  msgid "You cannot disable the main language."
1044
  msgstr "Vous ne pouvez pas désactiver la langue principale."
1045
 
1046
+ #: includes/class-wpglobus.php:1672
1047
  msgid "Need a multilingual slug?"
1048
  msgstr "Vous avez besoin d’un identifiant multilingue ?"
1049
 
1050
+ #: includes/class-wpglobus.php:1655
1051
  msgid "*) Available after the menu is saved."
1052
  msgstr "*) Disponible après que le menu ait été enregistré."
1053
 
1054
+ #: includes/class-wpglobus.php:4025
1055
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1056
  msgstr ""
1057
  "Vous devez activer les jolis permaliens pour pouvoir utiliser WPGlobus "
1058
  "correctement."
1059
 
1060
+ #: includes/class-wpglobus.php:4027
1061
  msgid ""
1062
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1063
  "default option."
languages/wpglobus-id_ID.po CHANGED
@@ -328,7 +328,7 @@ msgstr "Simpan &amp; Reload"
328
 
329
  #: includes/admin/class-wpglobus-customize-options.php:553,
330
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
331
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
332
  msgid "WPGlobus"
333
  msgstr "WPGlobus"
334
 
@@ -881,7 +881,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
881
  msgstr ""
882
 
883
  #: includes/builders/class-wpglobus-builder.php:278,
884
- #: includes/class-wpglobus.php:3570
885
  msgid "Save draft before using extra language."
886
  msgstr ""
887
 
@@ -896,22 +896,22 @@ msgstr ""
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #. translators: ON/OFF status of WPGlobus on the edit pages.
898
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
899
- #: includes/class-wpglobus.php:1256
900
  msgid "ON"
901
  msgstr ""
902
 
903
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
904
- #: includes/class-wpglobus.php:1257
905
  msgid "Turn off"
906
  msgstr ""
907
 
908
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
909
- #: includes/class-wpglobus.php:1251
910
  msgid "OFF"
911
  msgstr ""
912
 
913
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
914
- #: includes/class-wpglobus.php:1252
915
  msgid "Turn on"
916
  msgstr ""
917
 
@@ -927,7 +927,7 @@ msgstr ""
927
  msgid "current"
928
  msgstr ""
929
 
930
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
931
  msgid ""
932
  "WPGlobus provides multilingual support for Elementor only when the option "
933
  "%1$s%2$s%3$s is set to %4$s."
@@ -1003,23 +1003,23 @@ msgstr "Dropdown dengan bendera"
1003
  msgid "Selector type"
1004
  msgstr "Jenis pemilih"
1005
 
1006
- #: includes/class-wpglobus.php:1440
1007
  msgid "You cannot disable the main language."
1008
  msgstr "Anda tidak dapat menonaktifkan bahasa utama."
1009
 
1010
- #: includes/class-wpglobus.php:1665
1011
  msgid "Need a multilingual slug?"
1012
  msgstr ""
1013
 
1014
- #: includes/class-wpglobus.php:1648
1015
  msgid "*) Available after the menu is saved."
1016
  msgstr "*) Tersedia setelah menu tersebut disimpan."
1017
 
1018
- #: includes/class-wpglobus.php:4018
1019
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1020
  msgstr "Anda harus mengaktifkan Permalinks Cukup menggunakan WPGlobus."
1021
 
1022
- #: includes/class-wpglobus.php:4020
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
328
 
329
  #: includes/admin/class-wpglobus-customize-options.php:553,
330
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
331
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
332
  msgid "WPGlobus"
333
  msgstr "WPGlobus"
334
 
881
  msgstr ""
882
 
883
  #: includes/builders/class-wpglobus-builder.php:278,
884
+ #: includes/class-wpglobus.php:3577
885
  msgid "Save draft before using extra language."
886
  msgstr ""
887
 
896
  #. translators: ON/OFF status of WPGlobus on the edit pages.
897
  #. translators: ON/OFF status of WPGlobus on the edit pages.
898
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
899
+ #: includes/class-wpglobus.php:1263
900
  msgid "ON"
901
  msgstr ""
902
 
903
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
904
+ #: includes/class-wpglobus.php:1264
905
  msgid "Turn off"
906
  msgstr ""
907
 
908
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
909
+ #: includes/class-wpglobus.php:1258
910
  msgid "OFF"
911
  msgstr ""
912
 
913
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
914
+ #: includes/class-wpglobus.php:1259
915
  msgid "Turn on"
916
  msgstr ""
917
 
927
  msgid "current"
928
  msgstr ""
929
 
930
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
931
  msgid ""
932
  "WPGlobus provides multilingual support for Elementor only when the option "
933
  "%1$s%2$s%3$s is set to %4$s."
1003
  msgid "Selector type"
1004
  msgstr "Jenis pemilih"
1005
 
1006
+ #: includes/class-wpglobus.php:1447
1007
  msgid "You cannot disable the main language."
1008
  msgstr "Anda tidak dapat menonaktifkan bahasa utama."
1009
 
1010
+ #: includes/class-wpglobus.php:1672
1011
  msgid "Need a multilingual slug?"
1012
  msgstr ""
1013
 
1014
+ #: includes/class-wpglobus.php:1655
1015
  msgid "*) Available after the menu is saved."
1016
  msgstr "*) Tersedia setelah menu tersebut disimpan."
1017
 
1018
+ #: includes/class-wpglobus.php:4025
1019
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1020
  msgstr "Anda harus mengaktifkan Permalinks Cukup menggunakan WPGlobus."
1021
 
1022
+ #: includes/class-wpglobus.php:4027
1023
  msgid ""
1024
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1025
  "default option."
languages/wpglobus-ko_KR.po CHANGED
@@ -281,7 +281,7 @@ msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3570
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -822,22 +822,22 @@ msgstr ""
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
- #: includes/class-wpglobus.php:1256
826
  msgid "ON"
827
  msgstr ""
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
- #: includes/class-wpglobus.php:1257
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
- #: includes/class-wpglobus.php:1251
836
  msgid "OFF"
837
  msgstr ""
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
- #: includes/class-wpglobus.php:1252
841
  msgid "Turn on"
842
  msgstr ""
843
 
@@ -853,7 +853,7 @@ msgstr ""
853
  msgid "current"
854
  msgstr ""
855
 
856
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
@@ -929,23 +929,23 @@ msgstr ""
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
- #: includes/class-wpglobus.php:1440
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
- #: includes/class-wpglobus.php:1665
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
- #: includes/class-wpglobus.php:1648
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:4018
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4020
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3577
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
+ #: includes/class-wpglobus.php:1263
826
  msgid "ON"
827
  msgstr ""
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
+ #: includes/class-wpglobus.php:1264
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
+ #: includes/class-wpglobus.php:1258
836
  msgid "OFF"
837
  msgstr ""
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
+ #: includes/class-wpglobus.php:1259
841
  msgid "Turn on"
842
  msgstr ""
843
 
853
  msgid "current"
854
  msgstr ""
855
 
856
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
+ #: includes/class-wpglobus.php:1447
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
+ #: includes/class-wpglobus.php:1672
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
+ #: includes/class-wpglobus.php:1655
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4025
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4027
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-pl_PL.po CHANGED
@@ -299,7 +299,7 @@ msgstr ""
299
 
300
  #: includes/admin/class-wpglobus-customize-options.php:553,
301
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
302
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
303
  msgid "WPGlobus"
304
  msgstr "WPGlobus"
305
 
@@ -834,7 +834,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
834
  msgstr ""
835
 
836
  #: includes/builders/class-wpglobus-builder.php:278,
837
- #: includes/class-wpglobus.php:3570
838
  msgid "Save draft before using extra language."
839
  msgstr ""
840
 
@@ -849,22 +849,22 @@ msgstr ""
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #. translators: ON/OFF status of WPGlobus on the edit pages.
851
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
852
- #: includes/class-wpglobus.php:1256
853
  msgid "ON"
854
  msgstr ""
855
 
856
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
857
- #: includes/class-wpglobus.php:1257
858
  msgid "Turn off"
859
  msgstr ""
860
 
861
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
862
- #: includes/class-wpglobus.php:1251
863
  msgid "OFF"
864
  msgstr ""
865
 
866
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
867
- #: includes/class-wpglobus.php:1252
868
  msgid "Turn on"
869
  msgstr ""
870
 
@@ -880,7 +880,7 @@ msgstr ""
880
  msgid "current"
881
  msgstr ""
882
 
883
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
884
  msgid ""
885
  "WPGlobus provides multilingual support for Elementor only when the option "
886
  "%1$s%2$s%3$s is set to %4$s."
@@ -956,24 +956,24 @@ msgstr "Rozwijana lista z flagami"
956
  msgid "Selector type"
957
  msgstr "Sposób wyboru"
958
 
959
- #: includes/class-wpglobus.php:1440
960
  msgid "You cannot disable the main language."
961
  msgstr "Nie możesz wyłączyć głównego języka."
962
 
963
- #: includes/class-wpglobus.php:1665
964
  msgid "Need a multilingual slug?"
965
  msgstr ""
966
 
967
- #: includes/class-wpglobus.php:1648
968
  msgid "*) Available after the menu is saved."
969
  msgstr "*) Dostępne po zapisaniu menu."
970
 
971
- #: includes/class-wpglobus.php:4018
972
  msgid "You must enable Pretty Permalinks to use WPGlobus."
973
  msgstr ""
974
  "Aby korzystać z WPGlobus'a, musisz ustawić przyjazne bezpośrednie odnośniki."
975
 
976
- #: includes/class-wpglobus.php:4020
977
  msgid ""
978
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
979
  "default option."
299
 
300
  #: includes/admin/class-wpglobus-customize-options.php:553,
301
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
302
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
303
  msgid "WPGlobus"
304
  msgstr "WPGlobus"
305
 
834
  msgstr ""
835
 
836
  #: includes/builders/class-wpglobus-builder.php:278,
837
+ #: includes/class-wpglobus.php:3577
838
  msgid "Save draft before using extra language."
839
  msgstr ""
840
 
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #. translators: ON/OFF status of WPGlobus on the edit pages.
851
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
852
+ #: includes/class-wpglobus.php:1263
853
  msgid "ON"
854
  msgstr ""
855
 
856
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
857
+ #: includes/class-wpglobus.php:1264
858
  msgid "Turn off"
859
  msgstr ""
860
 
861
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
862
+ #: includes/class-wpglobus.php:1258
863
  msgid "OFF"
864
  msgstr ""
865
 
866
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
867
+ #: includes/class-wpglobus.php:1259
868
  msgid "Turn on"
869
  msgstr ""
870
 
880
  msgid "current"
881
  msgstr ""
882
 
883
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
884
  msgid ""
885
  "WPGlobus provides multilingual support for Elementor only when the option "
886
  "%1$s%2$s%3$s is set to %4$s."
956
  msgid "Selector type"
957
  msgstr "Sposób wyboru"
958
 
959
+ #: includes/class-wpglobus.php:1447
960
  msgid "You cannot disable the main language."
961
  msgstr "Nie możesz wyłączyć głównego języka."
962
 
963
+ #: includes/class-wpglobus.php:1672
964
  msgid "Need a multilingual slug?"
965
  msgstr ""
966
 
967
+ #: includes/class-wpglobus.php:1655
968
  msgid "*) Available after the menu is saved."
969
  msgstr "*) Dostępne po zapisaniu menu."
970
 
971
+ #: includes/class-wpglobus.php:4025
972
  msgid "You must enable Pretty Permalinks to use WPGlobus."
973
  msgstr ""
974
  "Aby korzystać z WPGlobus'a, musisz ustawić przyjazne bezpośrednie odnośniki."
975
 
976
+ #: includes/class-wpglobus.php:4027
977
  msgid ""
978
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
979
  "default option."
languages/wpglobus-pt_BR.po CHANGED
@@ -281,7 +281,7 @@ msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3570
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -822,22 +822,22 @@ msgstr ""
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
- #: includes/class-wpglobus.php:1256
826
  msgid "ON"
827
  msgstr "LIGADO"
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
- #: includes/class-wpglobus.php:1257
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
- #: includes/class-wpglobus.php:1251
836
  msgid "OFF"
837
  msgstr "DESLIGADO"
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
- #: includes/class-wpglobus.php:1252
841
  msgid "Turn on"
842
  msgstr ""
843
 
@@ -853,7 +853,7 @@ msgstr ""
853
  msgid "current"
854
  msgstr ""
855
 
856
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
@@ -929,23 +929,23 @@ msgstr ""
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
- #: includes/class-wpglobus.php:1440
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
- #: includes/class-wpglobus.php:1665
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
- #: includes/class-wpglobus.php:1648
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:4018
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4020
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3577
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
+ #: includes/class-wpglobus.php:1263
826
  msgid "ON"
827
  msgstr "LIGADO"
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
+ #: includes/class-wpglobus.php:1264
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
+ #: includes/class-wpglobus.php:1258
836
  msgid "OFF"
837
  msgstr "DESLIGADO"
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
+ #: includes/class-wpglobus.php:1259
841
  msgid "Turn on"
842
  msgstr ""
843
 
853
  msgid "current"
854
  msgstr ""
855
 
856
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
+ #: includes/class-wpglobus.php:1447
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
+ #: includes/class-wpglobus.php:1672
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
+ #: includes/class-wpglobus.php:1655
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4025
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4027
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-pt_PT.po CHANGED
@@ -281,7 +281,7 @@ msgstr ""
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
@@ -807,7 +807,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
- #: includes/class-wpglobus.php:3570
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
@@ -822,22 +822,22 @@ msgstr ""
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
- #: includes/class-wpglobus.php:1256
826
  msgid "ON"
827
  msgstr "Sim"
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
- #: includes/class-wpglobus.php:1257
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
- #: includes/class-wpglobus.php:1251
836
  msgid "OFF"
837
  msgstr "Não"
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
- #: includes/class-wpglobus.php:1252
841
  msgid "Turn on"
842
  msgstr ""
843
 
@@ -853,7 +853,7 @@ msgstr ""
853
  msgid "current"
854
  msgstr ""
855
 
856
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
@@ -929,23 +929,23 @@ msgstr ""
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
- #: includes/class-wpglobus.php:1440
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
- #: includes/class-wpglobus.php:1665
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
- #: includes/class-wpglobus.php:1648
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
- #: includes/class-wpglobus.php:4018
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
- #: includes/class-wpglobus.php:4020
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
281
 
282
  #: includes/admin/class-wpglobus-customize-options.php:553,
283
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
284
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
285
  msgid "WPGlobus"
286
  msgstr ""
287
 
807
  msgstr ""
808
 
809
  #: includes/builders/class-wpglobus-builder.php:278,
810
+ #: includes/class-wpglobus.php:3577
811
  msgid "Save draft before using extra language."
812
  msgstr ""
813
 
822
  #. translators: ON/OFF status of WPGlobus on the edit pages.
823
  #. translators: ON/OFF status of WPGlobus on the edit pages.
824
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
825
+ #: includes/class-wpglobus.php:1263
826
  msgid "ON"
827
  msgstr "Sim"
828
 
829
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
830
+ #: includes/class-wpglobus.php:1264
831
  msgid "Turn off"
832
  msgstr ""
833
 
834
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
835
+ #: includes/class-wpglobus.php:1258
836
  msgid "OFF"
837
  msgstr "Não"
838
 
839
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
840
+ #: includes/class-wpglobus.php:1259
841
  msgid "Turn on"
842
  msgstr ""
843
 
853
  msgid "current"
854
  msgstr ""
855
 
856
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
857
  msgid ""
858
  "WPGlobus provides multilingual support for Elementor only when the option "
859
  "%1$s%2$s%3$s is set to %4$s."
929
  msgid "Selector type"
930
  msgstr ""
931
 
932
+ #: includes/class-wpglobus.php:1447
933
  msgid "You cannot disable the main language."
934
  msgstr ""
935
 
936
+ #: includes/class-wpglobus.php:1672
937
  msgid "Need a multilingual slug?"
938
  msgstr ""
939
 
940
+ #: includes/class-wpglobus.php:1655
941
  msgid "*) Available after the menu is saved."
942
  msgstr ""
943
 
944
+ #: includes/class-wpglobus.php:4025
945
  msgid "You must enable Pretty Permalinks to use WPGlobus."
946
  msgstr ""
947
 
948
+ #: includes/class-wpglobus.php:4027
949
  msgid ""
950
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
951
  "default option."
languages/wpglobus-ro_RO.po CHANGED
@@ -298,7 +298,7 @@ msgstr ""
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr "WPGlobus"
304
 
@@ -837,7 +837,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
837
  msgstr ""
838
 
839
  #: includes/builders/class-wpglobus-builder.php:278,
840
- #: includes/class-wpglobus.php:3570
841
  msgid "Save draft before using extra language."
842
  msgstr ""
843
 
@@ -852,22 +852,22 @@ msgstr ""
852
  #. translators: ON/OFF status of WPGlobus on the edit pages.
853
  #. translators: ON/OFF status of WPGlobus on the edit pages.
854
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
855
- #: includes/class-wpglobus.php:1256
856
  msgid "ON"
857
  msgstr ""
858
 
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
860
- #: includes/class-wpglobus.php:1257
861
  msgid "Turn off"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
865
- #: includes/class-wpglobus.php:1251
866
  msgid "OFF"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
870
- #: includes/class-wpglobus.php:1252
871
  msgid "Turn on"
872
  msgstr ""
873
 
@@ -883,7 +883,7 @@ msgstr ""
883
  msgid "current"
884
  msgstr ""
885
 
886
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
887
  msgid ""
888
  "WPGlobus provides multilingual support for Elementor only when the option "
889
  "%1$s%2$s%3$s is set to %4$s."
@@ -959,23 +959,23 @@ msgstr "Dropdown cu steaguri"
959
  msgid "Selector type"
960
  msgstr "Tipul de selector"
961
 
962
- #: includes/class-wpglobus.php:1440
963
  msgid "You cannot disable the main language."
964
  msgstr "Nu puteți dezactiva limba principală."
965
 
966
- #: includes/class-wpglobus.php:1665
967
  msgid "Need a multilingual slug?"
968
  msgstr ""
969
 
970
- #: includes/class-wpglobus.php:1648
971
  msgid "*) Available after the menu is saved."
972
  msgstr "*) Disponibil după ce meniul este salvat."
973
 
974
- #: includes/class-wpglobus.php:4018
975
  msgid "You must enable Pretty Permalinks to use WPGlobus."
976
  msgstr "Trebuie să activezi Pretty Permalinks pentru a folosi WPGlobus."
977
 
978
- #: includes/class-wpglobus.php:4020
979
  msgid ""
980
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
981
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr "WPGlobus"
304
 
837
  msgstr ""
838
 
839
  #: includes/builders/class-wpglobus-builder.php:278,
840
+ #: includes/class-wpglobus.php:3577
841
  msgid "Save draft before using extra language."
842
  msgstr ""
843
 
852
  #. translators: ON/OFF status of WPGlobus on the edit pages.
853
  #. translators: ON/OFF status of WPGlobus on the edit pages.
854
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
855
+ #: includes/class-wpglobus.php:1263
856
  msgid "ON"
857
  msgstr ""
858
 
859
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
860
+ #: includes/class-wpglobus.php:1264
861
  msgid "Turn off"
862
  msgstr ""
863
 
864
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
865
+ #: includes/class-wpglobus.php:1258
866
  msgid "OFF"
867
  msgstr ""
868
 
869
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
870
+ #: includes/class-wpglobus.php:1259
871
  msgid "Turn on"
872
  msgstr ""
873
 
883
  msgid "current"
884
  msgstr ""
885
 
886
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
887
  msgid ""
888
  "WPGlobus provides multilingual support for Elementor only when the option "
889
  "%1$s%2$s%3$s is set to %4$s."
959
  msgid "Selector type"
960
  msgstr "Tipul de selector"
961
 
962
+ #: includes/class-wpglobus.php:1447
963
  msgid "You cannot disable the main language."
964
  msgstr "Nu puteți dezactiva limba principală."
965
 
966
+ #: includes/class-wpglobus.php:1672
967
  msgid "Need a multilingual slug?"
968
  msgstr ""
969
 
970
+ #: includes/class-wpglobus.php:1655
971
  msgid "*) Available after the menu is saved."
972
  msgstr "*) Disponibil după ce meniul este salvat."
973
 
974
+ #: includes/class-wpglobus.php:4025
975
  msgid "You must enable Pretty Permalinks to use WPGlobus."
976
  msgstr "Trebuie să activezi Pretty Permalinks pentru a folosi WPGlobus."
977
 
978
+ #: includes/class-wpglobus.php:4027
979
  msgid ""
980
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
981
  "default option."
languages/wpglobus-ru_RU.po CHANGED
@@ -334,7 +334,7 @@ msgstr "Сохранить и перезагрузить"
334
 
335
  #: includes/admin/class-wpglobus-customize-options.php:553,
336
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
337
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
338
  msgid "WPGlobus"
339
  msgstr "WPGlobus"
340
 
@@ -894,7 +894,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
894
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
895
 
896
  #: includes/builders/class-wpglobus-builder.php:278,
897
- #: includes/class-wpglobus.php:3570
898
  msgid "Save draft before using extra language."
899
  msgstr "Сохраните черновик перед переключением на другой язык."
900
 
@@ -909,22 +909,22 @@ msgstr "Совместимость"
909
  #. translators: ON/OFF status of WPGlobus on the edit pages.
910
  #. translators: ON/OFF status of WPGlobus on the edit pages.
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
912
- #: includes/class-wpglobus.php:1256
913
  msgid "ON"
914
  msgstr "ВКЛ"
915
 
916
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
917
- #: includes/class-wpglobus.php:1257
918
  msgid "Turn off"
919
  msgstr "Выключить"
920
 
921
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
922
- #: includes/class-wpglobus.php:1251
923
  msgid "OFF"
924
  msgstr "ВЫКЛ"
925
 
926
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
927
- #: includes/class-wpglobus.php:1252
928
  msgid "Turn on"
929
  msgstr "Включить"
930
 
@@ -940,7 +940,7 @@ msgstr "Языки WPGlobus"
940
  msgid "current"
941
  msgstr "текущий"
942
 
943
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
944
  msgid ""
945
  "WPGlobus provides multilingual support for Elementor only when the option "
946
  "%1$s%2$s%3$s is set to %4$s."
@@ -1022,25 +1022,25 @@ msgstr "Выпадающее меню с флагами"
1022
  msgid "Selector type"
1023
  msgstr "Способ выбора языка"
1024
 
1025
- #: includes/class-wpglobus.php:1440
1026
  msgid "You cannot disable the main language."
1027
  msgstr "Нельзя отключить основной язык."
1028
 
1029
- #: includes/class-wpglobus.php:1665
1030
  msgid "Need a multilingual slug?"
1031
  msgstr "Нужен мультиязычный ярлык?"
1032
 
1033
- #: includes/class-wpglobus.php:1648
1034
  msgid "*) Available after the menu is saved."
1035
  msgstr "*) Доступно после сохранения меню."
1036
 
1037
- #: includes/class-wpglobus.php:4018
1038
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1039
  msgstr ""
1040
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1041
  "ссылки."
1042
 
1043
- #: includes/class-wpglobus.php:4020
1044
  msgid ""
1045
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1046
  "default option."
334
 
335
  #: includes/admin/class-wpglobus-customize-options.php:553,
336
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
337
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
338
  msgid "WPGlobus"
339
  msgstr "WPGlobus"
340
 
894
  msgstr "Перевод ссылок возможен с помощью WPGlobus-Плюс!"
895
 
896
  #: includes/builders/class-wpglobus-builder.php:278,
897
+ #: includes/class-wpglobus.php:3577
898
  msgid "Save draft before using extra language."
899
  msgstr "Сохраните черновик перед переключением на другой язык."
900
 
909
  #. translators: ON/OFF status of WPGlobus on the edit pages.
910
  #. translators: ON/OFF status of WPGlobus on the edit pages.
911
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
912
+ #: includes/class-wpglobus.php:1263
913
  msgid "ON"
914
  msgstr "ВКЛ"
915
 
916
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
917
+ #: includes/class-wpglobus.php:1264
918
  msgid "Turn off"
919
  msgstr "Выключить"
920
 
921
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
922
+ #: includes/class-wpglobus.php:1258
923
  msgid "OFF"
924
  msgstr "ВЫКЛ"
925
 
926
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
927
+ #: includes/class-wpglobus.php:1259
928
  msgid "Turn on"
929
  msgstr "Включить"
930
 
940
  msgid "current"
941
  msgstr "текущий"
942
 
943
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
944
  msgid ""
945
  "WPGlobus provides multilingual support for Elementor only when the option "
946
  "%1$s%2$s%3$s is set to %4$s."
1022
  msgid "Selector type"
1023
  msgstr "Способ выбора языка"
1024
 
1025
+ #: includes/class-wpglobus.php:1447
1026
  msgid "You cannot disable the main language."
1027
  msgstr "Нельзя отключить основной язык."
1028
 
1029
+ #: includes/class-wpglobus.php:1672
1030
  msgid "Need a multilingual slug?"
1031
  msgstr "Нужен мультиязычный ярлык?"
1032
 
1033
+ #: includes/class-wpglobus.php:1655
1034
  msgid "*) Available after the menu is saved."
1035
  msgstr "*) Доступно после сохранения меню."
1036
 
1037
+ #: includes/class-wpglobus.php:4025
1038
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1039
  msgstr ""
1040
  "Чтобы использовать плагин WPGlobus, необходимо включить ЧПУ - постоянные "
1041
  "ссылки."
1042
 
1043
+ #: includes/class-wpglobus.php:4027
1044
  msgid ""
1045
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1046
  "default option."
languages/wpglobus-sv_SE.po CHANGED
@@ -298,7 +298,7 @@ msgstr "Spara och ladda om"
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr "WPGlobus"
304
 
@@ -833,7 +833,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
- #: includes/class-wpglobus.php:3570
837
  msgid "Save draft before using extra language."
838
  msgstr "Spara utkast innan du använder extra språk."
839
 
@@ -848,22 +848,22 @@ msgstr "Inställningar för kompatibilitet"
848
  #. translators: ON/OFF status of WPGlobus on the edit pages.
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
851
- #: includes/class-wpglobus.php:1256
852
  msgid "ON"
853
  msgstr "PÅ"
854
 
855
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
856
- #: includes/class-wpglobus.php:1257
857
  msgid "Turn off"
858
  msgstr "Stäng av"
859
 
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
861
- #: includes/class-wpglobus.php:1251
862
  msgid "OFF"
863
  msgstr "AV"
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
866
- #: includes/class-wpglobus.php:1252
867
  msgid "Turn on"
868
  msgstr ""
869
 
@@ -879,7 +879,7 @@ msgstr ""
879
  msgid "current"
880
  msgstr "nuvarande"
881
 
882
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
883
  msgid ""
884
  "WPGlobus provides multilingual support for Elementor only when the option "
885
  "%1$s%2$s%3$s is set to %4$s."
@@ -955,23 +955,23 @@ msgstr "Rulllistmeny med flaggor"
955
  msgid "Selector type"
956
  msgstr "Väljartyp"
957
 
958
- #: includes/class-wpglobus.php:1440
959
  msgid "You cannot disable the main language."
960
  msgstr "Du kan inte stänga av huvudspråk."
961
 
962
- #: includes/class-wpglobus.php:1665
963
  msgid "Need a multilingual slug?"
964
  msgstr ""
965
 
966
- #: includes/class-wpglobus.php:1648
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Tillgängligt när menyn sparats."
969
 
970
- #: includes/class-wpglobus.php:4018
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr "Du måste aktivera Vackra Permalänkar för att använda WPGlobus."
973
 
974
- #: includes/class-wpglobus.php:4020
975
  msgid ""
976
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
977
  "default option."
298
 
299
  #: includes/admin/class-wpglobus-customize-options.php:553,
300
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
301
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
302
  msgid "WPGlobus"
303
  msgstr "WPGlobus"
304
 
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
+ #: includes/class-wpglobus.php:3577
837
  msgid "Save draft before using extra language."
838
  msgstr "Spara utkast innan du använder extra språk."
839
 
848
  #. translators: ON/OFF status of WPGlobus on the edit pages.
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
851
+ #: includes/class-wpglobus.php:1263
852
  msgid "ON"
853
  msgstr "PÅ"
854
 
855
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
856
+ #: includes/class-wpglobus.php:1264
857
  msgid "Turn off"
858
  msgstr "Stäng av"
859
 
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
861
+ #: includes/class-wpglobus.php:1258
862
  msgid "OFF"
863
  msgstr "AV"
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
866
+ #: includes/class-wpglobus.php:1259
867
  msgid "Turn on"
868
  msgstr ""
869
 
879
  msgid "current"
880
  msgstr "nuvarande"
881
 
882
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
883
  msgid ""
884
  "WPGlobus provides multilingual support for Elementor only when the option "
885
  "%1$s%2$s%3$s is set to %4$s."
955
  msgid "Selector type"
956
  msgstr "Väljartyp"
957
 
958
+ #: includes/class-wpglobus.php:1447
959
  msgid "You cannot disable the main language."
960
  msgstr "Du kan inte stänga av huvudspråk."
961
 
962
+ #: includes/class-wpglobus.php:1672
963
  msgid "Need a multilingual slug?"
964
  msgstr ""
965
 
966
+ #: includes/class-wpglobus.php:1655
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Tillgängligt när menyn sparats."
969
 
970
+ #: includes/class-wpglobus.php:4025
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr "Du måste aktivera Vackra Permalänkar för att använda WPGlobus."
973
 
974
+ #: includes/class-wpglobus.php:4027
975
  msgid ""
976
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
977
  "default option."
languages/wpglobus-tr_TR.po CHANGED
@@ -299,7 +299,7 @@ msgstr ""
299
 
300
  #: includes/admin/class-wpglobus-customize-options.php:553,
301
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
302
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
303
  msgid "WPGlobus"
304
  msgstr ""
305
 
@@ -833,7 +833,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
- #: includes/class-wpglobus.php:3570
837
  msgid "Save draft before using extra language."
838
  msgstr ""
839
 
@@ -848,22 +848,22 @@ msgstr ""
848
  #. translators: ON/OFF status of WPGlobus on the edit pages.
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
851
- #: includes/class-wpglobus.php:1256
852
  msgid "ON"
853
  msgstr "AÇIK"
854
 
855
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
856
- #: includes/class-wpglobus.php:1257
857
  msgid "Turn off"
858
  msgstr ""
859
 
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
861
- #: includes/class-wpglobus.php:1251
862
  msgid "OFF"
863
  msgstr "KAPALI"
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
866
- #: includes/class-wpglobus.php:1252
867
  msgid "Turn on"
868
  msgstr ""
869
 
@@ -879,7 +879,7 @@ msgstr ""
879
  msgid "current"
880
  msgstr ""
881
 
882
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
883
  msgid ""
884
  "WPGlobus provides multilingual support for Elementor only when the option "
885
  "%1$s%2$s%3$s is set to %4$s."
@@ -955,24 +955,24 @@ msgstr "Açılan menü, bayraklı"
955
  msgid "Selector type"
956
  msgstr "Değiştirici tipi"
957
 
958
- #: includes/class-wpglobus.php:1440
959
  msgid "You cannot disable the main language."
960
  msgstr "Asıl dili etkisizleştiremezsiniz."
961
 
962
- #: includes/class-wpglobus.php:1665
963
  msgid "Need a multilingual slug?"
964
  msgstr ""
965
 
966
- #: includes/class-wpglobus.php:1648
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Menü kaydedildikten sonra kullanılabilir."
969
 
970
- #: includes/class-wpglobus.php:4018
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr ""
973
  "WPGlobus' u kullanabilmek için Pretty Permalinks' i etkinleştirmelisiniz."
974
 
975
- #: includes/class-wpglobus.php:4020
976
  msgid ""
977
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
978
  "default option."
299
 
300
  #: includes/admin/class-wpglobus-customize-options.php:553,
301
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
302
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
303
  msgid "WPGlobus"
304
  msgstr ""
305
 
833
  msgstr ""
834
 
835
  #: includes/builders/class-wpglobus-builder.php:278,
836
+ #: includes/class-wpglobus.php:3577
837
  msgid "Save draft before using extra language."
838
  msgstr ""
839
 
848
  #. translators: ON/OFF status of WPGlobus on the edit pages.
849
  #. translators: ON/OFF status of WPGlobus on the edit pages.
850
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
851
+ #: includes/class-wpglobus.php:1263
852
  msgid "ON"
853
  msgstr "AÇIK"
854
 
855
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
856
+ #: includes/class-wpglobus.php:1264
857
  msgid "Turn off"
858
  msgstr ""
859
 
860
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
861
+ #: includes/class-wpglobus.php:1258
862
  msgid "OFF"
863
  msgstr "KAPALI"
864
 
865
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
866
+ #: includes/class-wpglobus.php:1259
867
  msgid "Turn on"
868
  msgstr ""
869
 
879
  msgid "current"
880
  msgstr ""
881
 
882
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
883
  msgid ""
884
  "WPGlobus provides multilingual support for Elementor only when the option "
885
  "%1$s%2$s%3$s is set to %4$s."
955
  msgid "Selector type"
956
  msgstr "Değiştirici tipi"
957
 
958
+ #: includes/class-wpglobus.php:1447
959
  msgid "You cannot disable the main language."
960
  msgstr "Asıl dili etkisizleştiremezsiniz."
961
 
962
+ #: includes/class-wpglobus.php:1672
963
  msgid "Need a multilingual slug?"
964
  msgstr ""
965
 
966
+ #: includes/class-wpglobus.php:1655
967
  msgid "*) Available after the menu is saved."
968
  msgstr "*) Menü kaydedildikten sonra kullanılabilir."
969
 
970
+ #: includes/class-wpglobus.php:4025
971
  msgid "You must enable Pretty Permalinks to use WPGlobus."
972
  msgstr ""
973
  "WPGlobus' u kullanabilmek için Pretty Permalinks' i etkinleştirmelisiniz."
974
 
975
+ #: includes/class-wpglobus.php:4027
976
  msgid ""
977
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
978
  "default option."
languages/wpglobus-uk.po CHANGED
@@ -325,7 +325,7 @@ msgstr "Зберегти та перезавантажити"
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
- #: includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
@@ -885,7 +885,7 @@ msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
885
  msgstr "Переклад посилань можливий за допомогою WPGlobus-Плюс!"
886
 
887
  #: includes/builders/class-wpglobus-builder.php:278,
888
- #: includes/class-wpglobus.php:3570
889
  msgid "Save draft before using extra language."
890
  msgstr "Збережіть чернетку перед перемиканням на іншу мову."
891
 
@@ -900,22 +900,22 @@ msgstr "Cумісність"
900
  #. translators: ON/OFF status of WPGlobus on the edit pages.
901
  #. translators: ON/OFF status of WPGlobus on the edit pages.
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
903
- #: includes/class-wpglobus.php:1256
904
  msgid "ON"
905
  msgstr "УВІМК"
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
908
- #: includes/class-wpglobus.php:1257
909
  msgid "Turn off"
910
  msgstr "Вимкнути"
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
913
- #: includes/class-wpglobus.php:1251
914
  msgid "OFF"
915
  msgstr "ВИМК"
916
 
917
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
918
- #: includes/class-wpglobus.php:1252
919
  msgid "Turn on"
920
  msgstr "Увімкнути"
921
 
@@ -931,7 +931,7 @@ msgstr "Мови WPGlobus"
931
  msgid "current"
932
  msgstr "поточний"
933
 
934
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
935
  msgid ""
936
  "WPGlobus provides multilingual support for Elementor only when the option "
937
  "%1$s%2$s%3$s is set to %4$s."
@@ -1009,25 +1009,25 @@ msgstr "Випадаюче меню з прапорами"
1009
  msgid "Selector type"
1010
  msgstr "Спосіб выбору мови"
1011
 
1012
- #: includes/class-wpglobus.php:1440
1013
  msgid "You cannot disable the main language."
1014
  msgstr "Неможна відключити головну мову."
1015
 
1016
- #: includes/class-wpglobus.php:1665
1017
  msgid "Need a multilingual slug?"
1018
  msgstr "Потрібен багатомовний ярлик?"
1019
 
1020
- #: includes/class-wpglobus.php:1648
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Доступно після збереження меню."
1023
 
1024
- #: includes/class-wpglobus.php:4018
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr ""
1027
  "Щоб використовувати плагін WPGlobus, необхідно увімкнути SEF URLs - постійні "
1028
  "посилання."
1029
 
1030
- #: includes/class-wpglobus.php:4020
1031
  msgid ""
1032
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1033
  "default option."
325
 
326
  #: includes/admin/class-wpglobus-customize-options.php:553,
327
  #: includes/builders/gutenberg/class-wpglobus-gutenberg.php:569,
328
+ #: includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
329
  msgid "WPGlobus"
330
  msgstr "WPGlobus"
331
 
885
  msgstr "Переклад посилань можливий за допомогою WPGlobus-Плюс!"
886
 
887
  #: includes/builders/class-wpglobus-builder.php:278,
888
+ #: includes/class-wpglobus.php:3577
889
  msgid "Save draft before using extra language."
890
  msgstr "Збережіть чернетку перед перемиканням на іншу мову."
891
 
900
  #. translators: ON/OFF status of WPGlobus on the edit pages.
901
  #. translators: ON/OFF status of WPGlobus on the edit pages.
902
  #: includes/builders/elementor/class-wpglobus-elementor.php:255,
903
+ #: includes/class-wpglobus.php:1263
904
  msgid "ON"
905
  msgstr "УВІМК"
906
 
907
  #: includes/builders/elementor/class-wpglobus-elementor.php:256,
908
+ #: includes/class-wpglobus.php:1264
909
  msgid "Turn off"
910
  msgstr "Вимкнути"
911
 
912
  #: includes/builders/elementor/class-wpglobus-elementor.php:250,
913
+ #: includes/class-wpglobus.php:1258
914
  msgid "OFF"
915
  msgstr "ВИМК"
916
 
917
  #: includes/builders/elementor/class-wpglobus-elementor.php:251,
918
+ #: includes/class-wpglobus.php:1259
919
  msgid "Turn on"
920
  msgstr "Увімкнути"
921
 
931
  msgid "current"
932
  msgstr "поточний"
933
 
934
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
935
  msgid ""
936
  "WPGlobus provides multilingual support for Elementor only when the option "
937
  "%1$s%2$s%3$s is set to %4$s."
1009
  msgid "Selector type"
1010
  msgstr "Спосіб выбору мови"
1011
 
1012
+ #: includes/class-wpglobus.php:1447
1013
  msgid "You cannot disable the main language."
1014
  msgstr "Неможна відключити головну мову."
1015
 
1016
+ #: includes/class-wpglobus.php:1672
1017
  msgid "Need a multilingual slug?"
1018
  msgstr "Потрібен багатомовний ярлик?"
1019
 
1020
+ #: includes/class-wpglobus.php:1655
1021
  msgid "*) Available after the menu is saved."
1022
  msgstr "*) Доступно після збереження меню."
1023
 
1024
+ #: includes/class-wpglobus.php:4025
1025
  msgid "You must enable Pretty Permalinks to use WPGlobus."
1026
  msgstr ""
1027
  "Щоб використовувати плагін WPGlobus, необхідно увімкнути SEF URLs - постійні "
1028
  "посилання."
1029
 
1030
+ #: includes/class-wpglobus.php:4027
1031
  msgid ""
1032
  "Please go to Settings > Permalinks > Common Settings and choose a non-"
1033
  "default option."
languages/wpglobus.pot CHANGED
@@ -1,8 +1,8 @@
1
- # Copyright (C) 2020 WPGlobus 2.5.2
2
- # This file is distributed under the same license as the WPGlobus 2.5.2 package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WPGlobus 2.5.2\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
@@ -209,7 +209,7 @@ msgstr ""
209
  msgid "Save &amp; Reload"
210
  msgstr ""
211
 
212
- #: includes/admin/class-wpglobus-customize-options.php:553, includes/builders/gutenberg/class-wpglobus-gutenberg.php:569, includes/class-wpglobus.php:1277, wpglobus.php:12, wpglobus.php:18
213
  msgid "WPGlobus"
214
  msgstr ""
215
 
@@ -652,7 +652,7 @@ msgstr ""
652
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
653
  msgstr ""
654
 
655
- #: includes/builders/class-wpglobus-builder.php:278, includes/class-wpglobus.php:3570
656
  msgid "Save draft before using extra language."
657
  msgstr ""
658
 
@@ -666,19 +666,19 @@ msgstr ""
666
 
667
  #. translators: ON/OFF status of WPGlobus on the edit pages.
668
  #. translators: ON/OFF status of WPGlobus on the edit pages.
669
- #: includes/builders/elementor/class-wpglobus-elementor.php:255, includes/class-wpglobus.php:1256
670
  msgid "ON"
671
  msgstr ""
672
 
673
- #: includes/builders/elementor/class-wpglobus-elementor.php:256, includes/class-wpglobus.php:1257
674
  msgid "Turn off"
675
  msgstr ""
676
 
677
- #: includes/builders/elementor/class-wpglobus-elementor.php:250, includes/class-wpglobus.php:1251
678
  msgid "OFF"
679
  msgstr ""
680
 
681
- #: includes/builders/elementor/class-wpglobus-elementor.php:251, includes/class-wpglobus.php:1252
682
  msgid "Turn on"
683
  msgstr ""
684
 
@@ -694,7 +694,7 @@ msgstr ""
694
  msgid "current"
695
  msgstr ""
696
 
697
- #: includes/builders/elementor/class-wpglobus-elementor.php:671
698
  msgid "WPGlobus provides multilingual support for Elementor only when the option %1$s%2$s%3$s is set to %4$s."
699
  msgstr ""
700
 
@@ -764,23 +764,23 @@ msgstr ""
764
  msgid "Selector type"
765
  msgstr ""
766
 
767
- #: includes/class-wpglobus.php:1440
768
  msgid "You cannot disable the main language."
769
  msgstr ""
770
 
771
- #: includes/class-wpglobus.php:1665
772
  msgid "Need a multilingual slug?"
773
  msgstr ""
774
 
775
- #: includes/class-wpglobus.php:1648
776
  msgid "*) Available after the menu is saved."
777
  msgstr ""
778
 
779
- #: includes/class-wpglobus.php:4018
780
  msgid "You must enable Pretty Permalinks to use WPGlobus."
781
  msgstr ""
782
 
783
- #: includes/class-wpglobus.php:4020
784
  msgid "Please go to Settings > Permalinks > Common Settings and choose a non-default option."
785
  msgstr ""
786
 
1
+ # Copyright (C) 2020 WPGlobus 2.5.3
2
+ # This file is distributed under the same license as the WPGlobus 2.5.3 package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WPGlobus 2.5.3\n"
6
  "MIME-Version: 1.0\n"
7
  "Content-Type: text/plain; charset=UTF-8\n"
8
  "Content-Transfer-Encoding: 8bit\n"
209
  msgid "Save &amp; Reload"
210
  msgstr ""
211
 
212
+ #: includes/admin/class-wpglobus-customize-options.php:553, includes/builders/gutenberg/class-wpglobus-gutenberg.php:569, includes/class-wpglobus.php:1284, wpglobus.php:12, wpglobus.php:18
213
  msgid "WPGlobus"
214
  msgstr ""
215
 
652
  msgid "Translate permalinks with our premium add-on, WPGlobus Plus!"
653
  msgstr ""
654
 
655
+ #: includes/builders/class-wpglobus-builder.php:278, includes/class-wpglobus.php:3577
656
  msgid "Save draft before using extra language."
657
  msgstr ""
658
 
666
 
667
  #. translators: ON/OFF status of WPGlobus on the edit pages.
668
  #. translators: ON/OFF status of WPGlobus on the edit pages.
669
+ #: includes/builders/elementor/class-wpglobus-elementor.php:255, includes/class-wpglobus.php:1263
670
  msgid "ON"
671
  msgstr ""
672
 
673
+ #: includes/builders/elementor/class-wpglobus-elementor.php:256, includes/class-wpglobus.php:1264
674
  msgid "Turn off"
675
  msgstr ""
676
 
677
+ #: includes/builders/elementor/class-wpglobus-elementor.php:250, includes/class-wpglobus.php:1258
678
  msgid "OFF"
679
  msgstr ""
680
 
681
+ #: includes/builders/elementor/class-wpglobus-elementor.php:251, includes/class-wpglobus.php:1259
682
  msgid "Turn on"
683
  msgstr ""
684
 
694
  msgid "current"
695
  msgstr ""
696
 
697
+ #: includes/builders/elementor/class-wpglobus-elementor.php:675
698
  msgid "WPGlobus provides multilingual support for Elementor only when the option %1$s%2$s%3$s is set to %4$s."
699
  msgstr ""
700
 
764
  msgid "Selector type"
765
  msgstr ""
766
 
767
+ #: includes/class-wpglobus.php:1447
768
  msgid "You cannot disable the main language."
769
  msgstr ""
770
 
771
+ #: includes/class-wpglobus.php:1672
772
  msgid "Need a multilingual slug?"
773
  msgstr ""
774
 
775
+ #: includes/class-wpglobus.php:1655
776
  msgid "*) Available after the menu is saved."
777
  msgstr ""
778
 
779
+ #: includes/class-wpglobus.php:4025
780
  msgid "You must enable Pretty Permalinks to use WPGlobus."
781
  msgstr ""
782
 
783
+ #: includes/class-wpglobus.php:4027
784
  msgid "Please go to Settings > Permalinks > Common Settings and choose a non-default option."
785
  msgstr ""
786
 
readme.txt CHANGED
@@ -217,6 +217,13 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
217
 
218
  == Changelog ==
219
 
 
 
 
 
 
 
 
220
  = 2.5.2 =
221
 
222
  * (Vendor/Acf) Added filter for the Image field type. (Note: Multilingual value will be accessible in the "Builder" mode.)
@@ -233,10 +240,6 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
233
  * (Options/Languages table) Installed languages moved to the top of the table.
234
  * (Core/WidgetsJS) Set multilingual field for the title only.
235
 
236
- = 2.4.17 =
237
-
238
- * (Core/WidgetsJS) Use `WPGlobusCoreData.language` instead of `WPGlobusCoreData.default_language`; Hide unneeded dialog icons.
239
-
240
  = Earlier versions and Add-ons =
241
 
242
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
217
 
218
  == Changelog ==
219
 
220
+ = 2.5.3 =
221
+
222
+ * (Core) Added `WP_USER_EDIT_PAGE` constant to set the User edit page name.
223
+ * (Core/Options) Added support of subsections on the WPGlobus Options page.
224
+ * (Core/Post Types) Added post types of `Molongui Author Box` plugin to the hidden types array.
225
+ * (Builders/Elementor) Added language switcher for Elementor v.3.
226
+
227
  = 2.5.2 =
228
 
229
  * (Vendor/Acf) Added filter for the Image field type. (Note: Multilingual value will be accessible in the "Builder" mode.)
240
  * (Options/Languages table) Installed languages moved to the top of the table.
241
  * (Core/WidgetsJS) Set multilingual field for the title only.
242
 
 
 
 
 
243
  = Earlier versions and Add-ons =
244
 
245
  * [See the complete changelog here](https://github.com/WPGlobus/WPGlobus/blob/master/CHANGELOG.md)
wpglobus.php CHANGED
@@ -15,7 +15,7 @@
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
- * Version: 2.5.2
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
@@ -42,7 +42,7 @@ if ( ! defined( 'ABSPATH' ) ) {
42
  exit;
43
  }
44
 
45
- define( 'WPGLOBUS_VERSION', '2.5.2' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48
 
15
  * Description: A WordPress Globalization / Multilingual Plugin. Posts, pages, menus, widgets and even custom fields - in multiple languages!
16
  * Text Domain: wpglobus
17
  * Domain Path: /languages/
18
+ * Version: 2.5.3
19
  * Author: WPGlobus
20
  * Author URI: https://wpglobus.com/
21
  * Network: false
42
  exit;
43
  }
44
 
45
+ define( 'WPGLOBUS_VERSION', '2.5.3' );
46
  define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
47
  define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
48