"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 community edition return; } $id = strgen(); // Detect allowed screen ratio for current browser, cached! $ua_info = detect_browser(); ?> '); if ($count > 5) { foreach ($array['entries'] as $entry => $entry_data) { $image = get_icon('location'); if ($entry_data['level'] === "location_country") { $entry = country_from_code($entry); $image = get_icon_country($entry); } elseif ($entry_data['level'] === "location") { $name = ($entry === '' ? OBS_VAR_UNSET : escape_html($entry)); echo('