blob: da21748f77504adb4d3693725bfe0ce933e9e4cc [file] [log] [blame]
Anand Doshida858cc2015-02-24 17:50:44 +05301{% macro product_image_square(website_image, css_class="") %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +05302{% if website_image -%} <meta itemprop="image" content="{{ frappe.utils.quoted(website_image) | abs_url }}"></meta>{%- endif %}
Anand Doshida858cc2015-02-24 17:50:44 +05303<div class="product-image product-image-square {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
Anand Doshi886def02015-07-22 14:43:17 +05304 {% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}>
Anand Doshida858cc2015-02-24 17:50:44 +05305</div>
6{% endmacro %}
7
8{% macro product_image(website_image, css_class="") %}
Rushabh Mehta156ce602015-09-11 18:49:59 +05309 <div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
10 {% if website_image -%}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053011 <img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
Rushabh Mehta156ce602015-09-11 18:49:59 +053012 {%- endif %}
13 </div>
14{% endmacro %}