Removing search form from detail page.
Fix the output issue with the description.
Use wpautop function instead of the nl2br.
Fix bug in ical feed.
* Plugin Name: GLM Members Database Events
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.6.27
+ * Version: 1.6.28
* 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.27
+ * @version 1.6.28
*/
/*
* 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.27');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.28');
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.
* @access public
* @return array The event
*/
- public function getModelEventData( $eventId, $fromDate )
+ public function getModelEventData( $eventId )
{
$this->postAddTimes = true;
$this->postAddLocations = true;
$event['url'] = 'http://' . $event['url'];
}
}
+ if ( $event['descr'] ) {
+ $event['descr'] = wpautop( $event['descr'] );
+ }
if ( $event['ticket_url'] ) {
if ( !preg_match( '/^http:|https:/', $event['ticket_url'] ) ) {
$event['ticket_url'] = 'http://' . $event['ticket_url'];
</div><!-- /.row #3 -->
</div><!-- /.small-12 .column -->
<div class="small-12 column">
- <p>{$event.descr|nl2br}</p>
+ <p>{$event.descr}</p>
</div>
</div><!-- /.row #2 -->
</div><!-- /.small-12 .large-9 .large-centered -->
<script>
var ajaxUrl = '{$ajaxUrl}';
</script>
+{if !$eventId}
<div id="glm-events-search-form" class="small-12 columns">
<h1>Find An Event</h1>
<form action="{$currentUrl}">
</div>
</form>
</div>
+{else}
+ <div class="small-4 small-offset-8 medium-2 medium-offset-10 column">
+ {if !$eventId}
+ <input class="right" type="image" title="Print PDF" id="glm-event-pdf-submit" src="{$assetsUrl}print-icon-24x24.png">
+ {else}
+ {/if}
+ <a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=rssFeed{if $eventId}&eventId={$eventId}{/if}">
+ <img class="right" title="RSS Feed" id="glm-event-rss-feed" src="{$assetsUrl}rss-icon-24x24.png" />
+ </a>
+ <a href="{$ajaxUrl}?action=glm_members_admin_ajax&glm_action=icalFeed&ical=1{if $eventId}&eventId={$eventId}{/if}">
+ <img class="right" title="iCal Feed" id="glm-event-ical-feed" src="{$assetsUrl}calendar-icon-24x24.png" />
+ </a>
+ </div>
+{/if}
<div class="small-7 medium-3 columns view-select" style="margin-right: 15px;">
<select id="glm-event-view-select">
<option id="agenda-view-option" value="agenda"> Agenda View </option>