From 515eecb01f42b86b6761e03f28c8b3ddeddca7eb Mon Sep 17 00:00:00 2001 From: Rajab Natshah <rajabn@gmail.com> Date: Thu, 1 Feb 2018 21:44:12 +0200 Subject: [PATCH] Issue #2941397: Have the [Varbase Auth] feature Styled for the VARTHEME_SUBTHEME theme, so that Themers could change the style in their Vartheme sub theme. --- .../templates/betterlogin/page--user--login.html.twig | 11 +++++++++-- .../betterlogin/page--user--register.html.twig | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) 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 c40a936f..81be7dd0 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 1a107f82..acfd0d77 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 %} -- GitLab