login-with.html.twig in Social Auth 3.x
{% set module = 'social-auth' %}
{{ attach_library('social_auth/auth-icons') }}
{% for social_network in social_networks %}
{% if destination %}
<a class="{{ module }} auth-link" href="{{ path(social_network.route) }}?destination={{ destination | url_encode }}">
{% else %}
<a class="{{ module }} auth-link" href="{{ path(social_network.route) }}">
{% endif %}
<img class="{{ module }} auth-icon"
src="{{ base_path }}{{ social_network.img_path }}"
alt="{{ 'Authenticate through @social_network_name' | t({'@social_network_name': social_network.name}) }}">
</a>
{% endfor %}
File
templates/login-with.html.twig
View source
- {% set module = 'social-auth' %}
-
- {{ attach_library('social_auth/auth-icons') }}
-
- {% for social_network in social_networks %}
- {% if destination %}
- <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}?destination={{ destination | url_encode }}">
- {% else %}
- <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}">
- {% endif %}
- <img class="{{ module }} auth-icon"
- src="{{ base_path }}{{ social_network.img_path }}"
- alt="{{ 'Authenticate through @social_network_name' | t({'@social_network_name': social_network.name}) }}">
- </a>
- {% endfor %}