Skip to content

Commit

Permalink
Small improvement to date inclusion logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottboms committed Feb 10, 2024
1 parent 293fe89 commit 6c81ccd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "scottboms/microseasons",
"description": "Kirby Micro Seasons plugin",
"type": "kirby-plugin",
"version": "1.0.1",
"version": "1.0.2",
"homepage": "https://github.com/scottboms/kirby-microseasons",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Kirby Japanese Microseasons Plugin
*
* @version 1.0.1
* @version 1.0.2
* @author Scott Boms <[email protected]>
* @copyright Scott Boms <[email protected]>
* @link https://github.com/scottboms/kirby-microseasons
Expand Down
3 changes: 1 addition & 2 deletions snippets/microseasons.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
<?= $matchSeason['translation'] ?>
<?= $matchSeason['name'] ?>
</span>
<?php if(option('scottboms.microseasons.includedates') === True): ?>
<?php if(option('scottboms.microseasons.includedates') !== null && option('scottboms.microseasons.includedates') === True): ?>
<time class="ms__range" datetime="<?= $matchSeason['start'] ?>/<?= $matchSeason['end']?>">
<?= $matchSeason['start']->format(option('scottboms.microseasons.dateformat', 'M/d')) ?> to <?= $matchSeason['end']->format(option('scottboms.microseasons.dateformat', 'M/d')) ?></time>
<?php else: ?>
<?php endif ?>
</dd>
</dl>
Expand Down

0 comments on commit 6c81ccd

Please sign in to comment.