예제 #1
0
//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) {
 case 'Touch':
   $width = 200;
   $height = 200;
예제 #2
0
 public function snippets($data)
 {
     $attributes = $this->attributes();
     return snippets($attributes, $data);
 }