[FIX, SITE] add option to toggle masony at project level
This commit is contained in:
parent
af9b9ff262
commit
836ab53dd0
|
@ -2,7 +2,6 @@ User-agent: *
|
|||
Disallow: /kirby/
|
||||
Disallow: /panel/
|
||||
Disallow: /site/
|
||||
Disallow: /thumbs/
|
||||
Disallow: /error/
|
||||
|
||||
|
||||
|
|
|
@ -20,6 +20,9 @@ fields:
|
|||
text:
|
||||
label: Text
|
||||
type: textarea
|
||||
en_masonry:
|
||||
type: checkbox
|
||||
text: Enable masonry
|
||||
text2:
|
||||
label: Text below masonry
|
||||
type: textarea
|
||||
|
|
|
@ -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(); ?>
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue