{% extends 'base.html.twig' %} {% block wrapperClass %}brandhub{% endblock %} {% block body %}

{{ data.title }}

{{ data.brand.introduction|raw }}

{% if data.brand.joined is defined and data.brand.joined == false %} {{ data.brand.optin_btn_text }} {% endif %}

{{ data.brand.join_title }}

{{ data.brand.join_txt|raw }} {% if data.brand.joined is defined and data.brand.joined == false %} {{ data.brand.optin_btn_text }} {% endif %}

{{ data.brand.description_title }}

{{ data.brand.description_txt|raw }} {{ data.brand.description_title }}

{{ data.brand.insiders_title }}

{{ data.brand.insiders_txt|raw }}

{{ readFunnel(data.titles.0, 1) }}

{% include 'includes/modules/new.campaigns.html.twig' with { campaigns : data.newCampaigns, widthcol : 'col-md-6 col-sm-12 col-xs-12' } %} {% include 'includes/modules/live.campaigns.html.twig' with { campaigns : data.liveCampaigns, widthcol : 'col-md-3 col-sm-6 col-xs-12' } %} {% include 'includes/modules/previous.campaigns.html.twig' with { campaigns : data.previousCampaigns, widthcol : 'col-md-3 col-sm-6 col-xs-12' } %}
{% if data.testimonials|length > 0 %}

{{ readFunnel(data.titles.1, 1) }}

{% include 'includes/modules/testimonials/testimonial.brandhub.slider.html.twig' with { testimonials : data.testimonials } %}
{% endif %}

{{ readFunnel(data.titles.2, 1) }}

{% if data.brand.facebook_link is defined %}
{% include 'includes/snippets/facebook.page.plugin.html.twig' with { url: data.brand.facebook_link } %}
{% endif %}

{{ readFunnel(data.titles.3, 1) }}

{{ data.allProductsBlock|raw }}
{% endblock %} {% block readyStateFunction %} var tablinks = document.getElementsByClassName("lazy-background"); for (i = 0; i < tablinks.length; i++) { var lazy = tablinks[i]; var src = lazy.dataset.src; lazy.style.backgroundImage = 'url("'+src+'")'; } /* http://sachinchoolur.github.io/lightslider/ for documentation on configuration*/ $("#lightSlider").lightSlider( { item: 2, speed: 1000, pause: 5000, loop: true, auto: true, controls: false, responsive: [{ breakpoint: 959, settings: { item: 2, slideMove: 1, sliderWidth: 300 } }, { breakpoint: 480, settings: { item: 1, slideMove: 1, sliderWidth: 375 } }] }); {% endblock readyStateFunction %}