TYPO3 v15 dev-main snapshot ()
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||
<f:layout name="Widget/Widget" />
|
||||
<f:section name="main">
|
||||
|
||||
<f:if condition="{items}">
|
||||
<f:then>
|
||||
<div class="widget-table-wrapper">
|
||||
<table class="widget-table table table-striped table-hover">
|
||||
<f:for each="{items}" as="item">
|
||||
<tr>
|
||||
<td>
|
||||
<f:link.external uri="{item.link}" target="_blank" rel="noreferrer"><strong>{item.title}</strong></f:link.external>
|
||||
<small><time datetime="{item.pubDate -> f:format.date(format: '%Y-%m-%d')}">{item.pubDate -> f:format.date()}</time><f:if condition="{item.author.name}"> | {item.author.name}</f:if></small>
|
||||
<p>{item.description -> f:format.crop(maxCharacters: 180)}</p>
|
||||
</td>
|
||||
</tr>
|
||||
</f:for>
|
||||
</table>
|
||||
</div>
|
||||
</f:then>
|
||||
<f:else if="!{feedUrl}">
|
||||
<f:be.infobox title="{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.missingFeedConfiguration.title')}" state="-1">{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.missingFeedConfiguration.message')}</f:be.infobox>
|
||||
</f:else>
|
||||
<f:else if="{invalidFeed}">
|
||||
<f:be.infobox title="{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.feedError.title')}" state="2">{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.feedError.message', arguments: '{0: feedUrl}')}</f:be.infobox>
|
||||
</f:else>
|
||||
<f:else>
|
||||
<f:be.infobox title="{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.noItems.title')}" state="1">{f:translate(key: 'LLL:EXT:dashboard/Resources/Private/Language/locallang_widget_rss.xlf:widget.rss.noItems.message', arguments: '{0: feedUrl}')}</f:be.infobox>
|
||||
</f:else>
|
||||
</f:if>
|
||||
|
||||
</f:section>
|
||||
<f:section name="footer">
|
||||
<f:render partial="Widget/Button" arguments="{button: button}"/>
|
||||
</f:section>
|
||||
</html>
|
||||
Reference in New Issue
Block a user