public function filter($tpl_output, $smarty)
 {
     // Are we front or back?
     if ($this->parser->getTemplateDefinition()->getType() == TemplateDefinition::FRONT_OFFICE) {
         $event = new DiaporamaHtmlEvent();
         $event->setEntityDescription($tpl_output);
         $event->setDispatcher($this->dispatcher);
         $this->dispatcher->dispatch(DiaporamaEvents::DIAPORAMA_PARSE_FRONT, $event);
         return $event->getEntityDescription();
     } else {
         return $tpl_output;
     }
 }