Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<div class="{$this->getAttribute('grid-class-row')}">
{if $this->getAttribute('content')}
<div class="quiqqer-bricks-sidebox2-content">
{$this->getAttribute('content')}
</div>
{/if}
</div>
<div class="{$this->getAttribute('grid-class-row')}">
{foreach from=$children item=Child key=key}
<article class="{$this->getAttribute('grid-class-article')} quiqqer-bricks-sidebox-article">
{if $this->getAttribute( 'showImage' )}
<a href="{url site=$Child}" class="image">
{image src=$Child->getAttribute('image_site') width=640}
</a>
{/if}
{if $this->getAttribute( 'showTitle' ) || $this->getAttribute( 'showShort' )}
<header>
{if $this->getAttribute( 'showTitle' )}
<h3>
<a href="{url site=$Child}">
{$Child->getAttribute('title')}
</a>
</h3>
{/if}
</header>
{/if}
{if $this->getAttribute( 'showShort' )}
<p>
{text_passage text=$Child->getAttribute('short') start=0 end=120 striphtml=true append="..."}
</p>
{/if}
{if $this->getAttribute( 'showContent' )}
{$Child->getAttribute('content')}
{/if}
<footer class="article-button">
<a href="{url site=$Child}" class="button">
{locale group="quiqqer/bricks" var="continue.reading"}
</a>
</footer>
</article>
{assign var=modKey value=$key+1}
{if $modKey && $modKey % 2 === 0 && $Child@last}
</div>
<div class="{$this->getAttribute('grid-class-row')}">
{/if}
{/foreach}
</div>