Initial commit - Typo3 11.5.41
This commit is contained in:
3
fileadmin/templates/ext/pw_teaser/Layouts/Default.html
Normal file
3
fileadmin/templates/ext/pw_teaser/Layouts/Default.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<div class="tx-pwteaser-pi1">
|
||||
<f:render section="main" />
|
||||
</div>
|
||||
13
fileadmin/templates/ext/pw_teaser/Partials/formErrors.html
Normal file
13
fileadmin/templates/ext/pw_teaser/Partials/formErrors.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<f:form.errors>
|
||||
<div class="error">
|
||||
{error.message}
|
||||
<f:if condition="{error.propertyName}">
|
||||
<p>
|
||||
<strong>{error.propertyName}</strong>:
|
||||
<f:for each="{error.errors}" as="errorDetail">
|
||||
{errorDetail.message}
|
||||
</f:for>
|
||||
</p>
|
||||
</f:if>
|
||||
</div>
|
||||
</f:form.errors>
|
||||
@@ -0,0 +1,17 @@
|
||||
{namespace pw=PwTeaserTeam\PwTeaser\ViewHelpers}
|
||||
<f:layout name="default" />
|
||||
|
||||
<f:section name="main">
|
||||
<ul>
|
||||
<f:for each="{pages}" as="page" iteration="iterator">
|
||||
<li class="page {f:if(condition:'{iterator.isFirst}', then:' first')}{f:if(condition:'{iterator.isLast}', then:' last')}">
|
||||
<f:link.page pageUid="{page.uid}" title="{page.title}">
|
||||
<f:if condition="{page.media.0}">
|
||||
<f:image src="{page.media.0}" alt="{page.title}" width="110" />
|
||||
</f:if>
|
||||
<span>{page.title}</span>
|
||||
</f:link.page>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:section>
|
||||
@@ -0,0 +1,12 @@
|
||||
{namespace pw=PwTeaserTeam\PwTeaser\ViewHelpers}
|
||||
<f:layout name="default" />
|
||||
|
||||
<f:section name="main">
|
||||
<ul>
|
||||
<f:for each="{pages}" as="page" iteration="iterator">
|
||||
<li class="page {f:if(condition:'{iterator.isFirst}', then:' first')}{f:if(condition:'{iterator.isLast}', then:' last')}">
|
||||
<f:link.page pageUid="{page.uid}" title="{page.title}">{page.title}</f:link.page>
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</f:section>
|
||||
@@ -0,0 +1,50 @@
|
||||
{namespace pw=PwTeaserTeam\PwTeaser\ViewHelpers}
|
||||
<f:layout name="default" />
|
||||
|
||||
<f:section name="main">
|
||||
<div><strong>{f:count(subject:'{pages}')}</strong> inventari presenti</div>
|
||||
|
||||
<f:if condition="{f:count(subject:'{pages}')}">
|
||||
<f:then>
|
||||
<pw:widget.paginate objects="{pages}" as="pageObject" configuration="{itemsPerPage: 5, insertAbove: 0, insertBelow: 1}">
|
||||
<ul class="base_list news_list">
|
||||
<f:for each="{pageObject}" as="page">
|
||||
<li>
|
||||
<a href="fileadmin/redazione/inventari/Alessandria_OP_SGiacomo_L.JPG" class="menuRow1" title="Veduta dell'Ospedale psichiatrico San Giacomo di Alessandria">
|
||||
<img src="fileadmin/redazione/inventari/Alessandria_OP_SGiacomo_S.jpg" width="100" height="100" alt="">
|
||||
</a>
|
||||
<script>$(".menuRow1").colorbox({rel:'menuRow1'});</script>
|
||||
<h4>{page.title}</h4>
|
||||
|
||||
<f:if condition="{settings.loadContents}">
|
||||
<strong>First image (of content elements, column 0)</strong>: <br />
|
||||
<pw:getContent contents="{page.contents}" as="content" cType="image" index="0">
|
||||
<f:image src="{content.imageFiles.0.url}" alt="{content.imageFiles.0.title}" maxWidth="200" maxHeight="200" />
|
||||
</pw:getContent>
|
||||
|
||||
<pw:getContent contents="{page.contents}" as="content" colPos="0" cType="text">
|
||||
<f:format.html>{content.bodytext}</f:format.html>
|
||||
</pw:getContent>
|
||||
|
||||
|
||||
<pw:getContent contents="{page.contents}" as="content" colPos="100" cType="uploads">
|
||||
<f:debug title="Debug of MyArray">{content}</f:debug>***
|
||||
<f:for each="{content.image}" as="image" iteration="iterator">
|
||||
<f:if condition="{iterator.isFirst} == 1">
|
||||
<f:image src="{image.uid}" treatIdAsReference="1" width="400c" height="100c" />
|
||||
</f:if>
|
||||
</f:for>
|
||||
</pw:getContent>
|
||||
|
||||
</f:if>
|
||||
|
||||
</li>
|
||||
</f:for>
|
||||
</ul>
|
||||
</pw:widget.paginate>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<em>Nessun inventario presente.</em>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:section>
|
||||
@@ -0,0 +1,104 @@
|
||||
<f:if condition="{configuration.insertAbove}">
|
||||
<f:render section="paginator" arguments="{pagination: pagination}" />
|
||||
</f:if>
|
||||
|
||||
<f:renderChildren arguments="{contentArguments}" />
|
||||
|
||||
<f:if condition="{configuration.insertBelow}">
|
||||
<f:render section="paginator" arguments="{pagination: pagination}" />
|
||||
</f:if>
|
||||
|
||||
<f:section name="paginator">
|
||||
<ul class="f3-widget-paginator">
|
||||
<!-- First -->
|
||||
<f:if condition="{f:translate(key:'pagination_first')}">
|
||||
<f:if condition="{pagination.isFirstPage}">
|
||||
<f:then>
|
||||
<li class="first">
|
||||
<span><f:translate key="pagination_first" /></span>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<li class="first">
|
||||
<f:widget.link><f:translate key="pagination_first" /></f:widget.link>
|
||||
</li>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
|
||||
<!-- Previous -->
|
||||
<f:if condition="{f:translate(key:'pagination_previous')}">
|
||||
<f:if condition="{pagination.previousPage}">
|
||||
<f:then>
|
||||
<li class="previous">
|
||||
<f:if condition="{pagination.previousPage} > 1">
|
||||
<f:then>
|
||||
<!-- <f:translate key="previous" /> -->
|
||||
<f:widget.link arguments="{currentPage: pagination.previousPage}"><f:translate key="pagination_previous" /></f:widget.link>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:widget.link><f:translate key="pagination_previous" /></f:widget.link>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<li class="previous">
|
||||
<span><f:translate key="pagination_previous" /></span>
|
||||
</li>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:if>
|
||||
|
||||
<!-- Numbered pages -->
|
||||
<f:for each="{pagination.pages}" as="page">
|
||||
<f:if condition="{page.isCurrent}">
|
||||
<f:then>
|
||||
<li class="current">
|
||||
<span>{page.number}</span>
|
||||
</li>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<li>
|
||||
<f:if condition="{page.number} > 1">
|
||||
<f:then>
|
||||
<f:widget.link arguments="{currentPage: page.number}">{page.number}</f:widget.link>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:widget.link>{page.number}</f:widget.link>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</li>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</f:for>
|
||||
|
||||
<!-- Next -->
|
||||
<f:if condition="{f:translate(key:'pagination_next')}">
|
||||
<li class="next">
|
||||
<f:if condition="{pagination.nextPage}">
|
||||
<f:then>
|
||||
<f:widget.link arguments="{currentPage: pagination.nextPage}"><f:translate key="pagination_next" /></f:widget.link>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<span><f:translate key="pagination_next" /></span>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</li>
|
||||
</f:if>
|
||||
|
||||
<!-- Last -->
|
||||
<f:if condition="{f:translate(key:'pagination_last')}">
|
||||
<li class="last">
|
||||
<f:if condition="{pagination.isLastPage}">
|
||||
<f:then>
|
||||
<span><f:translate key="pagination_last" /></span>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<f:widget.link arguments="{currentPage: pagination.lastPage}"><f:translate key="pagination_last" /></f:widget.link>
|
||||
</f:else>
|
||||
</f:if>
|
||||
</li>
|
||||
</f:if>
|
||||
</ul>
|
||||
</f:section>
|
||||
Reference in New Issue
Block a user