Skip to the content
Baird Center
|
Miller High Life Theatre
|
Wisconsin Center District
Parking
|
Event Calendar
|
Teams
|
About Us
|
Contact
|
Employment
search field
if( 1==1 ){?> // meganav script rewrite by shank 12/23 ?>
$menu_items = wp_get_nav_menu_items(6); // megaNav menu in Appearance > Menus // this gets child menu items for DRYness. mmmmm... dryness. function get_child_menu_items($menu_items, $parent_id) { return array_filter($menu_items, function ($item) use ($parent_id) { return $item->menu_item_parent == $parent_id; }); } // may as well separate out this display of each individual menu item. MORE DRYNESSSS!! function display_menu_item($item, $menu_items, $is_child = false, $is_topNav = false, $featuredCol = false) { $class = $is_child ? 'submnItem' : 'mnTopNavItem column-break-class'; $child_column_break = get_field('field_654aa6f54f6bb', $item->ID); $featuredLink = get_field('field_654d45ab507a7', $item->ID); $linkedId = $item->object_id; $currentPageID = get_the_ID(); if($linkedId == $currentPageID){ $class .= ' crrPgLnk '; } $class .= $child_column_break ? '' : ''; if($child_column_break == true){ echo '
'; } echo '
'; if($featuredCol){ $featuredClass = ' featuredColItem'; } else { $featuredClass = ''; } if($is_topNav){ echo '
target ? ' target='.$item->target : '') .' class="fakeLink unlinkable menu-item-'.$item->ID.$featuredClass.'">'; echo '
'. $item->title .'
'; } else { echo '
target ? ' target='.$item->target : '') .' class="unlinkable menu-item-'.$item->ID.$featuredClass.'">'; echo '
'. $item->title .'
'; } echo ''; if(!$is_topNav){ $grandchild_items = get_child_menu_items($menu_items, $item->ID); if($grandchild_items){ echo '
'; foreach($grandchild_items as $gchild_item){ echo '
'; echo '
target ? ' target='.$gchild_item->target : '') .' class="menu-item-'.$item->ID.'">'; echo '
'. $gchild_item->title .'
'; echo '
'; } echo '
'; } } if($is_child){echo '
';}; } // Start of the navigation menu echo '
'; echo '
'; $topNavItemCount = 0; $navCTAfields = acf_get_fields('group_654d4b5ae262e'); foreach ($menu_items as $menu_item) { if ($menu_item->menu_item_parent == 0) { // top-level items // Display top-level menu item display_menu_item($menu_item, $menu_items, false, true); $child_items = get_child_menu_items($menu_items, $menu_item->ID); if (!empty($child_items)) { echo '
'; $featureds = []; $colCount = 1; $hasFeaturedLinks = false; // Get The CTA for this panel $thisCTAID = $navCTAfields[$topNavItemCount]['key']; $thisCTA = get_field($thisCTAID, 'option'); $thisTitle = $thisCTA['cta_title']; $thisImgURL = $thisCTA['cta_image']; $thisDescrip = $thisCTA['cta_description']; $thisTargetPostURL = get_permalink($thisCTA['link']); $thisBtnTxt = $thisCTA['custom_button_text']; echo '
'; echo '
'; echo '
'; echo '
'; echo $thisTitle; echo '
'; echo '
'; echo $thisDescrip; echo '
'; echo '
'; echo '
target){ echo ' target='.$menu_item->target; } echo '>'; if($thisBtnTxt){ echo $thisBtnTxt; }else{ echo 'READ MORE'; } echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; foreach ($child_items as $child_item) { $featuredLink = get_field('field_654d45ab507a7', $child_item->ID); if($featuredLink){ $hasFeaturedLinks = true; $featureds[$child_item->ID] = $child_item; } else { // Display child menu item display_menu_item($child_item, $menu_items, true, false, false); } } echo '
'; if($hasFeaturedLinks){ echo '
'; foreach($featureds as $featuredItemObj){ display_menu_item($featuredItemObj, $menu_items, true, false, true); } } echo '
'; // end the dropdown $topNavItemCount++; } else { // make the news if it's the WCD site // if($menu_item->ID = 820){ // echo '
'; // include(locate_template('meganav-newsroom.php')); // echo '
'; // } // No children logic echo ''; } } } echo '
'; echo '
'; // and that's that. time for javascript: ?>
BOOK YOUR
EVENT
} else { ?> // meganav script by shank 11/23 ?> if(1 == 1){ ?>
$menu_items = wp_get_nav_menu_items(6); // menu 6 is the MegaNav one echo '
'; echo '
'; $topNavItemCount = 0; // get the field IDs from the options page, so we can get the CTA subfields later $navCTAfields = acf_get_fields('group_654d4b5ae262e'); foreach ($menu_items as $menu_item) { if ($menu_item->menu_item_parent == 0) { // top-level items // Get ACF field value $column_break = get_field('field_654aa6f54f6bb', $menu_item); echo '
'; echo '
'. $menu_item->title .'
'; // Check if this menu item has children $child_items = array_filter($menu_items, function ($child) use ($menu_item) { return $child->menu_item_parent == $menu_item->ID; }); if ($child_items) { $colCount = 1; $hasFeaturedLinks = false; // echo '
'; // print_r($navCTAfields); // echo '
'; // Get The CTA for this panel $thisCTAID = $navCTAfields[$topNavItemCount]['key']; $thisCTA = get_field($thisCTAID, 'option'); $thisTitle = $thisCTA['cta_title']; $thisImgURL = $thisCTA['cta_image']; $thisDescrip = $thisCTA['cta_description']; $thisTargetPostURL = get_permalink($thisCTA['link']); $thisBtnTxt = $thisCTA['custom_button_text']; echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; echo $thisTitle; echo '
'; echo '
'; echo $thisDescrip; echo '
'; echo '
'; echo '
'; if($thisBtnTxt){ echo $thisBtnTxt; }else{ echo 'READ MORE'; } echo '
'; echo '
'; echo '
'; echo '
'; echo '
'; foreach ($child_items as $child_item) { // these ACF fields are in the actual menu items in Appearance > Menus $child_column_break = get_field('field_654aa6f54f6bb', $child_item); $featuredLink = get_field('field_654d45ab507a7', $child_item); if($featuredLink){ $hasFeaturedLinks = true; continue; }; echo '
'; echo '
'. $child_item->title .'
'; echo '
'; if($child_column_break){ $colCount++; echo '
'; echo '
'; } } echo '
'; if($hasFeaturedLinks){ echo '
'; foreach ($child_items as $child_item) { $featuredLink = get_field('field_654d45ab507a7', $child_item); if(!$featuredLink){ continue; }; echo '
'; echo '
'. $child_item->title .'
'; echo '
'; } echo '
'; } echo '
'; $topNavItemCount++; } echo '
'; } } echo '
'; echo '
'; ?>
BOOK YOUR
EVENT
} else { ?>
Events and Tickets
Before You Go
Promoters and Event Planners
Our Story
BOOK YOUR
EVENT
} ?> } ?>
Events and Tickets
Event Calendar
Box Office
Bag Policy
Before You Go
Parking
Bag Policy
A-Z Guide
Where to Stay
Where to Eat
VISIT Milwaukee
Promoters and Event Planners
Advertising Opportunities
Promoters
Event Planners
Event Spaces
Floor Plan
Meetings
Weddings/Special Events
Our Story
Wisconsin Athletic Hall of Fame
Partners and Sponsors
Parking
Event Calendar
Teams
About Us
Contact
Employment
target="_blank" endif; ?>>
Book Your Event the_sub_field('cta_button_text'); ?>
Baird Center
Miller High Life Theater
Wisconsin Center District
0 events found.
Notice
There were no results found.
Notice
There were no results found.
Events Search and Views Navigation
Search
Enter Keyword. Search for Events by Keyword.
Find Events
Event Views Navigation
List
List
Month
Day
Events
Today
Upcoming
Upcoming
Select date.
Previous
Events
Today
Next
Events
Subscribe to calendar
Google Calendar
iCalendar
Outlook 365
Outlook Live
Export .ics file
Export Outlook .ics file
// tribe events styles ?>