"Apps", 'class' => "navbar-narrow", 'options' => array('mysql' => array('text' => "MySQL", 'url' => generate_url($vars, * 'app' => "mysql"))))) * * @param array $vars * * @return null * */ function print_tabbar($tabbar) { $output = '
'; echo $output; } /** * Generate Bootstrap-format navigation bar * * A little messy, but it works and lets us move to having no navbar markup on pages :) * Examples: * print_navbar(array('brand' => "Apps", 'class' => "navbar-narrow", 'options' => array('mysql' => array('text' => "MySQL", 'url' => generate_url($vars, * 'app' => "mysql"))))) * * @param array $vars * * @return void * */ function print_navbar($navbar) { global $config; if (OBSERVIUM_EDITION === 'community' && isset($navbar['community']) && $navbar['community'] === FALSE) { // Skip nonexistent features on a community edition return; } $id = random_string(); // Detect an allowed screen ratio for current browser, cached! $ua_info = detect_browser(); ?> '); if ($count > 5) { foreach ($array['entries'] as $entry => $entry_data) { $icon = 'location'; if ($entry_data['level'] === "location_country") { $entry = $entry === '' ? OBS_VAR_UNSET : country_from_code($entry); $icon = get_icon_country($entry); } elseif ($entry_data['level'] === "location") { $name = $entry === '' ? OBS_VAR_UNSET : $entry; echo('