phcthemes_web_theme_pack 1.7.2 → 1.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: efc213f0a66bdc4c811b3fd944b24b1418a46bff53e24c6e884ad1529e923838
|
|
4
|
+
data.tar.gz: 8486063f432756e59b8925fbac1009df3ebf9e9ab7706b3a808d7128efa0aeda
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60e42c18aa481a255d1abf1d436fff3e92b2492e1ce3b749c23468fd4df4c4b79af8dfd312c6b8b47c460ce0a994ade17022e22aed9d3af43c8abb2660cf9218
|
|
7
|
+
data.tar.gz: c7de61d0304ca08fdd4711739faa1835bbccf23e4125f417d3e2639e1731050d572d332efa494e538a076d68bb005aa50597056be586d5a726421c0e27d3e7a4
|
|
@@ -35,8 +35,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
35
35
|
active();
|
|
36
36
|
display();
|
|
37
37
|
switching();
|
|
38
|
-
headerfooter();
|
|
39
|
-
translate();
|
|
40
38
|
switchVisible();
|
|
41
39
|
});
|
|
42
40
|
//----------------------------------------------------/
|
|
@@ -133,72 +131,6 @@ $(".mobile .menu-item")
|
|
|
133
131
|
}
|
|
134
132
|
}
|
|
135
133
|
);
|
|
136
|
-
//----------------------------------------------------/
|
|
137
|
-
// i18next translate
|
|
138
|
-
//----------------------------------------------------/
|
|
139
|
-
function translate() {
|
|
140
|
-
$.getScript('js/lib/i18next.min.js', function() {
|
|
141
|
-
$.getScript('js/lib/i18nextXHRBackend.min.js', function() {
|
|
142
|
-
$.getScript('js/lib/jquery-i18next.min.js', function() {
|
|
143
|
-
var language = localStorage.getItem('lng');
|
|
144
|
-
if (!language) {
|
|
145
|
-
localStorage.setItem('lng', 'en-US');
|
|
146
|
-
language = 'en-US';
|
|
147
|
-
}
|
|
148
|
-
i18next.use(i18nextXHRBackend)
|
|
149
|
-
.init({
|
|
150
|
-
lng: language,
|
|
151
|
-
fallbackLng: 'en-US',
|
|
152
|
-
backend: {
|
|
153
|
-
loadPath: 'locales/{{lng}}/translations.json'
|
|
154
|
-
}
|
|
155
|
-
}, function(err, t) {
|
|
156
|
-
jqueryI18next.init(i18next, $, {
|
|
157
|
-
tName: 't',
|
|
158
|
-
i18nName: 'i18n',
|
|
159
|
-
handleName: 'localize',
|
|
160
|
-
selectorAttr: 'data-i18n',
|
|
161
|
-
targetAttr: 'i18n-target',
|
|
162
|
-
optionsAttr: 'i18n-options',
|
|
163
|
-
useOptionsAttr: false,
|
|
164
|
-
parseDefaultValueFromContent: true
|
|
165
|
-
});
|
|
166
|
-
$(document)
|
|
167
|
-
.localize();
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
/*---------------------------------*/
|
|
174
|
-
/* Load header and footer file */
|
|
175
|
-
/*---------------------------------*/
|
|
176
|
-
function headerfooter() {
|
|
177
|
-
$("#header")
|
|
178
|
-
.load("header.html", function(res, status, xhr) {
|
|
179
|
-
$('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
|
|
180
|
-
.addClass('xpto active');
|
|
181
|
-
$('#drop-lng label')
|
|
182
|
-
.click(function(e) {
|
|
183
|
-
e.preventDefault();
|
|
184
|
-
localStorage.setItem('lng', $(this)
|
|
185
|
-
.attr('data-lng'));
|
|
186
|
-
location.reload(true);
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
$("#footer")
|
|
190
|
-
.load("footer.html", function(res, status, xhr) {
|
|
191
|
-
$('#drop-lng [data-lng="' + localStorage.getItem('lng') + '"]')
|
|
192
|
-
.addClass('xpto active');
|
|
193
|
-
$('#drop-lng label')
|
|
194
|
-
.click(function(e) {
|
|
195
|
-
e.preventDefault();
|
|
196
|
-
localStorage.setItem('lng', $(this)
|
|
197
|
-
.attr('data-lng'));
|
|
198
|
-
location.reload(true);
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
134
|
/*----------------------*/
|
|
203
135
|
/* Switch */
|
|
204
136
|
/*----------------------*/
|