Update bootstrap to version 4.1.3; added masonry to composer.

This commit is contained in:
Fabiano 2018-08-02 19:50:08 -03:00
parent 864c8266a7
commit 253319d6d3
4 changed files with 54 additions and 10 deletions

View File

@ -9,6 +9,7 @@
"twbs/bootstrap": "4.*",
"wp-bootstrap/wp-bootstrap-navwalker": "*",
"kenwheeler/slick": "1.6.1",
"desandro/masonry": "4.*",
"desandro/imagesloaded": "4.*"
},
"scripts": {

41
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"content-hash": "1a2069ad091a4f746d2a5d9750a49a7f",
"content-hash": "e76fd93afcf5cccb4b58c468e70bbeba",
"packages": [
{
"name": "composer/installers",
@ -165,6 +165,45 @@
],
"time": "2018-01-02T16:53:35+00:00"
},
{
"name": "desandro/masonry",
"version": "v4.2.2",
"source": {
"type": "git",
"url": "https://github.com/desandro/masonry.git",
"reference": "3b0883cf4a4a046896719b9cf282ea74be7ffecd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/desandro/masonry/zipball/3b0883cf4a4a046896719b9cf282ea74be7ffecd",
"reference": "3b0883cf4a4a046896719b9cf282ea74be7ffecd",
"shasum": ""
},
"type": "component",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "David DeSandro",
"homepage": "http://desandro.com/",
"role": "developer"
}
],
"description": "Cascading grid layout library",
"homepage": "https://masonry.desandro.com",
"keywords": [
"browser",
"dom",
"grid",
"javascript",
"layout",
"library",
"outlayer"
],
"time": "2018-07-04T18:01:15+00:00"
},
{
"name": "kenwheeler/slick",
"version": "1.6.1",

View File

@ -24,7 +24,7 @@ echo "\nCopy Frameword CSS - Bootstrap ...\n\n";
}
recurse_copy("vendor/twbs/bootstrap/scss", "src/assets/vendor/bootstrap/scss");
copy("vendor/twbs/bootstrap/dist/js/bootstrap.min.js", "src/assets/vendor/bootstrap/js/bootstrap.min.js");
copy("vendor/twbs/bootstrap/assets/js/vendor/popper.min.js", "src/assets/vendor/bootstrap/js/popper.min.js");
copy("vendor/twbs/bootstrap/site/docs/4.1/assets/js/vendor/popper.min.js", "src/assets/vendor/bootstrap/js/popper.min.js");
echo "Copy Slick for Slider...\n\n";
if (!file_exists("src/assets/vendor/slick")) {
@ -39,11 +39,12 @@ echo "Copy Slick for Slider...\n\n";
copy("vendor/kenwheeler/slick/slick/ajax-loader.gif", "src/assets/vendor/slick/ajax-loader.gif");
recurse_copy("vendor/kenwheeler/slick/slick/fonts", "src/assets/vendor/slick/fonts");
echo "Copy ImageLoaded... \n\n";
if (!file_exists("src/assets/vendor/imgloaded")) {
mkdir("src/assets/vendor/imgloaded/", 0777, true);
echo "Copy Masonry & ImageLoaded... \n\n";
if (!file_exists("src/assets/vendor/desandro")) {
mkdir("src/assets/vendor/desandro/", 0777, true);
}
copy("vendor/desandro/imagesloaded/imagesloaded.pkgd.min.js", "src/assets/vendor/imgloaded/imagesloaded.pkgd.min.js");
copy("vendor/desandro/masonry/dist/masonry.pkgd.min.js", "src/assets/vendor/desandro/masonry.pkgd.min.js");
copy("vendor/desandro/imagesloaded/imagesloaded.pkgd.min.js", "src/assets/vendor/desandro/imagesloaded.pkgd.min.js");
echo "Finish Copy files! \n\n";

View File

@ -15,19 +15,22 @@ if ( ! function_exists('tainacan_Enqueues') ) {
wp_register_script( 'jquery', includes_url( '/js/jquery/jquery.js' ), false, NULL, true );
wp_enqueue_script( 'jquery' );
wp_register_script('masonryJS', 'https://unpkg.com/masonry-layout@4.2.1/dist/masonry.pkgd.min.js', '', '4.2.1', true);
wp_register_script('masonryJS', get_template_directory_uri() . '/assets/vendor/desandro/masonry.pkgd.min.js', '', '', true);
wp_enqueue_script( 'masonryJS' );
wp_register_script('imageLoadedJS', get_template_directory_uri() . '/assets/vendor/desandro/imagesloaded.pkgd.min.js', '', '', true);
wp_enqueue_script( 'imageLoadedJS' );
/**
* Bootstrap 4.1.1
* Bootstrap 4.1.3
*/
//Style
wp_register_style('bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/css/bootstrap.min.css', '', '4.1.1', '');
wp_register_style('bootstrap4CSS', get_template_directory_uri() . '/assets/vendor/bootstrap/css/bootstrap.min.css');
wp_enqueue_style('bootstrap4CSS');
//Popper
wp_register_script('popper_bootstrap4', get_template_directory_uri() . '/assets/vendor/bootstrap/js/popper.min.js', '', '', true);
wp_enqueue_script('popper_bootstrap4');
//Javascript
wp_register_script('bootstrap4JS', get_template_directory_uri() . '/assets/vendor/bootstrap/js/bootstrap.min.js', array('jquery'), '4.1.1', true);
wp_register_script('bootstrap4JS', get_template_directory_uri() . '/assets/vendor/bootstrap/js/bootstrap.min.js', array('jquery'), '', true);
wp_enqueue_script('bootstrap4JS');
/**