예제 #1
0
 protected function renderTopNavigationBar()
 {
     $ds = $this->getDataSource();
     $subCanvas = $this->getCurrentCanvas();
     $str = '<div class="dh_actions">';
     $canvasCount = 0;
     foreach ($this->canvasList as $canvas) {
         $label = $canvas->getLabel();
         if (is_null($label) || $label == '') {
             continue;
         }
         $selected = $canvas->getTag() == $this->currentCanvasTag;
         if ($canvasCount > 0) {
             /* put a vertical bar to separate from the previous one */
             $str .= OpfHelperHtmlSite::pipe();
         }
         // if
         $str .= $this->constructNavigationUrl($canvas, $selected);
         $canvasCount++;
     }
     // foreach
     $str .= '</div>';
     // dh_actions
     return $str;
 }