$venueId = null;
$eventDays = array();
$eventDay = null;
+ $pageSlug = 'event-detail';
+ $customPage = false;
+ // If there's a pageslug as attribute then update the pageSlug
+ if ( isset ( $actionData['request']['pageslug'] ) ) {
+ $pageSlug = $actionData['request']['pageslug'];
+ $customPage = true;
+ }
// If a memberID has been specified, limit to that member
if ( isset( $actionData['request']['member'] ) ) {
$memberId = $actionData['request']['member'] - 0;
'imgUrl' => GLM_MEMBERS_PLUGIN_MEDIA_URL . '/images/small/',
'calDates' => $calDates,
'cal_view' => $calendar_view,
+ 'pageSlug' => $pageSlug,
+ 'customPage' => $customPage,
// 'override' => $override_default_view
);
error_reporting(E_ALL ^ E_NOTICE);
*
* We're also going to set the page title to the event name in here while we're at it.
*/
-if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, $this->config['settings']['canonical_event_page']) > 0) {
+if (strpos(GLM_MEMBERS_PLUGIN_CURRENT_URL, '/'.$this->config['settings']['canonical_event_page']).'/' > 0) {
// Parse out only the event slug from the current URL
$m = array();
{if $event.image}<img style="float:right;" src="{$imgUrl}{$event.image}">{/if}
{$event.intro}
<div>
- <a class="glm-read-more" href="{$siteBaseUrl}event-detail/{$event.name_slug}/">Read More</a>
+ <a class="glm-read-more" href="{$siteBaseUrl}{$pageSlug}/{if !$customPage}{$event.name_slug}/{else}?eventId={$event.id}{/if}">Read More</a>
</div>
</div>
</div>