<?php
namespace App\Controller;
use Pimcore\Controller\FrontendController;
use Symfony\Component\HttpFoundation\Request;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends FrontendController
{
/**
* @Template
* @param Request $request
* @return array
*/
public function defaultAction(Request $request)
{
$showFooterText = false;
$footerBackgroundColor = false;
if($request->get('showFooterText')) {
$showFooterText = $request->get('showFooterText');
}
if($request->get('footerBackgroundColor')) {
$footerBackgroundColor = $request->get('footerBackgroundColor');
}
return [
'showFooterText' => $showFooterText,
'footerBackgroundColor' => $footerBackgroundColor
];
}
/**
* @Template
* @param Request $request
* @return array
*/
public function homeNewAction(Request $request)
{
return $this->render('default/home-new.html.twig', [
]);
}
/**
* @Template
*
* @param Request $request
*
* @return array
*/
public function magnesiumAction(Request $request)
{
return [];
}
/**
* @Template
* @param Request $request
* @return array
*/
public function finConcoursAction(Request $request)
{
return $this->render('default/fin-concours.html.twig', [
]);
}
}