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 -%} |
Scheercuzy | f483582 | 2016-12-29 18:56:44 +0630 | [diff] [blame] | 16 | <a href="{{ frappe.utils.quoted(website_image) }}"> |
| 17 | <img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive"> |
| 18 | </a> |
Rushabh Mehta | 156ce60 | 2015-09-11 18:49:59 +0530 | [diff] [blame] | 19 | {%- endif %} |
| 20 | </div> |
| 21 | {% endmacro %} |
pratu16x7 | 60fe77c | 2017-02-13 21:52:43 +0530 | [diff] [blame^] | 22 | |
| 23 | {% macro media_image(website_image, name, css_class="") %} |
| 24 | {% if website_image -%} |
| 25 | <meta itemprop="image" content="{{ frappe.utils.quoted(website_image) | abs_url }}"></meta> |
| 26 | {%- endif %} |
| 27 | <div class="product-image product-image-square thumbsize {{ css_class }}" |
| 28 | {% if not website_image -%}{{ name }}{%- endif %} |
| 29 | {% if website_image -%} |
| 30 | style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" |
| 31 | {%- endif %}> |
| 32 | </div> |
| 33 | {% endmacro %} |
| 34 | |
| 35 | {% macro bom_image(website_image, name, css_class="") %} |
| 36 | <div class="product-image {{ css_class }}"> |
| 37 | {% if not website_image -%}{{ name }}{%- endif %} |
| 38 | {% if website_image -%} |
| 39 | <a href="{{ frappe.utils.quoted(website_image) }}"> |
| 40 | <img itemprop="image" src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive"> |
| 41 | </a> |
| 42 | {%- endif %} |
| 43 | </div> |
| 44 | {% endmacro %} |