Exemplo n.º 1
0
 /**
  * Return the content for the page, or blocks of content.
  * @return array|string
  */
 public function getContent($id = null)
 {
     if (!$this->processed) {
         try {
             $this->processed = HTMLProcessor::parse($this->content)->uses($this);
         } catch (\Exception $e) {
             return $this->content;
         }
     }
     return is_string($id) ? $this->processed->getId($id) : $this->processed->render();
 }