Skip to content
Code-Schnipsel Gruppen Projekte
Commit dff5bb08 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

Merge branch 'dev' of http://dev.quiqqer.com/quiqqer/package-bricks into dev

Übergeordnete 9ccb03c7 afc1330c
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
{if $this->getAttribute('header-title') && $this->getAttribute('header-short')} <div class="{$this->getAttribute('grid-class-row')}">
<header> {if $this->getAttribute('content')}
<h2>{$this->getAttribute('header-title')}</h2> <div class="quiqqer-bricks-sidebox2-content">
<p>{$this->getAttribute('header-short')}</p> {$this->getAttribute('content')}
</header> </div>
{/if} {/if}
</div>
<div class="{$this->getAttribute('grid-class-row')}"> <div class="{$this->getAttribute('grid-class-row')}">
{foreach from=$children item=Site key=key} {foreach from=$children item=Child key=key}
<article class="{$this->getAttribute('grid-class-article')}"> <article class="{$this->getAttribute('grid-class-article')} quiqqer-bricks-sidebox-article">
{if $this->getAttribute( 'showImage' ) && $Site->getAttribute('image_site')} {if $this->getAttribute( 'showImage' )}
<a href="{url site=$Site}" class="image"> <a href="{url site=$Child}" class="image">
{image src=$Site->getAttribute('image_site') width=640} {image src=$Child->getAttribute('image_site') width=640}
</a> </a>
{/if} {/if}
...@@ -20,8 +21,8 @@ ...@@ -20,8 +21,8 @@
<header> <header>
{if $this->getAttribute( 'showTitle' )} {if $this->getAttribute( 'showTitle' )}
<h3> <h3>
<a href="{url site=$Site}"> <a href="{url site=$Child}">
{$Site->getAttribute('title')} {$Child->getAttribute('title')}
</a> </a>
</h3> </h3>
{/if} {/if}
...@@ -30,26 +31,25 @@ ...@@ -30,26 +31,25 @@
{if $this->getAttribute( 'showShort' )} {if $this->getAttribute( 'showShort' )}
<p> <p>
{text_passage text=$Site->getAttribute('short') start=0 end=120 striphtml=true append="..."} {text_passage text=$Child->getAttribute('short') start=0 end=120 striphtml=true append="..."}
</p> </p>
{/if} {/if}
{if $this->getAttribute( 'showContent' )} {if $this->getAttribute( 'showContent' )}
{$Site->getAttribute('content')} {$Child->getAttribute('content')}
{/if} {/if}
<footer> <footer class="article-button">
<a href="{url site=$Site}" class="button"> <a href="{url site=$Child}" class="button">
{locale group="quiqqer/bricks" var="continue.reading"} {locale group="quiqqer/bricks" var="continue.reading"}
</a> </a>
</footer> </footer>
</article> </article>
{assign var=modKey value=$key+1} {assign var=modKey value=$key+1}
{if $modKey && $modKey % 2 === 0} {if $modKey && $modKey % 2 === 0 && $Child@last}
</div> </div>
<div class="{$this->getAttribute('grid-class-row')}"> <div class="{$this->getAttribute('grid-class-row')}">
{/if} {/if}
{/foreach} {/foreach}
</div> </div>
{if $this->getAttribute('header-title') && $this->getAttribute('header-short')}
<header>
<h2>{$this->getAttribute('header-title')}</h2>
<p>{$this->getAttribute('header-short')}</p>
</header>
{/if}
<div class="{$this->getAttribute('grid-class-row')}"> <div class="{$this->getAttribute('grid-class-row')}">
{foreach from=$children item=Site key=key} {if $this->getAttribute('content')}
<article class="{$this->getAttribute('grid-class-article')}"> <div class="quiqqer-bricks-sidebox3-content">
{if $this->getAttribute( 'showImage' )} {$this->getAttribute('content')}
<a href="{url site=$Site}" class="image"> </div>
{image src=$Site->getAttribute('image_site') width=640} {/if}
</a>
{/if}
{if $this->getAttribute( 'showTitle' ) || $this->getAttribute( 'showShort' )} <div class="row" style="display: flex;">
<header>
{if $this->getAttribute( 'showTitle' )} {foreach from=$children item=Child key=key}
<h3> <article class="{$this->getAttribute('grid-class-article')} quiqqer-bricks-sidebox-article">
<a href="{url site=$Site}"> {if $this->getAttribute( 'showImage' )}
{$Site->getAttribute('title')} <a href="{url site=$Child}" class="image">
</a> {image src=$Child->getAttribute('image_site') width=640}
</h3> </a>
{/if} {/if}
</header>
{/if}
{if $this->getAttribute( 'showShort' )} {if $this->getAttribute( 'showTitle' ) || $this->getAttribute( 'showShort' )}
<p> <header>
{text_passage text=$Site->getAttribute('short') start=0 end=120 striphtml=true append="..."} {if $this->getAttribute( 'showTitle' )}
</p> <h3>
{/if} <a href="{url site=$Child}">
{$Child->getAttribute('title')}
</a>
</h3>
{/if}
</header>
{/if}
{if $this->getAttribute( 'showContent' )} {if $this->getAttribute( 'showShort' )}
{$Site->getAttribute('content')} <p>
{/if} {text_passage text=$Child->getAttribute('short') start=0 end=120 striphtml=true append="..."}
</p>
{/if}
<footer> {if $this->getAttribute( 'showContent' )}
<a href="{url site=$Site}" class="button"> {$Child->getAttribute('content')}
{locale group="quiqqer/bricks" var="continue.reading"} {/if}
</a>
</footer>
</article>
{assign var=modKey value=$key+1} <footer class="article-button">
{if $modKey && $modKey % 3 === 0} <a href="{url site=$Child}" class="button">
</div> {locale group="quiqqer/bricks" var="continue.reading"}
<div class="{$this->getAttribute('grid-class-row')}"> </a>
{/if} </footer>
</article>
{assign var=modKey value=$key+1}
{if $modKey && $modKey % 3 === 0 && $Child@last}
</div>
<div class="{$this->getAttribute('grid-class-row')}">
{/if}
{/foreach} {/foreach}
</div>
</div> </div>
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren