Example #1
0
 /**
  * Rendert den kompletten Breadcrumbs Pfad für die aktuelle Seite.
  * 
  * @param Zend_Navigation_Container $container
  * @return string
  */
 public function renderStraight(Zend_Navigation_Container $container = null)
 {
     if (null === $container) {
         $container = $this->getContainer();
     }
     $active = $this->findActive($container, 0);
     if ($active) {
         $page = $active['page'];
         $helpPage = $page->helpUrl;
     } else {
         $helpPage = null;
     }
     $html = '<div class="breadcrumbsContainer"><div class="wrapper">';
     if (!is_null($helpPage)) {
         $title = $this->view->translate('page-help-link-title');
         $iconUrl = $this->view->layoutPath() . '/img/theme/admin/ic_help.png';
         $pageUrl = $helpPage;
         // TODO evtl. baseUrl verwenden und helpUrl durch helpUri ersetzen
         $html .= '<a href="' . $pageUrl . '" class="admin-help" target="_blank"><img src="' . $iconUrl . '" width="25" height="20" alt="' . $title . '" title="' . $title . '"/></a>';
     }
     if (is_null($this->replacement)) {
         $html .= parent::renderStraight($container);
     } else {
         $html .= $this->replacement;
     }
     if (!is_null($this->suffix)) {
         if ($this->suffixSeparatorDisabled !== true) {
             $html .= $this->getSeparator();
         }
         $html .= $this->suffix;
     }
     $html .= '</div></div>';
     return strlen($html) ? $this->getIndent() . $html : '';
 }