Cleaned up templates. From now on only event specific templates will be shipped due...
authorjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 5 Oct 2012 10:48:37 +0000 (10:48 +0000)
committerjdegroot <jdegroot@735d13b6-9817-0410-8766-e36946ffe9aa>
Fri, 5 Oct 2012 10:48:37 +0000 (10:48 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/roq_newsevent/trunk@66645 735d13b6-9817-0410-8766-e36946ffe9aa

13 files changed:
Resources/Private/Layouts/Backend/Default.html [deleted file]
Resources/Private/Layouts/Detail.html [deleted file]
Resources/Private/Layouts/General.html [deleted file]
Resources/Private/Partials/Administration/Buttons.html [deleted file]
Resources/Private/Partials/Administration/ListItem.html [deleted file]
Resources/Private/Partials/Category/Items.html [deleted file]
Resources/Private/Partials/List/Item.html [deleted file]
Resources/Private/Templates/News/DateMenu.html [deleted file]
Resources/Private/Templates/News/Detail.html [deleted file]
Resources/Private/Templates/News/List.html [deleted file]
Resources/Private/Templates/News/List.xml [deleted file]
Resources/Private/Templates/News/SearchForm.html [deleted file]
Resources/Private/Templates/News/SearchResult.html [deleted file]

diff --git a/Resources/Private/Layouts/Backend/Default.html b/Resources/Private/Layouts/Backend/Default.html
deleted file mode 100644 (file)
index f53adea..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<f:be.container>
-       <n:includeFile path="../typo3conf/ext/news/Resources/Public/Css/administration.css" />
-       <div class="typo3-fullDoc">
-               <div id="typo3-docheader">
-                       <div id="typo3-docheader-row1">
-                               <div class="buttonsleft">
-                                       <f:render section="iconButtons" />
-                               </div>
-                               <div class="buttonsright">
-                                       <f:be.buttons.shortcut />
-                               </div>
-                       </div>
-                       <div id="typo3-docheader-row2">
-                               <div class="docheader-row2-left">
-                               </div>
-                               <div class="docheader-row2-right">
-                                       <f:be.pagePath />
-                                       <f:be.pageInfo />
-                               </div>
-                       </div>
-               </div>
-               <div id="typo3-docbody">
-                       <div id="typo3-inner-docbody">
-                               <f:flashMessages class="tx-extbase-flash-message" />
-                               <div id="news-administration">
-                                       <f:render section="content" />
-                               </div>
-                       </div>
-               </div>
-       </div>
-</f:be.container>
diff --git a/Resources/Private/Layouts/Detail.html b/Resources/Private/Layouts/Detail.html
deleted file mode 100644 (file)
index f701b71..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<f:if condition="{settings.cssFile}">
-       <n:includeFile path="{settings.cssFile}" />
-</f:if>
-
-<div class="news news-single">
-       <div class="article">
-               <f:render section="content" />
-       </div>
-</div>
\ No newline at end of file
diff --git a/Resources/Private/Layouts/General.html b/Resources/Private/Layouts/General.html
deleted file mode 100644 (file)
index 0646dd3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<f:if condition="{settings.cssFile}">
-       <n:includeFile path="{settings.cssFile}" />
-</f:if>
-
-<div class="news">
-       <f:flashMessages class="tx-news-flash-message" />
-       <f:render section="content" />
-</div>
diff --git a/Resources/Private/Partials/Administration/Buttons.html b/Resources/Private/Partials/Administration/Buttons.html
deleted file mode 100644 (file)
index fb68a30..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<n:be.buttons.icon uri="{f:uri.action(action:'newNews')}" icon="actions-document-new" title="Create new news record" />
-<n:be.buttons.icon uri="{f:uri.action(action:'index')}" icon="tcarecords-tx_news_domain_model_news-default" title="News Listing" />
-<n:be.buttons.icon uri="{f:uri.action(action:'newsPidListing')}" icon="apps-clipboard-list" title="News Pid listing" />
\ No newline at end of file
diff --git a/Resources/Private/Partials/Administration/ListItem.html b/Resources/Private/Partials/Administration/ListItem.html
deleted file mode 100644 (file)
index 4f52c75..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<tr class="db_list_normal">
-       <td>
-               <n:be.clickmenu table="tx_news_domain_model_news" uid="{newsItem.uid}">
-                       <n:be.buttons.iconForRecord table="tx_news_domain_model_news" uid="{newsItem.uid}" title="" />
-               </n:be.clickmenu>
-
-               <n:be.buttons.icon uri="#" onclick="window.location.href='alt_doc.php?returnUrl='+T3_THIS_LOCATION+'&edit[tx_news_domain_model_news][{newsItem.uid}]=edit'; return false;" icon="tcarecords-tx_news_domain_model_news-default" title="Info" />
-
-               <span title="UID: {newsItem.uid}">{newsItem.title}</span>
-       </td>
-       <td><f:if condition="{newsItem.isTopNews}"><f:then>Yes</f:then><f:else>No</f:else></f:if></td>
-       <td><f:format.date>{newsItem.dateTime}</f:format.date></td>
-       <td><f:format.date>{newsItem.archive}</f:format.date></td>
-       <td><f:format.date>{newsItem.tstamp}</f:format.date></td>
-       <td>
-               <f:if condition="{newsItem.author}">
-                       <strong><f:translate key="LLL:EXT:cms/locallang_tca.xml:pages.author_formlabel" />:</strong> {newsItem.author}<br />
-               </f:if>
-               <f:if condition="{newsItem.categories}">
-                       <strong><f:translate key="LLL:EXT:news/Resources/Private/Language/locallang_db.xml:tx_news_domain_model_news.categories" />:</strong>
-                       <f:for each="{newsItem.categories}" as="category" iteration="iterator">
-                               <span title="UID: {category.uid}">{category.title}</span><f:if condition="{iterator.isLast}"><f:then></f:then><f:else>, </f:else></f:if>
-                       </f:for>
-               </f:if>
-       </td>
-</tr>
\ No newline at end of file
diff --git a/Resources/Private/Partials/Category/Items.html b/Resources/Private/Partials/Category/Items.html
deleted file mode 100644 (file)
index 4e3ffa0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-<!-- categories -->
-<span class="hidden">. </span>
-<span class="news-list-category">
-       <f:for each="{categories}" as="category">
-               <f:if condition="{category.shortcut}">
-                       <f:then>
-                               <f:link.page pageUid="{category.shortcut}">
-                                       {category.title}
-                               </f:link.page>
-                       </f:then>
-                       <f:else>
-                               {category.title}
-                       </f:else>
-               </f:if>
-       </f:for>
-</span>
\ No newline at end of file
diff --git a/Resources/Private/Partials/List/Item.html b/Resources/Private/Partials/List/Item.html
deleted file mode 100644 (file)
index 97a1b3e..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-<!--
-       =====================
-               Partials/List/Item.html
--->
-<div class="article articletype-{newsItem.type}{f:if(condition: newsItem.istopnews, then: ' topnews')}">
-       <!-- header -->
-       <div class="header">
-               <h3>
-                       <n:link newsItem="{newsItem}" settings="{settings}">
-                               {newsItem.title}
-                       </n:link>
-               </h3>
-       </div>
-
-       <f:if condition="{newsItem.media}">
-               <!-- media preview element -->
-               <f:then>
-               <div class="news-img-wrap">
-                       <n:link newsItem="{newsItem}" settings="{settings}">
-                               <f:if condition="{newsItem.mediaPreviews}">
-                                       <f:then>
-                                               <f:alias map="{mediaElement: newsItem.mediaPreviews.0}">
-                                                       <f:if condition="{mediaElement.type} == 0">
-                                                               <f:image
-                                                                       src="uploads/tx_news/{mediaElement.image}"
-                                                                       title="{mediaElement.title}"
-                                                                       alt="{mediaElement.alt}"
-                                                                       maxWidth="{settings.list.media.image.maxWidth}"
-                                                                       maxHeight="{settings.list.media.image.maxHeight}"
-                                                               />
-                                                       </f:if>
-                                                       <f:if condition="{mediaElement.type} == 1">
-                                                               <f:render partial="Detail/MediaVideo" arguments="{mediaElement: mediaElement}"/>
-                                                       </f:if>
-                                                       <f:if condition="{mediaElement.type} == 2">
-                                                               <f:render partial="Detail/MediaHtml" arguments="{mediaElement: mediaElement}"/>
-                                                       </f:if>
-                                                       <f:if condition="{mediaElement.type} == 3">
-                                                               <n:format.dam as="dam" uid="{mediaElement.uid}">
-                                                                       <f:image src="{dam.file_path}{dam.file_name}" title="{dam.title}"  alt="{dam.alt_text}" maxWidth="{settings.detail.media.image.maxWidth}" />
-                                                               </n:format.dam>
-                                                       </f:if>
-                                               </f:alias>
-                                       </f:then>
-                                       <f:else>
-                                               <f:if condition="{settings.displayDummyIfNoMedia}">
-                                                       <span class="no-media-element">
-                                                                       <f:image
-                                                                               src="typo3conf/ext/news/Resources/Public/Images/dummy-preview-image.png"
-                                                                               title=""
-                                                                               alt=""
-                                                                               maxWidth="{settings.list.media.image.maxWidth}"
-                                                                               maxHeight="{settings.list.media.image.maxHeight}"
-                                                                       />
-                                                       </span>
-                                               </f:if>
-                                       </f:else>
-                               </f:if>
-                       </n:link>
-               </div>
-               </f:then>
-               <f:else>
-                       <f:if condition="{settings.displayDummyIfNoMedia}">
-                               <f:then>
-                                       <div class="news-img-wrap">
-                                               <n:link newsItem="{newsItem}" settings="{settings}">
-                                                       <span class="no-media-element">
-                                                               <f:image
-                                                                       src="typo3conf/ext/news/Resources/Public/Images/dummy-preview-image.png"
-                                                                       title=""
-                                                                       alt=""
-                                                                       maxWidth="{settings.list.media.image.maxWidth}"
-                                                                       maxHeight="{settings.list.media.image.maxHeight}"
-                                                               />
-                                                       </span>
-                                               </n:link>
-                                       </div>
-                               </f:then>
-                       </f:if>
-               </f:else>
-       </f:if>
-
-       <!-- teas=ser text -->
-       <div class="teaser-text">
-               <f:if condition="{newsItem.teaser}">
-                               <f:then>
-                                       <f:format.html>{newsItem.teaser}</f:format.html>
-                               </f:then>
-                               <f:else>
-                                       <f:format.html><f:format.crop maxCharacters="{settings.cropMaxCharacters}" respectWordBoundaries="true">{newsItem.bodytext}</f:format.crop></f:format.html>
-                               </f:else>
-               </f:if>
-       </div>
-
-       <!-- footer information -->
-       <div class="footer" role="contentinfo">
-               <p>
-                       <!-- date -->
-                       <span class="news-list-date">
-                               <f:format.date format="d.m.Y">{newsItem.datetime}</f:format.date>
-                       </span>
-
-                       <!-- first category -->
-                       <f:if condition="{newsItem.firstCategory}">
-                               <span class="hidden">. </span>
-                               <span class="news-list-category">{newsItem.firstCategory.title}</span>
-                       </f:if>
-
-                       <!-- author -->
-                       <f:if condition="{newsItem.author}">
-                               <span class="hidden">. </span>
-                               <span class="news-list-author">
-                                       <f:translate key="author" arguments="{0:newsItem.author}"/>
-                               </span>
-                       </f:if>
-               </p>
-       </div>
-</div>
diff --git a/Resources/Private/Templates/News/DateMenu.html b/Resources/Private/Templates/News/DateMenu.html
deleted file mode 100644 (file)
index 28898b3..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}\r
-<f:layout name="General" />\r
-<!--\r
-       =====================\r
-               Templates/News/DateMenu.html\r
--->\r
-\r
-\r
-\r
-<f:section name="content">\r
-       <div class="news-menu-view">\r
-               <ul>\r
-               <f:groupedFor each="{news}" as="newsByYear" groupBy="yearOf{dateField}" groupKey="year">\r
-                       <li>{year}\r
-                               <ul>\r
-                               <f:groupedFor each="{newsByYear}" as="newsByMonth" groupBy="monthOf{dateField}" groupKey="month">\r
-                                               <f:if condition="{0:year, 1:month} == {0:overwriteDemand.year, 1:overwriteDemand.month}">\r
-                                                       <f:then>\r
-                                                               <li class="item itemactive">\r
-                                                       </f:then>\r
-                                                       <f:else>\r
-                                                               <li class="item">\r
-                                                       </f:else>\r
-                                               </f:if>\r
-                                               <f:link.action pageUid="{listPid}" arguments="{overwriteDemand:{year: year, month: month}}"><f:translate key="month.{month}" /> {year}</f:link.action>\r
-                                               (<f:count subject="{newsByMonth}" /> <f:translate key="{f:if(condition: '{f:count(subject: newsByMonth)} == 1', then: 'entry', else: 'entries')}" />)\r
-                                       </li>\r
-                               </f:groupedFor>\r
-                               </ul>\r
-                       </li>\r
-               </f:groupedFor>\r
-               </ul>\r
-       </div>\r
-</f:section>\r
diff --git a/Resources/Private/Templates/News/Detail.html b/Resources/Private/Templates/News/Detail.html
deleted file mode 100644 (file)
index 1f637f1..0000000
+++ /dev/null
@@ -1,154 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-
-<f:layout name="Detail.html" />
-
-<!--
-       =====================
-               News/Detail.html
--->
-
-<f:section name="content">
-       <f:if condition="{newsItem}">
-               <f:then>
-                       <n:format.nothing>
-                               <f:if condition="{newsItem.alternativeTitle}">
-                                       <f:then><n:titleTag><n:format.htmlentitiesDecode>{newsItem.alternativeTitle}</n:format.htmlentitiesDecode></n:titleTag></f:then>
-                                       <f:else><n:titleTag><n:format.htmlentitiesDecode>{newsItem.title}</n:format.htmlentitiesDecode></n:titleTag></f:else>
-                               </f:if>
-                               <f:render partial="Detail/Opengraph" arguments="{newsItem: newsItem, settings:settings}"/>
-                       </n:format.nothing>
-                       <div class="header">
-                               <h3>{newsItem.title}</h3>
-                       </div>
-                       <div class="footer" role="contentinfo">
-                               <p>
-                                       <!-- date -->
-                                       <span class="news-list-date">
-                                               <f:format.date format="d.m.Y">{newsItem.datetime}</f:format.date>
-                                       </span>
-
-                                       <f:if condition="{newsItem.categories}">
-                                               <f:render partial="Category/Items" arguments="{categories:newsItem.categories, settings:settings}"/>
-                                       </f:if>
-
-                                       <f:if condition="{newsItem.author}">
-                                               <!-- author -->
-                                               <span class="hidden">. </span>
-                                               <span class="news-list-author">
-                                                       <f:translate key="author" arguments="{0:newsItem.author}"></f:translate>
-                                               </span>
-                                       </f:if>
-                               </p>
-                       </div>
-
-                       <f:if condition="{newsItem.teaser}">
-                               <!-- teaser -->
-                               <div class="teaser-text">
-                                       {newsItem.teaser}
-                               </div>
-                       </f:if>
-
-                       <f:if condition="{newsItem.contentElements}">
-                               <!-- content elements -->
-                               <f:cObject typoscriptObjectPath="lib.tx_news.contentElementRendering">{newsItem.contentElementIdList}</f:cObject>
-                       </f:if>
-
-                       <f:render partial="Detail/MediaContainer" arguments="{media: newsItem.media, settings:settings}"/>
-
-                       <!-- main text -->
-                       <div class="news-text-wrap">
-                               <f:format.html>{newsItem.bodytext}</f:format.html>
-                       </div>
-
-                       <f:if condition="{settings.backPid}">
-                               <!-- Link Back -->
-                               <div class="news-backlink-wrap">
-                                       <f:link.page pageUid="{settings.backPid}">
-                                               <f:translate key="back-link" />
-                                       </f:link.page>
-                               </div>
-                       </f:if>
-
-                       <div class="facebook">
-                               <div class="like">
-                                       <n:social.facebook.like></n:social.facebook.like>
-                               </div>
-                               <div class="share">
-                                       <n:social.facebook.share>Share</n:social.facebook.share>
-                               </div>
-                               <div class="twitter">
-                                       <n:social.twitter>Twitter</n:social.twitter>
-                               </div>
-                       </div>
-
-                       <!-- related things -->
-                       <div class="news-related-wrap">
-
-                               <f:if condition="{newsItem.relatedSorted}">
-                                       <!-- Related news records -->
-                                       <div class="news-related news-related-news">
-                                               <h4><f:translate key="related-news" /></h4>
-                                               <ul>
-                                                       <f:for each="{newsItem.relatedSorted}" as="related">
-                                                               <li>
-                                                                       <span class="news-related-news-date"><f:format.date format="d.m.Y">{related.datetime}</f:format.date></span>
-                                                                       <span class="hidden">. </span>
-                                                                       <n:link newsItem="{related}" settings="{settings}">
-                                                                               {related.title}
-                                                                       </n:link>
-                                                               </li>
-
-                                                       </f:for>
-                                               </ul>
-                                       </div>
-                               </f:if>
-
-                               <f:if condition="{newsItem.relatedFiles}">
-                                       <!-- Related files -->
-                                       <div class="news-related news-related-files">
-                                               <h4><f:translate key="related-files" /></h4>
-                                               <ul>
-                                                       <f:for each="{newsItem.relatedFiles}" as="relatedFile">
-                                                               <li>
-                                                                       <span class="news-related-files-link">
-                                                                               <n:format.fileDownload file="uploads/tx_news/{relatedFile.file}" configuration="{settings.relatedFiles.download}">
-                                                                                       <f:if condition="{relatedFile.title}">
-                                                                                               <f:then>
-                                                                                                       {relatedFile.title}
-                                                                                               </f:then>
-                                                                                               <f:else>
-                                                                                                       {relatedFile.file}
-                                                                                               </f:else>
-                                                                                       </f:if>
-                                                                               </n:format.fileDownload>
-                                                                       </span>
-                                                                       <span class="hidden">. </span>
-                                                                       <span class="news-related-files-size">
-                                                                               <n:format.fileSize file="uploads/tx_news/{relatedFile.file}" format="{settings.relatedFiles.fileSizeLabels}" />
-                                                                       </span>
-                                                               </li>
-                                                       </f:for>
-                                               </ul>
-                                       </div>
-                               </f:if>
-
-                               <f:if condition="{newsItem.relatedLinks}">
-                                       <!-- Related links -->
-                                       <div class="news-related news-related-links">
-                                               <h4><f:translate key="related-links" /></h4>
-                                               <ul>
-                                                       <f:for each="{newsItem.relatedLinks}" as="relatedLink">
-                                                               <li>
-                                                                       <f:link.page pageUid="{relatedLink.uri}">{relatedLink.title}</f:link.page>
-                                                               </li>
-                                                       </f:for>
-                                               </ul>
-                                       </div>
-                               </f:if>
-                       </div>
-               </f:then>
-               <f:else>
-
-               </f:else>
-       </f:if>
-</f:section>
\ No newline at end of file
diff --git a/Resources/Private/Templates/News/List.html b/Resources/Private/Templates/News/List.html
deleted file mode 100644 (file)
index bf71f94..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-<f:layout name="General" />
-<!--
-       =====================
-               Templates/News/List.html
--->
-
-<f:section name="content">
-<f:if condition="{news}">
-       <f:then>
-               <div class="news-list-view">
-                       <f:if condition="{settings.hidePagination}">
-                               <f:then>
-                                       <f:for each="{news}" as="newsItem">
-                                               <f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings}"/>
-                                       </f:for>
-                               </f:then>
-                               <f:else>
-                                       <n:widget.paginate objects="{news}" as="paginatedNews" configuration="{settings.list.paginate}">
-                                               <f:for each="{paginatedNews}" as="newsItem">
-                                                       <f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings}"/>
-                                               </f:for>
-                                       </n:widget.paginate>
-                               </f:else>
-                       </f:if>
-               </div>
-       </f:then>
-       <f:else>
-               <div class="no-news-found"><f:translate key="list_nonewsfound" /></div>
-       </f:else>
-</f:if>
-</f:section>
diff --git a/Resources/Private/Templates/News/List.xml b/Resources/Private/Templates/News/List.xml
deleted file mode 100644 (file)
index 3454b17..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-{namespace n=Tx_News_ViewHelpers}
-<rss version="2.0">
-       <channel>
-               <title>{settings.list.rss.channel.title}</title>
-               <link>{settings.list.rss.channel.link}</link>
-               <description>{settings.list.rss.channel.description}</description>
-               <language>{settings.list.rss.channel.language}</language>
-               <f:if condition="{settings.list.rss.channel.copyright}">
-                       <copyright>{settings.list.rss.channel.copyright}</copyright>
-               </f:if>
-               <pubDate><n:format.date format="%a, %d %b %Y %T %z" currentDate="1" strftime="1" /></pubDate>
-               <lastBuildDate><n:format.date format="%a, %d %b %Y %T %z" currentDate="1" strftime="1" /></lastBuildDate>
-               <f:if condition="{settings.list.rss.channel.category}">
-                       <category>{settings.list.rss.channel.category}</category>
-               </f:if>
-               <generator>{settings.list.rss.channel.generator}</generator>
-                       <f:if condition="{news}">
-                               <f:for each="{news}" as="newsItem">
-                                       <item>
-                                               <guid>news-{newsItem.uid}</guid>
-                                               <pubDate><n:format.date format="%a, %d %b %Y %T %z" currentDate="1" strftime="1">{newsItem.datetime}</n:format.date></pubDate>
-                                               <title><n:format.hsc>{newsItem.title}</n:format.hsc></title>
-                                               <link><n:link newsItem="{newsItem}" settings="{settings}" configuration="{returnLast:'url'}" hsc="TRUE"></n:link></link>
-                                               <description><n:format.hsc><n:format.striptags>{newsItem.teaser}</n:format.striptags></n:format.hsc></description>
-                                       </item>
-                               </f:for>
-                       </f:if>
-       </channel>
-</rss>
\ No newline at end of file
diff --git a/Resources/Private/Templates/News/SearchForm.html b/Resources/Private/Templates/News/SearchForm.html
deleted file mode 100644 (file)
index 5298887..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-<f:layout name="General" />
-<!--
-       =====================
-               Templates/News/SearchForm.html
--->
-
-<f:section name="content">
-       <div class="news-search-form">
-               <f:form object="{search}" name="search">
-                       <fieldset>
-                               <f:form.textfield property="subject" />
-                               <f:form.submit value="{f:translate(key:'search-start')}"/>
-                       </fieldset>
-               </f:form>
-       </div>
-</f:section>
\ No newline at end of file
diff --git a/Resources/Private/Templates/News/SearchResult.html b/Resources/Private/Templates/News/SearchResult.html
deleted file mode 100644 (file)
index 85aa857..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-{namespace n=Tx_News_ViewHelpers}
-<f:layout name="General" />
-<!--
-       =====================
-               Templates/News/SearchResult.html
--->
-
-<f:section name="content">
-       <div class="news-search-result">
-               <f:if condition="{search}">
-                       <f:if condition="{news}">
-                               <f:then>
-                                       <div class="count-msg">
-                                               <f:translate key="search-text" arguments="{0:'{f:count(subject:news)}',1:search.subject}" />
-                                       </div>
-                                       <f:for each="{news}" as="newsItem">
-                                               <f:render partial="List/Item" arguments="{newsItem: newsItem, settings:settings, className:className, view:'list'}"/>
-                                       </f:for>
-                               </f:then>
-                               <f:else>
-                                       <div class="no-news-found">
-                                               <f:translate key="search-noresult" />
-                                       </div>
-                               </f:else>
-                       </f:if>
-               </f:if>
-       </div>
-</f:section>
\ No newline at end of file