phcthemes_web_theme_pack 4.0.1 → 4.0.2
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: ed9716e3f08f38bf940eb4be22f3df264cc4506807fa79455c61058276c1d595
|
|
4
|
+
data.tar.gz: d60527ff1c63cbf4f4716ee747871436d83974c129ac6638a41eec9986cce481
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f1124a5fcbd37e808f29d3ff4f30af7c16f2173a8412a6d312ef013c745ffff594753f1d3ab03095c1f650877354504aa3d26b8344b331bf721f1df3ec0a0b6
|
|
7
|
+
data.tar.gz: bcda37747ea2242d750ea08fc6f7ef63d92c214b7cc84f19f186609aa3ab49b3302e4ea2d13b1d2f805b37c92abf04fb894a803dbcce00bc919c4a7ce0850243
|
|
@@ -35,7 +35,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
35
35
|
active();
|
|
36
36
|
display();
|
|
37
37
|
switching();
|
|
38
|
-
headerfooter();
|
|
39
38
|
translate();
|
|
40
39
|
switchVisible();
|
|
41
40
|
});
|
|
@@ -133,72 +132,7 @@ $(".mobile .menu-item")
|
|
|
133
132
|
}
|
|
134
133
|
}
|
|
135
134
|
);
|
|
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
|
-
}
|
|
135
|
+
|
|
202
136
|
/*----------------------*/
|
|
203
137
|
/* Switch */
|
|
204
138
|
/*----------------------*/
|