first commit
This commit is contained in:
15
templates/shop-product/_partial/product-meta.php
Normal file
15
templates/shop-product/_partial/product-meta.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
use shop\Product;
|
||||
$product_meta = Product::product_meta($this->product_id);
|
||||
?>
|
||||
|
||||
<?php if (is_array($product_meta) && count($product_meta)): ?>
|
||||
<? $lastKey = array_key_last($product_meta); ?>
|
||||
|
||||
<div id="product-meta">
|
||||
Kategorie:
|
||||
<? foreach ($product_meta as $key => $value) : ?>
|
||||
<a href="/<?= $value['seo_link']; ?>"><?= $value['title']; ?></a><?= $lastKey != $key ? ', ': ''; ?>
|
||||
<? endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user