Skip to content
Code-Schnipsel Gruppen Projekte
SideBox3.html 1,73 KiB
Newer Older
  • Learn to ignore specific revisions
  • Henning Leutz's avatar
    Henning Leutz committed
    
    
    <div class="quiqqer-bricks-sidebox3">
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
        {if $this->getAttribute('content')}
        <div class="quiqqer-bricks-sidebox3-content">
            {$this->getAttribute('content')}
        </div>
        {/if}
    
    
        <div class="quiqqer-bricks-sidebox3-row">
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
    Michael's avatar
    Michael committed
            {foreach from=$children item=Child key=key}
    
            <article class="quiqqer-bricks-sidebox3-article">
    
    Michael's avatar
    Michael committed
                {if $this->getAttribute( 'showImage' )}
                <a href="{url site=$Child}" class="image">
                    {image src=$Child->getAttribute('image_site') width=640}
                </a>
    
    Henning Leutz's avatar
    Henning Leutz committed
                {/if}
    
    
    Michael's avatar
    Michael committed
                {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}
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
    Michael's avatar
    Michael committed
                {if $this->getAttribute( 'showShort' )}
                <p>
                    {text_passage text=$Child->getAttribute('short') start=0 end=120 striphtml=true append="..."}
                </p>
                {/if}
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
    Michael's avatar
    Michael committed
                {if $this->getAttribute( 'showContent' )}
                    {$Child->getAttribute('content')}
                {/if}
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
    Michael's avatar
    Michael committed
                <footer class="article-button">
                    <a href="{url site=$Child}" class="button">
                        {locale group="quiqqer/bricks" var="continue.reading"}
                    </a>
                </footer>
            </article>
    
    Henning Leutz's avatar
    Henning Leutz committed
    
    
    Michael's avatar
    Michael committed
            {assign var=modKey value=$key+1}
    
            {if $modKey && $modKey % 3 === 0 && !$Child@last}
    
    Michael's avatar
    Michael committed
                </div>
    
                <div class="quiqqer-bricks-sidebox3-row">
    
    Michael's avatar
    Michael committed
            {/if}
    
            {/foreach}
        </div>
    
    Henning Leutz's avatar
    Henning Leutz committed
    </div>