* Plugin Name: GLM Associate - Events Add-On
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.7.29
+ * Version: 1.7.30
* 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.7.29
+ * @version 1.7.30
*/
// Check that we're being called by WordPress.
* 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.7.29');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.30');
/**
* Plugin DB Version
*/
$this->dateRange = "start_time >= '{$fromDate}'";
$output = '';
- header("Content-Type: application/xml\n");
$this->postAddLocations = true;
$events = $this->getModelEventsData();
// Generate output from model data and view
$output = $smarty->template->fetch($viewFile);
+ header("Content-Type: application/xml\n");
echo $output;
exit;
}
{/if}
<description><![CDATA[{$item.intro|strip_tags}]]></description>
<fulltext><![CDATA[{$item.descr|strip_tags}]]></fulltext>
- {if $item.hide_address.name == 'No'}
- {if $item.locations}
- <location>
- {if $item.locations.name}{$item.locations.name}{/if}
- {if $item.locations.address} {$item.locations.address} {/if}
- {if $item.locations.city.name}{$item.locations.city.name}{/if}{if $item.locations.state.value}, {$item.locations.state.value} {/if}
- {if $item.locations.zip} {$item.locations.zip} {/if}
- </location>
- {/if}
- {if $item.member && $item.use_member_location}
- <location>
- {if $item.member.member} {$item.member.member} {/if}
- {if $item.member.addr1} {$item.member.addr1} {/if}
- {if $item.member.city}{$item.member.city}{/if}{if $item.member.state.value}, {$item.member.state.value}{/if}
- {if $item.member.zip} {$item.member.zip} {/if}
- </location>
- {/if}
- {/if}
+{if $item.hide_address.name == 'No'}
+ {if $item.locations}
+ <location>
+ {if $item.locations.name}{$item.locations.name}{/if}
+ {if $item.locations.address} {$item.locations.address} {/if}
+ {if $item.locations.city.name}{$item.locations.city.name}{/if}{if $item.locations.state.value}, {$item.locations.state.value} {/if}
+ {if $item.locations.zip} {$item.locations.zip} {/if}
+ </location>
+ {/if}
+ {if $item.member && $item.use_member_location}
+ <location>
+ {if $item.member.member} {$item.member.member} {/if}
+ {if $item.member.addr1} {$item.member.addr1} {/if}
+ {if $item.member.city}{$item.member.city}{/if}{if $item.member.state.value}, {$item.member.state.value}{/if}
+ {if $item.member.zip} {$item.member.zip} {/if}
+ </location>
+ {/if}
+{/if}
<startdatetime>{$item.starting_timestamp|date_format:"%Y-%m-%dT%T"}</startdatetime>
<enddatetime>{$item.ending_timestamp|date_format:"%Y-%m-%dT%T"}</enddatetime>
+{if $item.categories}
+ {foreach $item.categories as $cat}
+ <category><![CDATA[{$cat.name}]]></category>
+ {/foreach}
+{/if}
<guid>{$item.id}</guid>
</item>
{/foreach}