Esempio n. 1
0
 function actions()
 {
     if ($this->actions_cache !== null) {
         return $this->actions_cache;
     }
     $this->actions_cache = array();
     foreach ($this->explorer->registered_actions() as $action_id => $action) {
         if ($action->mime_types) {
             if (!in_array($this->mime_type(), $action->mime_types)) {
                 continue;
             }
         }
         if ($action->not_mime_types) {
             if (in_array($this->mime_type(), $action->not_mime_types)) {
                 continue;
             }
         }
         if (method_exists($action, 'match')) {
             if (!$action->match($this)) {
                 continue;
             }
         }
         $this->actions_cache[$action_id] = $action;
     }
     weight_sort($this->actions_cache);
     return $this->actions_cache;
 }
Esempio n. 2
0
$menu_short=array();
call_hooks("main_menu_short", &$menu_short);
$menu_short=weight_sort($menu_short);
$menu_short=implode(" |\n", $menu_short);

$menu_list[]=array(5,
  "<div id='menu'>\n".
  "<div id='user_info'>{$current_user->login_info()}</div>\n".
  "<div id='main_links'>{$main_links}</div>\n".
  "<div id='menu_short'>{$menu_short}</div>\n".
  "</div>\n");

call_hooks("menu_show", &$menu_list);

$menu_list=weight_sort($menu_list);
foreach($menu_list as $entry) {
  print $entry;
}

?>
</div> <!-- #content_container -->
</div> <!-- #sidebar -->
</div> <!-- #sidebar_container -->
<?
//show_lang_select();
?>

<div id='map_container'>
<div class="map" id="map">