|
| 1 | +{columnHeaderLevel -> f:or(alternative: 2) -> f:variable(name: 'columnHeaderLevel')} |
| 2 | + |
1 | 3 | <div class="t3-page-column-header"> |
2 | 4 | <f:if condition="{column.active}"> |
3 | 5 | <f:then> |
4 | 6 | <div class="t3-page-column-header-icons"> |
5 | 7 | <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> |
7 | 16 | </f:if> |
8 | 17 | </div> |
9 | | - {column.title} |
| 18 | + <h{columnHeaderLevel} id="{columnIdentifier}" class="t3-page-column-title">{column.title}</h{columnHeaderLevel}> |
10 | 19 | </f:then> |
11 | 20 | <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> |
13 | 22 | </f:else> |
14 | 23 | <f:else if="{column.unassigned}"> |
15 | | - {column.titleUnassigned} |
| 24 | + <span id="{columnIdentifier}">{column.titleUnassigned}</span> |
16 | 25 | </f:else> |
17 | 26 | <f:else> |
18 | | - {column.titleInaccessible} |
| 27 | + <span id="{columnIdentifier}">{column.titleInaccessible}</span> |
19 | 28 | </f:else> |
20 | 29 | </f:if> |
21 | 30 | </div> |
22 | 31 | <f:format.raw>{column.beforeSectionMarkup}</f:format.raw> |
23 | 32 | <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> |
43 | 45 | <div class="t3-page-ce-dropzone t3js-page-ce-dropzone-available" hidden></div> |
44 | 46 | </div> |
45 | 47 | </f:if> |
0 commit comments