diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 0000000..1b0865b --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,5 @@ + + +Layers icon +[Fatcow Web Hosting](http://www.fatcow.com/free-icons) +http://creativecommons.org/licenses/by/4.0/ diff --git a/module/assets/css/backend.css b/module/assets/css/backend.css new file mode 100644 index 0000000..3e5bb71 --- /dev/null +++ b/module/assets/css/backend.css @@ -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; +} diff --git a/module/assets/img/folPlus.gif b/module/assets/img/folPlus.gif new file mode 100644 index 0000000..19c9f89 Binary files /dev/null and b/module/assets/img/folPlus.gif differ diff --git a/module/assets/img/layers.png b/module/assets/img/layers.png new file mode 100644 index 0000000..d25ff9c Binary files /dev/null and b/module/assets/img/layers.png differ diff --git a/module/config/config.php b/module/config/config.php index e9dd75f..70a1ef2 100644 --- a/module/config/config.php +++ b/module/config/config.php @@ -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', ); /* diff --git a/module/dca/tl_leaflet_layer.php b/module/dca/tl_leaflet_layer.php index 760e170..21ea9ae 100644 --- a/module/dca/tl_leaflet_layer.php +++ b/module/dca/tl_leaflet_layer.php @@ -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 ( diff --git a/module/dca/tl_leaflet_map.php b/module/dca/tl_leaflet_map.php index 5215e6b..64511fb 100644 --- a/module/dca/tl_leaflet_map.php +++ b/module/dca/tl_leaflet_map.php @@ -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 diff --git a/module/languages/en/tl_leaflet_map.php b/module/languages/en/tl_leaflet_map.php index 19837fb..9d2bdcc 100644 --- a/module/languages/en/tl_leaflet_map.php +++ b/module/languages/en/tl_leaflet_map.php @@ -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';