/** * Load post data to the template. * * @param IPost $post */ public function load(IPost $post) { $this->template->set('title', $post->getTitle()); $this->template->set('meta_title', $post->metaTitle()); $this->template->set('meta_keywords', $post->metaKeywords()); $this->template->set('meta_description', $post->metaDescription()); }
/** * 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()); }