Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save factoryhr/fd784bdb5e389337209a2ea83d90d74f to your computer and use it in GitHub Desktop.
Save factoryhr/fd784bdb5e389337209a2ea83d90d74f to your computer and use it in GitHub Desktop.
<?php
/**
* @var \Pimcore\Templating\PhpEngine $this
* @var \Pimcore\Templating\PhpEngine $view
* @var \Pimcore\Templating\GlobalVariables $app
*/
$this->extend('layout.html.php');
?>
<div class="content-wrapper">
<div class="item-container">
<div class="row justify-content-center">
<div class="thumbnail">
<?php
<!-- Display logo -->
$logo = $brand->getLogo();
if ($logo instanceof \Pimcore\Model\Asset\Image) : ?>
<?= $logo->getThumbnail("content")->getHtml(); ?>
<?php endif; ?>
</div>
</div>
<hr />
<div class="row">
<!-- Display products -->
<?php foreach ($products as $product) : $i++; ?>
<?= $this->template(':Shop/list:product.html.php', array('product' => $product)) ?>
<?php endforeach; ?>
</div>
</div>
</div>
@factoryhr
Copy link
Author

Blog post - Pimcore learning experience - brand view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment