Skip to content

Commit

Permalink
Merge pull request #44 from shashachu/tkid-rsvp
Browse files Browse the repository at this point in the history
Add tkid after rsvp, update to 5.12.3
  • Loading branch information
shashachu authored Jan 3, 2025
2 parents 92833bd + 4f6935f commit 397827a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
4 changes: 2 additions & 2 deletions events-manager.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/*
Plugin Name: GGG Events Manager
Version: 5.12.2
Version: 5.12.3
Plugin URI: https://github.com/shashachu/ggg-events-manager/
Description: Customized version of the Events Manager plugin by Marcus Sykes, tailored towards trooping signups for the Golden Gate Garrison.
Author: Marcus Sykes, Sha Sha Chu
Expand Down Expand Up @@ -40,7 +40,7 @@
$myUpdateChecker->getVcsApi()->enableReleaseAssets();

// Setting constants
define('EM_VERSION', 5.99912); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
define('EM_VERSION', 5.99913); //self expanatory, although version currently may not correspond directly with published version number. until 6.0 we're stuck updating 5.999.x
define('EM_PRO_MIN_VERSION', 2.6712); //self expanatory
define('EM_PRO_MIN_VERSION_CRITICAL', 2.377); //self expanatory
define('EM_DIR', dirname( __FILE__ )); //an absolute path to this directory
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: bookings, calendar, tickets, events, buddypress, event management, google
Text Domain: events-manager
Requires at least: 5.2
Tested up to: 6.0
Stable tag: 5.12.1
Stable tag: 5.12.3
Requires PHP: 5.3

Fully featured event registration management including recurring events, locations management, calendar, Google map integration, booking management
Expand Down Expand Up @@ -119,6 +119,9 @@ See our [FAQ](http://wp-events-plugin.com/documentation/faq/) page, which is upd
6. Manage attendees with various booking reports

== Changelog ==
= 5.12.3 =
* Added TKID after name in RSVPs list

= 5.12.2 =
* 5.12.1 with GGG mods

Expand Down
9 changes: 8 additions & 1 deletion templates/placeholders/attendeeslist.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
if (empty($ticket_type) && count((array)$ticket_bookings) > 0) {
$ticket_type = $ticket_name;
}
$bookings_by_ticket[$ticket_name][] = array('name' => $EM_Booking->get_person()->get_name(),
$bookings_by_ticket[$ticket_name][] = array(
'name' => $EM_Booking->get_person()->get_name(),
'user_id' => $EM_Booking->get_person()->ID,
'ticket_type' => $ticket_type,
'email' => $EM_Booking->person->user_email);
}
Expand All @@ -41,6 +43,11 @@
foreach ($bookings as $booking) {
echo '<li>'. $booking['name'];
if ($is_costumed) {
$userId = $booking['user_id'];
$tkid = get_user_meta($userId, 'tkid_number', true);
if (!empty($tkid)) {
echo ' (' . $tkid . ')';
}
echo ' - ' . $booking['ticket_type'];
}
echo '</li>';
Expand Down

0 comments on commit 397827a

Please sign in to comment.