/** * Get the current page keywords * * @return string Keywords for the current page * */ public function getKeywords() { if ($this->currentPage) { return $this->currentPage->getKeywords(); } return ''; }
private function _addPageToTree(\Ip\Page $page) { $children = array('text' => $page->getTitle(), 'icon' => 'fa fa-file-text', 'li_attr' => (object) array('data-url' => $page->getLink()), 'children' => array()); foreach ($page->getChildren() as $child) { $children['children'][] = $this->_addPageToTree($child); } return $children; }