Skip to content

Commit a81d49e

Browse files
committed
Up version to 0.3.8
1 parent 94d8f20 commit a81d49e

File tree

2 files changed

+31
-28
lines changed

2 files changed

+31
-28
lines changed

CHANGELOG.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
### Unreleased
2-
* **Tweak** - Version the main CSS and JS file
3-
* **New** - Frontpage body class
42

5-
### 0.3.8:
3+
4+
### 0.3.8: September 8th, 2017
5+
* **New** - Full screen form feature
66
* **New** - i18n: RU, DE, ZH
77
* **Tweak** - i18n: FR
8-
* **New** - Full screen form feature
98
* **Fix** - Hide navigation when Elementor editor is active
109
* **Fix** - Hustle popups visibility
10+
* **Tweak** - Version the main CSS and JS file
11+
* **New** - Datepicker update version to 1.6.4 and fix lang "zh"
12+
* **Tweak** - Frontpage body class
13+
* **New** - Gravity Forms width
1114

1215
### 0.3.7: August 22nd, 2017
1316
* **New** - WooCommerce: class for cart widgets empty/notempty

inc/front/scripts.php

+24-24
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@
55
*/
66
function stormbringer_js_theme() {
77

8-
//wp_enqueue_script( 'stormbringer-common', get_template_directory_uri() . '/js/src/common.js', array( 'jquery' ), null, true );
9-
10-
$jsfile = 'js/scripts.js';
11-
$version = null;
12-
13-
// Preprocessor
14-
$preprocessor = get_theme_mod('bootstrap_preprocessor', true);
15-
16-
if ( $preprocessor === 'less' ) {
17-
}
18-
19-
if ( $preprocessor === 'scss' || $preprocessor == 1) {
20-
$grunt_assets = get_theme_mod('grunt_assets');
21-
if ( current_user_can( 'administrator' ) || @$_GET['scsscompile'] == '1' ) {
22-
}
23-
else{
24-
$jsfile = 'js/scripts.min.js';
25-
$version = time();
26-
//if(isset($grunt_assets[$jsfile])) {
27-
// $jsfile = $grunt_assets[$jsfile];
28-
//}
29-
}
30-
}
31-
wp_enqueue_script( 'theme', get_stylesheet_directory_uri() . '/'.$jsfile, array( 'jquery' ), $version, true );
8+
//wp_enqueue_script( 'stormbringer-common', get_template_directory_uri() . '/js/src/common.js', array( 'jquery' ), null, true );
9+
10+
$jsfile = 'js/scripts.js';
11+
$version = null;
12+
13+
// Preprocessor
14+
$preprocessor = get_theme_mod( 'bootstrap_preprocessor', true );
15+
16+
if ( $preprocessor === 'less' ) {
17+
}
18+
19+
if ( $preprocessor === 'scss' || $preprocessor == 1 ) {
20+
$grunt_assets = get_theme_mod( 'grunt_assets' );
21+
if ( current_user_can( 'administrator' ) || @$_GET['scsscompile'] == '1' ) {
22+
$version = time();
23+
} else {
24+
$jsfile = 'js/scripts.min.js';
25+
26+
if ( isset( $grunt_assets[ $jsfile ] ) ) {
27+
$jsfile = $grunt_assets[ $jsfile ];
28+
}
29+
}
30+
}
31+
wp_enqueue_script( 'theme', get_stylesheet_directory_uri() . '/' . $jsfile, array( 'jquery' ), $version, true );
3232

3333
}
3434
add_action( 'wp_enqueue_scripts', 'stormbringer_js_theme', 300 );

0 commit comments

Comments
 (0)