diff options
author | Simounet <contact@simounet.net> | 2016-06-06 20:59:20 +0200 |
---|---|---|
committer | Simounet <contact@simounet.net> | 2016-07-20 19:36:01 +0200 |
commit | 39f27d6370c5d280375b2e1f93de464ecf5f4f96 (patch) | |
tree | 9c38c41251ba552cc6b50a48389dc1216cab50bd /src/Wallabag/CoreBundle/Controller | |
parent | 317fc6e684356b645ea1327c2631c7d5fc193ddd (diff) | |
download | wallabag-39f27d6370c5d280375b2e1f93de464ecf5f4f96.tar.gz wallabag-39f27d6370c5d280375b2e1f93de464ecf5f4f96.tar.zst wallabag-39f27d6370c5d280375b2e1f93de464ecf5f4f96.zip |
Handling socials links into a config file
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/FooterController.php | 26 | ||||
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/StaticController.php | 3 |
2 files changed, 28 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/FooterController.php b/src/Wallabag/CoreBundle/Controller/FooterController.php new file mode 100644 index 00000000..de809332 --- /dev/null +++ b/src/Wallabag/CoreBundle/Controller/FooterController.php | |||
@@ -0,0 +1,26 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Controller; | ||
4 | |||
5 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; | ||
6 | |||
7 | class FooterController extends Controller | ||
8 | { | ||
9 | /** | ||
10 | * Display the footer | ||
11 | * | ||
12 | * @return \Symfony\Component\HttpFoundation\Response | ||
13 | */ | ||
14 | public function indexAction() | ||
15 | { | ||
16 | $addonsUrl = $this->container->getParameter('addons_url'); | ||
17 | $socialsUrl = $this->container->getParameter('socials_url'); | ||
18 | return $this->render( | ||
19 | 'WallabagCoreBundle::footer.html.twig', | ||
20 | [ | ||
21 | 'addonsUrl' => $addonsUrl, | ||
22 | 'socialsUrl' => $socialsUrl | ||
23 | ] | ||
24 | ); | ||
25 | } | ||
26 | } | ||
diff --git a/src/Wallabag/CoreBundle/Controller/StaticController.php b/src/Wallabag/CoreBundle/Controller/StaticController.php index b41302f8..f5fcabd8 100644 --- a/src/Wallabag/CoreBundle/Controller/StaticController.php +++ b/src/Wallabag/CoreBundle/Controller/StaticController.php | |||
@@ -12,9 +12,10 @@ class StaticController extends Controller | |||
12 | */ | 12 | */ |
13 | public function howtoAction() | 13 | public function howtoAction() |
14 | { | 14 | { |
15 | $addonsUrl = $this->container->getParameter('addons_url'); | ||
15 | return $this->render( | 16 | return $this->render( |
16 | 'WallabagCoreBundle:Static:howto.html.twig', | 17 | 'WallabagCoreBundle:Static:howto.html.twig', |
17 | [] | 18 | ['addonsUrl' => $addonsUrl] |
18 | ); | 19 | ); |
19 | } | 20 | } |
20 | 21 | ||