Skip to content

Commit 6c81ccd

Browse files
committed
Small improvement to date inclusion logic.
1 parent 293fe89 commit 6c81ccd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "scottboms/microseasons",
33
"description": "Kirby Micro Seasons plugin",
44
"type": "kirby-plugin",
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"homepage": "https://github.com/scottboms/kirby-microseasons",
77
"authors": [
88
{

index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* Kirby Japanese Microseasons Plugin
77
*
8-
* @version 1.0.1
8+
* @version 1.0.2
99
* @author Scott Boms <[email protected]>
1010
* @copyright Scott Boms <[email protected]>
1111
* @link https://github.com/scottboms/kirby-microseasons

snippets/microseasons.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
<?= $matchSeason['translation'] ?>
1212
<?= $matchSeason['name'] ?>
1313
</span>
14-
<?php if(option('scottboms.microseasons.includedates') === True): ?>
14+
<?php if(option('scottboms.microseasons.includedates') !== null && option('scottboms.microseasons.includedates') === True): ?>
1515
<time class="ms__range" datetime="<?= $matchSeason['start'] ?>/<?= $matchSeason['end']?>">
1616
<?= $matchSeason['start']->format(option('scottboms.microseasons.dateformat', 'M/d')) ?> to <?= $matchSeason['end']->format(option('scottboms.microseasons.dateformat', 'M/d')) ?></time>
17-
<?php else: ?>
1817
<?php endif ?>
1918
</dd>
2019
</dl>

0 commit comments

Comments
 (0)