From 8df01f8af59bcbfb447723ef18c6d665ce10709b Mon Sep 17 00:00:00 2001 From: Werner Joss <36265757+wernerjoss@users.noreply.github.com> Date: Sat, 30 Oct 2021 20:49:56 +0200 Subject: [PATCH] Add color Support from ics, page template Option --- CHANGELOG.md | 7 +++++++ blueprints.yaml | 11 ++++++++++- fullcalendar.php | 3 ++- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index facde8ef..7d1b3e0b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# v0.2.11 +## 10/31/2021 + +1. [](#new) + * Added Color support from ics files (merge pull request #33 from Johannes Loose) + * Add config Option useCustomPageTemplate - useful e.g. for modular Calendar Pages (caution: affects page speed if set to true !) + # v0.2.10 ## 06/14/2021 diff --git a/blueprints.yaml b/blueprints.yaml index a95b5809..b067b817 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -1,5 +1,5 @@ name: FullCalendar -version: 0.2.10 +version: 0.2.11 description: show Calendar Widget from ICS File(s), based on fullcalendar.io icon: calendar author: @@ -62,4 +62,13 @@ form: options: 1: Enabled 0: Disabled + useCustomPageTemplate: + type: toggle + label: Use custom Page Template + help: Use another Template than 'calendar' for Calendar Page (e.g. in case of modular Page) + highlight: 1 + default: 0 + options: + 1: Enabled + 0: Disabled \ No newline at end of file diff --git a/fullcalendar.php b/fullcalendar.php index c6ba59cf..e1661acc 100644 --- a/fullcalendar.php +++ b/fullcalendar.php @@ -34,7 +34,8 @@ public function onPageInitialized(Event $event) /** @var Page */ $page = $event['page']; - if ($page->template() === 'calendar') { + $config = $this->config->get('plugins.fullcalendar'); + if (($page->template() === 'calendar') || ($config['useCustomPageTemplate'])) { $this->addAssets(); } }