cat_ID==SPONSOR_CAT_ID or $cat->category_parent==SPONSOR_CAT_ID){ header("HTTP/1.1 301 Moved Permanently"); header('location: '.WEB_URL.'support/'); exit; } if($cat->cat_ID==EDM_CAT_ID or $cat->category_parent==EDM_CAT_ID){ header("HTTP/1.1 301 Moved Permanently"); header('location: '.WEB_URL); exit; } if($cat->cat_ID==COORG_CAT_ID or $cat->category_parent==COORG_CAT_ID){ header("HTTP/1.1 301 Moved Permanently"); header('location: '.WEB_URL.'about/'); exit; } $PAGE_ID = KEYNOTE_SPEAKER_PAGE_ID; include '_page_header.php'; $PAGESIZE = 20; $cur_page = get_query_var('paged'); if(!$cur_page){$cur_page=1;} ////////// $IS_AI_TALK_CAT_LIST_PAGE = $IS_DS_TALK_CAT_LIST_PAGE= false; $page_title='All Sessions';$page_cat_id = SPEAKER_CAT_ID; if(strpos($_SERVER['REQUEST_URI'], CATEGORY_PREFIX_URL.'speakers')!==0){ foreach(get_the_category() as$c){ if($c->cat_ID==AI_TALK_CAT_ID){$IS_AI_TALK_CAT_LIST_PAGE=true;} if($c->cat_ID==DS_TALK_CAT_ID){$IS_DS_TALK_CAT_LIST_PAGE=true;} } if($IS_AI_TALK_CAT_LIST_PAGE){ $page_title='All Sessions'; $page_cat_id = AI_TALK_CAT_ID; }elseif($IS_DS_TALK_CAT_LIST_PAGE){ $page_title='資料科學演講'; $page_cat_id = DS_TALK_CAT_ID; } } # $c = get_the_category();var_dump($IS_AI_TALK_CAT_LIST_PAGE);var_dump($IS_DS_TALK_CAT_LIST_PAGE); #debug ///////// $total_num = count(get_posts('field=ids&category='.$page_cat_id.'&posts_per_page=99999')); function display_pgr($cat,$PAGESIZE, $cur_page, $total_num, $style=''){ if($style){ echo''; } ?>
共有 位講者
講者列表 echo'"; print_r($talk_title); echo ""; $speaker_id = get_speaker_id_by_post_name($v); $imgsrc = get_speaker_photo_imgsrc( $speaker_id+0 ); $speaker = $wpdb->get_row('SELECT * FROM '.TBL_SPEAKERS.' WHERE id='.$speaker_id); $talk_title = $speaker->talk_title??$speaker->talk_title2; $type_prefix = ''; #if(isset($_GET['debug'])){ var_dump($speaker_id);$type_prefix = get_agenda_talk_type_prefix_by($speaker_id).'---';echo$speaker->conf; } $conf = strtoupper($speaker->conf); $name = $speaker->name2??$speaker->name; $box = display_speaker_box($v, $conf, $imgsrc, $name, $type_prefix.$talk_title); echo$box; } echo display_pgr($cat,$PAGESIZE, $cur_page, $total_num); ?>