diff --git a/README.md b/README.md index 5506bcd..80aa326 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,16 @@ # tainacan-theme Default Tainacan Theme, to be used with tainacan plugin - # Instalação no WordPress - Copiar o arquivo `build-config-sample.cfg` para `build-config.cfg` - Ajustar o `PATH` da variável `destination` para o caminho desejado correspondente - Instalar o SASS - - sudo apt install ruby-full rubygems autogen autoconf libtool make - - sudo gem install sass + - `sudo apt install ruby-full rubygems autogen autoconf libtool make` + - `sudo gem install sass` - Instalar o Composer - - php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" - - HASH="$(wget -q -O - https://composer.github.io/installer.sig)" - - php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" - - sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer + - `php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"` + - `HASH="$(wget -q -O - https://composer.github.io/installer.sig)"` + - `php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"` + - `sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer` - Execute o build - - ./build.sh - - #Teste Commit + - ./build.sh \ No newline at end of file diff --git a/build-watch.sh b/build-watch.sh index 4977df4..b5b6715 100755 --- a/build-watch.sh +++ b/build-watch.sh @@ -1,11 +1,16 @@ #!/bin/sh ## Run the build script whenever there is a change in src folder - echo 'Watching changes on src/' +current_OS=`uname` -while inotifywait -qqr src -e create,move,modify,delete; do - echo - echo 'Change detected, running build' - ./build.sh -done \ No newline at end of file +# For macOS (Darwin), you can install fsevents-tools via Homebrew: `brew install fsevents-tools` +if [ $current_OS == "Darwin" ]; then + notifyloop src ./build.sh +else + while inotifywait -qqr src -e create,move,modify,delete; do + echo + echo 'Change detected, running build' + ./build.sh + done +fi \ No newline at end of file diff --git a/compile-sass.sh b/compile-sass.sh index 6739715..2ee9bf1 100755 --- a/compile-sass.sh +++ b/compile-sass.sh @@ -19,19 +19,19 @@ echo "Compiling Sass..." #cd ../../../../assets/scss cd src/assets/scss sass -E 'UTF-8' style.scss:../../style.css -echo "Style of Tainacan Compiled"; +echo "Tainacan's style compiled."; sass -E 'UTF-8' editor-style.scss:../../editor-style.css -echo "Style of Tainacan for Gutenberg Editor Compiled"; +echo "Tainacan's Gutenberg Editor style compiled"; sass bootstrap_custom.scss:../vendor/bootstrap/scss/bootstrap.min.css --style compressed -echo "Bootstrap Compiled"; +echo "Bootstrap style compiled"; rm -rf .sass-cache 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"; +echo "Slick for slider carousel compiled"; rm -rf slick-theme.min.css.map slick.min.css.map .sass-cache/ cd ../../../ diff --git a/install.sh b/install.sh index 66612c2..0370a5f 100644 --- a/install.sh +++ b/install.sh @@ -3,10 +3,9 @@ php -r ' echo "\n ..::Tainacan Theme::..\n"; echo "\nInitiating the installation with composer ... please wait!!\n"; +echo "Copying files ...\n"; -echo "\nInitiating the copying of files...\n\n"; - -echo "\nCopy Frameword CSS - Bootstrap ...\n\n"; +echo "\nCopying Bootstrap Framework ...\n\n"; if (!file_exists("src/assets/vendor/bootstrap")) { mkdir("src/assets/vendor/", 0777, true); @@ -18,7 +17,7 @@ echo "\nCopy Frameword CSS - Bootstrap ...\n\n"; copy("vendor/twbs/bootstrap/dist/js/bootstrap.bundle.min.js", "src/assets/vendor/bootstrap/js/bootstrap.min.js"); recurse_copy("vendor/twbs/bootstrap/js/src", "src/assets/vendor/bootstrap/js/src"); -echo "Copy Slick for Slider...\n\n"; +echo "Copying Slick Slider...\n\n"; if (!file_exists("src/assets/vendor/slick")) { mkdir("src/assets/vendor/slick/", 0777, true); mkdir("src/assets/vendor/slick/css", 0777, true); @@ -27,7 +26,7 @@ echo "Copy Slick for Slider...\n\n"; } recurse_copy("vendor/fabianobn/slick/slick/", "src/assets/vendor/slick/"); -echo "Finish Copy files! \n\n"; +echo "Finished copying files! \n\n"; function recurse_copy($src,$dst) { $dir = opendir($src); @@ -50,12 +49,12 @@ function delete_files($target) { $files = glob( $target . "*", GLOB_MARK ); //GLOB_MARK adds a slash to directories returned foreach( $files as $file ){ - delete_files( $file ); + delete_files( $file ); } rmdir( $target ); } elseif(is_file($target)) { - unlink( $target ); + unlink( $target ); } } ' \ No newline at end of file diff --git a/src/README.txt b/src/README.txt index 930d108..ae1db03 100644 --- a/src/README.txt +++ b/src/README.txt @@ -1,5 +1,5 @@ === Tainacan Interface === -Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila +Contributors: andrebenedito, daltonmartins, fabianobn, jacsonp, leogermani, weryques, wetah, eduardohumberto, ravipassos, jessicafpx, marinagiolo, omarceloavila, r-guimaraes Requires at least: WordPress 4.8 Tested up to: WordPress 5.5.3 Version: 2.2.1 @@ -17,7 +17,7 @@ For more information about Tainacan and Tainacan Interface please go to http://t == Copyright == -Tainacan Interface WordPress Theme, Copyright 2020 Tainacan.org +Tainacan Interface WordPress Theme, Copyright 2021 Tainacan.org Tainacan Interface is distributed under the terms of the GNU GPL This program is free software: you can redistribute it and/or modify diff --git a/src/archive-tainacan-collection.php b/src/archive-tainacan-collection.php index 3893a16..e37964f 100644 --- a/src/archive-tainacan-collection.php +++ b/src/archive-tainacan-collection.php @@ -1,5 +1,7 @@ + + @@ -41,16 +43,16 @@