Update bootstrap to version 4.2; Added lightbox.

This commit is contained in:
Fabiano Alencar 2018-12-21 17:21:17 -02:00
parent 71fd54548f
commit 077c07689b
3 changed files with 64 additions and 148 deletions

View File

@ -7,7 +7,8 @@
], ],
"require": { "require": {
"twbs/bootstrap": "4.*", "twbs/bootstrap": "4.*",
"fabianobn/slick": "v1.8.*" "fabianobn/slick": "v1.8.*",
"fabianobn/ekko-lightbox": "dev-master"
}, },
"scripts": { "scripts": {
"post-install-cmd": "bash install.sh", "post-install-cmd": "bash install.sh",

185
composer.lock generated
View File

@ -1,47 +1,39 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "ddc02b7d91b22a56841ec209e22e2955", "content-hash": "39d18487fda0792bc6d9517f079e9e45",
"content-hash": "98bbd33116059a9a051feb1c6e71394e",
"packages": [ "packages": [
{ {
"name": "composer/installers", "name": "fabianobn/ekko-lightbox",
"version": "v1.5.0", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/installers.git", "url": "https://github.com/fabianobn/ekko-lightbox.git",
"reference": "049797d727261bf27f2690430d935067710049c2" "reference": "a12102c8913e1b28da086d4072cfdcaa2ce2c92d"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/049797d727261bf27f2690430d935067710049c2", "url": "https://api.github.com/repos/fabianobn/ekko-lightbox/zipball/a12102c8913e1b28da086d4072cfdcaa2ce2c92d",
"reference": "049797d727261bf27f2690430d935067710049c2", "reference": "a12102c8913e1b28da086d4072cfdcaa2ce2c92d",
"shasum": "" "shasum": ""
}, },
"require": { "type": "library",
"composer-plugin-api": "^1.0"
},
"replace": {
"roundcube/plugin-installer": "*",
"shama/baton": "*"
},
"require-dev": {
"composer/composer": "1.0.*@dev",
"phpunit/phpunit": "^4.8.36"
},
"type": "composer-plugin",
"extra": { "extra": {
"class": "Composer\\Installers\\Plugin", "vendor": {
"branch-alias": { "scripts": [
"dev-master": "1.0-dev" "dist/ekko-lightbox.js",
} "dist/ekko-lightbox.min.js"
}, ],
"autoload": { "styles": [
"psr-4": { "dist/ekko-lightbox.css"
"Composer\\Installers\\": "src/Composer/Installers" ],
"files": [
"dist/ekko-lightbox.min.js.map",
"dist/ekko-lightbox.js.map"
]
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -50,82 +42,20 @@
], ],
"authors": [ "authors": [
{ {
"name": "Kyle Robinson Young", "name": "ashleydw",
"email": "kyle@dontkry.com", "email": "hello@ashleyd.ws"
"homepage": "https://github.com/shama"
} }
], ],
"description": "A multi-framework Composer library installer", "description": "A lightbox gallery plugin for Bootstrap 4 based on the modal plugin",
"homepage": "https://composer.github.io/installers/", "homepage": "https://github.com/ashleydw/lightbox",
"keywords": [ "keywords": [
"Craft", "bootstrap",
"Dolibarr", "gallery",
"Eliasis", "jquery",
"Hurad", "lightbox",
"ImageCMS", "modal"
"Kanboard",
"Lan Management System",
"MODX Evo",
"Mautic",
"Maya",
"OXID",
"Plentymarkets",
"Porto",
"RadPHP",
"SMF",
"Thelia",
"WolfCMS",
"agl",
"aimeos",
"annotatecms",
"attogram",
"bitrix",
"cakephp",
"chef",
"cockpit",
"codeigniter",
"concrete5",
"croogo",
"dokuwiki",
"drupal",
"eZ Platform",
"elgg",
"expressionengine",
"fuelphp",
"grav",
"installer",
"itop",
"joomla",
"kohana",
"laravel",
"lavalite",
"lithium",
"magento",
"majima",
"mako",
"mediawiki",
"modulework",
"modx",
"moodle",
"osclass",
"phpbb",
"piwik",
"ppi",
"puppet",
"pxcms",
"reindex",
"roundcube",
"shopware",
"silverstripe",
"sydes",
"symfony",
"typo3",
"wordpress",
"yawik",
"zend",
"zikula"
], ],
"time": "2017-12-29 09:13:20" "time": "2018-12-21T18:09:49+00:00"
}, },
{ {
"name": "fabianobn/slick", "name": "fabianobn/slick",
@ -144,20 +74,20 @@
"type": "library", "type": "library",
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"description": "This is the atualized Slick Slider used in Wordpress", "description": "This is the atualized Slick Slider used in Wordpress",
"time": "2018-06-29 17:54:50" "time": "2018-06-29T17:54:50+00:00"
}, },
{ {
"name": "twbs/bootstrap", "name": "twbs/bootstrap",
"version": "v4.1.3", "version": "v4.2.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/twbs/bootstrap.git", "url": "https://github.com/twbs/bootstrap.git",
"reference": "3b558734382ce58b51e5fc676453bfd53bba9201" "reference": "d50ed9a2bde22067c0e5f21d1614e477e362165a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/3b558734382ce58b51e5fc676453bfd53bba9201", "url": "https://api.github.com/repos/twbs/bootstrap/zipball/d50ed9a2bde22067c0e5f21d1614e477e362165a",
"reference": "3b558734382ce58b51e5fc676453bfd53bba9201", "reference": "d50ed9a2bde22067c0e5f21d1614e477e362165a",
"shasum": "" "shasum": ""
}, },
"replace": { "replace": {
@ -195,50 +125,15 @@
"sass", "sass",
"web" "web"
], ],
"time": "2018-07-24 15:54:34" "time": "2018-12-21T17:03:29+00:00"
},
{
"name": "wp-bootstrap/wp-bootstrap-navwalker",
"version": "v4.1.0",
"source": {
"type": "git",
"url": "https://github.com/wp-bootstrap/wp-bootstrap-navwalker.git",
"reference": "87228b01eb4652c39349f209ee9da6ec6fa2b5c3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wp-bootstrap/wp-bootstrap-navwalker/zipball/87228b01eb4652c39349f209ee9da6ec6fa2b5c3",
"reference": "87228b01eb4652c39349f209ee9da6ec6fa2b5c3",
"shasum": ""
},
"require": {
"composer/installers": "~1.0"
},
"require-dev": {
"stevegrunwell/wp-enforcer": "^0.5.0"
},
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"license": [
"GPL-3.0+"
],
"authors": [
{
"name": "Brandon Hubbard"
},
{
"name": "William Patton",
"email": "will@pattonwebz.com"
}
],
"description": "A custom WordPress nav walker class to fully implement the Bootstrap 4 navigation style in a custom theme using the WordPress built in menu manager.",
"time": "2018-04-14 01:22:55"
} }
], ],
"packages-dev": [], "packages-dev": [],
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": [], "stability-flags": {
"fabianobn/ekko-lightbox": 20
},
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": [], "platform": [],

View File

@ -15,9 +15,8 @@ echo "\nCopy Frameword CSS - Bootstrap ...\n\n";
mkdir("src/assets/vendor/bootstrap/js", 0777, true); mkdir("src/assets/vendor/bootstrap/js", 0777, true);
} }
recurse_copy("vendor/twbs/bootstrap/scss", "src/assets/vendor/bootstrap/scss"); 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/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"); recurse_copy("vendor/twbs/bootstrap/js/src", "src/assets/vendor/bootstrap/js/src");
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"; echo "Copy Slick for Slider...\n\n";
if (!file_exists("src/assets/vendor/slick")) { if (!file_exists("src/assets/vendor/slick")) {
@ -32,6 +31,13 @@ echo "Copy Slick for Slider...\n\n";
copy("vendor/fabianobn/slick/slick/ajax-loader.gif", "src/assets/vendor/slick/ajax-loader.gif"); 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/fonts", "src/assets/vendor/slick/fonts");
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");
echo "Finish Copy files! \n\n"; echo "Finish Copy files! \n\n";
function recurse_copy($src,$dst) { function recurse_copy($src,$dst) {
@ -49,4 +55,18 @@ function recurse_copy($src,$dst) {
} }
closedir($dir); closedir($dir);
} }
function delete_files($target) {
if(is_dir($target)){
$files = glob( $target . "*", GLOB_MARK ); //GLOB_MARK adds a slash to directories returned
foreach( $files as $file ){
delete_files( $file );
}
rmdir( $target );
} elseif(is_file($target)) {
unlink( $target );
}
}
' '