-
-
Notifications
You must be signed in to change notification settings - Fork 284
Add meet.rss.php template #2447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,34 @@ | ||||||||
| <?php | ||||||||
| /** | ||||||||
| * @var \Kirby\Cms\Pages $upcoming | ||||||||
| */ | ||||||||
|
|
||||||||
| header('Content-Type: application/rss+xml; charset=UTF-8'); | ||||||||
|
|
||||||||
| ?><?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"> | ||||||||
| <channel> | ||||||||
| <title>Kirby meetup calendar</title> | ||||||||
| <link>https://getkirby.com/meet</link> | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <description>Connect with other Kirby developers around the world or meet face-to-face at a local meetup.</description> | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| <?php foreach ($upcoming as $event): ?> | ||||||||
| <?php if (empty(get('city')) || strtolower(get('city')) == strtolower($event->city())): ?> | ||||||||
| <item> | ||||||||
| <title><?= $event->datetime()->format('Y-m-d') ?>: <?= $event->shortTitle()->value() ?></title> | ||||||||
| <?php if ($event->link()->isNotEmpty()): ?> | ||||||||
| <link><?= $event->link()->value() ?></link> | ||||||||
| <?php endif ?> | ||||||||
| <guid>https://getkirby.com/meet#meetup-<?= $event->slug() ?></guid> | ||||||||
| <description><![CDATA[ | ||||||||
| <p><?= $event->datetime()->format('Y-m-d H:i') ?> (time zone <?= $event->timezone()->value() ?>)</p> | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. An idea format: <?= $event->datetime()->format('Y-m-d H:s \G\M\TP') ?> (<?= $event->timezone() ?>) |
||||||||
| <?php if ($event->city()->isNotEmpty()): ?> | ||||||||
| <p><?= $event->city() ?>, <?= $event->country() ?></p> | ||||||||
| <?php endif ?> | ||||||||
| <?php if ($event->link()->isNotEmpty()): ?> | ||||||||
| <p><a href="<?= $event->link()->value() ?>"><?= $event->link()->value() ?></a></p> | ||||||||
| <?php endif ?> | ||||||||
| ]]></description> | ||||||||
| </item> | ||||||||
| <?php endif ?> | ||||||||
| <?php endforeach ?> | ||||||||
| </channel> | ||||||||
| </rss> | ||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.