[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: /kirby/
|
||||||
Disallow: /panel/
|
Disallow: /panel/
|
||||||
Disallow: /site/
|
Disallow: /site/
|
||||||
Disallow: /thumbs/
|
|
||||||
Disallow: /error/
|
Disallow: /error/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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(); ?>
|
||||||
|
|
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue