blob: a25f313f600af08e960305ce65c6b8cf3b9cc533 [file] [log] [blame]
Anand Doshida858cc2015-02-24 17:50:44 +05301{% macro product_image_square(website_image, css_class="") %}
Rushabh Mehta440650d2016-11-14 13:13:53 +05302{% if website_image -%}
3 <meta itemprop="image" content="{{ frappe.utils.quoted(website_image) | abs_url }}"></meta>
4{%- endif %}
5<div class="product-image product-image-square
6 {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
7 {% if website_image -%}
8 style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');"
9 {%- endif %}>
Anand Doshida858cc2015-02-24 17:50:44 +053010</div>
11{% endmacro %}
12
13{% macro product_image(website_image, css_class="") %}
Rushabh Mehta156ce602015-09-11 18:49:59 +053014 <div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
15 {% if website_image -%}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053016 <img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
Rushabh Mehta156ce602015-09-11 18:49:59 +053017 {%- endif %}
18 </div>
19{% endmacro %}