protected function _assignTokens()
 {
     global $phpAnvil;
     $this->_head->render();
     $this->_head->html .= $this->_preClientScript;
     $this->_tokenArray['head'] = (array) $this->_head;
     //        $this->_assign('head', (array)$this->_head);
     //        $this->_assign('postClientScript', $this->_postClientScript);
     //        $this->_assign('page', $this->page);
     //---- Prepare Breadcrumbs ---------------------------------------------
     $count = count($this->_breadcrumbTitle);
     $html = '';
     if ($count > 0) {
         $html .= '<ul class="breadcrumb">';
         for ($i = 0; $i < $count; $i++) {
             $html .= '<li>';
             if (!empty($this->_breadcrumbURL[$i])) {
                 if (strpos($this->_breadcrumbURL[$i], 'http') === false) {
                     $html .= '<a href="' . $phpAnvil->site->webPath . $this->_breadcrumbURL[$i] . '">';
                 } else {
                     $html .= '<a href="' . $this->_breadcrumbURL[$i] . '">';
                 }
             }
             $html .= $this->_breadcrumbTitle[$i];
             if (!empty($this->_breadcrumbURL[$i])) {
                 $html .= '</a>';
             }
             $html .= ' <span class="divider">' . $this->breadcrumbDivider . '</span>';
             $html .= '</li>';
         }
         $html .= '</ul>';
     }
     //        $this->_assign('breadcrumbs', $html);
     $this->_tokenArray['page']['breadcrumbs'] = $html;
     //---- Assign Tokens to Template ---------------------------------------
     //        $this->_logDebug($this->_tokenArray, 'tokenArray');
     $tokenKeys = array_keys($this->_tokenArray);
     $count = count($tokenKeys);
     //        $this->_logDebug($count, '$count');
     for ($i = 0; $i < $count; $i++) {
         $this->_assign($tokenKeys[$i], $this->_tokenArray[$tokenKeys[$i]]);
     }
 }
 public function assignTokens()
 {
     global $phpAnvil;
     $this->head->render();
     $this->head->html .= $this->_preClientScript;
     $this->assign('head', (array) $this->head);
     $this->assign('postClientScript', $this->_postClientScript);
     $this->assign('page', $this->page);
     //---- Prepare Breadcrumbs ---------------------------------------------
     $count = count($this->_breadcrumbTitle);
     $html = '';
     if ($count > 0) {
         $html .= '<ul class="breadcrumb">';
         for ($i = 0; $i < $count; $i++) {
             $html .= '<li';
             //                if ($i === ($count-1)) {
             //                    $html .= ' class="active">';
             //                    $html .= $this->_breadcrumbTitle[$i];
             //                } else {
             $html .= '>';
             if (!empty($this->_breadcrumbURL[$i])) {
                 $html .= '<a href="' . $phpAnvil->site->webPath . $this->_breadcrumbURL[$i] . '">';
             }
             $html .= $this->_breadcrumbTitle[$i];
             if (!empty($this->_breadcrumbURL[$i])) {
                 $html .= '</a>';
             }
             $html .= ' <span class="divider">' . $this->breadcrumbDivider . '</span>';
             //                }
             $html .= '</li>';
         }
         $html .= '</ul>';
     }
     $this->assign('breadcrumbs', $html);
     //        $this->assign('alerts', $this->alerts->renderControls());
 }