login-with.html.twig in Social Auth 8.2
{% 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 }}">
{% 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="">
</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 }}">
- {% 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="">
- </a>
- {% endfor %}