Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansl committed Jun 7, 2019
0 parents commit 74cb1dd
Show file tree
Hide file tree
Showing 11 changed files with 1,070 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# contao-baguettebox
Baguettebox-Integration for Contao
25 changes: 25 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name":"stefansl/contao-baguettebox",
"description":"Baguettebox for Contao",
"type": "contao-bundle",
"require": {
"php": ">=7.1",
"contao/core-bundle":"~4.4"
},
"require-dev": {
"contao/manager-plugin": "^4.0"
},
"autoload": {
"psr-4": {
"Clickpress\\BaguetteboxBundle\\": "src/"
}
},
"license": "LGPL-3.0-or-later",
"authors": [
{
"name": "Stefan Schulz-Lauterbach",
"email": "ssl@clickpress.de"
}
],
"minimum-stability": "stable"
}
17 changes: 17 additions & 0 deletions src/ClickpressBaguetteboxBundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

/*
* This file is part of BaguetteBoxBundle.
*
* (c) Stefan Schulz-Lauterbach
*
* @license LGPL-3.0-or-later
*/

namespace Clickpress\BaguetteboxBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class ClickpressBaguetteboxBundle extends Bundle
{
}
31 changes: 31 additions & 0 deletions src/ContaoManager/Plugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

/*
* This file is part of ClickpressBaguetteboxBundle.
*
* (c) Stefan Schulz-Lauterbach
*
* @license LGPL-3.0-or-later
*/

namespace Clickpress\BaguetteboxBundle\ContaoManager;

use Clickpress\BaguetteboxBundle\ClickpressBaguetteboxBundle;
use Contao\CoreBundle\ContaoCoreBundle;
use Contao\ManagerPlugin\Bundle\BundlePluginInterface;
use Contao\ManagerPlugin\Bundle\Config\BundleConfig;
use Contao\ManagerPlugin\Bundle\Parser\ParserInterface;

class Plugin implements BundlePluginInterface
{
/**
* {@inheritdoc}
*/
public function getBundles(ParserInterface $parser)
{
return [
BundleConfig::create(ClickpressBaguetteboxBundle::class)
->setLoadAfter([ContaoCoreBundle::class]),
];
}
}
Empty file.
16 changes: 16 additions & 0 deletions src/Resources/contao/templates/js_baguettebox.html5
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

// Add the baguettebox style sheet
$GLOBALS['TL_CSS'][] = 'bundles/clickpressbaguettebox/baguetteBox.css|static';

?>

<script src="bundles/clickpressbaguettebox/baguetteBox.min.js"></script>
<script>
baguetteBox.run('.ce_image a',{
buttons: false
});
baguetteBox.run('.ce_gallery',{
buttons: true
});
</script>
6 changes: 6 additions & 0 deletions src/Resources/public/baguetteBox.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions src/Resources/public/baguetteBox.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 74cb1dd

Please sign in to comment.