{if $this->getAttribute('showTitle') && $this->getAttribute('frontendTitle')}
{/if} {if $this->getAttribute('content') != ""}
{$this->getAttribute('content')}
{/if} {foreach from=$entries item=entry key=key} {image src=$entry.img width=1000 onlysrc=true assign=img} {assign var=modKey value=$key+1}
{if !$this->getAttribute( 'startImgOnLeft' )}
{if $img != ""} {image src=$entry.img class="content-switcher-image-img"} {/if}
{* Fix content & title issue *} {* https://dev.quiqqer.com/quiqqer/package-bricks/issues/97 *} {if isset($entry['title']) && $entry['title']}

## {$entry['title']}

{elseif isset($entry['content-switcher-title']) && $entry['content-switcher-title']}

## {$entry['content-switcher-title']}

{/if} {if isset($entry['content']) && $entry['content']}
{$entry.content}
{elseif isset($entry['content-switcher-content']) && $entry['content-switcher-content']}
{$entry['content-switcher-content']}
{/if} {* end fix *}
{else}
{if $img != ""} {image src=$entry.img class="content-switcher-image-img"} {/if}
{* Fix content & title issue *} {* https://dev.quiqqer.com/quiqqer/package-bricks/issues/97 *} {if isset($entry['title']) && $entry['title']}

## {$entry['title']}

{elseif isset($entry['content-switcher-title']) && $entry['content-switcher-title']}

## {$entry['content-switcher-title']}

{/if} {if isset($entry['content']) && $entry['content']}
{$entry.content}
{elseif isset($entry['content-switcher-content']) && $entry['content-switcher-content']}
{$entry['content-switcher-content']}
{/if} {* end fix *}
{/if}
{/foreach}