From: Raphaƫl Gertz Date: Mon, 24 Oct 2022 05:36:57 +0000 (+0200) Subject: Add default locations_link and locations_title X-Git-Tag: 0.3.0~161 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/2b4888e4a7a40ec60ec9c876c54d4eab6dbb4c32 Add default locations_link and locations_title --- diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 8a10b87..f06178d 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -509,6 +509,18 @@ abstract class AbstractController extends BaseAbstractController implements Serv }*/ } + //With empty locations link + if (empty($parameters['locations_link'])) { + //Set locations link + $parameters['locations_link'] = $this->router->generate('rapsys_air_location'); + } + + //With empty locations title + if (empty($parameters['locations_title'])) { + //Set locations title + $parameters['locations_title'] = $this->translator->trans('Locations', [], null, $this->locale); + } + //With canonical if (!empty($parameters['canonical'])) { //Set facebook url