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