TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:if condition="{data.header_layout} != 100">
|
||||
<f:variable name="header">{record -> f:render.text(field: 'header', optional: true)}</f:variable>
|
||||
<f:variable name="subheader">{record -> f:render.text(field: 'subheader', optional: true)}</f:variable>
|
||||
<f:if condition="{header} || {subheader} || {data.date}">
|
||||
<header>
|
||||
<f:render partial="Header/Header" arguments="{
|
||||
header: header,
|
||||
layout: data.header_layout,
|
||||
positionClass: '{f:if(condition: data.header_position, then: \'ce-headline-{data.header_position}\')}',
|
||||
link: data.header_link,
|
||||
default: settings.defaultHeaderType}" />
|
||||
<f:render partial="Header/SubHeader" arguments="{
|
||||
subheader: subheader,
|
||||
layout: data.header_layout,
|
||||
positionClass: '{f:if(condition: data.header_position, then: \'ce-headline-{data.header_position}\')}',
|
||||
default: settings.defaultHeaderType}" />
|
||||
<f:render partial="Header/Date" arguments="{
|
||||
date: data.date,
|
||||
positionClass: '{f:if(condition: data.header_position, then: \'ce-headline-{data.header_position}\')}'}" />
|
||||
</header>
|
||||
</f:if>
|
||||
</f:if>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:if condition="{date}">
|
||||
<p class="{positionClass}">
|
||||
<time datetime="{date -> f:format.date(format: '%Y-%m-%d')}">
|
||||
<f:format.date format="%B %e, %Y">{date}</f:format.date>
|
||||
</time>
|
||||
</p>
|
||||
</f:if>
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:if condition="{header}">
|
||||
<f:switch expression="{layout}">
|
||||
<f:case value="1">
|
||||
<h1 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h1>
|
||||
</f:case>
|
||||
<f:case value="2">
|
||||
<h2 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h2>
|
||||
</f:case>
|
||||
<f:case value="3">
|
||||
<h3 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h3>
|
||||
</f:case>
|
||||
<f:case value="4">
|
||||
<h4 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h4>
|
||||
</f:case>
|
||||
<f:case value="5">
|
||||
<h5 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h5>
|
||||
</f:case>
|
||||
<f:case value="6">
|
||||
<h6 class="{positionClass}">
|
||||
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
|
||||
</h6>
|
||||
</f:case>
|
||||
<f:case value="100">
|
||||
<f:comment> -- do not show header -- </f:comment>
|
||||
</f:case>
|
||||
<f:defaultCase>
|
||||
<f:if condition="{default}">
|
||||
<f:render partial="Header/Header" arguments="{
|
||||
header: header,
|
||||
layout: default,
|
||||
positionClass: positionClass,
|
||||
link: link}" />
|
||||
</f:if>
|
||||
</f:defaultCase>
|
||||
</f:switch>
|
||||
</f:if>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:if condition="{subheader}">
|
||||
<f:switch expression="{layout}">
|
||||
<f:case value="1">
|
||||
<h2 class="{positionClass}">
|
||||
{subheader}
|
||||
</h2>
|
||||
</f:case>
|
||||
<f:case value="2">
|
||||
<h3 class="{positionClass}">
|
||||
{subheader}
|
||||
</h3>
|
||||
</f:case>
|
||||
<f:case value="3">
|
||||
<h4 class="{positionClass}">
|
||||
{subheader}
|
||||
</h4>
|
||||
</f:case>
|
||||
<f:case value="4">
|
||||
<h5 class="{positionClass}">
|
||||
{subheader}
|
||||
</h5>
|
||||
</f:case>
|
||||
<f:case value="5">
|
||||
<h6 class="{positionClass}">
|
||||
{subheader}
|
||||
</h6>
|
||||
</f:case>
|
||||
<f:defaultCase>
|
||||
<f:if condition="{default}">
|
||||
<f:render partial="Header/SubHeader" arguments="{
|
||||
subheader: subheader,
|
||||
positionClass: positionClass,
|
||||
layout: default}" />
|
||||
</f:if>
|
||||
</f:defaultCase>
|
||||
</f:switch>
|
||||
</f:if>
|
||||
</html>
|
||||
Reference in New Issue
Block a user