コード例 #1
0
 /**
  * Load category data to the template.
  *
  * @param ICategory $category
  */
 public function load(ICategory $category)
 {
     $this->template->set('title', $category->getTitle());
     $this->template->set('meta_title', $category->metaTitle());
     $this->template->set('meta_keywords', $category->metaKeywords());
     $this->template->set('meta_description', $category->metaDescription());
 }
コード例 #2
0
 /**
  * Return the view link.
  *
  * @return string
  */
 public function viewLink()
 {
     return \Html::link($this->entity->path(), $this->entity->getTitle(), ['target' => '_blank']);
 }