Skip to content
Snippets Groups Projects

[FEATURE] Rewrite News Slider Similar to Website-Base Sliders

Merged Tim Wagner requested to merge feature_fixHeaderStylingAndJavaScript into master
1 file
+ 22
19
Compare changes
  • Side-by-side
  • Inline
@@ -35,26 +35,28 @@
<p class="text-center tx-sgnews-teaser-meta">
<span class="author">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#FFF" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"/></svg>
<f:if condition="{newsMetaData.news.newsAuthor.frontendUser}">
<f:then>
<f:if condition="{newsMetaData.news.newsAuthor.frontendUser.www}">
<f:then>
<f:link.page pageUid="{newsMetaData.news.newsAuthor.frontendUser.www}">
<f:if condition="{newsMetaData.news.newsAuthor.frontendUser} || {newsMetaData.news.newsAuthor.nameAndRespectFrontendUser}">
<span class="author">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="#FFF" d="M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"/></svg>
<f:if condition="{newsMetaData.news.newsAuthor.frontendUser}">
<f:then>
<f:if condition="{newsMetaData.news.newsAuthor.frontendUser.www}">
<f:then>
<f:link.page pageUid="{newsMetaData.news.newsAuthor.frontendUser.www}">
{newsMetaData.news.newsAuthor.frontendUser.name}
</f:link.page>
</f:then>
<f:else>
{newsMetaData.news.newsAuthor.frontendUser.name}
</f:link.page>
</f:then>
<f:else>
{newsMetaData.news.newsAuthor.frontendUser.name}
</f:else>
</f:if>
</f:then>
<f:else>
{newsMetaData.news.newsAuthor.nameAndRespectFrontendUser}
</f:else>
</f:if>
</span>
</f:else>
</f:if>
</f:then>
<f:else>
{newsMetaData.news.newsAuthor.nameAndRespectFrontendUser}
</f:else>
</f:if>
</span>
</f:if>
<f:if condition="{newsMetaData.news.location}">
<span class="location">
@@ -72,6 +74,7 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="#FFF" d="M0 252.118V48C0 21.49 21.49 0 48 0h204.118a48 48 0 0 1 33.941 14.059l211.882 211.882c18.745 18.745 18.745 49.137 0 67.882L293.823 497.941c-18.745 18.745-49.137 18.745-67.882 0L14.059 286.059A48 48 0 0 1 0 252.118zM112 64c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48z"/></svg>
{newsMetaData.category.subtitleWithFallbackToTitle}
</span>
<f:if condition="{newsMetaData.news.tags}">
<br />
<span class="tags">
Loading