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