run("agenda", array("variable1" => "value1")); // /views/hello.blade.php must exist // get_header(); /** * function */ function _display_agenda_ft($DAY, $at_phone = false) { echo '
'; #if($at_phone){echo'
';} echo '

👇👇👇

Buy Tickets

'; #echo'

切換至

'; echo '
'; } function _display_during_to_time($during) { # 1200-1210 ->12:00-12:10 return preg_replace('/(\d{2})(\d{2})-(\d{2})(\d{2})/', '$1:$2-$3:$4', $during); } function display_between_company_and_jobposition($company, $jobposition) { $re = '/[a-zA-Z]/'; return preg_match($re, $company) === 0 && preg_match($re, $jobposition) === 0 ? '' : ' '; } function get_agenda_td_html($td, $ary_speakers, $chair_id = '', $confday = 0) { global $is_hide_speaker_link; global $is_workshop; /** * * @var string $td This is a string variable. * @var array $speaker_data This is an array of speaker data. * @var string $type_of_speech This describes the type of speech. Valid options are: * - `single`: 一場一人 * - `multiple_same_topic`: 多人-同主題 * - `multiple_different_topics`: 多人-不同主題 * - `panel`: Panel */ // 拆分 ids // 正則表達式模式 $pattern = '/^\d+(\+\d+)*$/'; if (preg_match($pattern, $td)) { $speaker_ids = explode("+", $td); } elseif (strlen($td) == 0 || $td == "【 KEYNOTE 】") { // Assuming $pattern is string // No further processing is needed, return the image HTML return $td . '

speaker TBD

'; } else { return '' . $td . ''; } $speakers_info = array_map(function ($id) use ($ary_speakers, $is_hide_speaker_link, $is_workshop) { if (isset($ary_speakers[$id])) { $speaker = $ary_speakers[$id]; if (empty($speaker->photo)) { $speaker->photo = "/img/speaker/speaker.png"; } else { $speaker->photo = $speaker->photo . FE_VER; } if (strpos($_SERVER['REQUEST_URI'], "agenda_nocache")) { if ($speaker->conf == 'HOST') { $speaker->anchor = 'moderator/#speaker' . $speaker->post_id; } elseif ($speaker->conf == '致詞嘉賓') { // $speaker->anchor = 'vip/#speaker' . $speaker->post_id; } } else { // $speaker->anchor ="JavaScript:;"; if ($speaker->conf == 'HOST') { $speaker->anchor = 'moderator/#speaker' . $speaker->post_id; //JavaScript:; } elseif ($speaker->conf == '致詞嘉賓') { // $speaker->anchor = 'vip/#speaker' . $speaker->post_id; //JavaScript:; } } if ($is_hide_speaker_link) { $speaker->anchor = 'javascript:;'; } } else { $speaker = null; } return $speaker; }, $speaker_ids); //get chair info $chair_info = null; if (!empty($chair_id)) { $chair_info = $ary_speakers[$chair_id]; $chair_info->photo ??= "/img/speaker/speaker.png"; if ($is_hide_speaker_link) { $chair_info->anchor = 'javascript:;'; } } // echo "
";print_r($speakers_info);echo $chair_id."
"; $speakers_count = count($speaker_ids); $type_of_speech = null; if ($speakers_count == 1) { $type_of_speech = 'single'; } elseif ($speakers_count <= 2 && empty($chair_id)) { //empty($chair_id) && if ( $td == '5+6+7' || $td == '1+3' || $td == '1+83+2' || $td == '3+67' || $td == '15+78' || $td == '80+81' || $td == '40+41' || $td == '8+9' ) { $type_of_speech = 'multiple_same_topic'; } else { $type_of_speech = 'multiple_different_topics'; } } else { $type_of_speech = 'panel'; } //2024 Register $type_of_speech = in_array($td, ['2+3+4']) ? 'opening' : $type_of_speech; //2024 Special Panel $type_of_speech = in_array($td, ['101+102+103']) ? 'special_panel' : $type_of_speech; //2024 Track5_Day2 Workshop $type_of_speech = in_array($td, ['92+94+96+95']) ? 'workshop' : $type_of_speech; //2024 Flash Talk if ( $td == '105+106+73' || $td == '74+76' || $td == '77+78+79' || $td == '80+81' ) { $type_of_speech = "flash_talk"; } //blade global $blade; // echo "
";
    // print_r($type_of_speech);
    // echo "
"; $speaker_and_topic = $blade->run("agenda.agenda_speaker_and_topic", array( "td" => $td, "speakers_info" => $speakers_info, "type_of_speech" => $type_of_speech, "chair_info" => $chair_info, )); return $speaker_and_topic; } function _display_agenda_nav($ary_agenda_nav, $is_last_day = false) { echo ''; } $uri = explode('?', $_SERVER['REQUEST_URI'])[0]; $ary_speakers = array(); foreach ($wpdb->get_results('SELECT * FROM ' . TBL_SPEAKERS) as $v) { $ary_speakers[$v->id] = $v; } $ary_room = get_agenda_room(); //[["","online Track 1"],["","online Track 2"],["","online Track 3"]] $ary_caption = array('', ''); //09/27 (Fri.) Day 1 $ary_agenda_nav = array( '', '', //09/27 (Fri.) Day 1 ); // phone $time_for_special_row = array( '1201-1201' => 'Moderator', '0829-0929' => 'Moderator', '0901-0901' => 'Topic', '1202-1202' => 'Topic', '1203-1203' => 'Moderator', ); $ary_day = array('', '03/27(四)'); $display_days = array(1); $TALK_TRACKING_NUM = 1; ?>
1) { echo _display_agenda_nav($ary_agenda_nav, $display_day == end($display_days)); } ?>

get_results($sql) as $v) { $day = $v->day; $during = $v->during; $room = $v->room; $speaker_id = $v->speaker_id; $chair_id = $v->chair_id; $time_info = array_key_exists($during, $time_for_special_row) ? $ary_day[$day] . ' ' . $time_for_special_row[$during] : $ary_day[$day] . ' ' . _display_during_to_time($during); $room_info = $ary_room[$room]['room'] . $ary_room[$room]['building']; ?>
during ?>">

1) { echo _display_agenda_nav($ary_agenda_nav, false); } ?> get_results($sql); foreach ($ary_agenda as $k => $v) { $rooms = explode('`', $v->rooms); $speaker_ids = explode('`', $v->speaker_ids); $ary_td = array(); $chair_ids = explode('`', $v->chair_ids); $is_white_tr_free = preg_match('/^\d+(\+\d+)*/', $v->speaker_ids) == true || strpos($v->speaker_ids, '````') !== false || strpos($v->speaker_ids, 'Welcome & Opening Remarks') !== false || strpos($v->speaker_ids, '主題論壇') !== false || strpos($v->speaker_ids, 'Panel Discussion') !== false || strpos($v->speaker_ids, 'KEYNOTE') !== false || strpos($v->speaker_ids, 'white-tr') !== false; //Exclude items where the "start_time" is equal to the "end_time" $timeIsEqual = count( array_unique( explode("-", $v->during) // hhmm-hhmm ) ) == 1; $is_white_tr_free = $is_white_tr_free && !$timeIsEqual; $class_for_background_color = $is_white_tr_free ? 'whitefree' : ''; $time = array_key_exists($v->during, $time_for_special_row) ? $time_for_special_row[$v->during] : _display_during_to_time($v->during); $ary_td = $speaker_ids; $count_tds = count($speaker_ids); $IS_CROSS_BAR = $count_tds === 1; ?> during ?>"> $td) { $td = get_agenda_td_html($ary_td[$j], $ary_speakers, $chair_ids[$j], $DAY); if ($IS_CROSS_BAR): $colSpan = $TALK_TRACKING_NUM - $count_tds + 1; ?> 0) { foreach (range(1, $TALK_TRACKING_NUM - $count_tds) as $_) { ?>
Building 中央研究院人文社會科學館
Place
", $ary_room[$i]['building']); ?>
class="cross-bar"> >