diff --git a/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--login.html.twig b/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--login.html.twig index c40a936f7123b53d580f0213a87e03927467912c..81be7dd08cc62f725dc38eaad11111a5c741fa2c 100644 --- a/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--login.html.twig +++ b/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--login.html.twig @@ -21,9 +21,16 @@ {% endif %} </div> <div id="middle-part"> - <h2 class="title">{{ title }}</h2> {{ page.header|without('VARTHEME_SUBTHEME_local_tasks', 'VARTHEME_SUBTHEME_breadcrumbs', 'VARTHEME_SUBTHEME_local_actions', 'VARTHEME_SUBTHEME_page_title') }} - {{ page.content }} + {% if (VARBASE_AUTH.modules_enabled.value) and (page.content.socialauthlogin) %} + <h2 class="block-title"><span> {{ "Login with"|t }} </span></h2> + {{ page.content.socialauthlogin }} + <h2 class="block-title"><span> {{ "or"|t }} </span></h2> + {{ page.content|without('socialauthlogin') }} + {% else %} + <h2 class="block-title"><span> {{ title }} </span></h2> + {{ page.content }} + {% endif %} </div> <div id="bottom-part"> <div class="password-link"> diff --git a/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--register.html.twig b/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--register.html.twig index 1a107f82992730f28abc7d7b3d4dfd11fa89adb5..acfd0d7746405b409f5a7aeb78b3b327ff1a4e09 100644 --- a/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--register.html.twig +++ b/themes/vartheme/VARTHEME_SUBTHEME/templates/betterlogin/page--user--register.html.twig @@ -21,9 +21,16 @@ {% endif %} </div> <div id="middle-part"> - <h2 class="title">{{ title }}</h2> {{ page.header|without('VARTHEME_SUBTHEME_local_tasks', 'VARTHEME_SUBTHEME_breadcrumbs', 'VARTHEME_SUBTHEME_local_actions', 'VARTHEME_SUBTHEME_page_title') }} - {{ page.content }} + {% if (VARBASE_AUTH.modules_enabled.value) and (page.content.socialauthlogin) %} + <h2 class="block-title"><span> {{ "Sign up with"|t }} </span></h2> + {{ page.content.socialauthlogin }} + <h2 class="block-title"><span> {{ "or"|t }} </span></h2> + {{ page.content|without('socialauthlogin') }} + {% else %} + <h2 class="block-title"><span> {{ title }} </span></h2> + {{ page.content }} + {% endif %} </div> <div id="bottom-part"> {% if not logged_in %}