}

CacheIMS::init(); // set bbox extent

//set the offset parameter
define('MOVE_FACTOR', 0.40);

$selectvalue = $_REQUEST['selectvalues'];

$tabs = new Tabs(selfURL(), "tab", array("Map", "Photo", "What's Here"));

if(!photoURL()) {
    $tabs->hide("Photo");
}

$data = Buildings::bldg_info($selectvalue);
$whats_here = whats_here($data);
$anything_here = (count($whats_here) > 0);
$snippets = snippets($data);

if(!$anything_here) {
  $tabs->hide("What's Here");
}

$tabs_html = $tabs->html($page->branch);
$tab = $tabs->active(); 

$photoURL = photoURL();
$tab = tab();

switch ($page->branch) {
Exemple #2
0
function get_category($category) {
  if (preg_match('/^[enmw]{1,2}$/', $category)) {
    return generate_building_numbers($category);
  } elseif (preg_match('/^\w_\w+$/', $category)) {
    return generate_building_names($category);
  }

  $places = Buildings::category_items($category);
  $result = array();

  foreach ($places as $title => $building) {
    $bldg_info = Buildings::bldg_info($building);
    $bldg_info['displayName'] = $title;
    $result[] = $bldg_info;
  }
  return $result;
}