echo get_the_organization_phone(); ?> <br /> <?php echo get_the_organization_website() != '' ? epl_anchor(get_the_organization_website(), epl__('Visit Website')) : ''; ?> <br /> </div> <?php } ?> <?php echo get_the_instructor_name(true, false); ?> <?php echo get_the_attendee_list_link(); ?> </div> <div class="clearfix"></div> <?php //the more expandable box
?> <br /> <?php echo get_the_organization_website() != '' ? epl_anchor(get_the_organization_website(), epl__('Visit Website')) : ''; ?> <br /> </div> <?php } ?> <?php //get all instructors assigned to this event $instr = get_the_instructor_name(true, true); foreach ($instr as $instr_id => $name) { //get the image $instr_img = get_the_post_thumbnail($instr_id); echo "<h4>{$name}</h4>"; echo $instr_img; } ?> <?php echo get_the_attendee_list_link(); ?> </div> <div class="clearfix"></div>
$counts_day_key = $event_id . "_date_{$date_id}"; $num_regis = epl_get_element('_total_att_' . $counts_day_key, $counts, 0); $counts_time_key = $event_id . "_time_{$date_id}_{$time_id}"; //if ( $capacity !== false && isset( $counts['_total_att_' . $counts_time_key] ) ) { $num_regis = epl_get_element('_total_att_' . $counts_time_key, $counts, 0); //} $avail = $capacity - $num_regis; $regis_button_args = array('_date_id' => $date_id, '_time_id' => $time_id, 'event_id' => $event_id); $temp_table_row = array(); $temp_table_row['title'] = '<td>' . $event_title . '</td>'; $temp_table_row['day_of_week'] = '<td>' . $event_dow . '</td>'; $temp_table_row['date'] = '<td>' . $event_dom . '</td>'; $temp_table_row['time'] = '<td>' . $time . epl_prefix('-', $end_time) . '</td>'; $temp_table_row['category'] = '<td>' . $event_categories . '</td>'; $temp_table_row['location'] = '<td>' . $event_venue_title . '</td>'; $temp_table_row['instructor'] = '<td>' . implode(', ', get_the_instructor_name(false, true, false)) . '</td>'; $temp_table_row['available_spaces'] = '<td>' . ($capacity !== false ? $avail : '') . '</td>'; $temp_table_row['regis_button'] = '<td>' . ($capacity === false || $avail !== '' && $avail > 0 ? get_the_register_button($event_id, false, $regis_button_args) : epl__('Sold Out')) . '</td>'; $temp_table_row = array_intersect_key($temp_table_row, $default_fields); epl_sort_array_by_array($temp_table_row, $default_fields); if (!empty($temp_table_row)) { $table_row[] = '<tr>' . implode($temp_table_row) . '</tr>'; } } } } } $table_header = array(); $table_header['title'] = epl__('Title'); $table_header['day_of_week'] = epl__('Day'); $table_header['date'] = epl__('Start Date');
$event_dow = date_i18n("D", $date); $event_dom = date_i18n("D, m/j/y", $date); $end_time = $event_details['_epl_end_time'][$time_key]; $event_ages_range = $event_ages; $price = min($event_details['_epl_price']); if ($price <= 0) { $print_price = "<span class='price_free'>Free</span>"; } else { $print_price = "<span class='price'>\$" . $price . "</span>"; } //build the td rows $temp_table_row = '<td>' . $event_dom . '</td>'; $temp_table_row .= '<td>' . $time . '</td>'; $temp_table_row .= '<td>' . $end_time . '</td>'; $temp_table_row .= '<td class="event_title">' . $event_title . '</td>'; $temp_table_row .= '<td>' . get_the_instructor_name() . '</td>'; $temp_table_row .= '<td>Sigh In (0/10)</td>'; if ($temp_table_row != '') { $table_row[] = '<tr>' . $temp_table_row . '</tr>'; } } } } echo <<<EOT <table id="leland-1" class="dataTable" aria-describedby="leland-1_info"> \t\t<thead> \t\t<tr role="row"> \t\t<th>Date</th> \t\t<th>Start Time</th> \t\t<th>End Time</th>