phcthemes_web_theme_pack 1.6.4 → 1.6.5
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: 2ade41947067ad83117a4c0074993a6225dddebf619c61257a8b807990bde31b
|
|
4
|
+
data.tar.gz: bca77660e1a6fee6a8d13654f7ef719609bbee74c6a09a0ff382343ef03b0ccc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc7f374d5ce6855f340341c94729fa19e92098ed4f9f9725f4e09350ea1b483d01605982ce6aea999a0f5569301c88ee812717971abe719080f03161a9a165ec
|
|
7
|
+
data.tar.gz: 2107165f4c44de37faf3a2c28c5809116dae3e846c724f3ea75e4708432d7ed36d6381dd254c651e0e02dbedf6fd993f8eee37f905ca041a872aecc24f778263
|
|
@@ -29,11 +29,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
|
29
29
|
owldemo();
|
|
30
30
|
isotope();
|
|
31
31
|
livechat();
|
|
32
|
+
contactform();
|
|
32
33
|
popover();
|
|
33
34
|
scrollgoto();
|
|
34
35
|
active();
|
|
35
36
|
display();
|
|
36
37
|
switching();
|
|
38
|
+
headerfooter();
|
|
39
|
+
translate();
|
|
37
40
|
switchVisible();
|
|
38
41
|
});
|
|
39
42
|
//----------------------------------------------------/
|
|
@@ -130,6 +133,72 @@ $(".mobile .menu-item")
|
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
);
|
|
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
|
+
}
|
|
133
202
|
/*----------------------*/
|
|
134
203
|
/* Switch */
|
|
135
204
|
/*----------------------*/
|
|
@@ -238,6 +307,26 @@ function popover() {
|
|
|
238
307
|
.popover()
|
|
239
308
|
}
|
|
240
309
|
/*----------------------*/
|
|
310
|
+
/* Contact Form */
|
|
311
|
+
/*----------------------*/
|
|
312
|
+
function contactform() {
|
|
313
|
+
$('#contactForm')
|
|
314
|
+
.on('submit', function(e) {
|
|
315
|
+
$.ajax({
|
|
316
|
+
type: "POST",
|
|
317
|
+
url: 'php/form-process.php',
|
|
318
|
+
data: $(this)
|
|
319
|
+
.serialize(),
|
|
320
|
+
success: function() {
|
|
321
|
+
$('#msgSubmit')
|
|
322
|
+
.fadeIn(100)
|
|
323
|
+
.show();
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
e.preventDefault();
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
/*----------------------*/
|
|
241
330
|
/* Live Chat */
|
|
242
331
|
/*----------------------*/
|
|
243
332
|
function livechat() {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: phcthemes_web_theme_pack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- PHCDevworks
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -454,7 +454,7 @@ files:
|
|
|
454
454
|
- app/assets/javascripts/phcthemes_web_theme_pack_smarty.js
|
|
455
455
|
- app/assets/javascripts/phcthemes_web_theme_pack_xero.js
|
|
456
456
|
- app/assets/javascripts/phcthemes_web_theme_pack_zoner.js
|
|
457
|
-
- app/assets/javascripts/themes/antlr/theme/
|
|
457
|
+
- app/assets/javascripts/themes/antlr/theme/scripts.js
|
|
458
458
|
- app/assets/javascripts/themes/appstrap/theme/custom-script.js
|
|
459
459
|
- app/assets/javascripts/themes/appstrap/theme/script.js
|
|
460
460
|
- app/assets/javascripts/themes/devine_villas/theme/dashboard.js
|