From 1c0bdfd4b3cb3b859f0de793afae3f71f82bbb7f Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 28 Jun 2018 14:30:07 -0400 Subject: [PATCH] Showing more status for front end registrants list showing all but the 'In Cart' 'Failed Submission' or 'Canceled' --- index.php | 6 +++--- readme.txt | 2 ++ views/front/registrations/registration.html | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 7bca565..3d3293e 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Event Registrations * Plugin URI: http://www.gaslightmedia.com/ * Description: Add-on to integrate registrations into Events add-on. - * Version: 1.0.4 + * Version: 1.0.5 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersRegistrationsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.4 + * @version 1.0.5 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.4'); +define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.5'); define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_VERSION', '1.0.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/readme.txt b/readme.txt index 40e95a3..420f8e4 100644 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,8 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == += 1.0.5 = +For registrant front end list show more than just Complete status. = 1.0.0 = diff --git a/views/front/registrations/registration.html b/views/front/registrations/registration.html index 2dae850..a254a1c 100644 --- a/views/front/registrations/registration.html +++ b/views/front/registrations/registration.html @@ -474,7 +474,7 @@

Current List of {$terms.reg_term_attendee_plur_cap} for This {$terms.reg_term_event_cap}

{foreach $registrantsList as $registrantAttending} - {if !$registrantAttending.not_attending.value && $registrantAttending.request_status_name == "Complete"} + {if !$registrantAttending.not_attending.value && !in_array( $registrantAttending.request_status_name, array( 'In Cart', 'Failed Submission', 'Canceled' ) )} {$registrantAttending.fname} {$registrantAttending.lname}{if !$registrantAttending@last}, {/if} {/if} {/foreach} -- 2.17.1