X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/ea8d95259b157f503d27bd6a842ed2a687317216..ff9e7c39f22c3a65b416c8f00a7a0f1f83e16758:/Controller/AbstractController.php?ds=sidebyside diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 8a10b87..fc1d699 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -487,6 +487,7 @@ abstract class AbstractController extends BaseAbstractController implements Serv //Append facebook image texts $parameters['facebook']['texts'] += [ $parameters['title'] => [ + 'font' => 'irishgrover', 'align' => 'left' ]/*XXX: same problem as url, too long :'(, $parameters['description'] => [ @@ -509,6 +510,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