Skip to content

Commit cad26b1

Browse files
committed
[WIP] HTML Markup
1 parent 7ff2844 commit cad26b1

File tree

1 file changed

+26
-24
lines changed

1 file changed

+26
-24
lines changed
Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,47 @@
1+
{columnHeaderLevel -> f:or(alternative: 2) -> f:variable(name: 'columnHeaderLevel')}
2+
13
<div class="t3-page-column-header">
24
<f:if condition="{column.active}">
35
<f:then>
46
<div class="t3-page-column-header-icons">
57
<f:if condition="{allowEditContent} && {column.editUrl}">
6-
<a href="{column.editUrl}" title="{column.editLinkTitle}"><core:icon identifier="actions-document-open" /></a>
8+
<a
9+
class="btn btn-link"
10+
href="{column.editUrl}"
11+
title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:editColumn')}"
12+
>
13+
<core:icon identifier="actions-document-open" />
14+
<span class="visually-hidden">{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:editColumn')}</span>
15+
</a>
716
</f:if>
817
</div>
9-
{column.title}
18+
<h{columnHeaderLevel} id="{columnIdentifier}" class="t3-page-column-title">{column.title}</h{columnHeaderLevel}>
1019
</f:then>
1120
<f:else if="{column.unused}">
12-
<f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:unusedColPos"/>
21+
<span id="{columnIdentifier}"><f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:unusedColPos"/></span>
1322
</f:else>
1423
<f:else if="{column.unassigned}">
15-
{column.titleUnassigned}
24+
<span id="{columnIdentifier}">{column.titleUnassigned}</span>
1625
</f:else>
1726
<f:else>
18-
{column.titleInaccessible}
27+
<span id="{columnIdentifier}">{column.titleInaccessible}</span>
1928
</f:else>
2029
</f:if>
2130
</div>
2231
<f:format.raw>{column.beforeSectionMarkup}</f:format.raw>
2332
<f:if condition="{allowEditContent} && {column.contentEditable} && {column.allowNewContent} && {column.active}">
24-
<div class="t3-page-ce t3js-page-ce" data-page="{column.context.pageId}" id="{column.uniqueId}">
25-
<div class="t3-page-ce-actions t3js-page-new-ce" id="colpos-{column.columnNumber}-page-{column.context.pageId}-{column.uniqueId}">
26-
<f:if condition="{column.newContentElementWizardShouldBeSkipped}">
27-
<f:then>
28-
<a href="{column.newContentUrl}" title="{newContentTitle}" class="btn btn-default btn-sm">
29-
<core:icon identifier="actions-add" />
30-
<f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:createNewContent" />
31-
</a>
32-
</f:then>
33-
<f:else>
34-
<typo3-backend-new-content-element-wizard-button url="{column.newContentUrl}" subject="{newContentTitle}">
35-
<button type="button" class="btn btn-default btn-sm">
36-
<core:icon identifier="actions-add" />
37-
<f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:createNewContent" />
38-
</button>
39-
</typo3-backend-new-content-element-wizard-button>
40-
</f:else>
41-
</f:if>
42-
</div>
33+
<div class="t3-page-ce t3js-page-ce" data-page="{column.context.pageId}" >
34+
<f:if condition="{column.newContentElementWizardShouldBeSkipped}">
35+
<f:then>
36+
<a href="{column.newContentUrl}" title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:newContentElement')}" class="btn btn-default btn-sm">
37+
<core:icon identifier="actions-add" />
38+
<f:translate key="LLL:EXT:backend/Resources/Private/Language/locallang_layout.xlf:createNewContent" />
39+
</a>
40+
</f:then>
41+
<f:else>
42+
<f:render partial="PageLayout/ActionControls" arguments="{url: column.newContentUrl}" />
43+
</f:else>
44+
</f:if>
4345
<div class="t3-page-ce-dropzone t3js-page-ce-dropzone-available" hidden></div>
4446
</div>
4547
</f:if>

0 commit comments

Comments
 (0)