phcthemes_web_theme_pack 1.7.2 → 1.7.3

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: 3a714dc726f52b368de1a66a69db86c161655b6a0c3779725e2e1f49a3237672
4
- data.tar.gz: bdbeeb67a182eb9b6161938dd6af6e5af33031504c5412367b9d06d3a919684e
3
+ metadata.gz: efc213f0a66bdc4c811b3fd944b24b1418a46bff53e24c6e884ad1529e923838
4
+ data.tar.gz: 8486063f432756e59b8925fbac1009df3ebf9e9ab7706b3a808d7128efa0aeda
5
5
  SHA512:
6
- metadata.gz: 7937b59bb5c72b3a65683ea34b72cce2d3de48e4722f1d1af54961dbeed3924af54085bdf0d1f43cb74076a894f828d74646f4351130d9d94f4a09cb70cd6e12
7
- data.tar.gz: d476c3c4d4e8103407ca96630b7a44db08aae0ceea9cad8786ef7b38e4bb2fce19cf5945aad343f1f6770fe7080fb14e51a372ae477d86407dbd67c130652ffe
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
  /*----------------------*/
@@ -1,3 +1,3 @@
1
1
  module PhcthemesWebThemePack
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phcthemes_web_theme_pack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PHCDevworks