1
0
Fork 0

[SITE] blogposts with image gallery (masonry)

This commit is contained in:
Jannik Beyerstedt 2017-01-02 11:10:41 +01:00
parent 6c12449993
commit 9b562aace6
3 changed files with 12 additions and 4 deletions

View File

@ -18,6 +18,12 @@ fields:
text:
label: Text
type: textarea
en_masonry:
text: enable masonry
type: checkbox
text2:
label: Text below masonry
type: textarea
meta-robots:
label: Metatag robots
type: text

View File

@ -37,6 +37,10 @@ snippet('base/cont-header');
</div>
<?php echo $page->text()->kirbytext(); ?>
<?php if ($page->en_masonry()->bool()) : echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)) ; endif;?>
<?php echo $page->text2()->kirbytext(); ?>
<div class="meta bottom">
<time datetime="<?php echo $page->date('Y-m-d') ?>"><?php echo $page->date('d. M. Y') ?></time>
<?php echo tags($base_url, $page); ?>
@ -61,4 +65,4 @@ snippet('base/cont-header');
</main>
<?php snippet('base/cont-footer') ?>
<?php snippet('base/html-end', []) ?>
<?php snippet('base/html-end', ["plg_masonry"=>1]) ?>

View File

@ -24,6 +24,4 @@ snippet('base/cont-header');
</main>
<?php snippet('base/cont-footer') ?>
<?php snippet('base/html-end', ["bs_util"=>1,
"bs_carousel"=>0,
"plg_masonry"=>1]) ?>
<?php snippet('base/html-end', ["plg_masonry"=>1]) ?>