Programs Page
programs-page
Show \”no courses\” message?
show_no_courses_message
Additional Comments
additional_comments
Instructor List
Instructor Bios Print this page
Instructor Shortcode
// — Helpers (declared once, safe to redefine-check) — if (!function_exists(\’atws_normalize_lower\’)) { function atws_normalize_lower(string $s): string { // Trim, collapse whitespace, strip trailing punctuation, lowercase $s = trim(preg_replace(\’/\\s+/u\’, \’ \’, $s)); $s = preg_replace(\’/[.,]+$/u\’, \’\’, $s); return function_exists(\’mb_strtolower\’) ? mb_strtolower($s, \’UTF-8\’) : strtolower($s); } } if (!function_exists(\’atws_strip_suffixes\’)) { function atws_strip_suffixes(array $parts): array { if (!$parts) […]
Instructor Bio Popup
function course_instructor_popup_shortcode($atts) { $atts = shortcode_atts([ \’id\’ => null, ], $atts); $post_id = $atts[\’id\’] ? intval($atts[\’id\’]) : get_the_ID(); if (!$post_id || get_post_type($post_id) !== \’course\’) { return \’\’; } $instructor = get_field(\’instructor\’, $post_id); $bio = get_field(\’instructor_bio\’, $post_id); if (!$instructor || !$bio) return \’\’; // Ensure unique ID for multiple modals $unique_id = \’instructorModal_\’ . $post_id; ob_start(); […]
Session 11
session_11
Session 12
session_12
Session 13
session_13
Session 14
session_14