Skip to content
Code-Schnipsel Gruppen Projekte
Commit 2f78e35b erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'dev' of dev.quiqqer.com:quiqqer/package-bricks into dev

Übergeordnete f27e126f ac0bdf5b
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
/**/
\ No newline at end of file
.brick-image > p {
margin-bottom: 20px;
}
a.brick-image-link:hover {
outline: none;
background: none;
border: none;
box-shadow: none;
}
a.brick-image-link {
display: block;
}
\ No newline at end of file
{assign var=img value=$brickImage}
<section>
{assign var=link value=$brickLink}
<section class="content-body grid-100 mobile-grid-100 grid-parent brick-image">
{image src=$brickImage}
{$this->getAttribute('content')}
{if $link != ""}
<a class="brick-image-link" href="{$link}">
{/if}
{image src=$img}
{if $link != ""}
</a>
{/if}
</section>
\ No newline at end of file
......@@ -27,8 +27,7 @@ public function __construct($attributes = array())
// default options
$this->setAttributes(array(
'title' => 'Image Brick',
'contentList' => false,
'entries' => array()
'contentList' => false
));
parent::__construct($attributes);
......@@ -46,14 +45,14 @@ public function __construct($attributes = array())
*/
public function getBody()
{
$Engine = QUI::getTemplateManager()->getEngine();
$entries = $this->getAttribute('entries');
$Engine = QUI::getTemplateManager()->getEngine();
$brickImage = $this->getAttribute('picture');
$brickLink = $this->getAttribute('link');
$Engine->assign(array(
'this' => $this,
'entries' => $entries,
'brickImag' => $brickImage
'this' => $this,
'brickImage' => $brickImage,
'brickLink' => $brickLink
));
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren