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: text:
label: Text label: Text
type: textarea type: textarea
en_masonry:
text: enable masonry
type: checkbox
text2:
label: Text below masonry
type: textarea
meta-robots: meta-robots:
label: Metatag robots label: Metatag robots
type: text type: text

View file

@ -37,6 +37,10 @@ snippet('base/cont-header');
</div> </div>
<?php echo $page->text()->kirbytext(); ?> <?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"> <div class="meta bottom">
<time datetime="<?php echo $page->date('Y-m-d') ?>"><?php echo $page->date('d. M. Y') ?></time> <time datetime="<?php echo $page->date('Y-m-d') ?>"><?php echo $page->date('d. M. Y') ?></time>
<?php echo tags($base_url, $page); ?> <?php echo tags($base_url, $page); ?>
@ -61,4 +65,4 @@ snippet('base/cont-header');
</main> </main>
<?php snippet('base/cont-footer') ?> <?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> </main>
<?php snippet('base/cont-footer') ?> <?php snippet('base/cont-footer') ?>
<?php snippet('base/html-end', ["bs_util"=>1, <?php snippet('base/html-end', ["plg_masonry"=>1]) ?>
"bs_carousel"=>0,
"plg_masonry"=>1]) ?>