From 71879bb62c99142dbddcc4c14fb6436cfd600d8a Mon Sep 17 00:00:00 2001 From: Michael <michael.danielczok@gmail.com> Date: Fri, 18 Sep 2015 15:44:09 +0200 Subject: [PATCH] =?UTF-8?q?Inhalt=20wird=20=C3=BCber=20dem=20Brick=20angez?= =?UTF-8?q?eigt=20(neue=20Klasse=20quiqqer-bricks-sidebox3-content)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/QUI/Bricks/Controls/SideBox2.html | 15 +++++++-------- lib/QUI/Bricks/Controls/SideBox3.html | 13 ++++++------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/QUI/Bricks/Controls/SideBox2.html b/lib/QUI/Bricks/Controls/SideBox2.html index a56ab02..bb5397d 100644 --- a/lib/QUI/Bricks/Controls/SideBox2.html +++ b/lib/QUI/Bricks/Controls/SideBox2.html @@ -1,16 +1,15 @@ -{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')}"> + {if $this->getAttribute('content')} + <div class="quiqqer-bricks-sidebox2-content"> + {$this->getAttribute('content')} + </div> + {/if} + {foreach from=$children item=Site key=key} <article class="{$this->getAttribute('grid-class-article')}"> - {if $this->getAttribute( 'showImage' ) && $Site->getAttribute('image_site')} + {if $this->getAttribute( 'showImage' )} <a href="{url site=$Site}" class="image"> {image src=$Site->getAttribute('image_site') width=640} </a> diff --git a/lib/QUI/Bricks/Controls/SideBox3.html b/lib/QUI/Bricks/Controls/SideBox3.html index 8dce498..f125601 100644 --- a/lib/QUI/Bricks/Controls/SideBox3.html +++ b/lib/QUI/Bricks/Controls/SideBox3.html @@ -1,13 +1,12 @@ -{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')}"> + {if $this->getAttribute('content')} + <div class="quiqqer-bricks-sidebox3-content"> + {$this->getAttribute('content')} + </div> + {/if} + {foreach from=$children item=Site key=key} <article class="{$this->getAttribute('grid-class-article')}"> {if $this->getAttribute( 'showImage' )} -- GitLab