Skip to content
Code-Schnipsel Gruppen Projekte
Commit 90d35b4e erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

feat: box content advanced has new setting per entry: site url.

Übergeordneter 35372e3b
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
...@@ -11,6 +11,10 @@ ...@@ -11,6 +11,10 @@
<span class="entry-title">{{entryImage}}</span> <span class="entry-title">{{entryImage}}</span>
<input class="media-image" data-qui-options-selectable_types="image" data-qui-options-cssclasses="1" name="entryImage"/> <input class="media-image" data-qui-options-selectable_types="image" data-qui-options-cssclasses="1" name="entryImage"/>
</label> </label>
<label>
<span class="entry-title">{{entryUrl}}</span>
<input type="text" name="entryUrl" class="project-site" data-external="1" />
</label>
<label> <label>
<span class="entry-title">{{entryOrder}}</span> <span class="entry-title">{{entryOrder}}</span>
<input type="number" name="entryOrder"/> <input type="number" name="entryOrder"/>
......
...@@ -99,3 +99,7 @@ ...@@ -99,3 +99,7 @@
background: #fff; background: #fff;
height: 120px !important; height: 120px !important;
} }
.quiqqer-bricks-boxContentAdvanced-entry .qui-controls-project-site-input {
display: flex;
}
\ No newline at end of file
...@@ -46,6 +46,7 @@ define('package/quiqqer/bricks/bin/Controls/BoxContentAdvanced', [ ...@@ -46,6 +46,7 @@ define('package/quiqqer/bricks/bin/Controls/BoxContentAdvanced', [
'entryTitle' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryTitle'), 'entryTitle' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryTitle'),
'entrySubTitle': QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entrySubTitle'), 'entrySubTitle': QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entrySubTitle'),
'entryImage' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryImage'), 'entryImage' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryImage'),
'entryUrl' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryUrl'),
'entryOrder' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryOrder'), 'entryOrder' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryOrder'),
'entryContent' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryContent') 'entryContent' : QUILocale.get(lg, 'bricks.BoxContentAdvanced.entries.settings.entryContent')
}) })
......
...@@ -1469,6 +1469,10 @@ M&ouml;chten Sie die Bausteine aus der Bausteinzone entfernen?</p>]]></de> ...@@ -1469,6 +1469,10 @@ M&ouml;chten Sie die Bausteine aus der Bausteinzone entfernen?</p>]]></de>
<de><![CDATA[Bild]]></de> <de><![CDATA[Bild]]></de>
<en><![CDATA[Image]]></en> <en><![CDATA[Image]]></en>
</locale> </locale>
<locale name="bricks.BoxContentAdvanced.entries.settings.entryUrl">
<de><![CDATA[Seiten-Url]]></de>
<en><![CDATA[Site url]]></en>
</locale>
<locale name="bricks.BoxContentAdvanced.entries.settings.entryOrder"> <locale name="bricks.BoxContentAdvanced.entries.settings.entryOrder">
<de><![CDATA[Priorität]]></de> <de><![CDATA[Priorität]]></de>
<en><![CDATA[Priority]]></en> <en><![CDATA[Priority]]></en>
......
...@@ -4,19 +4,41 @@ ...@@ -4,19 +4,41 @@
{assign var=centerText value='centerText'} {assign var=centerText value='centerText'}
{/if} {/if}
{foreach from=$entries item=entry} {foreach from=$entries item=entry}
{if $entry.entryUrl && QUI\Projects\Site\Utils::getSiteByLink($entry.entryUrl)}
{assign var=TargetSite value=QUI\Projects\Site\Utils::getSiteByLink($entry.entryUrl)}
{/if}
<div class="quiqqer-boxContentAdvanced-entry-container quiqqer-boxContentAdvanced{$entriesPerLine} {$centerText}" <div class="quiqqer-boxContentAdvanced-entry-container quiqqer-boxContentAdvanced{$entriesPerLine} {$centerText}"
{if $entry.entryOrder}style="order: {$entry.entryOrder}"{/if}> {if $entry.entryOrder}style="order: {$entry.entryOrder}"{/if}>
<div class="quiqqer-boxContentAdvanced-entry"> <div class="quiqqer-boxContentAdvanced-entry">
{if $entry.entryImage} {if $entry.entryImage}
<div class="quiqqer-boxContentAdvanced-entry-img control-color"> {if $entry.entryUrl}
{image src=$entry.entryImage width="500"} <a href="{url site=$TargetSite rewrited=1}" title="{$TargetSite->getAttribute('title')}">
</div> {/if}
<div class="quiqqer-boxContentAdvanced-entry-img control-color">
{image src=$entry.entryImage width="500"}
</div>
{if $entry.entryUrl}
</a>
{/if}
{/if} {/if}
<header> <header>
<h4 class="quiqqer-boxContentAdvanced-entry-title" title="{$entry.entryTitle|escape:'html'}"> <h4 class="quiqqer-boxContentAdvanced-entry-title" title="{$entry.entryTitle|escape:'html'}">
{if $entry.entryUrl}
<a href="{url site=$TargetSite rewrited=1}" title="{$TargetSite->getAttribute('title')}">
{/if}
{$entry.entryTitle|escape:'html'} {$entry.entryTitle|escape:'html'}
{if $entry.entryUrl}
</a>
{/if}
</h4> </h4>
{if $entry.entrySubTitle} {if $entry.entrySubTitle}
<span class="quiqqer-boxContentAdvanced-entry-subTitle"> <span class="quiqqer-boxContentAdvanced-entry-subTitle">
{$entry.entrySubTitle|escape:'html'} {$entry.entrySubTitle|escape:'html'}
......
...@@ -4,19 +4,41 @@ ...@@ -4,19 +4,41 @@
{assign var=centerText value='centerText'} {assign var=centerText value='centerText'}
{/if} {/if}
{foreach from=$entries item=entry} {foreach from=$entries item=entry}
{if $entry.entryUrl && QUI\Projects\Site\Utils::getSiteByLink($entry.entryUrl)}
{assign var=TargetSite value=QUI\Projects\Site\Utils::getSiteByLink($entry.entryUrl)}
{/if}
<div class="quiqqer-boxContentAdvanced-entry-container quiqqer-boxContentAdvanced{$entriesPerLine} {$centerText}" <div class="quiqqer-boxContentAdvanced-entry-container quiqqer-boxContentAdvanced{$entriesPerLine} {$centerText}"
{if $entry.entryOrder}style="order: {$entry.entryOrder}"{/if}> {if $entry.entryOrder}style="order: {$entry.entryOrder}"{/if}>
<div class="quiqqer-boxContentAdvanced-entry"> <div class="quiqqer-boxContentAdvanced-entry">
{if $entry.entryImage} {if $entry.entryImage}
<div class="quiqqer-boxContentAdvanced-entry-img control-color"> {if $entry.entryUrl}
{image src=$entry.entryImage width="500"} <a href="{url site=$TargetSite rewrited=1}" title="{$TargetSite->getAttribute('title')}">
</div> {/if}
<div class="quiqqer-boxContentAdvanced-entry-img control-color">
{image src=$entry.entryImage width="500"}
</div>
{if $entry.entryUrl}
</a>
{/if}
{/if} {/if}
<header> <header>
<h4 class="quiqqer-boxContentAdvanced-entry-title" title="{$entry.entryTitle|escape:'html'}"> <h4 class="quiqqer-boxContentAdvanced-entry-title" title="{$entry.entryTitle|escape:'html'}">
{if $entry.entryUrl}
<a href="{url site=$TargetSite rewrited=1}" title="{$TargetSite->getAttribute('title')}">
{/if}
{$entry.entryTitle|escape:'html'} {$entry.entryTitle|escape:'html'}
{if $entry.entryUrl}
</a>
{/if}
</h4> </h4>
{if $entry.entrySubTitle} {if $entry.entrySubTitle}
<span class="quiqqer-boxContentAdvanced-entry-subTitle"> <span class="quiqqer-boxContentAdvanced-entry-subTitle">
{$entry.entrySubTitle|escape:'html'} {$entry.entrySubTitle|escape:'html'}
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren