From 98914df48ec2140bb3d2615d853b235a7530b475 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Fri, 20 Nov 2020 11:07:24 +0100 Subject: [PATCH 1/2] removed old templating --- .../themes/fancytheme/core/loginuserpass.php | 82 ------------------- 1 file changed, 82 deletions(-) delete mode 100644 mymodule/themes/fancytheme/core/loginuserpass.php diff --git a/mymodule/themes/fancytheme/core/loginuserpass.php b/mymodule/themes/fancytheme/core/loginuserpass.php deleted file mode 100644 index 0e4b87f..0000000 --- a/mymodule/themes/fancytheme/core/loginuserpass.php +++ /dev/null @@ -1,82 +0,0 @@ -data['header'] = $this->t('{login:user_pass_header}'); - -if (strlen($this->data['username']) > 0) { - $this->data['autofocus'] = 'password'; -} else { - $this->data['autofocus'] = 'username'; -} -$this->includeAtTemplateBase('includes/header.php'); -?> -
-
-
-
-
-
- -data['errorcode'] !== null) { -?> -
- - -

t('{login:error_header}'); ?>

- -

- t( - $this->data['errorcodes']['title'][$this->data['errorcode']], - $this->data['errorparams'] - ) - ); - ?> -

-

- t( - $this->data['errorcodes']['descr'][$this->data['errorcode']], - $this->data['errorparams'] - ) - ); - ?> -

-
- - - -
-data['links'])) { - echo ''; -} - -$this->includeAtTemplateBase('includes/footer.php'); - -- GitLab From 3a9e38e0e3e4d2f3a7bf0a848388326f7b778c55 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki Date: Fri, 20 Nov 2020 11:17:17 +0100 Subject: [PATCH 2/2] added selectsource for multiauth --- .../fancytheme/multiauth/selectsource.twig | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 mymodule/themes/fancytheme/multiauth/selectsource.twig diff --git a/mymodule/themes/fancytheme/multiauth/selectsource.twig b/mymodule/themes/fancytheme/multiauth/selectsource.twig new file mode 100644 index 0000000..eb9bd92 --- /dev/null +++ b/mymodule/themes/fancytheme/multiauth/selectsource.twig @@ -0,0 +1,25 @@ + GNU nano 4.8 selectsource.twig +{% set pagetitle = '{multiauth:multiauth:select_source_header}'|trans %} +{% extends "base.twig" %} + +{% block content %} +

Benutzerkonto auswählen

+

Bitte wählen Sie ein Benutzerkonto aus, mit dem Sie sich authentifizieren wollen:

+ +
+ +
    + {% for key, source in sources %} + {% set name = ('src-' ~ source.source64) %} + {% set button = ('button-' ~ source.source) %} +
  • + + {% if source.help %} +

    {{ source.help|escape('html') }}

    + {% endif %} +
  • + {% endfor %} +
+
+{% endblock %} + -- GitLab