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
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
/**/ .brick-image > p {
\ No newline at end of file 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} {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> </section>
\ No newline at end of file
...@@ -27,8 +27,7 @@ public function __construct($attributes = array()) ...@@ -27,8 +27,7 @@ public function __construct($attributes = array())
// default options // default options
$this->setAttributes(array( $this->setAttributes(array(
'title' => 'Image Brick', 'title' => 'Image Brick',
'contentList' => false, 'contentList' => false
'entries' => array()
)); ));
parent::__construct($attributes); parent::__construct($attributes);
...@@ -46,14 +45,14 @@ public function __construct($attributes = array()) ...@@ -46,14 +45,14 @@ public function __construct($attributes = array())
*/ */
public function getBody() public function getBody()
{ {
$Engine = QUI::getTemplateManager()->getEngine(); $Engine = QUI::getTemplateManager()->getEngine();
$entries = $this->getAttribute('entries');
$brickImage = $this->getAttribute('picture'); $brickImage = $this->getAttribute('picture');
$brickLink = $this->getAttribute('link');
$Engine->assign(array( $Engine->assign(array(
'this' => $this, 'this' => $this,
'entries' => $entries, 'brickImage' => $brickImage,
'brickImag' => $brickImage 'brickLink' => $brickLink
)); ));
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren