From 74a4d79aa04c8df61e7fd9d1609a099ab8ac5f7e Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 29 Dec 2014 19:13:55 +0100 Subject: [PATCH] Adjust layers tree view. --- CREDITS.md | 5 +++++ module/assets/css/backend.css | 20 ++++++++++++++++++++ module/assets/img/folPlus.gif | Bin 0 -> 222 bytes module/assets/img/layers.png | Bin 0 -> 863 bytes module/config/config.php | 1 + module/dca/tl_leaflet_layer.php | 3 ++- module/dca/tl_leaflet_map.php | 4 ++-- module/languages/en/tl_leaflet_map.php | 13 +++++++++++++ 8 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 CREDITS.md create mode 100644 module/assets/css/backend.css create mode 100644 module/assets/img/folPlus.gif create mode 100644 module/assets/img/layers.png 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 0000000000000000000000000000000000000000..19c9f8967d2ec03633f4e0885907e2c5e7e114d8 GIT binary patch literal 222 zcmZ?wbhEHb6k-r!Xc1*NeE7`Kqvy__zkcDujZ2qqUcY|t#*O>8Zautp>&e}_kM7=m z_V(@P4L9R7VUp>(i19oTD~B@RuFf=*S^ zHOR{MJ6u=yv%dj;ZRinH#%q@>cI}OK0*Yn=0Q-)wLxR_diGgWczt~aMn5DWLl_zksPo`dEjHl?%ubTi^|P+Y}5HBD5^HF#-HvjS(k)s^_>U~ zhapHM6aDMNS479hz{-napr&#=?zIN-x}$$k7JRv>L1^o?tb~d!i_qLQj?(oWxC*l% z(TLAm`Vkvzqc5jmmMGLWbYOfago^xR+=+E~TbjEifoMBCl?vLFIg zMBsK50X8QbvcR*kSd{qP82iTLK*Zq>-l{sul8)ZGm*dagef3Bk9IOEf>@+B+p>?SE zj#TWTxb887j)uN8qC#{Q2wZy5gZ7TMVU~RCwxMba^9qNm5liz2u=J-~STG7zg?MWa p56uPe_cNW7yxGtH{#VqjT!&|002ovPDHLkV1gLpjnn`D literal 0 HcmV?d00001 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';