diff --git a/build.sh b/build.sh index 3102c27..ffe87e0 100755 --- a/build.sh +++ b/build.sh @@ -28,10 +28,11 @@ rm -rf $destination/vendor ##Slick mkdir $destination/assets/vendor/slick/css -cp $destination/assets/vendor/slick/scss/slick.min.css $destination/assets/vendor/slick/css/slick.min.css -cp $destination/assets/vendor/slick/scss/slick-theme.min.css $destination/assets/vendor/slick/css/slick-theme.min.css +cp $destination/assets/vendor/slick/slick.min.css $destination/assets/vendor/slick/css/slick.min.css +cp $destination/assets/vendor/slick/slick-theme.min.css $destination/assets/vendor/slick/css/slick-theme.min.css mv $destination/assets/vendor/slick/ajax-loader.gif $destination/assets/vendor/slick/css/ajax-loader.gif mv $destination/assets/vendor/slick/fonts/ $destination/assets/vendor/slick/css/fonts/ +cp $destination/assets/vendor/slick/slick.min.js $destination/assets/vendor/slick/js/slick.min.js ##clean rm $destination/assets/vendor/ekko-lightbox/.gitignore diff --git a/compile-sass.sh b/compile-sass.sh index 8af3dd6..11a3334 100755 --- a/compile-sass.sh +++ b/compile-sass.sh @@ -25,14 +25,14 @@ echo "Style of Tainacan for Gutenberg Editor Compiled"; sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed echo "Bootstrap Compiled"; rm -rf .sass-cache -cd ../vendor/slick/scss +cd ../vendor/slick sass slick.scss:slick.min.css --style compressed sass slick-theme.scss:slick-theme.min.css --style compressed echo "Slick for slider carousel Compiled"; rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/ -cd ../../../scss -rm -rf ../../style.css.map -# rm -rf ../../editor-style.css.map +cd ../../scss +rm -rf ../style.css.map +# rm -rf ../editor-style.css.map echo "Sass compilation Completed!" exit 0 diff --git a/install.sh b/install.sh index d9397f5..e9fbfbf 100644 --- a/install.sh +++ b/install.sh @@ -21,7 +21,7 @@ echo "\nCopy Frameword CSS - Bootstrap ...\n\n"; echo "Copy Slick for Slider...\n\n"; if (!file_exists("src/assets/vendor/slick")) { mkdir("src/assets/vendor/slick/", 0777, true); - mkdir("src/assets/vendor/slick/scss", 0777, true); + mkdir("src/assets/vendor/slick/css", 0777, true); mkdir("src/assets/vendor/slick/js", 0777, true); mkdir("src/assets/vendor/slick/fonts", 0777, true); } diff --git a/src/functions/enqueues.php b/src/functions/enqueues.php index 234fec2..4489559 100644 --- a/src/functions/enqueues.php +++ b/src/functions/enqueues.php @@ -12,7 +12,7 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) { * Bootstrap 4.1.3 */ //Style - wp_register_style( 'bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/css/bootstrap.min.css' ); + wp_register_style( 'bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/scss/bootstrap.min.css' ); wp_enqueue_style( 'bootstrap4CSS' ); //Javascript wp_register_script( 'bootstrap4JS', get_template_directory_uri() . '/assets/vendor/bootstrap/js/bootstrap.min.js', array( 'jquery' ), '', true ); @@ -33,9 +33,9 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) { /** * Ekko Lightbox */ - wp_register_style( 'EkkoLightboxCss', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/ekko-lightbox.min.css'); + wp_register_style( 'EkkoLightboxCss', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/dist/ekko-lightbox.css'); wp_enqueue_style( 'EkkoLightboxCss' ); - wp_register_script( 'EkkoLightboxJs', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/ekko-lightbox.min.js', array('jquery'), null, true); + wp_register_script( 'EkkoLightboxJs', get_template_directory_uri() . '/assets/vendor/ekko-lightbox/dist/ekko-lightbox.min.js', array('jquery'), null, true); wp_enqueue_script( 'EkkoLightboxJs' ); /**