Skip to content

Commit

Permalink
Add color Support from ics, page template Option
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerjoss committed Oct 30, 2021
1 parent b0cc93f commit 8df01f8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
11 changes: 10 additions & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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

3 changes: 2 additions & 1 deletion fullcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit 8df01f8

Please sign in to comment.