Skip to content
Snippets Groups Projects
Commit 65532527 authored by Michael Kessler's avatar Michael Kessler
Browse files

[TASK] Rename and refactor layout names

parent 62c0fd70
No related branches found
No related tags found
1 merge request!30Feature latest news slider
This commit is part of merge request !30. Comments created here will be created in the context of that merge request.
......@@ -126,12 +126,12 @@
<renderType>selectSingle</renderType>
<items>
<numIndex index="0">
<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.default</numIndex>
<numIndex index="1">default</numIndex>
<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.1</numIndex>
<numIndex index="1">layout-1</numIndex>
</numIndex>
<numIndex index="1">
<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.content</numIndex>
<numIndex index="1">content</numIndex>
<numIndex index="0">LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.2</numIndex>
<numIndex index="1">layout-2</numIndex>
</numIndex>
</items>
</config>
......@@ -140,7 +140,7 @@
<settings.columns>
<TCEforms>
<displayCond>FIELD:settings.layout:=:content</displayCond>
<displayCond>FIELD:settings.layout:=:layout-2</displayCond>
<label>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.columns</label>
<description>LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:plugin.flexForm.layout.columns.description</description>
<config>
......
......@@ -113,6 +113,14 @@
<source><![CDATA[Layout]]></source>
<target><![CDATA[Layout]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.1" approved="yes">
<source><![CDATA[Layout 1]]></source>
<target><![CDATA[Layout 1]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.2" approved="yes">
<source><![CDATA[Layout 2]]></source>
<target><![CDATA[Layout 2]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.columns" approved="yes">
<source><![CDATA[Columns]]></source>
<target><![CDATA[Spalten]]></target>
......@@ -121,14 +129,6 @@
<source><![CDATA[The number of columns. (1-3)]]></source>
<target><![CDATA[Die Anzahl an Spalten. (1-3)]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.content" approved="yes">
<source><![CDATA[Content]]></source>
<target><![CDATA[Content]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.default" approved="yes">
<source><![CDATA[Default]]></source>
<target><![CDATA[Standard]]></target>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.navigation" approved="yes">
<source><![CDATA[Navigation dots]]></source>
<target><![CDATA[Navigationspunkte]]></target>
......
......@@ -87,18 +87,18 @@
<trans-unit id="plugin.flexForm.layout">
<source><![CDATA[Layout]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.1">
<source><![CDATA[Layout 1]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.2">
<source><![CDATA[Layout 2]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.columns">
<source><![CDATA[Columns]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.columns.description">
<source><![CDATA[The number of columns. (1-3)]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.content">
<source><![CDATA[Content]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.default">
<source><![CDATA[Default]]></source>
</trans-unit>
<trans-unit id="plugin.flexForm.layout.navigation">
<source><![CDATA[Navigation dots]]></source>
</trans-unit>
......
......@@ -2,7 +2,7 @@
<f:section name="main">
<f:switch expression="{settings.layout}">
<f:case value="content">
<f:case value="layout-2">
<f:render section="layout-content" arguments="{_all}" />
</f:case>
<f:defaultCase>
......@@ -12,7 +12,7 @@
</f:section>
<f:section name="layout-content">
<div id="carousel-latest-news" class="sg-slide-element sg-slide-not-initialized sg-slide-layout--{settings.layout}"
<div id="carousel-latest-news" class="sg-slide-element sg-slide-not-initialized sg-slide-{settings.layout}"
data-interval="0" data-current-columns="1"
data-columns="{f:if(condition: '{newsMetaData -> f:count()} > {settings.columns}}', then: '{settings.columns}', else: '{newsMetaData -> f:count()}')}">
<div class="sg-slide-track">
......
$sg-news-headline-underline-width: 35px;
$sg-news-chevron-color: var(--component-color-primary-background, $black-base);
.sg-slide-layout--content {
.sg-slide-layout-2 {
.sg-slide-track,
.sg-slide-container {
background: transparent;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment