Adding the ticket url to the event detail pages.
* Plugin Name: GLM Members Database Events
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.6.2
+ * Version: 1.6.3
* Author: Chuck Scott
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabaseEventsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.6.2
+ * @version 1.6.3
*/
/*
* 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.2');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.3');
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.
$event['url'] = 'http://' . $event['url'];
}
}
+ if ( $event['ticket_url'] ) {
+ if ( !preg_match( '/^http:|https:/', $event['ticket_url'] ) ) {
+ $event['ticket_url'] = 'http://' . $event['ticket_url'];
+ }
+ }
$event['dates'] = $this->getEventDate(
strtotime( $event['starting_date'] ),
strtotime( $event['ending_date'] ),
{if $event.free.value}
<div id="glm-event-detail-cost"><strong>Cost: </strong>FREE</div>
{/if}
+ {if $event.ticket_url}
+ <div style="margin: 0 0 10px 20px;"><strong>Tickets: </strong><a target="_blank" href="{$event.ticket_url}">{$event.ticket_url}</a></div>
+ {/if}
<div id="glm-event-detail-contact"><strong>Contact & More Info</strong><br>
{if $event.url}<a href="{$event.url}" target="_blank">{$event.url}</a><br>{/if}
{if $event.free.value}
<div id="glm-event-detail-cost"><strong>Cost: </strong>FREE</div>
{/if}
+ {if $event.ticket_url}
+ <div style="margin: 0 0 10px 20px;"><strong>Tickets: </strong><a target="_blank" href="{$event.ticket_url}">{$event.ticket_url}</a></div>
+ {/if}
<div id="glm-event-detail-contact"><strong>Contact & More Info</strong><br>
{if $event.url}<a href="{$event.url}" target="_blank">{$event.url}</a><br>{/if}