Exemplo n.º 1
0
 function getLink($page_info, $treat_title = false)
 {
     $model = $this->getDefaultModel();
     $link = '<a href="' . PageController::getHref($page_info) . '"' . PageController::getTarget($page_info) . '>';
     $title = $page_info['title'];
     if (is_callable($treat_title)) {
         $title = call_user_func($treat_title, $title);
     }
     if ($page_info['active'] == 0) {
         $title = '[' . $title . ']';
     } else {
         if ($page_info['visible'] == 0) {
             $title = '(' . $title . ')';
         }
     }
     $link .= $title;
     $link .= '</a>';
     return $link;
 }