Skip to content
Code-Schnipsel Gruppen Projekte
Slider.html 1,2 KiB
Newer Older
<div class="quiqqer-bricks-children-slider-container">
    <div class="quiqqer-bricks-children-slider-container-inner">
        <ul class="quiqqer-bricks-children-slider-container-slide">
            {foreach from=$children item=Child}
            {assign var=hasImage value=0}
            {if $Child->getAttribute('image_site')}
                {assign var=hasImage value=1}
            {/if}
            <li class="grid-25 quiqqer-bricks-children-slider-child">
                <article class="quiqqer-bricks-children-slider-child-display">
                    <a href="{url site=$Child}" title="{$Child->getAttribute('title')|escape:"html"}">
                        {if !$hasImage}
                        <header>
                            {$Child->getAttribute('title')}
                        </header>
                        {$Child->getAttribute('short')}
                        {else}
                        {image src=$Child->getAttribute('image_site')
                            style="width: 100%; height: auto;"
                            maxwidth="280"}
                        {/if}
                    </a>
                </article>
            </li>
            {/foreach}
        </ul>
    </div>
</div>