From 8a2634d4d2d36875b34158d41b3802cc1098e4a5 Mon Sep 17 00:00:00 2001 From: "Florian Will [mac]" <florian.will@sgalinski.de> Date: Sun, 15 Dec 2024 18:53:39 +0100 Subject: [PATCH] [TASK] added path and basedocheader in seperate file to sg-jobs --- Resources/Private/Layouts/Backend.html | 20 +++---------------- Resources/Private/Partials/BaseDocHeader.html | 14 +++++++++++++ Resources/Private/Partials/Path.html | 5 +++++ 3 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 Resources/Private/Partials/BaseDocHeader.html create mode 100644 Resources/Private/Partials/Path.html diff --git a/Resources/Private/Layouts/Backend.html b/Resources/Private/Layouts/Backend.html index 1f469de5..ce137ada 100644 --- a/Resources/Private/Layouts/Backend.html +++ b/Resources/Private/Layouts/Backend.html @@ -15,27 +15,13 @@ <div class="module-docheader-bar-column-left"> </div> <div class="module-docheader-bar-column-right"> - <span class="typo3-docheader-pagePath"> - <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"/>: - <f:format.raw>{docHeader.metaInformation.path}</f:format.raw> - </span> - <f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw> + <f:render partial="Path" arguments="{docHeader: docHeader}"/> </div> </div> <div class="module-docheader-bar module-docheader-bar-buttons t3js-module-docheader-bar t3js-module-docheader-bar-buttons"> - <div class="module-docheader-bar-column-left"> - <div class="btn-toolbar" role="toolbar" aria-label=""> - <f:render section="iconButtons"/> - </div> - </div> - <div class="module-docheader-bar-column-right" style="display: flex; align-items: center;"> - <a href="https://www.sgalinski.de/" target="_blank" rel="noopener noreferrer" - title="Created by the TYPO3 agency sgalinski"> - <img src="{f:uri.resource(path: 'Icons/logo-icon.svg')}" alt="Sgalinski Logo" style="width: 34px; height: 25.75px;" /> - </a> - <f:render partial="Backend/ButtonBar" arguments="{buttons:docHeader.buttons.right}"/> - </div> + + <f:render partial="BaseDocHeader" arguments="{docHeader: docHeader}"/> </div> </div> <div class="module-body t3js-module-body"> diff --git a/Resources/Private/Partials/BaseDocHeader.html b/Resources/Private/Partials/BaseDocHeader.html new file mode 100644 index 00000000..a3914edf --- /dev/null +++ b/Resources/Private/Partials/BaseDocHeader.html @@ -0,0 +1,14 @@ +<!--Extbase Version --> + +<div class="module-docheader-bar-column-left"> + <f:render partial="Backend/ButtonBar" arguments="{buttons:docHeader.buttons.left}"/> +</div> + +<div class="module-docheader-bar-column-right" style="display: flex; align-items: center;"> + <a href="https://www.sgalinski.de/" target="_blank" rel="noopener noreferrer" + title="Created by the TYPO3 agency sgalinski"> + <img src="{f:uri.resource(path: 'Icons/logo-icon.svg')}" alt="Sgalinski Logo" + style="width: 34px; height: 25.75px;"/> + </a> + <f:render partial="Backend/ButtonBar" arguments="{buttons:docHeader.buttons.right}"/> +</div> diff --git a/Resources/Private/Partials/Path.html b/Resources/Private/Partials/Path.html new file mode 100644 index 00000000..11695636 --- /dev/null +++ b/Resources/Private/Partials/Path.html @@ -0,0 +1,5 @@ +<span class="typo3-docheader-pagePath"> + <f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path"/>: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw> + </span> + +<f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw> -- GitLab