
{% if show_dummy_data == true %}
    {% set show_usp_banner = true %}
    {% set homepage = {
        'pagedata': {
            'Selling Points': [
                {'Selling Point': {'value': 'Free prescription delivery to your door'}},
                {'Selling Point': {'value': 'Expert healthcare advice from qualified pharmacists'}},
                {'Selling Point': {'value': 'NHS services available in-store and online'}}
            ],
            'Enable selling points': [{'value': '1'}]
        }
    } %}
    {% set use_global_font_awesome_weights = true %}
{% endif %}

{% if show_usp_banner is not empty and
    homepage.pagedata['Selling Points'][0]['Selling Point']['value'] is not empty and
    homepage.pagedata['Enable selling points'][0]['value'] == '1'
%}
 
    {% set fa_icon = 'far fa-check' %}

    {% if use_global_font_awesome_weights is not empty %}
        {% set fa_icon = fa_icon ~ ' faGlobal' %}
    {% endif %}


    <div class="uspBanner">

        <div class="wrapper">

            <ul class="uspList">

                {% for point in homepage.pagedata['Selling Points'] %}
                    <li>
                        <span>
                            <i class="svgIcon">
                                {{ file_get_contents(settings.SITE_PATH ~ settings.THEME_URL ~ '/images/svgs/cross.svg')|raw }}
                            </i> 
                            {{ point['Selling Point']['value']|raw }}
                        </span>
                    </li>
                {% endfor %}

            </ul>

        </div> <!-- .wrapper -->

    </div> <!-- .uspBanner -->

{% endif %}

