Exemplo n.º 1
0
 /**
  * Render text node template.
  *
  * @param FormInterface $form
  * @param null|Messages $messages
  *
  * @return string
  */
 private function renderTextNode(FormInterface $form, Messages $messages = null)
 {
     return $this->responseHelper->render('SilvestraTextNodeBundle:TextNode:index.html.twig', array('form' => $form->createView(), 'messages' => $messages));
 }
 /**
  * Render toolbar template.
  *
  * @param NodeInterface $node
  *
  * @return string
  */
 private function renderToolbar(NodeInterface $node)
 {
     return $this->responseHelper->render('TadckaSitemapBundle:Sitemap:toolbar.html.twig', array('node' => $node, 'multi_language_enabled' => $this->routerHelper->multiLanguageIsEnabled(), 'multi_language_locales' => $this->routerHelper->getMultiLanguageLocales(), 'has_controller' => $this->routerHelper->hasController($node->getType())));
 }
 /**
  * Render node content template.
  *
  * @param NodeInterface $node
  * @param array $tabs
  *
  * @return string
  */
 public function renderNodeContent(NodeInterface $node, array $tabs)
 {
     return $this->responseHelper->render('TadckaSitemapBundle:Sitemap:content.html.twig', array('node' => $node, 'tabs' => $tabs, 'has_controller' => $this->routerHelper->hasController($node->getType()), 'multi_language_enabled' => $this->routerHelper->multiLanguageIsEnabled(), 'multi_language_locales' => $this->routerHelper->getMultiLanguageLocales()));
 }
Exemplo n.º 4
0
 /**
  * Render node seo form.
  *
  * @param FormInterface $form
  * @param null|Messages $messages
  *
  * @return string
  */
 private function renderNodeSeoForm(FormInterface $form, Messages $messages = null)
 {
     return $this->responseHelper->render('TadckaSitemapBundle:Node:seo.html.twig', array('form' => $form->createView(), 'messages' => $messages));
 }
Exemplo n.º 5
0
 /**
  * Render node delete confirm.
  *
  * @param NodeInterface $node
  *
  * @return string
  */
 private function renderNodeDeleteConfirm(NodeInterface $node)
 {
     return $this->responseHelper->render('TadckaSitemapBundle:Node:delete.html.twig', array('node_id' => $node->getId()));
 }