From: Steve Sutton Date: Thu, 2 Mar 2017 19:14:24 +0000 (-0500) Subject: Update for single event ical to be valid X-Git-Tag: v1.6.13^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ed6864302e9ecde0d306c6a50ce85fe8e5a36ba2;p=WP-Plugins%2Fglm-member-db-events.git Update for single event ical to be valid Needed the VCALENDAR part of the ical format. --- diff --git a/index.php b/index.php index b922db5..22f479f 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.12 + * Version: 1.6.13 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.12 + * @version 1.6.13 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.12'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.13'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/front/events/icalFeed.php b/models/front/events/icalFeed.php index fe3b7e6..fb13ba0 100644 --- a/models/front/events/icalFeed.php +++ b/models/front/events/icalFeed.php @@ -44,6 +44,17 @@ class GlmMembersFront_events_icalFeed extends GlmMembersFront_events_baseAction $action = 'event-list-ical'; } + $icalHeader = <<getEventOutput( $eventId ); header('Content-type: text/calendar; charset=utf-8'); header('Content-Disposition: inline; filename=event-' . $eventId . '.ics'); + echo $icalHeader; echo $output; + echo $icalFooter; exit; break; case 'event-list-ical': - $icalHeader = <<