phcthemes_web_theme_pack 1.6.4 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b18c10c1ff2167bcb6bb71960df1bfbd0471b782a785ce308cc7b7343bb49cc8
4
- data.tar.gz: 411c09f093e9095bfaf218481853a1abf76998e8f2021ee3a0b275807d5257ca
3
+ metadata.gz: 2ade41947067ad83117a4c0074993a6225dddebf619c61257a8b807990bde31b
4
+ data.tar.gz: bca77660e1a6fee6a8d13654f7ef719609bbee74c6a09a0ff382343ef03b0ccc
5
5
  SHA512:
6
- metadata.gz: 99e595d4fa1f08a748f1a0c6663140899eb80030dc9edf45b08d766a3c3edc6556f8da41a5f525068c93d530d15cd0244d70ab9862646794555905774f419d83
7
- data.tar.gz: 55593741ac8bd4a174bc38bd43601cb0f30ef34c6a32f4eaef9b0d9bf3d35a5e021849f5a343ae12db372a37ff13fd6010cb5fb4625f7de79b8fb1c5bbf50913
6
+ metadata.gz: fc7f374d5ce6855f340341c94729fa19e92098ed4f9f9725f4e09350ea1b483d01605982ce6aea999a0f5569301c88ee812717971abe719080f03161a9a165ec
7
+ data.tar.gz: 2107165f4c44de37faf3a2c28c5809116dae3e846c724f3ea75e4708432d7ed36d6381dd254c651e0e02dbedf6fd993f8eee37f905ca041a872aecc24f778263
@@ -12,4 +12,4 @@
12
12
  //= require common/swiper/swiper.js
13
13
  //= require common/lazysizes/lazysizes.js
14
14
  //= require common/wow/wow.js
15
- //= require themes/antlr/theme/script.js
15
+ //= require themes/antlr/theme/scripts.js
@@ -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() {
@@ -1,3 +1,3 @@
1
1
  module PhcthemesWebThemePack
2
- VERSION = "1.6.4"
2
+ VERSION = "1.6.5"
3
3
  end
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
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-21 00:00:00.000000000 Z
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/script.js
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