Adding an attribute "show_all_in_agend".
When set to True it will empty the to date in search and list out all
current events in the agenda view.:<
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.6.71
+ * Version: 1.6.72
* Author: Chuck Scott
* Author URI: http://www.gaslightmedia.com/
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.6.71
+ * @version 1.6.72
*/
* 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.71');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.72');
define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.4');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
$_REQUEST['glm_event_to'] = $toDate;
}
}
- } else if ( in_array($action, array( 'event-list-name', 'nameSearch', 'featured' ) ) || $this->config['settings']['use_venue_locations'] ) {
+ } else if ( in_array($action, array( 'event-list-name', 'nameSearch', 'featured' ) )
+ || $this->config['settings']['use_venue_locations']
+ || filter_var( $actionData['request']['show_all_in_agenda'], FILTER_VALIDATE_BOOLEAN )
+ ) {
$toDate = null;
} else {
if ( isset($_REQUEST['t']) && $t = filter_var( $_REQUEST['t'], FILTER_SANITIZE_STRING ) ) {
'pageslug' => null,
'group_by_day' => true,
'group_month' => false,
+ 'show_all_in_agenda' => false,
)
),
'glm-members-event-detail' => array(
<td>
The "pageslug" attribute sets the event detail page name. Default is event-detail.
</td>
+ </tr>
+ <tr>
+ <td> </td>
+ <th>
+ show_all_in_agenda="{ True/False }"
+ </th>
+ <td>
+ The "show_all_in_agenda" attribute sets the end date search to empty value so it will get all events in Agenda view.
+ </td>
</tr>
<tr>
<th>[glm-members-event-detail]</th>