Skip to content
Snippets Groups Projects
DocHeader.html 3.63 KiB
<f:comment><!--
  ~
  ~ Copyright notice
  ~
  ~ (c) sgalinski Internet Services (https://www.sgalinski.de)
  ~
  ~ All rights reserved
  ~
  ~ This script is part of the TYPO3 project. The TYPO3 project is
  ~ free software; you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation; either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ The GNU General Public License can be found at
  ~ http://www.gnu.org/copyleft/gpl.html.
  ~
  ~ This script is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ This copyright notice MUST APPEAR in all copies of the script!
  --></f:comment>

<!DOCTYPE html>
<html
	xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
	xmlns:mail="http://typo3.org/ns/SGalinski/SgMail/ViewHelpers"
	data-namespace-typo3-fluid="true">
	<f:section name="main">
		<div class="module-docheader-bar module-docheader-bar-navigation t3js-module-docheader-bar t3js-module-docheader-bar-navigation">
			<f:render
				partial="Module/DocHeader"
				section="actionMenu"
				arguments="{pages: pages, selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}" />
			<f:render
				partial="Module/DocHeader"
				section="path"
				arguments="{docHeader: docHeader, typo3Version: typo3Version}" />
		</div>
	</f:section>

	<f:section name="path">
		<div class="module-docheader-bar-column-right">
			<span class="typo3-docheader-pagePath">
				<f:if condition="{typo3Version} < 9000000">
					<f:then>
						<f:translate key="LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw>
					</f:then>
					<f:else>
						<f:translate key="LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.path" />: <f:format.raw>{docHeader.metaInformation.path}</f:format.raw>
					</f:else>
				</f:if>
			</span>
			<f:format.raw>{docHeader.metaInformation.recordInformation}</f:format.raw>
		</div>
	</f:section>

	<f:section name="actionMenu">
		<f:if condition="{pages}">
			<f:then></f:then>
			<f:else>
				<div class="module-docheader-bar-column-left">
					<f:be.menus.actionMenu>
						<f:render
							partial="Module/DocHeader"
							section="actionMenuItem"
							arguments="{controller:'Mail', action: 'index', label: '{f:translate(key:\'backend.template_editor\')}', selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey, simpleActionItem: 1}" />
						<f:render
							partial="Module/DocHeader"
							section="actionMenuItem"
							arguments="{controller:'Queue', action: 'index', label: '{f:translate(key:\'backend.mail_queue\')}', selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey, simpleActionItem: 1}" />
						<f:render
							partial="Module/DocHeader"
							section="actionMenuItem"
							arguments="{controller:'Layout', action: 'index', label: '{f:translate(key:\'backend.layouts\')}', selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey, simpleActionItem: 1}" />
					</f:be.menus.actionMenu>
				</div>
			</f:else>
		</f:if>
	</f:section>
	<f:section name="actionMenuItem">
		<mail:be.menus.actionMenuItem
			controller="{controller}"
			action="{action}"
			arguments="{parameters: {selectedTemplate: selectedTemplateKey, selectedExtension: selectedExtensionKey}}"
			simpleActionItem="{simpleActionItem}"
			selected="{selected}"
			label="{label}" />
	</f:section>
</html>