<div style="position: absolute; top: -5000px; height: 1px; overflow: hidden;">
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "HobbyShop",
"name": "{{ sett.get('sitename')|raw }}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{ sett.get('address')|raw }}",
"addressLocality": "{{ sett.get('city')|raw }}",
"addressRegion": "",
"postalCode": "{{ sett.get('zipcode')|raw }}"
},
"image": "{{ sett.get('logo')|raw }}",
"email": "{{ sett.get('stuffemail')|raw }}",
"telephone": "{{ sett.get('phone')|raw }}",
"url": "https://{{ http_host }}",
"paymentAccepted": [ "cash", "credit card" ],
"openingHours": "Mo,Tu,We,Th,Fr,Sa,Su 00:00-23:59",
"geo": {
"@type": "GeoCoordinates",
"latitude": "{{ sett.get('geo_latitude')|raw }}",
"longitude": "{{ sett.get('geo_longitude')|raw }}"
},
"priceRange": "$"
}
</script>
{% if args[0] == 'catalog' and cat and prod is empty %}
{% set minprice = 99999999999 %}
{% set maxprice = 0 %}
{% for prod in prods %}
{% if prod.price and prod.price < minprice and prod.num > 0%}
{% set minprice = prod.price %}
{% endif %}
{% if prod.price2 and prod.price2 < minprice and prod.num2 > 0 %}
{% set minprice = prod.price2 %}
{% endif %}
{% if prod.price3 and prod.price3 < minprice and prod.num3 > 0 %}
{% set minprice = prod.price3 %}
{% endif %}
{% if prod.price and prod.price > maxprice and prod.num > 0 %}
{% set maxprice = prod.price %}
{% endif %}
{% if prod.price2 and prod.price2 > maxprice and prod.num2 > 0 %}
{% set maxprice = prod.price2 %}
{% endif %}
{% if prod.price3 and prod.price3 > maxprice and prod.num3 > 0 %}
{% set maxprice = prod.price3 %}
{% endif %}
{% endfor %}
<div itemscope itemtype="https://schema.org/Product">
<meta itemprop="name" content="{{ page.name }}" />
<link itemprop="image" href="{{ asset(env.host_static ~ '/pic/cat/' ~ cat.id ~ '.jpg') }}" />
<meta itemprop="description" content="{{ page.descr }}" />
<div itemtype="https://schema.org/AggregateOffer" itemscope="" itemprop="offers">
<meta content="{{ cnt }}" itemprop="offerCount">
<meta content="{{ maxprice|fmtmoney }}" itemprop="highPrice">
<meta content="{{ minprice|fmtmoney }}" itemprop="lowPrice">
<meta content="{{ sett.get('valuta_code')|raw }}" itemprop="priceCurrency">
</div>
</div>
{% endif %}
{% if args[0] == 'catalog' and prod %}
<div itemscope itemtype="https://schema.org/Product">
<span itemprop="name">{{ prod.name }}</span>
<link itemprop="image" href="{{ asset(env.host_static ~ '/pic/prod-l/' ~ prod.id ~ '.jpg') }}" />
<div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<link itemprop="url" href="https://{{ http_host }}/catalog/prod-{{ prod.id }}" />
<meta itemprop="priceCurrency" content="{{ sett.get('valuta_code')|raw }}" />
<span itemprop="price" content="{{ prod.price|fmtmoney }}">{{ prod.price|fmtmoney }}</span>
<link itemprop="availability" href="https://schema.org/InStock" />
</div>
<span itemprop="description">{{ page.descr }}</span>
{% if comments is not empty %}
<div itemprop="review" itemscope itemtype="https://schema.org/Review">
{% for comment in comments %}
<span itemprop="name">{{ labels.get('razmetka-1')|raw }}</span>
{{ labels.get('razmetka-2')|raw }} <span itemprop="author">{{ comment.author }}</span>,
<meta itemprop="datePublished" content="{{ comment.tstamp|date('Y-m-d') }}">
<span itemprop="description">{{ comment.cont }}</span>
{% endfor %}
</div>
{% endif %}
</div>
{% endif %}
{% if bc|length %}
{% set i = 0 %}
<ol itemscope itemtype="https://schema.org/BreadcrumbList">
{% for l, t in bc %}
<li itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
<a itemprop="item" href="{{ env.host_static ~ l }}">
<span itemprop="name">{{ t|replace({'"': ''})|striptags }}</span></a>
<meta itemprop="position" content="{% set i = i + 1 %}{{ i }}" />
</li>
{% endfor %}
</ol>
{% endif %}
</div>