diff --git a/build.sh b/build.sh index a664f90..fc92449 100755 --- a/build.sh +++ b/build.sh @@ -6,20 +6,21 @@ command -v sass >/dev/null 2>&1 || { source build-config.cfg +echo "Updating files of theme" +rm -rf $destination +mkdir $destination + +##Removendo o arquivo sass +##rm -rf $destination/scss + ## Install composer dependencies composer install ## Compile SASS sh compile-sass.sh -echo "Updating files of theme" -rm -rf $destination -mkdir $destination cp -R src/* $destination/ -##Removendo o arquivo sass -rm -rf $destination/scss - ##Bootstrap mkdir $destination/assets/vendor/bootstrap/css cp $destination/assets/vendor/bootstrap/scss/bootstrap.min.css $destination/assets/vendor/bootstrap/css/bootstrap.min.css diff --git a/install.sh b/install.sh index 94d9c7d..d9397f5 100644 --- a/install.sh +++ b/install.sh @@ -25,18 +25,13 @@ echo "Copy Slick for Slider...\n\n"; mkdir("src/assets/vendor/slick/js", 0777, true); mkdir("src/assets/vendor/slick/fonts", 0777, true); } - copy("vendor/fabianobn/slick/slick/slick-theme.scss", "src/assets/vendor/slick/scss/slick-theme.scss"); - copy("vendor/fabianobn/slick/slick/slick.scss", "src/assets/vendor/slick/scss/slick.scss"); - copy("vendor/fabianobn/slick/slick/slick.min.js", "src/assets/vendor/slick/js/slick.min.js"); - copy("vendor/fabianobn/slick/slick/ajax-loader.gif", "src/assets/vendor/slick/ajax-loader.gif"); - recurse_copy("vendor/fabianobn/slick/slick/fonts", "src/assets/vendor/slick/fonts"); + recurse_copy("vendor/fabianobn/slick/slick/", "src/assets/vendor/slick/"); echo "Copy Ekko Lightbox...\n\n"; if (!file_exists("src/assets/vendor/ekko-lightbox")) { mkdir("src/assets/vendor/ekko-lightbox/", 0777, true); } - copy("vendor/fabianobn/ekko-lightbox/dist/ekko-lightbox.min.js", "src/assets/vendor/ekko-lightbox/ekko-lightbox.min.js"); - copy("vendor/fabianobn/ekko-lightbox/dist/ekko-lightbox.css", "src/assets/vendor/ekko-lightbox/ekko-lightbox.min.css"); + recurse_copy("vendor/fabianobn/ekko-lightbox/", "src/assets/vendor/ekko-lightbox/"); echo "Finish Copy files! \n\n"; diff --git a/src/functions/enqueues.php b/src/functions/enqueues.php index 134d1ff..e39f671 100644 --- a/src/functions/enqueues.php +++ b/src/functions/enqueues.php @@ -56,7 +56,7 @@ if ( ! function_exists( 'tainacan_enqueues' ) ) { 'lessText' => __( 'Show less', 'tainacan-interface' ), )); - wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'tainacan_bootstrap4CSS' ) ); + wp_register_style( 'tainacan_tainacanStyle', get_stylesheet_uri(), array( 'bootstrap4CSS' ) ); wp_enqueue_style( 'tainacan_tainacanStyle' ); wp_register_script( 'tainacan_tainacanJS', get_template_directory_uri() . '/assets/js/js.js', '', '1.0', true ); wp_enqueue_script( 'tainacan_tainacanJS' );