Commit 249126a7 by Manzar Hussain

add new block for products on home page

parent cef93e8b
{# {#
/** /**
* @file * @file
* Theme override to display all the fields in a row. * Default view template to display all the fields in a row.
* *
* Available variables: * Available variables:
* - view: The view in use. * - view: The view in use.
...@@ -27,26 +27,45 @@ ...@@ -27,26 +27,45 @@
* - row: The raw result from the query, with all data it fetched. * - row: The raw result from the query, with all data it fetched.
* *
* @see template_preprocess_views_view_fields() * @see template_preprocess_views_view_fields()
*
* @ingroup themeable
*/ */
#}
#}
<div class="cs_item_b col-10 col-md-3"> <div class="container-fluid bg_l_gray spacerTB cs_box_shadow">
<div class="cs_inner_item"> <div class="row">
<div class="cs_iwcb"> <div class="container">
<a href="#" class="cs_img_c_b"> <div class="row">
{{ fields.field_product_image.content }} <div class="col-12">
</a> <div class="cs_w_b">
<div class="cs_hcb"> <h1 class="c_heading_b text-center">Business & Products</h1>
<span class="cs_icon_c">{{ fields.field_product_icon.content }}</span> <div class="cs_slider_wp">
<h6 class="cs_hgbc cs_c3"><a href="" tabindex="0">{{ fields.title.content }}</a></h6> <div class="cs_s_cb row cs_slider_bp_con">
{{ fields.body.content }} {% for row in rows %}
</div> <div class="cs_item_b col-10 col-md-3">
</div> <div class="cs_inner_item">
</div> <div class="cs_iwcb">
</div> <a href="#" class="cs_img_c_b">
{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ field_product_image }}'] }}
</a>
<div class="cs_hcb">
<span class="cs_icon_c">{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ field_product_icon }}'] }}</span>
<h6 class="cs_hgbc cs_c1">{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ title }}'] }}</h6>
<p>{{ row.content['#view'].style_plugin.render_tokens[ loop.index0 ]['{{ body }}'] }}
</p>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment