Esempio n. 1
0
 /**
  * Setup link meta data.
  *
  * @param ParamsEntity $link
  */
 protected function _setupMetaData(ParamsEntity $link)
 {
     $params = $link->params();
     //  Setup page title by params.
     if ($pageTitle = $params->get('meta_title')) {
         $this->_view->assign('page_title', $pageTitle);
     }
     //  Setup page keywords by params.
     if ($pageKeys = $params->get('meta_keys')) {
         $this->_view->assign('meta_keywords', $pageKeys);
     }
     //  Setup page description by params.
     if ($pageDesc = $params->get('meta_desc')) {
         $this->_view->assign('meta_description', $pageDesc);
     }
 }