<?php
/**
* Created by Elements.at New Media Solutions GmbH
*
*/
namespace App\Controller;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class ContentController extends AbstractController
{
public function portalAction(Request $request): Response
{
return $this->render('content/portal.html.twig');
}
public function contentAction(Request $request): Response
{
return $this->render('content/content.html.twig');
}
public function hubAction(Request $request): Response
{
return $this->render('content/hub.html.twig');
}
public function microSiteAction(Request $request): Response
{
return $this->render('content/microSite.html.twig');
}
/**
* @param Request $request
*
* @Route("/{_locale}/dynamic-modal", name="dynamic_modal")
*
* @return Response
*/
public function modalAction(Request $request): Response
{
$template = $this->renderTemplate('content/partials/info-modal-content.html.twig');
return $this->json(['success' => true, 'html' => $template->getContent()], 200);
}
}