Exemplo n.º 1
0
 /**
  * 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());
 }
Exemplo n.º 2
0
 /**
  * Make the post response.
  *
  * @param PostInterface $post
  */
 public function make(IPost $post)
 {
     //$post->setResponse($this->response->view('admin.posts.view', compact('post')));
     $post->setResponse($this->response->view(\OogleeBConfig::get('config.post_view.view'), compact('post')));
 }
Exemplo n.º 3
0
 /**
  * Make the view content.
  *
  * @param PostInterface $p
  */
 public function make(IPost $post)
 {
     //$post->setContent($this->view->make($post->getLayoutViewPath(), compact('post'))->render());
     $post->setContent($this->view->make(\OogleeBConfig::get('config.post_view.view'), compact('post'))->render());
 }
 /**
  * Handle the command.
  *
  * @return string
  */
 public function handle()
 {
     $data = ['year' => $this->post->created_at->format('Y'), 'month' => $this->post->created_at->format('m'), 'day' => $this->post->created_at->format('d'), 'post' => $this->post->getSlug()];
     return URL::route('post', $data);
 }
 /**
  * Return the view link.
  *
  * @return string
  */
 public function viewLink()
 {
     return \Html::link($this->entity->path(), $this->entity->getTitle(), ['target' => '_blank']);
 }