Version Description
- Fixed: (Vendor/Yoast) Don't start JS if support module was not defined.
- Fixed: (Vendor/Yoast) Start the support module while the corresponding option is missing.
Download this release
Release Info
Developer | tivnet |
Plugin | WPGlobus – Multilingual Everything! |
Version | 2.2.25 |
Comparing to | |
See all releases |
Code changes from version 2.2.24 to 2.2.25
- includes/builders/class-wpglobus-builders.php +4 -4
- includes/builders/gutenberg/assets/js/wpglobus-gutenberg.min.js +1 -1
- includes/js/wpglobus-customize-control190.min.js +1 -1
- includes/js/wpglobus-customize-options.min.js +1 -1
- includes/js/wpglobus-widgets.min.js +1 -1
- includes/js/wpglobus-yoastseo-120.js +6 -1
- includes/js/wpglobus-yoastseo-120.min.js +1 -1
- includes/js/wpglobus-yoastseo-premium-39.min.js +1 -1
- includes/vendor/yoast-seo/class-wpglobus-yoastseo120.php +1 -0
- languages/wpglobus-ar.po +2 -2
- languages/wpglobus-be.po +2 -2
- languages/wpglobus-bg_BG.po +2 -2
- languages/wpglobus-de_CH.po +2 -2
- languages/wpglobus-de_DE.po +2 -2
- languages/wpglobus-el.po +2 -2
- languages/wpglobus-en_AU.po +2 -2
- languages/wpglobus-en_CA.po +2 -2
- languages/wpglobus-en_GB.po +2 -2
- languages/wpglobus-en_NZ.po +2 -2
- languages/wpglobus-en_US.po +2 -2
- languages/wpglobus-en_ZA.po +2 -2
- languages/wpglobus-es_AR.po +2 -2
- languages/wpglobus-es_CL.po +2 -2
- languages/wpglobus-es_CO.po +2 -2
- languages/wpglobus-es_CR.po +2 -2
- languages/wpglobus-es_ES.po +2 -2
- languages/wpglobus-es_GT.po +2 -2
- languages/wpglobus-es_MX.po +2 -2
- languages/wpglobus-es_PE.po +2 -2
- languages/wpglobus-es_PR.po +2 -2
- languages/wpglobus-es_VE.po +2 -2
- languages/wpglobus-et.po +2 -2
- languages/wpglobus-fr_BE.po +2 -2
- languages/wpglobus-fr_CA.po +2 -2
- languages/wpglobus-fr_FR.po +2 -2
- languages/wpglobus-id_ID.po +2 -2
- languages/wpglobus-ko_KR.po +2 -2
- languages/wpglobus-pl_PL.po +2 -2
- languages/wpglobus-pt_BR.po +2 -2
- languages/wpglobus-pt_PT.po +2 -2
- languages/wpglobus-ro_RO.po +2 -2
- languages/wpglobus-ru_RU.po +2 -2
- languages/wpglobus-sv_SE.po +2 -2
- languages/wpglobus-tr_TR.po +2 -2
- languages/wpglobus-uk.po +2 -2
- languages/wpglobus.pot +3 -3
- readme.txt +5 -0
- wpglobus.php +2 -2
includes/builders/class-wpglobus-builders.php
CHANGED
@@ -1129,12 +1129,12 @@ if ( ! class_exists( 'WPGlobus_Builders' ) ) :
|
|
1129 |
$_attrs['builder_page'] = true;
|
1130 |
} else {
|
1131 |
|
1132 |
-
if (
|
1133 |
/**
|
1134 |
-
* @since 2.2.
|
1135 |
*/
|
1136 |
-
$_attrs['builder_page'] =
|
1137 |
-
} elseif (
|
1138 |
$_attrs['builder_page'] = false;
|
1139 |
} else {
|
1140 |
$_attrs['builder_page'] = true;
|
1129 |
$_attrs['builder_page'] = true;
|
1130 |
} else {
|
1131 |
|
1132 |
+
if ( ! array_key_exists( 'display-metabox-pt-' . $post_type, $wpseo_titles ) ) {
|
1133 |
/**
|
1134 |
+
* @since 2.2.25
|
1135 |
*/
|
1136 |
+
$_attrs['builder_page'] = true;
|
1137 |
+
} elseif ( 0 === (int) $wpseo_titles[ 'display-metabox-pt-' . $post_type ] ) {
|
1138 |
$_attrs['builder_page'] = false;
|
1139 |
} else {
|
1140 |
$_attrs['builder_page'] = true;
|
includes/builders/gutenberg/assets/js/wpglobus-gutenberg.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
"use strict";jQuery(document).ready(function(B){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(
|
1 |
+
"use strict";jQuery(document).ready(function(B){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),C.isPostDisabled()||(C.initListeners(),C.setTabs(),C.formHandler(),C.attachListeners())},initListeners:function(){WPGlobusGutenberg.yoastSeo&&1==B(".yoast.wpseo-metabox").length&&B(window).on("beforeunload",function(e){e.stopImmediatePropagation()})},formHandler:function(){var e=B(".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),B(".metabox-base-form #referredby").attr("value",e)),void 0!==(e=B('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),B('input[name="_wp_original_http_referer"]').attr("value",e))},setTabs:function(){if(0!=WPGlobusGutenberg.tabs.length){C.oldLanguageSelector=!0;var t=setInterval(function(){var e=B(".edit-post-header__settings");1==e.length&&(e.before(WPGlobusGutenberg.tabs),clearInterval(t))},200)}else C.WPGlobusSwitcherPlugin()},setSelectorStatus:function(){if(C.isOldLanguageSelector()){B(".wpglobus-gutenberg-selector-box").css({opacity:"0.2"}).attr("onclick","return false;"),C.languageSelectorEnabled=!1;var e=setInterval(function(){if(0==B(".is-saving").length){if(clearInterval(e),WPGlobusGutenberg.pagenow==WPGlobusGutenberg.postNewPage&&-1!=location.pathname.indexOf(WPGlobusGutenberg.postEditPage))return WPGlobusGutenberg.pagenow=WPGlobusGutenberg.postEditPage,B(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick",""),void C.reloadPage();C.languageSelectorEnabled=!0,B(".wpglobus-gutenberg-selector-box").css({opacity:"1"}).attr("onclick","")}},400)}},reloadPage:function(){B(".wpglobus-selector-grid").css({"grid-template-columns":"10% 90%"}),B(".wpglobus-gutenberg-selector-text").text(WPGlobusGutenberg.i18n.reload),function e(){B(".wpglobus-gutenberg-selector").fadeOut(500).fadeIn(500,e)}(),setTimeout(function(){location.reload()},500)},attachListeners:function(){C.isOldLanguageSelector()&&(B(document).on("mouseenter",".wpglobus-gutenberg-selector",function(e){C.languageSelectorEnabled&&(B(".wpglobus-gutenberg-selector-dropdown").css({display:"block"}),C.languageSelectorBoxDelta=e.screenY,B(".edit-post-header").css({"z-index":"100000"}),B(".wpglobus-gutenberg-selector-box").css({"z-index":"100001"}))}),B(document).on("mouseleave",".wpglobus-gutenberg-selector",function(e){0!=C.languageSelectorBoxDelta&&e.screenY-C.languageSelectorBoxDelta<=0&&(B(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),B(".edit-post-header").css({"z-index":"9989"}),B(".wpglobus-gutenberg-selector-box").css({"z-index":"100"}))}),B(document).on("mouseleave",".wpglobus-gutenberg-selector-dropdown",function(e){B(".wpglobus-gutenberg-selector-dropdown").css({display:"none"}),B(".edit-post-header").css({"z-index":"9989"}),B(".wpglobus-gutenberg-selector-box").css({"z-index":"10000"})}),B(document).on("click",".editor-post-save-draft",function(){C.setSelectorStatus()}),B(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,a=location.href,s={};for(var l in t)-1==a.indexOf("language="+e)?s[t[l]]=a+"&language="+t[l]:s[t[l]]=a.replace("language="+e,"language="+t[l]);var u=wp.i18n.__,r=wp.element.createElement,i=wp.element.Fragment,g=wp.components.TabPanel,c=wp.compose.withState,b=wp.components.RadioControl,p=wp.components.Notice,d=wp.components.Button,w=wp.editPost.PluginSidebarMoreMenuItem,m=wp.components.PanelBody,f=wp.editPost.PluginSidebar,G=wp.plugins.registerPlugin,h=B(".components-panel__header.edit-post-sidebar-header button.components-icon-button").eq(0),P={flagOnly:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" />',flagLanguage:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" /> '+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],flagCode:'<img height="20px" width="20px" src="'+WPGlobusGutenberg.flags_url[WPGlobusGutenberg.language]+'" /> '+WPGlobusGutenberg.language,languageOnly:" "+WPGlobusAdmin.data.en_language_name[WPGlobusGutenberg.language],languageCode:" "+WPGlobusGutenberg.language},v="",_="",W=C.getOptionKey("switcherButtonType");y(WPGlobusGutenberg.options[W]),_=S(),B(document).on("click",h,function(){T()});var x=c({value:_})(function(e){e.value;var t=e.setState;return r(b,{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}),N(W,e)}})});G("wpglobus-switcher",{icon:"",render:function(){return T(),r(i,{},r(w,{target:"wpglobus-switcher-sidebar",icon:"admin-site"},u("WPGlobus")),r(f,{name:"wpglobus-switcher-sidebar",title:"WPGlobus",className:"wpglobus-switcher-components-panel"},r("div",{className:"wpglobus-switcher-message wpglobus-switcher-error-message hidden",style:{}},""),r(m,{className:"wpglobus-switcher-panel__body"},function(){var e=[{name:"switcher",title:"Languages",className:"wpglobus-panel-tab wpglobus-panel-tab-selector edit-post-sidebar__panel-tab"}];return WPGlobusGutenberg.isEnabledTab("options")&&e.push({name:"options",title:"Options",className:"wpglobus-panel-tab wpglobus-panel-tab-options edit-post-sidebar__panel-tab"}),r(g,{name:"WPGlobusSwitcherTabPanel",className:"wpglobus-tab-panel",activeClass:"is-active",tabs:e},E)}())))}})}function y(e){v=e=e||"flagLanguage"}function S(){return v}function L(e){void 0===e&&(e=!0);var t=document.querySelectorAll(".wpglobus-switcher-components-radio-control .components-radio-control__input");0!=t.length&&(e?(t.forEach(function(e){e.classList.add(e.value),e.classList.remove("wpglobus-switcher-pulsate-radio")}),document.querySelector(".wpglobus-switcher-components-radio-control ."+_).classList.add("wpglobus-switcher-pulsate-radio")):t.forEach(function(e){e.classList.remove("wpglobus-switcher-pulsate-radio")}))}function O(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 N(e,t){t=t||"",W==(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&&(y(t),T(WPGlobusGutenberg.options[W]=t))}).fail(function(e){var t=document.getElementsByClassName("wpglobus-switcher-error-message");void 0!==t[0]&&("error"==e.result?O(t[0],e.message):400==e.status&&O(t[0],"Error: "+e.status+" ("+e.statusText+")"),_=S());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===P[e]&&(e=v),P[e]}function T(a){void 0!==a&&void 0!==P[a]||(a=v),setTimeout(function(){for(var e=document.getElementsByClassName("components-icon-button"),t=0;t<e.length;t++){var n=e[t].getAttribute("aria-label");if(null!==n&&-1!=n.indexOf("WPGlobus"))if(void 0===e[t].dataset.done){var o=e[t].innerHTML;e[t].innerHTML=o+k(a),e[t].dataset.done="init"}else e[t].innerHTML=k(a),e[t].dataset.done="changed"}},300)}function E(e){return"switcher"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-selector-tab-content"},r(p,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},u("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(d,{href:s[e],isSmall:!0,isPrimary:!0},n[e]))}))),r(d,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__info",href:WPGlobusGutenberg.store_link,isLink:!0,target:"_blank"},u("WPGlobus Premium Add-ons")),r(d,{className:"wpglobus-switcher-panel__button-link wpglobus-switcher-panel__settings-link",href:WPGlobusGutenberg.block_editor_tab_url,isLink:!0},u("Settings"))):"options"==e.name?r("div",{className:"wpglobus-tab-content wpglobus-options-tab-content"},r(p,{className:"wpglobus-switcher-panel__notice",status:"informational",isDismissible:!1},u("Select type")),r(x,null)):void 0}}};WPGlobusGutenberg=B.extend({},WPGlobusGutenberg,C),WPGlobusGutenberg.init()});
|
includes/js/wpglobus-customize-control190.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(a){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:"",settingsSectionExpand:function(){a(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(e){u.selectorHtml=WPGlobusCustomize.selector_html,u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(a.each(WPGlobusCoreData.enabled_languages,function(e,t){u.languages[e]=t,u.length=e}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(e){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,e.target.textContent,WPGlobusCoreData.language))},setTinymce:function(e){a(document).on("tinymce-editor-init",function(e,t){"object"==typeof u.controlInstances[t.id]&&(u.controlInstances[t.id].type="tinymce",a(t.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),t.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(e){return void 0===e?_.size(u.controlInstances):"widget"==e?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=a(".wpglobus-fields_settings_control_box").data("section-template"),s="",l="",i="";a.each(WPGlobusCustomize.controlInstances,function(e,t){void 0===o[t.section]&&(o[t.section]={}),o[t.section][e]=t}),a.each(o,function(e,t){if(l="<ul>",a.each(t,function(e,t){i=t.userControl.enabled?" checked ":"",l+='<li id="'+t.fieldSettings.itemID+'">',l+='<input id="'+t.fieldSettings.cbID+'" data-control="'+e+'" class="wpglobus-customize-cb-control" type="checkbox"'+i+' /> <span class="wpglobus-cb-control-title">'+t.title+"</span>",l+="</li>"}),l+="</ul>",void 0===wp.customize.section(e))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(e).params.title)).replace(/{{section}}/g,e)).replace("{{section_id}}",'"'+e+'"')).replace("{{items}}",l),a(s).insertBefore(a("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),a("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),a(WPGlobusCustomizeOptions.helpButton).insertAfter(a("#accordion-section-wpglobus_fields_settings_section .customize-action")),a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),a(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(e){var o=a(this).data("section");a(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(e,t){o==a(t).data("section")?a(this).css({display:"block"}):a(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),a(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(e){a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(e,t){var o=t.controlSelector+" "+t.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+t.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';a(n).insertBefore(o),t.userControl.enabled||(1<a(o).length?a(o).each(function(e,t){a(t).removeClass(WPGlobusCustomize.controlClass)}):a(o).removeClass(WPGlobusCustomize.controlClass).val(t.setting))},ctrlMenuItemsCallback:function(e,t){},ctrlWidgetCallback:function(l,i){if(u.action=!1,void 0===u.controlWidgets[l].element){void 0===i&&(i=wp.customize.control.instance(l)),u.controlWidgets[l].element={},u.controlWidgets[l].control=i,u.controlWidgets[l].inWidgetTitle=i.container.find(".in-widget-title"),u.controlWidgets[l].parent=i.selector;var e=i.container.find("input[type=submit]");0!=e.length&&(e.css({display:"block"}),e.attr("data-widget",l),u.controlWidgets[l].submit=e,u.attachWidgetListeners(u.controlWidgets[l])),i.liveUpdateMode=!1,void 0===i.setting().title?u.controlWidgets[l].inWidgetTitle.text(""):u.controlWidgets[l].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(i.setting().title,WPGlobusCustomize.languageAdmin)),a.each(WPGlobusCustomize.elementSelector,function(e,n){var s=i.container.find(n);0!=s.length&&a.each(s,function(e,t){if(void 0===t.id||""==t.id)return!0;var o=a(s[e]);void 0===u.controlWidgets[l].element[t.id]&&(u.controlWidgets[l].element[t.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",l),u.controlWidgets[l].element[t.id].element=o,u.controlWidgets[l].element[t.id].setting=i.setting(),u.controlWidgets[l].element[t.id].selector=n,u.controlWidgets[l].element[t.id].value=t.defaultValue,o.val(WPGlobusCore.TextFilter(t.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),a(document).triggerHandler("wpglobus_customize_control_added_widget",[l])}},ctrlCallback:function(o,l,e){var n=!1;if(a.each(WPGlobusCustomize.disabledSections,function(e,t){if(o.section()==t)return!(n=!0)}),!n&&(a.each(WPGlobusCustomize.disabledSettingMask,function(e,t){if(0<=l.indexOf(t))return!(n=!0)}),!n)){var i=wp.customize.control.instance(l);if(0<=l.indexOf("widget"))return void 0===u.controlWidgets[l]&&(u.controlWidgets[l]={},u.action&&u.ctrlWidgetCallback(l,i)),u.controlWidgets[l].parent=i.selector,1!=a(i.selector).length?u.controlWidgets[l].observer=null:(u.controlWidgets[l].observer=new MutationObserver(function(e){e.forEach(function(e){"class"==e.attributeName&&-1!=e.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(l)})}),u.controlWidgets[l].observer.observe(document.querySelector(u.controlWidgets[l].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[l]){var c=!0;a.each(WPGlobusCustomize.elementSelector,function(e,t){var s=i.container.find(t);if(0!=s.length){if("function"!=typeof i.setting)return!0;u.controlInstances[l]={},u.controlInstances[l].element=s,u.controlInstances[l].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[l].setting=i.setting(),u.controlInstances[l].settingType=typeof i.setting(),u.controlInstances[l].selector=t,u.controlInstances[l].controlSelector=i.selector,u.controlInstances[l].type="",u.controlInstances[l].section=i.section(),u.controlInstances[l].title=null,u.controlInstances[l].userControl=null,u.controlInstances[l].fieldSettings={},u.controlInstances[l].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),u.controlInstances[l].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),a.each(WPGlobusCustomize.setLinkBy,function(e,t){if(0<=l.indexOf(t)){if(u.controlInstances[l].type="link",""==u.controlInstances[l].setting&&(u.controlInstances[l].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(l).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(l).setting(n[WPGlobusCoreData.default_language]),a(WPGlobusCustomize.controlInstances[l].controlSelector+" "+WPGlobusCustomize.controlInstances[l].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[l].type&&(u.controlInstances[l].type="textarea"==t?"textarea":"text"),"string"==u.controlInstances[l].settingType&&""!=u.controlInstances[l].setting&&s.val(WPGlobusCore.TextFilter(u.controlInstances[l].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[l].controlSelector.replace("#customize-control-","")),s.attr("data-wpglobus-customize-control-setting-type",u.controlInstances[l].settingType),"link"==u.controlInstances[l].type&&(u.controlInstances[l].setting=u.convertString(s[0].defaultValue)),u.controlInstances[l].title=i.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&(c=!1),u.controlInstances[l].userControl={},u.controlInstances[l].userControl.enabled=c,u.setUserControls(l,u.controlInstances[l])}})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){a(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(e){if(void 0===e)return e;var o=[],t=WPGlobusCore.getTranslations(e),n=0,s=!0;return e==t[WPGlobusCoreData.default_language]?e:(a.each(t,function(e,t){o[n]=""==t?"null":(s=!1,t),n++}),s?"":o.join("|||"))},getTranslations:function(e){if(void 0===e)return e;var o={},n=e.split("|||");return a.each(WPGlobusCoreData.enabled_languages,function(e,t){o[t]=void 0===n[e]||"null"===n[e]?"":n[e]}),o},getString:function(e,o,n){if(void 0===e)return e;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var t=u.getTranslations(e),s=[],l=0,i=!0;return a.each(t,function(e,t){e==n?(o=o.trim(),s[l]=""==o?"null":o):s[l]=""==t?"null":t,e!=WPGlobusCoreData.default_language&&"null"!=s[l]&&(i=!1),l++}),s=i?s[0]:s.join("|||")},addLanguageSelector:function(){"dropdown"!=WPGlobusCustomize.selectorType?(a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).on("click",".wpglobus-customize-selector",function(e){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],a(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()})):u.addLanguageSelectorDropdown()},addLanguageSelectorDropdown:function(){a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language));var e=a(".wpglobus-customize-selector").offset(),t=e.top+46;t+="px;";var o=e.left+"px;",n=0,s='<ul class="wpglobus-customize-selector-dropdown" style="display:none;position:fixed;width:46px;border-left:1px solid #ddd;border-right:1px solid #ddd;background-color:#eee;margin:-1px 0 0;padding:0;top:'+t+"left:"+o+'">';a.each(WPGlobusCoreData.enabled_languages,function(e,t){s+='<li class="item" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;" data-language="'+t+'">',s+='<span class="value value-'+t+'" style="font-size:15px;">'+t+"</span>",s+="</li>"}),s+='<li class="item wpglobus-customize-item-settings" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;"><span style="padding-top:14px;" class="dashicons dashicons-admin-tools"></span></li>',s+="</ul>",a(".wpglobus-customize-selector").after(s),a(document).on("mouseenter",".wpglobus-customize-selector",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"block"}),n=e.screenY}),a(document).on("mouseleave",".wpglobus-customize-selector",function(e){0!=n&&e.screenY-n<=0&&a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseenter",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this),o=t.data("language");t.addClass("active"),t.css({"background-color":"#fff"}),t.find(".value-"+o).css({"font-weight":"bold"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this);t.removeClass("active"),t.css({"background-color":"#eee"}),a(this).find(".value").css({"font-weight":""})}),a(document).on("click",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this).data("language");void 0!==t&&t!=a(".wpglobus-customize-selector").data("language")&&u.languageChanged(t)}),a(document).on("click",".wpglobus-customize-item-settings",function(e){wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand}),a(".wpglobus-customize-selector-dropdown").css({display:"none"})})},languageChanged:function(e){WPGlobusCoreData.language=e,a(".wpglobus-customize-selector").data("language",e),a(".wpglobus-customize-selector .current-language").text(e),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()},setControlsValue:function(){a(".wpglobus-customize-control").each(function(e,t){var o=a(t),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else if("object"==WPGlobusCustomize.controlInstances[n].settingType);else if("number"==WPGlobusCustomize.controlInstances[n].settingType);else{s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),a(".wpglobus-customize-widget-control").each(function(e,t){var o=a(t),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})},updateElements:function(s){void 0===s&&(s=!0),a.each(WPGlobusCustomize.controlInstances,function(e,t){if(!t.userControl.enabled)return!0;var o=wp.customize.control.instance(e);if("link"==t.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[e].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),t.element.val(o.setting())):t.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==t.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(e).setContent(n,{format:"raw"}),t.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),t.element.val(o.setting())):t.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(e){"mouseenter"==e.type?a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(t.value)}):"mouseleave"==e.type?u.widgetKeep||a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==e.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(e){void 0!==e.submit[0].id&&a(document).on("mouseenter","#"+e.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+e.submit[0].id,u.onSubmitEvents).on("click","#"+e.submit[0].id,u.onSubmitEvents)},attachListeners:function(){a(".wpglobus-customize-control").on("keyup",function(e){var t=a(this),o=t.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=t.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===a(document).triggerHandler("wpglobus_customize_control_keyup",[t,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language))}),a(document).on("keyup",".wpglobus-customize-widget-control",function(e){var t=a(this),o=t.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value,t.val(),WPGlobusCoreData.language))}),a(document).on("mouseenter","#save",function(e){a.each(WPGlobusCustomize.controlInstances,function(e,t){if(t.userControl.enabled){var o=wp.customize.control.instance(e);"tinymce"==t.type&&tinymce.get(e).setContent(t.setting,{format:"raw"}),o.setting.set(t.setting),t.element.val(o.setting())}})}).on("mouseleave","#save",function(e){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),a("#save").on("click",function(e){u.instancesKeep=!0}),a(document).on("ajaxSend",function(e,t,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),a(document).on("ajaxComplete",function(e,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),a.each(WPGlobusCustomize.controlWidgets,function(e,t){var o=e.replace("_","-");if(0<=n.responseText.indexOf(o))return t.submit.css({display:"block"}),t.control.liveUpdateMode=!1,a.each(t.element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),t.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(t.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=a.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
|
1 |
+
jQuery(document).ready(function(a){"use strict";var u={languages:{},index:0,length:0,controlInstances:{},controlWidgets:{},instancesKeep:!1,widgetKeep:!1,action:!1,customizeSave:!1,selectorHtml:"",settingsSectionExpand:function(){a(document).triggerHandler("wpglobus_fields_settings_section_expand",[this,u])},init:function(e){u.selectorHtml=WPGlobusCustomize.selector_html,u.setTitle(),"false"!=WPGlobusCustomizeOptions.themeEnabled&&(a.each(WPGlobusCoreData.enabled_languages,function(e,t){u.languages[e]=t,u.length=e}),u.addLanguageSelector(),u.setControlInstances(),u.setFieldsSection(),u.attachListeners(),u.setTinymce())},updateTinymce:function(e){"tinymce"==WPGlobusCustomize.controlInstances[this.id].type&&(WPGlobusCustomize.controlInstances[this.id].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[this.id].setting,e.target.textContent,WPGlobusCoreData.language))},setTinymce:function(e){a(document).on("tinymce-editor-init",function(e,t){"object"==typeof u.controlInstances[t.id]&&(u.controlInstances[t.id].type="tinymce",a(t.iframeElement).addClass("wpglobus-customize-control").css({width:"99%"}),t.on("input",_.debounce(u.updateTinymce,300)))})},getSize:function(e){return void 0===e?_.size(u.controlInstances):"widget"==e?_.size(u.controlWidgets):null},setFieldsSection:function(){var o={},n=a(".wpglobus-fields_settings_control_box").data("section-template"),s="",l="",i="";a.each(WPGlobusCustomize.controlInstances,function(e,t){void 0===o[t.section]&&(o[t.section]={}),o[t.section][e]=t}),a.each(o,function(e,t){if(l="<ul>",a.each(t,function(e,t){i=t.userControl.enabled?" checked ":"",l+='<li id="'+t.fieldSettings.itemID+'">',l+='<input id="'+t.fieldSettings.cbID+'" data-control="'+e+'" class="wpglobus-customize-cb-control" type="checkbox"'+i+' /> <span class="wpglobus-cb-control-title">'+t.title+"</span>",l+="</li>"}),l+="</ul>",void 0===wp.customize.section(e))return!0;s=(s=(s=(s=n.replace("{{section_title}}",wp.customize.section(e).params.title)).replace(/{{section}}/g,e)).replace("{{section_id}}",'"'+e+'"')).replace("{{items}}",l),a(s).insertBefore(a("#"+WPGlobusCustomizeOptions.userControlSaveButton))}),a("#accordion-section-wpglobus_fields_settings_section").css({"margin-top":"15px"}),a(WPGlobusCustomizeOptions.helpButton).insertAfter(a("#accordion-section-wpglobus_fields_settings_section .customize-action")),a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").addClass("hidden"),a(document).on("click","."+WPGlobusCustomizeOptions.userControlIconClass,function(e){var o=a(this).data("section");a(WPGlobusCustomizeOptions.userControlBoxSelector).each(function(e,t){o==a(t).data("section")?a(this).css({display:"block"}):a(this).css({display:"none"})}),wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand})}),a(".wpglobus-customize-icon-help.customize-help-toggle").on("click",function(e){a("#accordion-section-wpglobus_fields_settings_section .customize-section-description").toggleClass("hidden")})},setUserControls:function(e,t){var o=t.controlSelector+" "+t.selector,n='<img class="'+WPGlobusCustomizeOptions.userControlIconClass+'" data-section="'+t.section+'" style="position:absolute;right:0px;cursor:pointer;" src="'+WPGlobusCustomizeOptions.userControlIcon+'" />';a(n).insertBefore(o),t.userControl.enabled||(1<a(o).length?a(o).each(function(e,t){a(t).removeClass(WPGlobusCustomize.controlClass)}):a(o).removeClass(WPGlobusCustomize.controlClass).val(t.setting))},ctrlMenuItemsCallback:function(e,t){},ctrlWidgetCallback:function(l,i){if(u.action=!1,void 0===u.controlWidgets[l].element){void 0===i&&(i=wp.customize.control.instance(l)),u.controlWidgets[l].element={},u.controlWidgets[l].control=i,u.controlWidgets[l].inWidgetTitle=i.container.find(".in-widget-title"),u.controlWidgets[l].parent=i.selector;var e=i.container.find("input[type=submit]");0!=e.length&&(e.css({display:"block"}),e.attr("data-widget",l),u.controlWidgets[l].submit=e,u.attachWidgetListeners(u.controlWidgets[l])),i.liveUpdateMode=!1,void 0===i.setting().title?u.controlWidgets[l].inWidgetTitle.text(""):u.controlWidgets[l].inWidgetTitle.text(": "+WPGlobusCore.TextFilter(i.setting().title,WPGlobusCustomize.languageAdmin)),a.each(WPGlobusCustomize.elementSelector,function(e,n){var s=i.container.find(n);0!=s.length&&a.each(s,function(e,t){if(void 0===t.id||""==t.id)return!0;var o=a(s[e]);void 0===u.controlWidgets[l].element[t.id]&&(u.controlWidgets[l].element[t.id]={}),o.addClass("wpglobus-customize-widget-control"),o.attr("data-widget",l),u.controlWidgets[l].element[t.id].element=o,u.controlWidgets[l].element[t.id].setting=i.setting(),u.controlWidgets[l].element[t.id].selector=n,u.controlWidgets[l].element[t.id].value=t.defaultValue,o.val(WPGlobusCore.TextFilter(t.defaultValue,WPGlobusCoreData.language,"RETURN_EMPTY"))})}),a(document).triggerHandler("wpglobus_customize_control_added_widget",[l])}},ctrlCallback:function(o,l,e){var n=!1;if(a.each(WPGlobusCustomize.disabledSections,function(e,t){if(o.section()==t)return!(n=!0)}),!n&&(a.each(WPGlobusCustomize.disabledSettingMask,function(e,t){if(0<=l.indexOf(t))return!(n=!0)}),!n)){var i=wp.customize.control.instance(l);if(0<=l.indexOf("widget"))return void 0===u.controlWidgets[l]&&(u.controlWidgets[l]={},u.action&&u.ctrlWidgetCallback(l,i)),u.controlWidgets[l].parent=i.selector,1!=a(i.selector).length?u.controlWidgets[l].observer=null:(u.controlWidgets[l].observer=new MutationObserver(function(e){e.forEach(function(e){"class"==e.attributeName&&-1!=e.target.className.indexOf("expanding")&&u.ctrlWidgetCallback(l)})}),u.controlWidgets[l].observer.observe(document.querySelector(u.controlWidgets[l].parent),{attributes:!0,childList:!0,characterData:!0})),!1;if(void 0===u.controlInstances[l]){var c=!0;a.each(WPGlobusCustomize.elementSelector,function(e,t){var s=i.container.find(t);if(0!=s.length){if("function"!=typeof i.setting)return!0;u.controlInstances[l]={},u.controlInstances[l].element=s,u.controlInstances[l].elementID=s.attr("id")?"#"+s.attr("id"):void 0,u.controlInstances[l].setting=i.setting(),u.controlInstances[l].settingType=typeof i.setting(),u.controlInstances[l].selector=t,u.controlInstances[l].controlSelector=i.selector,u.controlInstances[l].type="",u.controlInstances[l].section=i.section(),u.controlInstances[l].title=null,u.controlInstances[l].userControl=null,u.controlInstances[l].fieldSettings={},u.controlInstances[l].fieldSettings.itemID="item-wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),u.controlInstances[l].fieldSettings.cbID="wpglobus-cb-control-"+WPGlobusDialogApp.convertToId(l),a.each(WPGlobusCustomize.setLinkBy,function(e,t){if(0<=l.indexOf(t)){if(u.controlInstances[l].type="link",""==u.controlInstances[l].setting&&(u.controlInstances[l].setting=s[0].defaultValue),WPGlobusCustomize.changeset_uuid){var o=wp.customize.control(l).setting();if(-1!==o.indexOf("|||")){var n=u.getTranslations(o);wp.customize.control(l).setting(n[WPGlobusCoreData.default_language]),a(WPGlobusCustomize.controlInstances[l].controlSelector+" "+WPGlobusCustomize.controlInstances[l].selector).val(n[WPGlobusCoreData.default_language])}}s.addClass("wpglobus-control-link")}}),""===u.controlInstances[l].type&&(u.controlInstances[l].type="textarea"==t?"textarea":"text"),"string"==u.controlInstances[l].settingType&&""!=u.controlInstances[l].setting&&s.val(WPGlobusCore.TextFilter(u.controlInstances[l].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),s.addClass("wpglobus-customize-control"),s.attr("data-wpglobus-customize-control",u.controlInstances[l].controlSelector.replace("#customize-control-","")),s.attr("data-wpglobus-customize-control-setting-type",u.controlInstances[l].settingType),"link"==u.controlInstances[l].type&&(u.controlInstances[l].setting=u.convertString(s[0].defaultValue)),u.controlInstances[l].title=i.params.label,null!==WPGlobusCustomizeOptions.userControl&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName]&&void 0!==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&"disable"==WPGlobusCustomizeOptions.userControl[WPGlobusCustomizeOptions.themeName][l]&&(c=!1),u.controlInstances[l].userControl={},u.controlInstances[l].userControl.enabled=c,u.setUserControls(l,u.controlInstances[l])}})}}},setControlInstances:function(){wp.customize.control.each(u.ctrlCallback)},setTitle:function(){a(WPGlobusCoreData.customize.info.element).html(WPGlobusCoreData.customize.info.html)},convertString:function(e){if(void 0===e)return e;var o=[],t=WPGlobusCore.getTranslations(e),n=0,s=!0;return e==t[WPGlobusCoreData.default_language]?e:(a.each(t,function(e,t){o[n]=""==t?"null":(s=!1,t),n++}),s?"":o.join("|||"))},getTranslations:function(e){if(void 0===e)return e;var o={},n=e.split("|||");return a.each(WPGlobusCoreData.enabled_languages,function(e,t){o[t]=void 0===n[e]||"null"===n[e]?"":n[e]}),o},getString:function(e,o,n){if(void 0===e)return e;void 0===o&&(o=""),void 0===n&&(n=WPGlobusCoreData.language);var t=u.getTranslations(e),s=[],l=0,i=!0;return a.each(t,function(e,t){e==n?(o=o.trim(),s[l]=""==o?"null":o):s[l]=""==t?"null":t,e!=WPGlobusCoreData.default_language&&"null"!=s[l]&&(i=!1),l++}),s=i?s[0]:s.join("|||")},addLanguageSelector:function(){"dropdown"!=WPGlobusCustomize.selectorType?(a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).on("click",".wpglobus-customize-selector",function(e){u.index>u.length-1?u.index=0:u.index++,WPGlobusCoreData.language=u.languages[u.index],a(this).html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language)),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()})):u.addLanguageSelectorDropdown()},addLanguageSelectorDropdown:function(){a(WPGlobusCustomize.selectorButton).insertAfter(".customize-controls-preview-toggle"),a(".wpglobus-customize-selector").html(u.selectorHtml.replace("{{language}}",WPGlobusCoreData.language));var e=a(".wpglobus-customize-selector").offset(),t=e.top+46;t+="px;";var o=e.left+"px;",n=0,s='<ul class="wpglobus-customize-selector-dropdown" style="display:none;position:fixed;width:46px;border-left:1px solid #ddd;border-right:1px solid #ddd;background-color:#eee;margin:-1px 0 0;padding:0;top:'+t+"left:"+o+'">';a.each(WPGlobusCoreData.enabled_languages,function(e,t){s+='<li class="item" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;" data-language="'+t+'">',s+='<span class="value value-'+t+'" style="font-size:15px;">'+t+"</span>",s+="</li>"}),s+='<li class="item wpglobus-customize-item-settings" style="text-align:center;cursor:pointer;border-bottom:1px solid #ddd;margin:0;"><span style="padding-top:14px;" class="dashicons dashicons-admin-tools"></span></li>',s+="</ul>",a(".wpglobus-customize-selector").after(s),a(document).on("mouseenter",".wpglobus-customize-selector",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"block"}),n=e.screenY}),a(document).on("mouseleave",".wpglobus-customize-selector",function(e){0!=n&&e.screenY-n<=0&&a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown",function(e){a(".wpglobus-customize-selector-dropdown").css({display:"none"})}),a(document).on("mouseenter",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this),o=t.data("language");t.addClass("active"),t.css({"background-color":"#fff"}),t.find(".value-"+o).css({"font-weight":"bold"})}),a(document).on("mouseleave",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this);t.removeClass("active"),t.css({"background-color":"#eee"}),a(this).find(".value").css({"font-weight":""})}),a(document).on("click",".wpglobus-customize-selector-dropdown .item",function(e){var t=a(this).data("language");void 0!==t&&t!=a(".wpglobus-customize-selector").data("language")&&u.languageChanged(t)}),a(document).on("click",".wpglobus-customize-item-settings",function(e){wp.customize.control("wpglobus_fields_settings_section").expand({completeCallback:u.settingsSectionExpand}),a(".wpglobus-customize-selector-dropdown").css({display:"none"})})},languageChanged:function(e){WPGlobusCoreData.language=e,a(".wpglobus-customize-selector").data("language",e),a(".wpglobus-customize-selector .current-language").text(e),a(document).triggerHandler("wpglobus_customize_control_language",[WPGlobusCoreData.language]),u.setControlsValue()},setControlsValue:function(){a(".wpglobus-customize-control").each(function(e,t){var o=a(t),n=o.data("customize-setting-link");if(void 0!==WPGlobusCustomize.controlInstances[n]||(n=o.data("wpglobus-customize-control"),void 0!==WPGlobusCustomize.controlInstances[n]))if(o.hasClass("wpglobus-control-link")){var s=u.getTranslations(WPGlobusCustomize.controlInstances[n].setting);o.val(s[WPGlobusCoreData.language])}else if("object"!=WPGlobusCustomize.controlInstances[n].settingType&&"number"!=WPGlobusCustomize.controlInstances[n].settingType){s=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[n].setting,WPGlobusCoreData.language,"RETURN_EMPTY");"tinymce"==WPGlobusCustomize.controlInstances[n].type&&tinymce.get(n).setContent(s,{format:"raw"}),o.val(WPGlobusCore.TextFilter(s,"RETURN_EMPTY"))}}),a(".wpglobus-customize-widget-control").each(function(e,t){var o=a(t),n=o.data("widget");if(void 0===o.attr("id"))return!0;o.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlWidgets[n].element[o.attr("id")].value,WPGlobusCoreData.language,"RETURN_EMPTY"))})},updateElements:function(s){void 0===s&&(s=!0),a.each(WPGlobusCustomize.controlInstances,function(e,t){if(!t.userControl.enabled)return!0;var o=wp.customize.control.instance(e);if("link"==t.type){var n=u.getTranslations(WPGlobusCustomize.controlInstances[e].setting);s?(o.setting.set(n[WPGlobusCoreData.language]),t.element.val(o.setting())):t.element.val(n[WPGlobusCoreData.language])}else if("tinymce"==t.type){n=WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY");tinymce.get(e).setContent(n,{format:"raw"}),t.element.val(n)}else s?(o.setting.set(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY")),t.element.val(o.setting())):t.element.val(WPGlobusCore.TextFilter(WPGlobusCustomize.controlInstances[e].setting,WPGlobusCoreData.language,"RETURN_EMPTY"))})},onSubmitEvents:function(e){"mouseenter"==e.type?a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(t.value)}):"mouseleave"==e.type?u.widgetKeep||a.each(u.controlWidgets[a(this).data("widget")].element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}):"click"==e.type&&(u.widgetKeep=!0)},attachWidgetListeners:function(e){void 0!==e.submit[0].id&&a(document).on("mouseenter","#"+e.submit[0].id,u.onSubmitEvents).on("mouseleave","#"+e.submit[0].id,u.onSubmitEvents).on("click","#"+e.submit[0].id,u.onSubmitEvents)},attachListeners:function(){a(".wpglobus-customize-control").on("keyup",function(e){var t=a(this),o=t.data("customize-setting-link");void 0===WPGlobusCustomize.controlInstances[o]&&(o=t.data("wpglobus-customize-control"),WPGlobusCustomize.controlInstances[o]),void 0===a(document).triggerHandler("wpglobus_customize_control_keyup",[t,o])&&("link"==WPGlobusCustomize.controlInstances[o].type?WPGlobusCustomize.controlInstances[o].setting=u.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language):WPGlobusCustomize.controlInstances[o].setting=WPGlobusCore.getString(WPGlobusCustomize.controlInstances[o].setting,t.val(),WPGlobusCoreData.language))}),a(document).on("keyup",".wpglobus-customize-widget-control",function(e){var t=a(this),o=t.data("widget");void 0!==WPGlobusCustomize.controlWidgets[o]&&(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value=WPGlobusCore.getString(WPGlobusCustomize.controlWidgets[o].element[t.attr("id")].value,t.val(),WPGlobusCoreData.language))}),a(document).on("mouseenter","#save",function(e){a.each(WPGlobusCustomize.controlInstances,function(e,t){if(t.userControl.enabled){var o=wp.customize.control.instance(e);"tinymce"==t.type&&tinymce.get(e).setContent(t.setting,{format:"raw"}),o.setting.set(t.setting),t.element.val(o.setting())}})}).on("mouseleave","#save",function(e){u.instancesKeep||(u.updateElements(),wp.customize.previewer.refresh())}),a("#save").on("click",function(e){u.instancesKeep=!0}),a(document).on("ajaxSend",function(e,t,o){void 0!==o.data&&-1!=o.data.indexOf("wp_customize=on")&&-1!=o.data.indexOf("action=customize_save")&&(u.customizeSave=!0)}),a(document).on("ajaxComplete",function(e,n){void 0!==n.responseText&&(u.customizeSave?(u.updateElements(!1),u.instancesKeep&&(u.instancesKeep=!1)):(0<=n.responseText.indexOf("WP_CUSTOMIZER_SIGNATURE")&&(u.action="customizerAjaxComplete",u.setControlInstances()),a.each(WPGlobusCustomize.controlWidgets,function(e,t){var o=e.replace("_","-");if(0<=n.responseText.indexOf(o))return t.submit.css({display:"block"}),t.control.liveUpdateMode=!1,a.each(t.element,function(e,t){a("#"+e).val(WPGlobusCore.TextFilter(t.value,WPGlobusCoreData.language,"RETURN_EMPTY"))}),t.inWidgetTitle.text(": "+WPGlobusCore.TextFilter(t.control.setting().title,WPGlobusCustomize.languageAdmin)),u.widgetKeep=!1})),u.customizeSave=!1,wp.customize.previewer.refresh())})}};WPGlobusCustomize=a.extend({},WPGlobusCustomize,u),WPGlobusCustomize.init()});
|
includes/js/wpglobus-customize-options.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(c){"use strict";var u={listID:"#wpglobus-sortable",customizeSave:!1,customizeSaveData:"",init:function(){c("#wpglobus-sortable").sortable({update:u.sortUpdate}),u.setJSCodeSection(),u.addListeners(),u.ajaxListener()},setJSCodeSection:function(){var e=WPGlobusCustomizeOptions.settings.wpglobus_js_editor_section;void 0!==e&&void 0!==e.wpglobus_customize_js_editor&&(c("#customize-control-wpglobus_customize_js_editor .customize-control-title").css({width:"50%"}).after('<span class="wpglobus-customize-js-editor-expand" style="float:right;"><a href="#">'+WPGlobusCustomizeOptions.i18n.expandShrink+"</a></span>"),c(document).on("click",".wpglobus-customize-js-editor-expand",function(e){var o=c(this),t=c("#customize-controls");o.toggleClass("expanded"),o.hasClass("expanded")?t.css({width:"500px"}):t.css({width:""})}),c("#sub-accordion-section-wpglobus_js_editor_section .customize-section-back").on("click",function(e){c("#customize-controls").css({width:""}),c(".wpglobus-customize-js-editor-expand").removeClass("expanded")}))},addListeners:function(){c("body").on("change",".wpglobus-listen-change",function(e){u.setState(!1)}),c("body").on("change","#wpglobus-sortable input.wpglobus-language-item",function(e){var o=c(this);o.prop("checked")||u.removeLanguage(o)}),c("#customize-control-wpglobus_add_languages_select_box select").on("change",function(e){u.addLanguage(e,this)}),c("#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_addons_section+" .accordion-section-title").off("click keydown"),c("body").on("click","#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_addons_section+" .accordion-section-title",function(e){window.open(WPGlobusCustomizeOptions.addonsPage,"_blank")}),c(document).on("click","#"+WPGlobusCustomizeOptions.userControlSaveButton,function(){u.userControlAjax(this)}),c(document).on("click","#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_js_editor_section+" .accordion-section-title",function(e){c("#customize-control-wpglobus_customize_js_editor .CodeMirror").css({height:"40em"})})},removeLanguage:function(e){var o=e.data("language"),t=c("#customize-control-wpglobus_add_languages_select_box select option").eq(0);c('<option value="'+o+'">'+WPGlobusCustomizeOptions.config.language_name[o]+" ("+WPGlobusCustomizeOptions.config.en_language_name[o]+") </option>").insertAfter(t),e.parent("li").remove()},addLanguage:function(e,o){var t=c(o).attr("value"),s=c("#wpglobus-item-skeleton").html(),n="",i=c(u.listID+" li").attr("class");if("select"!=t){n=(n=(n=(n=(n=(n=(n=(n=(n=s.replace("{{flag}}",'src="'+WPGlobusCustomizeOptions.config.flags_url+WPGlobusCustomizeOptions.config.flag[t]+'"')).replace("{{name}}",t)).replace("{{id}}",t)).replace('checked="{{checked}}"','checked="checked"')).replace('disabled="{{disabled}}"',"")).replace("{{item}}",WPGlobusCustomizeOptions.config.en_language_name[t]+" ("+t+") ")).replace("{{order}}","#")).replace("{{language}}",t)).replace("{{edit-link}}",WPGlobusCustomizeOptions.editLink.replace("{{language}}",t)),c('<li class="'+i+'">'+n+"</li>").appendTo(u.listID),u.setOrder();var a=c(o).find("option");c.each(a,function(e,o){c(o).attr("value")==t&&c(o).remove()})}},sortUpdate:function(e,o){u.setState(!1),u.setOrder()},setOrder:function(){c("#wpglobus-sortable input.wpglobus-language-item").each(function(e,o){var t=c(o);0==e?t.prop("disabled","disabled").prop("checked","checked"):t.removeProp("disabled"),t.data("order",e)})},setState:function(e){wp.customize.state("saved").set(e)},getCustomizeSaveData:function(){return u.customizeSaveData},enabledUserControl:function(e){return void 0!==WPGlobusCustomize.controlInstances[e]&&WPGlobusCustomize.controlInstances[e].userControl.enabled},userControlAjax:function(e){c(e).prop("disabled",!0);var n={action:"cb-controls-save",controls:{}};c(".wpglobus-customize-cb-control").each(function(e,o){var t=c(o);if(t.prop("checked"))
|
1 |
+
jQuery(document).ready(function(c){"use strict";var u={listID:"#wpglobus-sortable",customizeSave:!1,customizeSaveData:"",init:function(){c("#wpglobus-sortable").sortable({update:u.sortUpdate}),u.setJSCodeSection(),u.addListeners(),u.ajaxListener()},setJSCodeSection:function(){var e=WPGlobusCustomizeOptions.settings.wpglobus_js_editor_section;void 0!==e&&void 0!==e.wpglobus_customize_js_editor&&(c("#customize-control-wpglobus_customize_js_editor .customize-control-title").css({width:"50%"}).after('<span class="wpglobus-customize-js-editor-expand" style="float:right;"><a href="#">'+WPGlobusCustomizeOptions.i18n.expandShrink+"</a></span>"),c(document).on("click",".wpglobus-customize-js-editor-expand",function(e){var o=c(this),t=c("#customize-controls");o.toggleClass("expanded"),o.hasClass("expanded")?t.css({width:"500px"}):t.css({width:""})}),c("#sub-accordion-section-wpglobus_js_editor_section .customize-section-back").on("click",function(e){c("#customize-controls").css({width:""}),c(".wpglobus-customize-js-editor-expand").removeClass("expanded")}))},addListeners:function(){c("body").on("change",".wpglobus-listen-change",function(e){u.setState(!1)}),c("body").on("change","#wpglobus-sortable input.wpglobus-language-item",function(e){var o=c(this);o.prop("checked")||u.removeLanguage(o)}),c("#customize-control-wpglobus_add_languages_select_box select").on("change",function(e){u.addLanguage(e,this)}),c("#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_addons_section+" .accordion-section-title").off("click keydown"),c("body").on("click","#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_addons_section+" .accordion-section-title",function(e){window.open(WPGlobusCustomizeOptions.addonsPage,"_blank")}),c(document).on("click","#"+WPGlobusCustomizeOptions.userControlSaveButton,function(){u.userControlAjax(this)}),c(document).on("click","#accordion-section-"+WPGlobusCustomizeOptions.sections.wpglobus_js_editor_section+" .accordion-section-title",function(e){c("#customize-control-wpglobus_customize_js_editor .CodeMirror").css({height:"40em"})})},removeLanguage:function(e){var o=e.data("language"),t=c("#customize-control-wpglobus_add_languages_select_box select option").eq(0);c('<option value="'+o+'">'+WPGlobusCustomizeOptions.config.language_name[o]+" ("+WPGlobusCustomizeOptions.config.en_language_name[o]+") </option>").insertAfter(t),e.parent("li").remove()},addLanguage:function(e,o){var t=c(o).attr("value"),s=c("#wpglobus-item-skeleton").html(),n="",i=c(u.listID+" li").attr("class");if("select"!=t){n=(n=(n=(n=(n=(n=(n=(n=(n=s.replace("{{flag}}",'src="'+WPGlobusCustomizeOptions.config.flags_url+WPGlobusCustomizeOptions.config.flag[t]+'"')).replace("{{name}}",t)).replace("{{id}}",t)).replace('checked="{{checked}}"','checked="checked"')).replace('disabled="{{disabled}}"',"")).replace("{{item}}",WPGlobusCustomizeOptions.config.en_language_name[t]+" ("+t+") ")).replace("{{order}}","#")).replace("{{language}}",t)).replace("{{edit-link}}",WPGlobusCustomizeOptions.editLink.replace("{{language}}",t)),c('<li class="'+i+'">'+n+"</li>").appendTo(u.listID),u.setOrder();var a=c(o).find("option");c.each(a,function(e,o){c(o).attr("value")==t&&c(o).remove()})}},sortUpdate:function(e,o){u.setState(!1),u.setOrder()},setOrder:function(){c("#wpglobus-sortable input.wpglobus-language-item").each(function(e,o){var t=c(o);0==e?t.prop("disabled","disabled").prop("checked","checked"):t.removeProp("disabled"),t.data("order",e)})},setState:function(e){wp.customize.state("saved").set(e)},getCustomizeSaveData:function(){return u.customizeSaveData},enabledUserControl:function(e){return void 0!==WPGlobusCustomize.controlInstances[e]&&WPGlobusCustomize.controlInstances[e].userControl.enabled},userControlAjax:function(e){c(e).prop("disabled",!0);var n={action:"cb-controls-save",controls:{}};c(".wpglobus-customize-cb-control").each(function(e,o){var t=c(o);if(!t.prop("checked")){var s=t.data("control");s=(s=s.replace("[","{{")).replace("]","}}"),n.controls[s]="disable"}}),c.ajax({beforeSend:function(){},type:"POST",url:WPGlobusCustomizeOptions.ajaxurl,data:{action:WPGlobusCustomizeOptions.process_ajax,order:n},dataType:"json"}).always(function(){location.reload(!0)})},ajax:function(e,o){if("wpglobus_customize_save"==e){var i={action:"wpglobus_customize_save",options:{}};c.each(WPGlobusCustomizeOptions.settings,function(e,o){c.each(o,function(e,t){if("wpglobus_customize_enabled_languages"==e)return i.options[t.option]={},c("#wpglobus-sortable input.wpglobus-language-item").each(function(e,o){i.options[t.option][c(this).data("language")]="1"}),!0;if(-1!=u.customizeSaveData.indexOf("wpglobus_customize_post_type_")&&-1!=e.indexOf("wpglobus_customize_post_type_"))void 0===i.options[t.option]&&(i.options[t.option]={}),i.options[t.option][e.replace("wpglobus_customize_post_type_","")]=c("#customize-control-"+e+" input").prop("checked")?1:0;else if(-1!=u.customizeSaveData.indexOf(e)){var o=c("#customize-control-"+e+" "+t.type),s="";if("textarea"==t.type)s=o.val();else if("wpglobus_checkbox"==t.type)o=c("#customize-control-"+e+" input"),s="wpglobus_customize_selector_wp_list_pages"==e?o.prop("checked")?1:0:o.prop("checked")?1:"";else if("checkbox"==t.type)s=o.prop("checked")?1:"";else if("select"==t.type)s=o.val();else if("code_editor"==t.type){var n=wp.customize.control.instance(e);void 0!==n&&(s=n.setting())}i.options[t.option]=s,"code_editor"==t.type&&void 0===n&&delete i.options[t.option]}})})}c.ajax({beforeSend:function(){},type:"POST",url:WPGlobusCustomizeOptions.ajaxurl,data:{action:WPGlobusCustomizeOptions.process_ajax,order:i},dataType:"json"})},getChangesetData:function(e){if(void 0!==e){var o=/customize_changeset_data=([^&]+)/.exec(e);if(void 0===o[1])return;var t,s=decodeURIComponent(o[1]),n=JSON.parse(s);c.each(n,function(e,o){void 0!==WPGlobusCustomize.controlInstances[e]&&(t="",t=(WPGlobusCustomize.controlInstances[e].type,WPGlobusCustomize.controlInstances[e].setting),n[e].value=t)});var i=JSON.stringify(n);i=(i=encodeURIComponent(i)).replace(/%20/g,"+"),e=e.replace(o[1],i)}return e},ajaxListener:function(){c(document).on("ajaxSend",function(e,o,t){void 0!==t.data&&-1!=t.data.indexOf("wp_customize=on")&&-1!=t.data.indexOf("action=customize_save")&&(-1!=t.data.indexOf("customized=")?(u.customizeSave=!0,u.customizeSaveData=t.data):-1!=t.data.indexOf("customize_changeset_data=")&&(t.data=u.getChangesetData(t.data)))}),c(document).on("ajaxComplete",function(e,o,t){void 0!==o.responseText&&u.customizeSave&&(u.customizeSave=!1,u.ajax("wpglobus_customize_save"))}),c(document).on("ajaxStop",function(){u.customizeSave&&(u.customizeSave=!1,u.ajax("wpglobus_customize_save"))})}};WPGlobusCustomizeOptions=c.extend({},WPGlobusCustomizeOptions,u),WPGlobusCustomizeOptions.init()});
|
includes/js/wpglobus-widgets.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(c){"use strict";if("undefined"!=typeof WPGlobusWidgets){var f={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){f.addElements(),f.attachListeners(),f.arbitraryTextOrHTML()},wysiwygClean:function(){c(".wpglobus-dialog-field").each(function(e,t){var i=c(t).data("source-id");if(1==c("#"+i+"-tmce").size()){var a=c(t).next(".wpglobus_dialog_start");c(t).remove(),c(a).remove()}})},setupWidgetControl:function(a,e,i){var o=!1;if(c.each(f.editor,function(e,t){if(t.widgetName==a)return!(o=!0)}),!o){var n=e.$el[0].id;if(""==n){var t=e.$el[0].offsetParent;void 0===(n=c(t).attr("id"))&&c(".widget").each(function(e,t){var i=c(t).attr("id");if(-1!=i.indexOf(a))return n=i,!1})}var r="#"+n+" #widget-"+a+"-text",d="#"+n+" #widget-"+a+"-title";f.editor[i.id]={},f.editor[i.id].widgetName=a,f.editor[i.id].controls=e,f.editor[i.id].sourceTitleSelector=d,f.editor[i.id].titleSelector=null,f.editor[i.id].sourceSelector=r,f.editor[i.id].content=c(r).val(),f.editor[i.id].saveSelector="#"+n+" #widget-"+a+"-savewidget",f.editor[i.id].languageSelector="#"+n+" .wpglobus-current-language",f.editor[i.id].inWidgetTitleSelector="#"+n+" .in-widget-title";var l=WPGlobusCore.TextFilter(f.editor[i.id].content,WPGlobusCoreData.default_language,"RETURN_EMPTY");c("#"+i.id).val(l);var u="",s="";c.each(WPGlobusCoreData.enabled_languages,function(e,t){u=(u=(u=(u=(u=(u=(u='<a href="#" onclick="return false;" class="item" data-widget-id="{{widgetID}}" data-source="{{source}}" data-editor-id="{{editorID}}" data-language="{{language}}" data-widget-name="{{widgetName}}" style="text-align:center;"><span>{{item}}</span></a>').replace("{{language}}",t)).replace("{{item}}",WPGlobusCoreData.en_language_name[t])).replace("{{widgetName}}",a)).replace("{{widgetID}}",n)).replace("{{editorID}}",i.id)).replace("{{source}}",r),s+=u});var g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+n+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="en" style="">En</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+s+"</div></div>";c("#"+n+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(f.editor[i.id].titleSelector="#"+e.fields.title[0].id),f.arbitraryWidgetTitle(i.id)}},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(c("#"+f.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);c(f.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){f.languageBoxTimeout=setTimeout(function(){f.languageBoxActive=!1,c(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t="";if(t="keyup"==e.type&&"tinymce"==e.target.id?c(e.target).data("id"):e.target.id,f.editor[t]){var i=c(f.editor[t].languageSelector).data("language"),a="";a=tinymce.get(t).isHidden()?c("#"+t).val():tinymce.get(t).getContent({format:"raw"}),f.editor[t].content=WPGlobusCore.getString(f.editor[t].content,a,i),c(f.editor[t].sourceSelector).val(f.editor[t].content)}}c(document).on("click",".switch-wpglobus-language",function(e){if(!f.languageBoxActive){f.languageBoxActive=!0;var t=c(this),i=t.data("widget-id"),a=t.position();a.top+=34,a.left+=10,c("#"+i+" .wpglobus-language-box").css({display:"block",top:a.top+"px",left:a.left+"px"}),f.setBoxTimeout()}}),c(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(f.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){c(".wpglobus-language-box").css({display:"none"}),f.languageBoxActive=!1}),c(document).on("click",".wpglobus-language-box .item",function(e){var t=c(this),i=t.data("language"),a=t.data("widget-id"),o=t.data("editor-id");c("#"+a+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(f.editor[o].content,i,"RETURN_EMPTY");tinymce.get(o).setContent(n,{format:"raw"}),c("textarea#"+o).val(n)}),c(document).on("tinymce-editor-setup",function(e,i){c.each(wp.textWidgets.widgetControls,function(e,t){f.setupWidgetControl(e,t,i)})}),c(document).on("tinymce-editor-init",function(e,t){c(document).on("mouseenter",f.editor[t.id].saveSelector,function(e){c(f.editor[t.id].sourceTitleSelector).val(c(f.editor[t.id].titleSelector).val()),c(f.editor[t.id].sourceSelector).val(f.editor[t.id].content)}),c(document).on("click",f.editor[t.id].saveSelector,function(e){f.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),c("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,a=[];a[0]='input[type="text"]',a[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",c.each(a,function(e,t){f.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",c.each(a,function(e,t){f.makeClone(i,t)}))},makeClone:function(e,u){c(e+" "+u).each(function(e,t){var i,a,o,n,r=c(t),d=!1;if(void 0===(n=r.attr("id"))||-1!=n.indexOf("-number")||""==n)return!0;if(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(d=!0)}),d)return!0;if(i=c("#"+n).clone(),c(r).addClass("wpglobus-dialog-field-source hidden"),a=r.attr("name"),c(i).attr("id","wpglobus-"+n),c(i).attr("name","wpglobus-"+a),c(i).attr("data-source-id",n),c(i).attr("class","wpglobus-dialog-field"),c(i).attr("style","width:90%;"),o=WPGlobusCore.TextFilter(c(r).val(),WPGlobusCoreData.language),c(i).val(o),c('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+n+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(r),c(i).insertAfter(r),'input[type="text"]'==u&&""!=o){var l=r.parents(".widget").attr("id");c("#"+l+" .in-widget-title").text(": "+o)}})},attachListeners:function(){c(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")
|
1 |
+
!function(c){"use strict";if("undefined"!=typeof WPGlobusWidgets){var f={saveArbitraryTextOrHTML:!1,editor:{},languageBoxActive:!1,languageBoxTimeout:null,init:function(){f.addElements(),f.attachListeners(),f.arbitraryTextOrHTML()},wysiwygClean:function(){c(".wpglobus-dialog-field").each(function(e,t){var i=c(t).data("source-id");if(1==c("#"+i+"-tmce").size()){var a=c(t).next(".wpglobus_dialog_start");c(t).remove(),c(a).remove()}})},setupWidgetControl:function(a,e,i){var o=!1;if(c.each(f.editor,function(e,t){if(t.widgetName==a)return!(o=!0)}),!o){var n=e.$el[0].id;if(""==n){var t=e.$el[0].offsetParent;void 0===(n=c(t).attr("id"))&&c(".widget").each(function(e,t){var i=c(t).attr("id");if(-1!=i.indexOf(a))return n=i,!1})}var r="#"+n+" #widget-"+a+"-text",d="#"+n+" #widget-"+a+"-title";f.editor[i.id]={},f.editor[i.id].widgetName=a,f.editor[i.id].controls=e,f.editor[i.id].sourceTitleSelector=d,f.editor[i.id].titleSelector=null,f.editor[i.id].sourceSelector=r,f.editor[i.id].content=c(r).val(),f.editor[i.id].saveSelector="#"+n+" #widget-"+a+"-savewidget",f.editor[i.id].languageSelector="#"+n+" .wpglobus-current-language",f.editor[i.id].inWidgetTitleSelector="#"+n+" .in-widget-title";var l=WPGlobusCore.TextFilter(f.editor[i.id].content,WPGlobusCoreData.default_language,"RETURN_EMPTY");c("#"+i.id).val(l);var u="",s="";c.each(WPGlobusCoreData.enabled_languages,function(e,t){u=(u=(u=(u=(u=(u=(u='<a href="#" onclick="return false;" class="item" data-widget-id="{{widgetID}}" data-source="{{source}}" data-editor-id="{{editorID}}" data-language="{{language}}" data-widget-name="{{widgetName}}" style="text-align:center;"><span>{{item}}</span></a>').replace("{{language}}",t)).replace("{{item}}",WPGlobusCoreData.en_language_name[t])).replace("{{widgetName}}",a)).replace("{{widgetID}}",n)).replace("{{editorID}}",i.id)).replace("{{source}}",r),s+=u});var g='<button style="z-index:200000;" type="button" id="'+i.id+'-wpglobus-button" data-widget-id="'+n+'"class="wp-switch-editor switch-wpglobus-language wpglobus-icon-globe"><span class="wpglobus-current-language" data-language="en" style="">En</span></button><div class="wpglobus-language-box" style="position:absolute;top:0;left:0;display:none;z-index:200100;border:1px solid #9e9e9e;border-radius:3px;background-color:#fff;padding: 2px 5px;"><div style="display:flex;flex-direction:column;">'+s+"</div></div>";c("#"+n+" .wp-editor-tabs").append(g),WPGlobusDialogApp.addElement({id:e.fields.title[0].id,style:"width:93%;"})&&(f.editor[i.id].titleSelector="#"+e.fields.title[0].id),f.arbitraryWidgetTitle(i.id)}},arbitraryWidgetTitle:function(e){var t=WPGlobusCore.TextFilter(c("#"+f.editor[e].controls.fields.title[0].id).val(),WPGlobusCoreData.language);c(f.editor[e].inWidgetTitleSelector).text(": "+t)},setBoxTimeout:function(){f.languageBoxTimeout=setTimeout(function(){f.languageBoxActive=!1,c(".wpglobus-language-box").css({display:"none"})},1e3)},arbitraryTextOrHTML:function(){function i(e){var t="";if(t="keyup"==e.type&&"tinymce"==e.target.id?c(e.target).data("id"):e.target.id,f.editor[t]){var i=c(f.editor[t].languageSelector).data("language"),a="";a=tinymce.get(t).isHidden()?c("#"+t).val():tinymce.get(t).getContent({format:"raw"}),f.editor[t].content=WPGlobusCore.getString(f.editor[t].content,a,i),c(f.editor[t].sourceSelector).val(f.editor[t].content)}}c(document).on("click",".switch-wpglobus-language",function(e){if(!f.languageBoxActive){f.languageBoxActive=!0;var t=c(this),i=t.data("widget-id"),a=t.position();a.top+=34,a.left+=10,c("#"+i+" .wpglobus-language-box").css({display:"block",top:a.top+"px",left:a.left+"px"}),f.setBoxTimeout()}}),c(document).on("mouseenter",".wpglobus-language-box",function(e){clearTimeout(f.languageBoxTimeout)}).on("mouseleave",".wpglobus-language-box",function(e){c(".wpglobus-language-box").css({display:"none"}),f.languageBoxActive=!1}),c(document).on("click",".wpglobus-language-box .item",function(e){var t=c(this),i=t.data("language"),a=t.data("widget-id"),o=t.data("editor-id");c("#"+a+" .wpglobus-current-language").text(i).data("language",i);var n=WPGlobusCore.TextFilter(f.editor[o].content,i,"RETURN_EMPTY");tinymce.get(o).setContent(n,{format:"raw"}),c("textarea#"+o).val(n)}),c(document).on("tinymce-editor-setup",function(e,i){c.each(wp.textWidgets.widgetControls,function(e,t){f.setupWidgetControl(e,t,i)})}),c(document).on("tinymce-editor-init",function(e,t){c(document).on("mouseenter",f.editor[t.id].saveSelector,function(e){c(f.editor[t.id].sourceTitleSelector).val(c(f.editor[t.id].titleSelector).val()),c(f.editor[t.id].sourceSelector).val(f.editor[t.id].content)}),c(document).on("click",f.editor[t.id].saveSelector,function(e){f.saveArbitraryTextOrHTML=t.id}),t.on("nodechange keyup",_.debounce(i,100)),c("#"+t.id).on("keyup",_.debounce(i,100))})},addElements:function(e,t){var i,a=[];a[0]='input[type="text"]',a[1]="textarea",void 0===e||"class"==e?(i=".widget-liquid-right .widget .widget-content",c.each(a,function(e,t){f.makeClone(i,t)})):"id"==e&&(i="#"+t+" .widget-content",c.each(a,function(e,t){f.makeClone(i,t)}))},makeClone:function(e,u){c(e+" "+u).each(function(e,t){var i,a,o,n,r=c(t),d=!1;if(void 0===(n=r.attr("id"))||-1!=n.indexOf("-number")||""==n)return!0;if(_.each(WPGlobusWidgets.disabledMask,function(e){if(-1!=n.indexOf(e))return!(d=!0)}),d)return!0;if(i=c("#"+n).clone(),c(r).addClass("wpglobus-dialog-field-source hidden"),a=r.attr("name"),c(i).attr("id","wpglobus-"+n),c(i).attr("name","wpglobus-"+a),c(i).attr("data-source-id",n),c(i).attr("class","wpglobus-dialog-field"),c(i).attr("style","width:90%;"),o=WPGlobusCore.TextFilter(c(r).val(),WPGlobusCoreData.language),c(i).val(o),c('<div style="width:20px;" data-type="control" data-source-type="" data-source-id="'+n+'" class="wpglobus-widgets wpglobus_dialog_start wpglobus_dialog_icon"></div>').insertAfter(r),c(i).insertAfter(r),'input[type="text"]'==u&&""!=o){var l=r.parents(".widget").attr("id");c("#"+l+" .in-widget-title").text(": "+o)}})},attachListeners:function(){c(document).ajaxComplete(function(e,t,i){if(-1!=i.data.indexOf("action=save-widget")&&-1==i.data.indexOf("delete_widget=1")){if(f.saveArbitraryTextOrHTML){var a=WPGlobusCore.TextFilter(f.editor[f.saveArbitraryTextOrHTML].content,c(f.editor[f.saveArbitraryTextOrHTML].languageSelector).data("language"),"RETURN_EMPTY");return tinymce.get(f.saveArbitraryTextOrHTML).isHidden()?(c("#"+f.saveArbitraryTextOrHTML).val(a),c("#"+f.saveArbitraryTextOrHTML+"-tmce").click()):tinymce.get(f.saveArbitraryTextOrHTML).setContent(a,{format:"raw"}),f.arbitraryWidgetTitle(f.saveArbitraryTextOrHTML),void(f.saveArbitraryTextOrHTML=!1)}var o=i.data.split("widget-id=");o=o[1].split("&"),c(".widget-liquid-right .widget").each(function(e,t){var i=c(t).attr("id");-1!==i.indexOf(o[0])&&(f.addElements("id",i),f.wysiwygClean())})}}),c("body").on("change",".wpglobus-dialog-field",function(){var i,a,o=c(this),e="#"+o.data("source-id"),n="";i=c(e).val(),/(\{:|\[:|<!--:)[a-z]{2}/.test(i)?(c.each(WPGlobusCoreData.enabled_languages,function(e,t){""!=(a=t==WPGlobusCoreData.language?o.val():WPGlobusCore.TextFilter(i,t,"RETURN_EMPTY"))&&(n+=WPGlobusCore.addLocaleMarks(a,t))}),c(e).val(n)):c(e).val(o.val())}),c(document).on("click",".widget-title, .widget-title-action",function(e){e.preventDefault(),f.wysiwygClean(),f.imageWidget(this)})},imageWidget:function(e){var t=c(e).parents(".widget").attr("id");if(-1!=t.indexOf("media_image")){var i=c("#"+t+" .in-widget-title"),a=c("#"+t).find('input[type="text"]').attr("id");if(-1!=a.indexOf(".")){var o="wpg-"+a.replace(".","_");if(c("#"+t).find('input[type="text"]').attr("name",o),WPGlobusDialogApp.addElement(o)){var n=c("#"+t).find('input[name="'+o+'"]'),r=WPGlobusCore.getTranslations(n.val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+o).val(r)},1e3)}}else if(WPGlobusDialogApp.addElement(a)){r=WPGlobusCore.getTranslations(c("#"+a).val())[WPGlobusCoreData.language];i.text(": "+r),setTimeout(function(){c("#wpglobus-"+a).val(r)},1e3)}}}};WPGlobusWidgets=c.extend({},WPGlobusWidgets,f)}}(jQuery);
|
includes/js/wpglobus-yoastseo-120.js
CHANGED
@@ -44,6 +44,9 @@ jQuery(document).ready( function ($) {
|
|
44 |
isDefaultLanguage: function(){
|
45 |
return api.parseBool(WPGlobusYoastSeo.is_default_language);
|
46 |
},
|
|
|
|
|
|
|
47 |
getSuggest: function(type){
|
48 |
var suggest = '';
|
49 |
if ( 'undefined' === typeof type ) {
|
@@ -70,7 +73,9 @@ jQuery(document).ready( function ($) {
|
|
70 |
return suggest;
|
71 |
},
|
72 |
init: function() {
|
73 |
-
api.
|
|
|
|
|
74 |
},
|
75 |
start: function() {
|
76 |
if ( ! api.isDefaultLanguage() ) {
|
44 |
isDefaultLanguage: function(){
|
45 |
return api.parseBool(WPGlobusYoastSeo.is_default_language);
|
46 |
},
|
47 |
+
isBuilderPage: function(){
|
48 |
+
return api.parseBool(WPGlobusYoastSeo.builder_page);
|
49 |
+
},
|
50 |
getSuggest: function(type){
|
51 |
var suggest = '';
|
52 |
if ( 'undefined' === typeof type ) {
|
73 |
return suggest;
|
74 |
},
|
75 |
init: function() {
|
76 |
+
if ( api.isBuilderPage() ) {
|
77 |
+
api.start();
|
78 |
+
}
|
79 |
},
|
80 |
start: function() {
|
81 |
if ( ! api.isDefaultLanguage() ) {
|
includes/js/wpglobus-yoastseo-120.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(n){"use strict";if("undefined"!=typeof wpseoReplaceVarsL10n&&"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor){var a={initSeoAnalysis:!1,initReadability:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return"string"==typeof WPGlobusYoastSeo.plus_module&&""!=WPGlobusYoastSeo.plus_module?WPGlobusYoastSeo.plus_module:a.parseBool(WPGlobusYoastSeo.plus_access)},isPremium:function(){return WPGlobusVendor.vendor.WPSEO_PREMIUM},isDefaultLanguage:function(){return a.parseBool(WPGlobusYoastSeo.is_default_language)},getSuggest:function(e){var t="";return void 0===e?t:("inactive"===a.moduleState()?"keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive):"boolean"!=typeof a.moduleState()||a.moduleState()||("keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_access)),t='<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);height:35px;width:90%;padding:8px 10px;">'+t+"</div>")},init:function(){a.start()},start:function(){a.isDefaultLanguage()||(a.setMetaBoxTitle(),"inactive"!=a.moduleState()&&a.moduleState()||(a.setKeywordField(),a.setSeoAnalysis(),a.setReadability()))},setKeywordField:function(){setTimeout(function(){var e=n("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword"))},2e3)},setReadability:function(){var e=n(".yoast-aria-tabs li").eq(1);n(document).on("click",e,function(e){a.initReadability||setTimeout(function(){n("#wpseo-meta-section-readability div").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return o.empty().append(a.getSuggest("readability")),!1}),a.initReadability=!0},100)})},setSeoAnalysis:function(){var t;setTimeout(function(){var e=n("#yoast-seo-analysis-collapsible-metabox").parents("div");void 0!==e[0]&&(t=e[0])},500),n(document).on("click",t,function(e){setTimeout(function(){var s=!1;n("#wpseo-metabox-root span").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("SeoAnalysis__")){var a=o.attr("class").split(" ")[0];return s=n("."+a).next(),!1}}),s&&s.empty().append(a.getSuggest("analysis"))},300)})},setMetaBoxTitle:function(){var e=n("#wpseo_meta .hndle");if(1!=e.length){if(1==(e=n("#wpseo_meta > h2 > span")).length){t=e.text();e.text(t+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")")}}else{var t=e.text();e.text(t+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")")}}};WPGlobusYoastSeo=n.extend({},WPGlobusYoastSeo,a),WPGlobusYoastSeo.init()}});
|
1 |
+
jQuery(document).ready(function(n){"use strict";if("undefined"!=typeof wpseoReplaceVarsL10n&&"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor){var a={initSeoAnalysis:!1,initReadability:!1,parseBool:function(e){return!/^(false|0)$/i.test(e)&&!!e},moduleState:function(){return"string"==typeof WPGlobusYoastSeo.plus_module&&""!=WPGlobusYoastSeo.plus_module?WPGlobusYoastSeo.plus_module:a.parseBool(WPGlobusYoastSeo.plus_access)},isPremium:function(){return WPGlobusVendor.vendor.WPSEO_PREMIUM},isDefaultLanguage:function(){return a.parseBool(WPGlobusYoastSeo.is_default_language)},isBuilderPage:function(){return a.parseBool(WPGlobusYoastSeo.builder_page)},getSuggest:function(e){var t="";return void 0===e?t:("inactive"===a.moduleState()?"keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_inactive:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_inactive:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_inactive):"boolean"!=typeof a.moduleState()||a.moduleState()||("keyword"==e?t=WPGlobusVendor.i18n.yoastseo_plus_meta_keywords_access:"analysis"==e?t=WPGlobusVendor.i18n.yoastseo_plus_page_analysis_access:"readability"==e&&(t=WPGlobusVendor.i18n.yoastseo_plus_readability_access)),t='<div class="wpglobus-suggest" style="font-weight:bold;border:1px solid rgb(221, 221, 221);height:35px;width:90%;padding:8px 10px;">'+t+"</div>")},init:function(){a.isBuilderPage()&&a.start()},start:function(){a.isDefaultLanguage()||(a.setMetaBoxTitle(),"inactive"!=a.moduleState()&&a.moduleState()||(a.setKeywordField(),a.setSeoAnalysis(),a.setReadability()))},setKeywordField:function(){setTimeout(function(){var e=n("#focus-keyword-input-metabox").parent("div");1==e.length&&e.empty().append(a.getSuggest("keyword"))},2e3)},setReadability:function(){var e=n(".yoast-aria-tabs li").eq(1);n(document).on("click",e,function(e){a.initReadability||setTimeout(function(){n("#wpseo-meta-section-readability div").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("ContentAnalysis__ContentAnalysisContainer"))return o.empty().append(a.getSuggest("readability")),!1}),a.initReadability=!0},100)})},setSeoAnalysis:function(){var t;setTimeout(function(){var e=n("#yoast-seo-analysis-collapsible-metabox").parents("div");void 0!==e[0]&&(t=e[0])},500),n(document).on("click",t,function(e){setTimeout(function(){var s=!1;n("#wpseo-metabox-root span").each(function(e,t){var o=n(t);if(-1!==o.attr("class").indexOf("SeoAnalysis__")){var a=o.attr("class").split(" ")[0];return s=n("."+a).next(),!1}}),s&&s.empty().append(a.getSuggest("analysis"))},300)})},setMetaBoxTitle:function(){var e=n("#wpseo_meta .hndle");if(1!=e.length){if(1==(e=n("#wpseo_meta > h2 > span")).length){t=e.text();e.text(t+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")")}}else{var t=e.text();e.text(t+" ("+WPGlobusCoreData.en_language_name[WPGlobusYoastSeo.language]+")")}}};WPGlobusYoastSeo=n.extend({},WPGlobusYoastSeo,a),WPGlobusYoastSeo.init()}});
|
includes/js/wpglobus-yoastseo-premium-39.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(t){"use strict";if("undefined"!=typeof wpseoReplaceVarsL10n&&"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&"undefined"!=typeof WPGlobusYoastSeoPremium
|
1 |
+
jQuery(document).ready(function(t){"use strict";if("undefined"!=typeof wpseoReplaceVarsL10n&&"undefined"!=typeof WPGlobusCoreData&&"undefined"!=typeof WPGlobusVendor&&"undefined"!=typeof WPGlobusYoastSeoPremium&&"edit-tags.php"!=WPGlobusVendor.pagenow&&"term.php"!=WPGlobusVendor.pagenow&&void 0!==WPGlobusVendor.vendor.WPSEO_PREMIUM&&WPGlobusVendor.vendor.WPSEO_PREMIUM)var a=WPGlobusYoastSeoPremium={dLang:WPGlobusCoreData.default_language,keywordButton:null,focuskeywords:"",observer:null,observerInterval:null,observerSelector:"",observerStart:!1,scoreClass:"bad ok good na 100",idsSpecial:"",init:function(){a.observerSelector="#wpseo-metabox-tabs_"+a.dLang,a.keywordButton=t("#wpseo-meta-section-content li.wpseo-tab-add-keyword").detach(),a.bindKeywordRemoveOrig(),a.initFocuskeywords(),a.idsSpecial=WPGlobusYoastSeo.attrs.data("ids-premium-special"),a.idsSpecial=a.idsSpecial.split(","),setTimeout(function(){a.setScores,a.setCSS(),a.setSpecial()},2e3),a.observerInterval=setInterval(a.addObserver,2e3)},setSpecial:function(){1<t(".wpseo-cornerstone-checkbox").length&&t.each(WPGlobusCoreData.enabled_languages,function(e,o){if(o==a.dLang){var s=t("#wpseofocuskeyword input#_yst_is_cornerstone");return t(s).attr("id","_yst_is_cornerstone_origin").attr("name","_yst_is_cornerstone_origin"),t(s).addClass("wpseo-cornerstone-checkbox_origin"),!0}t("#wpseo-tab-"+o+" .wpseo-cornerstone-checkbox").remove(),t("#wpseo-tab-"+o+' label[for="_yst_is_cornerstone"]').remove()})},setCSS:function(){t("#wpglobus-wpseo-tabs").css({"margin-top":"0"}),t(".wpglobus-wpseosnippet").css({"margin-bottom":"2em"}),t(".wpglobus-wpseofocuskeyword").css({"margin-bottom":"2em"})},setScores:function(){if(WPGlobusYoastSeo.wpseoTab!=WPGlobusCoreData.default_language){var e=t("#wpseo-metabox-tabs_"+WPGlobusYoastSeo.wpseoTab+" .wpglobus-wpseo_keyword_tab a").eq(0).find(".wpseo-score-icon"),o=t(a.observerSelector+" .wpseo_keyword_tab a").eq(0);e.removeClass(a.scoreClass),e.addClass(o.data("score"))}else t(a.observerSelector+" .wpseo_keyword_tab a").each(function(e,o){var s=t(o),r=s.find(".wpseo-score-icon");r.removeClass(a.scoreClass),r.addClass(s.data("score"))});a.observerStart&&a.startObserver(),a.observerStart=!1},addObserver:function(){if(0!=t("#wpseo-metabox-tabs_"+a.dLang).length){clearInterval(a.observerInterval);a.observer=new MutationObserver(function(e){a.observer.disconnect(),a.observerStart=!0,setTimeout(a.setScores,2e3),0}),a.startObserver()}},startObserver:function(){a.observer.observe(document.querySelector(a.observerSelector),{childList:!0})},initFocuskeywords:function(){setTimeout(a.setFocuskeywords,5e3)},setFocuskeywords:function(){t.each(WPGlobusCoreData.enabled_languages,function(e,o){if(o!=a.dLang){var s=t("wpseo-tab-"+o).val();void 0===s||""==s?t("#yoast_wpseo_focuskeywords_"+o).val(""):t("#yoast_wpseo_focuskeywords_"+o).val(s)}})},setFocuskeyword:function(e){if(void 0===e&&(e=WPGlobusCoreData.default_language),e==WPGlobusCoreData.default_language){var o=WPGlobusYoastSeo.getKeywordsOrig();if(0===(o=_.filter(o,function(e){return 0<e.keyword.length})).length&&o.push({keyword:"",score:0}),0<o.length)o.splice(0,1).shift();t("#yoast_wpseo_focuskeywords_"+e).val(JSON.stringify(o))}},addKeywordButton:function(){t("#wpseo-tab-"+a.dLang+" #wpseo-metabox-tabs_"+a.dLang).append(a.keywordButton)},bindKeywordRemoveOrig:function(){t(document).on("click","#wpseo-metabox-tabs_"+a.dLang+" .remove-keyword",function(e){var o,s;o=(s=t(e.currentTarget).parent("li")).prev(),s.remove(),s.hasClass("active")&&o.find(".wpseo_tablink").click(),t(".wpseo-add-keyword").prop("disabled",!1).attr("aria-disabled","false");var r=WPGlobusYoastSeo.getKeywordsOrig();if(0===(r=_.filter(r,function(e){return 0<e.keyword.length})).length&&r.push({keyword:"",score:0}),0<r.length)r.splice(0,1).shift();t("#yoast_wpseo_focuskeywords").val(JSON.stringify(r))})}}});
|
includes/vendor/yoast-seo/class-wpglobus-yoastseo120.php
CHANGED
@@ -716,6 +716,7 @@ class WPGlobus_YoastSEO {
|
|
716 |
'version' => WPGLOBUS_VERSION,
|
717 |
'src_version' => $src_version,
|
718 |
'builder_id' => WPGlobus::Config()->builder->get('id'),
|
|
|
719 |
'language' => WPGlobus::Config()->builder->get_language(),
|
720 |
'is_default_language' => WPGlobus::Config()->builder->is_default_language() ? true : false,
|
721 |
'src_version_premium' => $src_version_premium,
|
716 |
'version' => WPGLOBUS_VERSION,
|
717 |
'src_version' => $src_version,
|
718 |
'builder_id' => WPGlobus::Config()->builder->get('id'),
|
719 |
+
'builder_page' => WPGlobus::Config()->builder->is_builder_page() ? 'true' : 'false',
|
720 |
'language' => WPGlobus::Config()->builder->get_language(),
|
721 |
'is_default_language' => WPGlobus::Config()->builder->is_default_language() ? true : false,
|
722 |
'src_version_premium' => $src_version_premium,
|
languages/wpglobus-ar.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2018
|
5 |
# Omar Anwar <omaraglan91@yahoo.com>, 2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2018
|
5 |
# Omar Anwar <omaraglan91@yahoo.com>, 2017
|
languages/wpglobus-be.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2018
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2018
|
5 |
msgid ""
|
languages/wpglobus-bg_BG.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-de_CH.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Tobias Hopp <toby.hopp@gmail.com>, 2015
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2015,2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Tobias Hopp <toby.hopp@gmail.com>, 2015
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2015,2017
|
languages/wpglobus-de_DE.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Tobias Hopp <toby.hopp@gmail.com>, 2015
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2015,2017,2019
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Tobias Hopp <toby.hopp@gmail.com>, 2015
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2015,2017,2019
|
languages/wpglobus-el.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
languages/wpglobus-en_AU.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
# Stephen Edgar, 2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
# Stephen Edgar, 2017
|
languages/wpglobus-en_CA.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
languages/wpglobus-en_GB.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Andi Chandler <andi@gowling.com>, 2017
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Andi Chandler <andi@gowling.com>, 2017
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
languages/wpglobus-en_NZ.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
languages/wpglobus-en_US.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-en_ZA.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
5 |
msgid ""
|
languages/wpglobus-es_AR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_CL.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_CO.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_CR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_ES.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_GT.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_MX.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_PE.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_PR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-es_VE.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
5 |
msgid ""
|
languages/wpglobus-et.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Rivo Zängov <eraser@eraser.ee>, 2018
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Rivo Zängov <eraser@eraser.ee>, 2018
|
5 |
msgid ""
|
languages/wpglobus-fr_BE.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2015
|
5 |
msgid ""
|
languages/wpglobus-fr_CA.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Franck, 2015
|
5 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Franck, 2015
|
5 |
# FX Bénard <fxb@wp-translations.org>, 2015
|
languages/wpglobus-fr_FR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Franck, 2015-2017
|
5 |
# FX Bénard <fxb@wp-translations.org>, 2015-2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Franck, 2015-2017
|
5 |
# FX Bénard <fxb@wp-translations.org>, 2015-2017
|
languages/wpglobus-id_ID.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# ChameleonJohn.com, 2017
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# ChameleonJohn.com, 2017
|
5 |
# Gregory Karpinsky <gregory@tiv.net>, 2017
|
languages/wpglobus-ko_KR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-pl_PL.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-pt_BR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-pt_PT.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-ro_RO.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
msgid ""
|
5 |
msgstr ""
|
languages/wpglobus-ru_RU.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2015-2019
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2015-2019
|
5 |
msgid ""
|
languages/wpglobus-sv_SE.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Elger Lindgren <inactive+Elger@transifex.com>, 2015
|
5 |
# Elger Lindgren <inactive+Elger@transifex.com>, 2015
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Elger Lindgren <inactive+Elger@transifex.com>, 2015
|
5 |
# Elger Lindgren <inactive+Elger@transifex.com>, 2015
|
languages/wpglobus-tr_TR.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# BORAHAN CONKEROGLU <boracon@gmail.com>, 2015
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# BORAHAN CONKEROGLU <boracon@gmail.com>, 2015
|
5 |
msgid ""
|
languages/wpglobus-uk.po
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2016
|
5 |
msgid ""
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
# Translators:
|
4 |
# Gregory Karpinsky <gregory@tiv.net>, 2016
|
5 |
msgid ""
|
languages/wpglobus.pot
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
-
# Copyright (C) 2019 WPGlobus 2.2.
|
2 |
-
# This file is distributed under the same license as the WPGlobus 2.2.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WPGlobus 2.2.
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
1 |
+
# Copyright (C) 2019 WPGlobus 2.2.25
|
2 |
+
# This file is distributed under the same license as the WPGlobus 2.2.25 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WPGlobus 2.2.25\n"
|
6 |
"MIME-Version: 1.0\n"
|
7 |
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -218,6 +218,11 @@ WPGlobus Version 2 supports WordPress 5.x, with Gutenberg.
|
|
218 |
|
219 |
== Changelog ==
|
220 |
|
|
|
|
|
|
|
|
|
|
|
221 |
= 2.2.24 =
|
222 |
|
223 |
* Added: (Core/Builders) Check if block editor is used with specific post types.
|
218 |
|
219 |
== Changelog ==
|
220 |
|
221 |
+
= 2.2.25 =
|
222 |
+
|
223 |
+
* Fixed: (Vendor/Yoast) Don't start JS if support module was not defined.
|
224 |
+
* Fixed: (Vendor/Yoast) Start the support module while the corresponding option is missing.
|
225 |
+
|
226 |
= 2.2.24 =
|
227 |
|
228 |
* Added: (Core/Builders) Check if block editor is used with specific post types.
|
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.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.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.2.25
|
19 |
* Author: WPGlobus
|
20 |
* Author URI: https://wpglobus.com/
|
21 |
* Network: false
|
42 |
exit;
|
43 |
}
|
44 |
|
45 |
+
define( 'WPGLOBUS_VERSION', '2.2.25' );
|
46 |
define( 'WPGLOBUS_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
47 |
define( 'WPGLOBUS_AJAX', 'wpglobus-ajax' );
|
48 |
|