1
0
Fork 0

[FIX, SITE] add option to toggle masony at project level

This commit is contained in:
Jannik Beyerstedt 2017-06-08 10:29:04 +02:00
parent af9b9ff262
commit 836ab53dd0
4 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,6 @@ User-agent: *
Disallow: /kirby/ Disallow: /kirby/
Disallow: /panel/ Disallow: /panel/
Disallow: /site/ Disallow: /site/
Disallow: /thumbs/
Disallow: /error/ Disallow: /error/

View file

@ -20,6 +20,9 @@ fields:
text: text:
label: Text label: Text
type: textarea type: textarea
en_masonry:
type: checkbox
text: Enable masonry
text2: text2:
label: Text below masonry label: Text below masonry
type: textarea type: textarea

View file

@ -16,7 +16,7 @@ snippet('base/cont-header');
<?php echo $page->text()->kirbytext(); ?> <?php echo $page->text()->kirbytext(); ?>
</div> </div>
<?php echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)) ; ?> <?php if($page->en_masonry() == '1') echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)); ?>
<div class="container"> <div class="container">
<?php echo $page->text2()->kirbytext(); ?> <?php echo $page->text2()->kirbytext(); ?>

View file

@ -6,7 +6,7 @@
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License // license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
// ------------------------------------------- // -------------------------------------------
$children = $page->children(); $children = $page->children()->visible();
snippet('base/html-head'); snippet('base/html-head');
snippet('base/cont-header'); snippet('base/cont-header');