From 9b562aace632ad795db0449c93d1364c588aec78 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Mon, 2 Jan 2017 11:10:41 +0100 Subject: [PATCH] [SITE] blogposts with image gallery (masonry) --- site/blueprints/blogarticle.yml | 6 ++++++ site/templates/blogarticle.php | 6 +++++- site/templates/project.php | 4 +--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/site/blueprints/blogarticle.yml b/site/blueprints/blogarticle.yml index 1d9f660..1cafc14 100644 --- a/site/blueprints/blogarticle.yml +++ b/site/blueprints/blogarticle.yml @@ -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 diff --git a/site/templates/blogarticle.php b/site/templates/blogarticle.php index fc639fc..0a3e8ac 100644 --- a/site/templates/blogarticle.php +++ b/site/templates/blogarticle.php @@ -37,6 +37,10 @@ snippet('base/cont-header'); text()->kirbytext(); ?> + en_masonry()->bool()) : echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)) ; endif;?> + + text2()->kirbytext(); ?> +
@@ -61,4 +65,4 @@ snippet('base/cont-header'); - +1]) ?> diff --git a/site/templates/project.php b/site/templates/project.php index 4b55b6b..4a86f89 100644 --- a/site/templates/project.php +++ b/site/templates/project.php @@ -24,6 +24,4 @@ snippet('base/cont-header'); -1, - "bs_carousel"=>0, - "plg_masonry"=>1]) ?> +1]) ?>