function waitlist_quick_meta_box_callback() { $w = AC::load_waitlist_meta(get_the_ID()); echo ' <table class="meta-table"> <tr> <td><strong>Created: </strong></td> <td>' . $w->formatted_created . '</td> </tr> <tr> <td><strong>Queue: </strong></td> <td>' . $w->queue_number . '</td> </tr> <tr> <td><strong>Reg Link: </strong></td> <td><a href="' . $w->reg_link . '" target="_blank">View</a></td> </tr> <tr> <td><strong>Link Used: </strong></td> <td>' . ucfirst($w->redeemed) . '</td> </tr>'; if ($w->redeemed == 'true') { echo '<tr><td><strong>Reservation:</strong> </td><td><a href="post.php?post=' . $w->reservation . '&action=edit" target="_blank">View</a></td></tr>'; } echo ' </table>'; }
public static function send_admin_waitlist_email($w_id) { global $a; global $w; $w = AC::load_waitlist_meta($w_id); $subject = 'New Waitlist: ' . $w->name . ' (' . $w->desired_seats . ') ' . $a->title; $values = array('Activity' => $a->title, 'Activity ID' => $a->ID, 'Activity Date' => $a->formatted_date, 'Name' => $w->name, 'Timestamp' => $w->formatted_created, 'Desired Seats' => $w->desired_seats, 'Email' => $w->email, 'Waitlist ID' => $w->ID, 'Code' => $w->code, 'Reg Link' => '<a href="' . $w->reg_link . '">' . $w->reg_link . '</a>'); $body = ''; foreach ($values as $k => $v) { $body .= '<strong>' . $k . ':</strong> ' . $v . '<br />'; } $mail = new PHPMailer(); $mail->setFrom('*****@*****.**'); $mail->addReplyTo('*****@*****.**'); $mail->addAddress($a->service_email); foreach (activity_stock_get_option('admin_emails') as $address) { $mail->addCC($address); } $mail->Subject = $subject; $mail->msgHTML($body); $mail->Send(); }
<th>Queue</th> <th>Seats</th> <th>Activity</th> <th>Name</th> <th>Contact</th> <th>Reg. Link</th> <th>Notes</th> </tr> </thead> <tbody> <?php while ($query->have_posts()) { ?> <?php $query->the_post(); $w = AC::load_waitlist_meta(get_the_ID()); ?> <tr> <td><?php echo $w->formatted_created; ?> </td> <td><?php echo $w->queue_number; ?> </td> <td><?php echo $w->desired_seats; ?> </td> <td><?php