<?php

defined('_GOOFY') or die;
$html = null;
$bar_title = "Registration is Officially Closed";
$call_parts = wed_getSystemValue('CALL_PARTS');
$control = isset($call_parts[0]) ? $call_parts[0] : null;
$group = isset($call_parts[1]) ? $call_parts[1] : null;
if ($control == 'register' && !is_null($group)) {
    $ontime = false;
    $sport = ucfirst($group);
    $start = false;
    $end = false;
    $early = $sport . '_registration_early';
    $standard = $sport . '_registration';
    $schedule_db = wed_getDBObject('wed_schedules');
    $title = 'Deadline is approaching!';
    if (wed_getMomentInTime(array('schedule' => $early)) && $schedule_db->getRecordByCode($early)) {
        $start = $schedule_db->getValue('start');
        $end = $schedule_db->getValue('end');
        $title = 'Early Deadline is approaching!';
        $ontime = true;
    } elseif (wed_getMomentInTime(array('schedule' => $standard)) && $schedule_db->getRecordByCode($standard)) {
        $start = $schedule_db->getValue('start');
        $end = $schedule_db->getValue('end');
        $ontime = true;
    }
    if ($ontime) {
        $dt_end = new DateTime($end);
        $end_date = $dt_end->format("m/d/Y");
        $bar_title = '[countdown title="' . $title . '" date="' . $end_date . '" /]';
function kly_showBrackets($options = array(), $content = '')
{
    $html = null;
    $call_parts = wed_getSystemValue('CALL_PARTS');
    $sport = isset($call_parts[1]) ? $call_parts[1] : null;
    if (!is_null($sport)) {
        $groupDb = wed_getDBObject('content_groups');
        if ($groupDb->checkGroupSysName($sport)) {
            $sport = $groupDb->getValue('code');
            $file = 'http://www.alagames.com/brackets-online/index.php?sport=' . $sport;
            $curlobj = wed_getCurlObject(array('URL' => $file));
            $html = $content . $curlobj->getOutput();
        }
    }
    return $html;
}
<?php

$menu_db = wed_getDBObject('wed_menus_connect');
$menu_db->searchMenuCode('stategames_top_menu');
$menu_array = $menu_db->buildMenuArray();
$menu_options = array();
$menu_options['TYPE'] = 'wed_menu';
$menu_options['NAME'] = 'top_menu';
$menu_options['LIST'] = $menu_db->buildMenuArray();
$menu_html = wed_getPresentation($menu_options);
// Start Program Bar
$pmenu_db = wed_getDBObject('wed_menus_connect');
$pmenu_db->searchMenuCode('asf_programs_bar');
$pmenu_array = $pmenu_db->buildMenuArray();
$pmenu_options = array();
$pmenu_options['TYPE'] = 'wed_menu';
$pmenu_options['NAME'] = 'top_menu';
// menu formats
$pmenu_options['LIST'] = $pmenu_db->buildMenuArray();
$pmenu_html = wed_getPresentation($pmenu_options);
?>


<header class="navbar navbar-inverse navbar-fixed-top navbar-inverse fhmm" role="banner"> 
  
  <!--
<div class="row" style="background-color:#bbb;">
  	<div class="container">
  	<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
		<ul class="nav navbar-nav">       
		<?php