Add fullscreen control.

This commit is contained in:
David Molineus
2015-01-20 17:36:19 +01:00
parent 0c1df3b6d9
commit 8ddfdc753b
5 changed files with 129 additions and 52 deletions

View File

@@ -119,7 +119,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
),
'loading extends default' => array(
'config' => array('separate', 'zoomControl', 'spinjs')
)
),
'fullscreen extends default' => array(
'config' => array('buttonTitle', 'separate', 'simulateFullScreen')
),
),
'metasubpalettes' => array(
@@ -399,5 +402,21 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
),
'sql' => "mediumtext NULL"
),
'simulateFullScreen' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['simulateFullScreen'],
'exclude' => true,
'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50 m12'),
'sql' => "char(1) NOT NULL default ''"
),
'buttonTitle' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['buttonTitle'],
'exclude' => true,
'inputType' => 'text',
'eval' => array('mandatory' => false, 'maxlength' => 255, 'tl_class' => 'w50'),
'sql' => "varchar(255) NOT NULL default ''"
),
),
);