Added Image Loaded to use in masonry view mode

This commit is contained in:
Fabiano 2018-08-02 19:19:22 -03:00
parent 3c0c5c75f9
commit 864c8266a7
3 changed files with 63 additions and 18 deletions

View File

@ -8,7 +8,8 @@
"require": {
"twbs/bootstrap": "4.*",
"wp-bootstrap/wp-bootstrap-navwalker": "*",
"kenwheeler/slick": "1.6.1"
"kenwheeler/slick": "1.6.1",
"desandro/imagesloaded": "4.*"
},
"scripts": {
"post-install-cmd": "bash install.sh",

51
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": "3d0374e3fd2d6b43ef8af59ab09d04f8",
"content-hash": "1a2069ad091a4f746d2a5d9750a49a7f",
"packages": [
{
"name": "composer/installers",
@ -126,6 +126,45 @@
],
"time": "2017-12-29T09:13:20+00:00"
},
{
"name": "desandro/imagesloaded",
"version": "v4.1.4",
"source": {
"type": "git",
"url": "https://github.com/desandro/imagesloaded.git",
"reference": "67c4e57453120935180c45c6820e7d3fbd2ea1f9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/desandro/imagesloaded/zipball/67c4e57453120935180c45c6820e7d3fbd2ea1f9",
"reference": "67c4e57453120935180c45c6820e7d3fbd2ea1f9",
"shasum": ""
},
"type": "component",
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "David DeSandro",
"homepage": "http://desandro.com/",
"role": "developer"
}
],
"description": "JavaScript is all like _You images done yet or what?_",
"homepage": "http://imagesloaded.desandro.com",
"keywords": [
"dom",
"images",
"javascript",
"jquery-plugin",
"library",
"loaded",
"ui"
],
"time": "2018-01-02T16:53:35+00:00"
},
{
"name": "kenwheeler/slick",
"version": "1.6.1",
@ -146,16 +185,16 @@
},
{
"name": "twbs/bootstrap",
"version": "v4.1.1",
"version": "v4.1.3",
"source": {
"type": "git",
"url": "https://github.com/twbs/bootstrap.git",
"reference": "779ad9f174ea5ab7e755f6df0ec9e5912d67dd16"
"reference": "3b558734382ce58b51e5fc676453bfd53bba9201"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/779ad9f174ea5ab7e755f6df0ec9e5912d67dd16",
"reference": "779ad9f174ea5ab7e755f6df0ec9e5912d67dd16",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/3b558734382ce58b51e5fc676453bfd53bba9201",
"reference": "3b558734382ce58b51e5fc676453bfd53bba9201",
"shasum": ""
},
"replace": {
@ -193,7 +232,7 @@
"sass",
"web"
],
"time": "2018-04-30T16:04:33+00:00"
"time": "2018-07-24T15:54:34+00:00"
},
{
"name": "wp-bootstrap/wp-bootstrap-navwalker",

View File

@ -2,15 +2,7 @@
php -r '
echo "\n ..::Tainacan Theme::..\n";
echo "\nStarting installation with composer ... please wait!!";
echo "\nChecking if bootstrap folders exist ...\n\n";
if (!file_exists("src/assets/bootstrap")) {
mkdir("src/assets/vendor/bootstrap/", 0777, true);
mkdir("src/assets/vendor/bootstrap/scss", 0777, true);
mkdir("src/assets/vendor/bootstrap/js", 0777, true);
}
echo "\nStarting installation with composer ... please wait!!\n";
echo "\n Checking if file bootstrap navwalker exist ... \n\n";
@ -20,9 +12,16 @@ if (!file_exists("src/vendor/class-wp-bootstrap-navwalker.php")) {
copy("vendor/wp-bootstrap/wp-bootstrap-navwalker/class-wp-bootstrap-navwalker.php", "src/vendor/class-wp-bootstrap-navwalker.php");
}
echo "\nStarting Copying Files...\n";
echo "\nStarting Copying Files...\n\n";
echo "...Bootstrap\n";
echo "\nCopy Frameword CSS - Bootstrap ...\n\n";
if (!file_exists("src/assets/vendor/bootstrap")) {
mkdir("src/assets/vendor/", 0777, true);
mkdir("src/assets/vendor/bootstrap/", 0777, true);
mkdir("src/assets/vendor/bootstrap/scss", 0777, true);
mkdir("src/assets/vendor/bootstrap/js", 0777, true);
}
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");
@ -40,6 +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);
}
copy("vendor/desandro/imagesloaded/imagesloaded.pkgd.min.js", "src/assets/vendor/imgloaded/imagesloaded.pkgd.min.js");
echo "Finish Copy files! \n\n";
function recurse_copy($src,$dst) {