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: /panel/
Disallow: /site/
Disallow: /thumbs/
Disallow: /error/

View file

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

View file

@ -16,7 +16,7 @@ snippet('base/cont-header');
<?php echo $page->text()->kirbytext(); ?>
</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">
<?php echo $page->text2()->kirbytext(); ?>

View file

@ -6,7 +6,7 @@
// 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/cont-header');