Anand Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 1 | {% macro product_image_square(website_image, css_class="") %} |
Rushabh Mehta | 440650d | 2016-11-14 13:13:53 +0530 | [diff] [blame^] | 2 | {% 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 Doshi | da858cc | 2015-02-24 17:50:44 +0530 | [diff] [blame] | 10 | </div> |
| 11 | {% endmacro %} |
| 12 | |
| 13 | {% macro product_image(website_image, css_class="") %} |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 14 | <div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"> |
| 15 | {% if website_image -%} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 16 | <img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive"> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 17 | {%- endif %} |
| 18 | </div> |
| 19 | {% endmacro %} |