Hello,
I am experiencing unformatted code when uploading or downloading files to and from my hosting provider using FileZilla. Does anyone know why this occurs? The code is written using the Liquid template language.
Before:
<ul class="list-unstyled list-products">
{% for product in products %}
<li class="row mb-4">
<div class="col-6 col-sm-3">
<div class="product-image">
{% if product.stickers %}
<!-- Stickers -->
<ul class="stickers">
{% if
product.new %}
<li>
<span class="product-label product-label_new">NEW</span>
</li>
{% endif %}
{% if product.hit %}
<li>
<span class="product-label product-label_hit">HIT</span>
</li>
{% endif %}
{% if product.discount %}
<li>
After:
<ul class="list-unstyled list-products">
{% for product in products %}
<li class="row mb-4 col-sm-12 items-list-layout">
<div class="col-md-3 list-image-block">
<div class="product-image">
{% if product.stickers %}
<!-- Stickers -->
<ul class="stickers">
{% if
product.new %}
<li>
<span class="product-label product-label_new">NEW</span>
</li>
{% endif %}
{% if product.hit %}
<li>
<span class="product-label product-label_hit">HIT</span>
</li>
{% endif %}
{% if product.discount %}
<li>
{% assign options = 'decimals' | arrayCombine: 0 %}
{% if product.discount_image %}
<img {{ product.discount_image | img_exists: '30x30' }} alt="" title="{{ product.discount_desc }} - {{ product.discount | costDisplay: options }}{{ product.d_symbol }}">
{% else %}
<span class="product-label" title="{{ product.discount_desc }} - {{ product.discount | costDisplay: options }}{{ product.d_symbol }}">
-{{ product.discount | costDisplay: options }}{% if product.d_symbol == '%' %}{{ product.d_symbol }}{% endif %}
I would be Grateful for any suggestions.
Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
joomla-dev-gene...@googlegroups.com.
To view this discussion, visit
https://groups.google.com/d/msgid/joomla-dev-general/931fb9d8-5f38-430e-a1d2-09bb61885c58n%40googlegroups.com.