mirror of
https://github.com/netzmacht/contao-leaflet-maps.git
synced 2025-11-29 03:24:37 +01:00
Fix access of sub layers (#97)
This commit is contained in:
@@ -73,6 +73,11 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = [
|
||||
'class' => 'header_edit_all',
|
||||
'attributes' => 'onclick="Backend.getScrollOffset();"',
|
||||
],
|
||||
'toggleNodes' => [
|
||||
'href' => 'ptg=all',
|
||||
'class' => 'header_toggle',
|
||||
'showOnSelect' => true,
|
||||
],
|
||||
],
|
||||
'operations' => [
|
||||
'markers' => [
|
||||
|
||||
@@ -23,6 +23,10 @@
|
||||
padding-left: 20px !important;
|
||||
}
|
||||
|
||||
.tl_listing .tl_left {
|
||||
overflow: unset;
|
||||
}
|
||||
|
||||
.long .tl_text_2 {
|
||||
width: 325px;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ final class FrontendIntegrationListener
|
||||
)
|
||||
),
|
||||
Image::getHtml(
|
||||
'alias.gif',
|
||||
'alias.svg',
|
||||
$this->translator->trans('editalias.0', [$dataContainer->value], 'contao_tl_content'),
|
||||
'style="vertical-align:top"'
|
||||
)
|
||||
|
||||
@@ -197,7 +197,7 @@ class LayerDcaListener extends AbstractListener
|
||||
if (!empty($this->layers[$row['type']]['icon'])) {
|
||||
$src = $this->layers[$row['type']]['icon'];
|
||||
} else {
|
||||
$src = 'iconPLAIN.gif';
|
||||
$src = 'iconPLAIN.svg';
|
||||
}
|
||||
|
||||
$activeIcon = $src;
|
||||
@@ -275,12 +275,12 @@ class LayerDcaListener extends AbstractListener
|
||||
$pasteAfterUrl,
|
||||
StringUtil::specialchars($this->translator->trans('pasteafter.1', [$row['id']], 'contao_' . $table)),
|
||||
Image::getHtml(
|
||||
'pasteafter.gif',
|
||||
'pasteafter.svg',
|
||||
$this->translator->trans('pasteafter.1', [$row['id']], 'contao_' . $table)
|
||||
)
|
||||
);
|
||||
|
||||
if (!empty($this->layers[$row['type']]['children'])) {
|
||||
if (isset($row['type']) && !empty($this->layers[$row['type']]['children'])) {
|
||||
$pasteIntoUrl = $this->backendAdapter->addToUrl(
|
||||
sprintf(
|
||||
'act=%s&mode=2&pid=%s%s',
|
||||
@@ -295,12 +295,12 @@ class LayerDcaListener extends AbstractListener
|
||||
$pasteIntoUrl,
|
||||
StringUtil::specialchars($this->translator->trans('pasteinto.1', [$row['id']], 'contao_' . $table)),
|
||||
Image::getHtml(
|
||||
'pasteinto.gif',
|
||||
'pasteinto.svg',
|
||||
$this->translator->trans('pasteinto.1', [$row['id']], 'contao_' . $table)
|
||||
)
|
||||
);
|
||||
} elseif ($row['id'] > 0) {
|
||||
$buffer .= Image::getHtml('pasteinto_.gif');
|
||||
$buffer .= Image::getHtml('pasteinto_.svg');
|
||||
}
|
||||
|
||||
return $buffer;
|
||||
|
||||
Reference in New Issue
Block a user