forked from Snck3rs/contao-leaflet-maps
Adjust layers tree view.
This commit is contained in:
5
CREDITS.md
Normal file
5
CREDITS.md
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
Layers icon
|
||||
[Fatcow Web Hosting](http://www.fatcow.com/free-icons)
|
||||
http://creativecommons.org/licenses/by/4.0/
|
||||
20
module/assets/css/backend.css
Normal file
20
module/assets/css/backend.css
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
.tl_listing_container.tree_view ul > li.tl_file {
|
||||
background: url('./../img/folPlus.gif') no-repeat 6px 1px;
|
||||
}
|
||||
|
||||
.tl_listing_container.tree_view > ul > li.tl_file {
|
||||
padding-left: 26px;
|
||||
}
|
||||
|
||||
.tl_listing_container.tree_view ul > li.parent > ul {
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.tl_listing_container.tree_view ul > li > .tl_left > a {
|
||||
margin-left: -20px;
|
||||
}
|
||||
|
||||
.tl_listing_container.tree_view ul[class="level_1"] li.tl_file > .tl_left {
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
BIN
module/assets/img/folPlus.gif
Normal file
BIN
module/assets/img/folPlus.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 222 B |
BIN
module/assets/img/layers.png
Normal file
BIN
module/assets/img/layers.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 863 B |
@@ -6,6 +6,7 @@
|
||||
$GLOBALS['BE_MOD']['content']['leaflet'] = array(
|
||||
'tables' => array('tl_leaflet_map', 'tl_leaflet_layer'),
|
||||
'icon' => 'system/modules/leaflet/assets/img/leaflet.png',
|
||||
'stylesheet' => 'system/modules/leaflet/assets/css/backend.css',
|
||||
);
|
||||
|
||||
/*
|
||||
|
||||
@@ -19,7 +19,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
|
||||
(
|
||||
'mode' => 5,
|
||||
'fields' => array('title'),
|
||||
'flag' => 1
|
||||
'flag' => 1,
|
||||
'icon' => 'system/modules/leaflet/assets/img/layers.png'
|
||||
),
|
||||
'label' => array
|
||||
(
|
||||
|
||||
@@ -20,7 +20,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
||||
(
|
||||
'mode' => 1,
|
||||
'fields' => array('title'),
|
||||
'flag' => 1
|
||||
'flag' => 1,
|
||||
),
|
||||
'label' => array
|
||||
(
|
||||
@@ -33,7 +33,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
||||
(
|
||||
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'],
|
||||
'href' => 'table=tl_leaflet_layer',
|
||||
'class' => 'header_edit_all',
|
||||
'icon' => 'system/modules/leaflet/assets/img/layers.png',
|
||||
'attributes' => 'onclick="Backend.getScrollOffset();" accesskey="e"'
|
||||
),
|
||||
'all' => array
|
||||
|
||||
@@ -6,6 +6,19 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['zoom_legend'] = 'Center and zoom';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['controls_legend'] = 'Control widgets';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['expert_legend'] = 'Expert settings';
|
||||
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][0] = 'Manage layers';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['layers'][1] = 'Manage leaflet layers';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][0] = 'Create map';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][1] = 'Create new map';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][0] = 'Edit map';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][1] = 'Edit map ID %s';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][0] = 'Copy map';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][1] = 'Copy map ID %s';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][0] = 'Delete map';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][1] = 'Delete map ID %s';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][0] = 'Show details';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][1] = 'Show map ID %s details';
|
||||
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][0] = 'Title';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['title'][1] = 'Title of the map.';
|
||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['alias'][0] = 'Alias';
|
||||
|
||||
Reference in New Issue
Block a user