{#

This file is part of the Sonata package.

(c) Thomas Rabaix <thomas.rabaix@sonata-project.org>

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.

#}
{% extends sonata_block.templates.block_base %}

{% block block %}
{% spaceless %}

    {% if settings.user %}

        <a href="https://twitter.com/intent/tweet?screen_name={{ settings.user }}" class="twitter-mention-button"
            data-related="{{ settings.recommend }}"
            {% if settings.text %}data-text="{{ settings.text }}"{% endif %}
            {% if settings.recommend %}data-related="{{ settings.recommend }}"{% endif %}
            {% if settings.large_button %}data-size="large"{% endif %}
            data-lang="{{ settings.language }}"
            {% if settings.opt_out %}data-dnt="true"{% endif %}>
            Tweet to @{{ settings.user }}
        </a>

    {% endif %}

{% endspaceless %}
{% endblock %}
