Hi all,
I've created an events plugin people may find useful. Source can be found on GitHub - SamWM/get-simple-plugins. Attached plugin code in zip file.
Usage:
Show events on page by editing the template and adding the following:
Show the calendar (for navigation):
Show upcoming events (e.g. in the sidebar):
`upcoming_events` has three arguments: $base_url, $date_heading_tag, $limit
$base_url is the page the the links are on. $date_heading_tag is the tag to wrap the date in. $limit is how many events to show (default is set to three)
Update:
Uploaded zip file with latest version. Rather than add new replies, I will update the attachment on this post instead. The latest 'stable' version can be found on the 'Extend' part of the GetSimple website.
Update 2:
New version for testing. Changes will hopefully fix issues such as missing events and navigation to the next/previous month. Apologies for delay in updating this plugin.
Update 3:
Done a few more fixes and changes (ability to set the text for previous / next month navigation) for testing, will update the GetSimple Extend Repository if there are no problems with this update.
Update 4:
New test release, hopefully will work as it should in GetSimple 3, regardless of time zone
I've created an events plugin people may find useful. Source can be found on GitHub - SamWM/get-simple-plugins. Attached plugin code in zip file.
Usage:
Show events on page by editing the template and adding the following:
Code:
<?php echo events_list() ?>
Show the calendar (for navigation):
Code:
<?php echo events_calendar() ?>
Show upcoming events (e.g. in the sidebar):
Code:
<?php echo '<h2>Upcoming events</h2><div class="feature">'.upcoming_events($SITEURL.'events/', 'strong').'</div>' ?>
`upcoming_events` has three arguments: $base_url, $date_heading_tag, $limit
$base_url is the page the the links are on. $date_heading_tag is the tag to wrap the date in. $limit is how many events to show (default is set to three)
Update:
Uploaded zip file with latest version. Rather than add new replies, I will update the attachment on this post instead. The latest 'stable' version can be found on the 'Extend' part of the GetSimple website.
Update 2:
New version for testing. Changes will hopefully fix issues such as missing events and navigation to the next/previous month. Apologies for delay in updating this plugin.
Update 3:
Done a few more fixes and changes (ability to set the text for previous / next month navigation) for testing, will update the GetSimple Extend Repository if there are no problems with this update.
Update 4:
New test release, hopefully will work as it should in GetSimple 3, regardless of time zone
-- Sam