From 836ab53dd03cc990f8a139e23fb5bd298f05ef83 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Thu, 8 Jun 2017 10:29:04 +0200 Subject: [PATCH] [FIX, SITE] add option to toggle masony at project level --- robots.txt | 1 - site/blueprints/project.yml | 3 +++ site/templates/project.php | 2 +- site/templates/projects.php | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/robots.txt b/robots.txt index d261747..736cd0f 100644 --- a/robots.txt +++ b/robots.txt @@ -2,7 +2,6 @@ User-agent: * Disallow: /kirby/ Disallow: /panel/ Disallow: /site/ -Disallow: /thumbs/ Disallow: /error/ diff --git a/site/blueprints/project.yml b/site/blueprints/project.yml index 6e00dc6..2ae5d01 100644 --- a/site/blueprints/project.yml +++ b/site/blueprints/project.yml @@ -20,6 +20,9 @@ fields: text: label: Text type: textarea + en_masonry: + type: checkbox + text: Enable masonry text2: label: Text below masonry type: textarea diff --git a/site/templates/project.php b/site/templates/project.php index 4a86f89..ef0ce25 100644 --- a/site/templates/project.php +++ b/site/templates/project.php @@ -16,7 +16,7 @@ snippet('base/cont-header'); text()->kirbytext(); ?> - $page)) ; ?> + en_masonry() == '1') echo snippet('plg/plg-masonry-sb', array('currentPage'=>$page)); ?>
text2()->kirbytext(); ?> diff --git a/site/templates/projects.php b/site/templates/projects.php index a5abc2b..4c1d37d 100644 --- a/site/templates/projects.php +++ b/site/templates/projects.php @@ -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');