Esempio n. 1
0
 public function addSurveyBlock(TemplatePostEvent $event)
 {
     $post = $event->getPost();
     $repo = $this->em->getRepository('SymbbExtensionSurveyBundle:Survey');
     $survey = $repo->findOneBy(array('post' => $post));
     $event->render('SymbbExtensionSurveyBundle:Post:survey.html.twig', array('post' => $post, 'survey' => $survey));
 }
Esempio n. 2
0
 public function addPostEventBox(\Symbb\Core\EventBundle\Event\TemplatePostEvent $event)
 {
     $event->render('SymbbExtensionCalendarBundle:Post:event.html.twig', array('calendarEvent' => array()));
 }
Esempio n. 3
0
 public function beforeActions(\Symbb\Core\EventBundle\Event\TemplatePostEvent $event)
 {
     $event->render('SymbbExtensionRatingBundle:Post:rating.html.twig', array("post" => $event->getPost()));
 }