_includes/appscms/featurehighlight/featurehighlight.html in appscms-tools-theme-4.4.4 vs _includes/appscms/featurehighlight/featurehighlight.html in appscms-tools-theme-4.4.5

- old
+ new

@@ -1,58 +1,36 @@ <div class="container mt-5"> - <div class="px-4"> - <div class="row feature-description-boxes pt-5"> - {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} - <div class="col-md-9 mx-auto"> - <div class="row"> - {%- endif -%} {% assign totalHeaderCount = 0 %} {% for data in - pageData.TEXTUAL_CONTENT %} {% assign words = data.header | split: " " - %} {% assign word_count = words | size %} {% assign totalHeaderCount = - totalHeaderCount | plus: word_count %} {% endfor %} {% for data in - pageData.TEXTUAL_CONTENT %} - <div - class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 {%- endif -%}" - > - <div class="card h-100 border-0 bg-transparent"> - {%- assign space = ' ' -%} - <img - src="{{data.logoUrl}}" - loading="lazy" - class="card-img-top float-left mr-3 appscms-feature-image" - alt="{{data.header}}" - {%- - if - site.crossorigin - -%} - crossorigin{{space}} - {{space}} - {%- - endif - -%} - style="object-fit: cover; height: 5rem; width: 5rem" - /> - <div class="card-body p-0"> - {%- if totalHeaderCount > site.count_of_words_in_headings -%} - <h2 class="card-title appscms-feature-title"> - {{data.header | replace: "$variable", page.value}} - </h2> - {%- else -%} - <div class="card-title appscms-feature-title"> - {{data.header | replace: "$variable", page.value}} - </div> - {%- endif -%} - <div class="feature-card-desc"> - <p class="card-text m-0 appscms-feature-description"> - {{data.content | replace: "$variable", page.value}} - </p> - </div> - </div> - </div> + <div class="row feature-description-boxes pt-5"> + {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} + <div class="col-md-9 mx-auto"> + <div class="row"> + {%- endif -%} {% assign totalHeaderCount = 0 %} {% for data in + pageData.TEXTUAL_CONTENT %} {% assign words = data.header | split: " " + %} {% assign word_count = words | size %} {% assign totalHeaderCount = + totalHeaderCount | plus: word_count %} {% endfor %} {% for data in + pageData.TEXTUAL_CONTENT %} + <div + class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 card h-100 border-0 bg-transparent{%- endif -%}"> + {%- assign space = ' ' -%} + <img src="{{data.logoUrl}}" loading="lazy" class="card-img-top float-left mr-3 appscms-feature-image" + alt="{{data.header}}" {%- if site.crossorigin -%} crossorigin{{space}} {{space}} {%- endif -%} + style="object-fit: cover; height: 5rem; width: 5rem" /> + {%- if totalHeaderCount > site.count_of_words_in_headings -%} + <h2 class="card-title appscms-feature-title"> + {{data.header | replace: "$variable", page.value}} + </h2> + {%- else -%} + <div class="card-title appscms-feature-title"> + {{data.header | replace: "$variable", page.value}} </div> - {% endfor %} {%- if site.monumetricId and page.url != '/' and - page.lang == 'en' -%} + {%- endif -%} + <p class="card-text m-0 appscms-feature-description"> + {{data.content | replace: "$variable", page.value}} + </p> </div> + {% endfor %} {%- if site.monumetricId and page.url != '/' and + page.lang == 'en' -%} </div> - {%- endif -%} </div> + {%- endif -%} </div> -</div> +</div> \ No newline at end of file