1: <?php
2:
3: namespace Mapbender\CoreBundle\Template;
4:
5: use Mapbender\CoreBundle\Component\Template;
6:
7: 8: 9: 10: 11:
12: class Fullscreen extends Template
13: {
14:
15: 16: 17:
18: public static function getTitle()
19: {
20: return 'Fullscreen template';
21: }
22:
23: 24: 25:
26: public function getAssets($type)
27: {
28: parent::getAssets($type);
29: $assets = array(
30: 'css' => array('@FOMCoreBundle/Resources/public/css/frontend/fullscreen.css'),
31: 'js' => array(),
32: );
33:
34: return $assets[$type];
35: }
36:
37: 38: 39:
40: public static function getRegions()
41: {
42: return array('toolbar', 'sidepane', 'content', 'footer');
43: }
44:
45: 46: 47:
48: public function render($format = 'html', $html = true, $css = true,
49: $js = true)
50: {
51: $templating = $this->container->get('templating');
52: return $templating
53: ->render('MapbenderCoreBundle:Template:fullscreen.html.twig',
54: array(
55: 'html' => $html,
56: 'css' => $css,
57: 'js' => $js,
58: 'application' => $this->application));
59: }
60:
61: }