/**
  * Generate the content element
  */
 protected function compile()
 {
     // Compile article element
     $arrTabs = deserialize($this->foundation_tabs_content, true);
     if (!empty($arrTabs)) {
         foreach ($arrTabs as &$arrItem) {
             if (isset($arrItem['article'])) {
                 $arrItem['content'] = \Controller::getArticle($arrItem['article'], false, true);
             }
         }
     }
     $this->Template->tabs = $arrTabs;
     $this->Template->foundation_tabs_direction = $this->foundation_tabs_direction;
     // !@TODO
     // active tabs by url
     // in backend somehow to setup active tab
 }
 protected function renderArticle($objChild)
 {
     $objArticles = \ArticleModel::findPublishedById($objChild->articleAlias);
     if ($objArticles === null) {
         return '';
     }
     if (!\Controller::isVisibleElement($objArticles)) {
         return '';
     }
     return \Controller::getArticle($objArticles);
 }