Ejemplo n.º 1
0
 private function prepareContent(&$content)
 {
     // See if there's any audio files to process.
     $audios = EB::audio()->getItems($content);
     // Get videos attached in the content
     $videos = $this->getVideos($content);
     $video = false;
     if (isset($videos[0])) {
         $video = $videos[0];
     }
     // Remove videos from the source
     $content = EB::videos()->strip($content);
     // Remove audios from the content
     $content = EB::audio()->strip($content);
     $this->set('video', $video);
     $this->set('audios', $audios);
     $this->set('date', $date);
     $this->set('permalink', $url);
     $this->set('blog', $blog);
     $this->set('actor', $item->actor);
     $this->set('content', $content);
     $catUrl = EBR::_('index.php?option=com_easyblog&view=categories&layout=listings&id=' . $blog->category_id, true, null, false, true);
     $this->set('categorypermalink', $catUrl);
     $item->title = parent::display('streams/' . $item->verb . '.title');
     $item->content = parent::display('streams/' . $item->verb . '.content');
 }