Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated DemoBundle #12

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 21 additions & 8 deletions src/Workshop/DemoBundle/Template/DemoFullscreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,32 @@

use Mapbender\CoreBundle\Template\Fullscreen;

/**
* Template DemoFullscreen
*
* @author Astrid Emde
*/
class DemoFullscreen extends Fullscreen
{
protected static $title = 'Fullscreen Template Workshop';
protected static $css = array(
protected static $title = "Fullscreen Template Workshop";
protected static $regions = array('toolbar', 'sidepane', 'content', 'footer');
protected static $regionsProperties = array(
'sidepane' => array(
'tabs' => array(
'name' => 'tabs',
'label' => 'mb.manager.template.region.tabs.label'),
'accordion' => array(
'name' => 'accordion',
'label' => 'mb.manager.template.region.accordion.label')
)
);
protected static $css = array(
'@MapbenderCoreBundle/Resources/public/sass/template/fullscreen.scss',
'@WorkshopDemoBundle/Resources/public/demo_fullscreen.scss',
);
protected static $js = array(
'@FOMCoreBundle/Resources/public/js/frontend/sidepane.js',
'@FOMCoreBundle/Resources/public/js/frontend/tabcontainer.js',
'@MapbenderCoreBundle/Resources/public/mapbender.container.info.js',
'/components/jquerydialogextendjs/jquerydialogextendjs-built.js',
"/components/vis-ui.js/vis-ui.js-built.js"
);

public $twigTemplate = 'WorkshopDemoBundle:Template:demo_fullscreen.html.twig';

}

40 changes: 16 additions & 24 deletions src/Workshop/DemoBundle/WorkshopDemoBundle.php
Original file line number Diff line number Diff line change
@@ -1,41 +1,33 @@
<?php

/*
* This file is part of the Mapbender 3 project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Workshop\DemoBundle;

use Mapbender\CoreBundle\Component\MapbenderBundle;


/**
* WorkshopDemo
*
* @author Astrid Emde
*/
class WorkshopDemoBundle extends MapbenderBundle
{


/**
* @inheritdoc
* Return list of element classes provided by this bundle.
* Each entry in the array is a fully qualified class name.
*
* @return string[]
*/
public function getTemplates()
public function getElements()
{
return array('Workshop\DemoBundle\Template\DemoFullscreen');
return array(
// 'Workshop\DemoBundle\Element\MapKlick',
);
}



/**
* @inheritdoc
* Return list of template classes provided by this bundle.
* Each entry in the array is a fully qualified class name.
*
* @return string[]
*/
public function getElements()
public function getTemplates()
{
return array(
// 'Workshop\DemoBundle\Element\MapKlick',
);
return array('Workshop\DemoBundle\Template\DemoFullscreen');
}

}