Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
4a297701
Commit
4a297701
authored
1 year ago
by
Michaela Brückner
Browse files
Options
Downloads
Patches
Plain Diff
closes #3612
Closes #3612 Merge request
studip/studip!2503
parent
9a50a902
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/loginform.php
+83
-81
83 additions, 81 deletions
templates/loginform.php
with
83 additions
and
81 deletions
templates/loginform.php
+
83
−
81
View file @
4a297701
...
@@ -30,97 +30,99 @@ $show_hidden_login = false;
...
@@ -30,97 +30,99 @@ $show_hidden_login = false;
<div
id=
"background-mobile"
style=
"background: url(
<?=
$bg_mobile
?>
) no-repeat top left/cover;"
></div>
<div
id=
"background-mobile"
style=
"background: url(
<?=
$bg_mobile
?>
) no-repeat top left/cover;"
></div>
<div
id=
"login_flex"
>
<div
id=
"login_flex"
>
<?
if
(
$loginerror
)
:
?>
<div>
<!-- failed login code -->
<?
if
(
$loginerror
)
:
?>
<?=
MessageBox
::
error
(
_
(
'Bei der Anmeldung trat ein Fehler auf!'
),
[
<!-- failed login code -->
$error_msg
,
<?=
MessageBox
::
error
(
_
(
'Bei der Anmeldung trat ein Fehler auf!'
),
[
sprintf
(
$error_msg
,
_
(
'Bitte wenden Sie sich bei Problemen an: <a href="mailto:%1$s">%1$s</a>'
),
sprintf
(
$GLOBALS
[
'UNI_CONTACT'
]
_
(
'Bitte wenden Sie sich bei Problemen an: <a href="mailto:%1$s">%1$s</a>'
),
)
$GLOBALS
[
'UNI_CONTACT'
]
])
?>
)
<?
endif
?>
<?=
implode
(
''
,
PageLayout
::
getMessages
());
?>
<div
id=
"loginbox"
>
<header>
<h1>
<?=
htmlReady
(
Config
::
get
()
->
UNI_NAME_CLEAN
)
?>
</h1>
</header>
<?
if
(
count
(
$GLOBALS
[
'STUDIP_AUTH_PLUGIN'
])
===
1
&&
StudipAuthAbstract
::
isLoginEnabled
())
:
?>
<?=
$this
->
render_partial
(
'_standard_loginform'
,
[
'hidden'
=>
false
,
])
?>
])
?>
<?
endif
?>
<?
endif
?>
<nav>
<ul>
<?
foreach
(
Navigation
::
getItem
(
'/login'
)
as
$key
=>
$nav
)
:
?>
<?
if
(
$nav
->
isVisible
())
:
?>
<?
if
(
$key
===
'standard_login'
)
{
if
(
count
(
$GLOBALS
[
'STUDIP_AUTH_PLUGIN'
])
===
1
&&
StudipAuthAbstract
::
isLoginEnabled
())
{
continue
;
}
else
{
$show_hidden_login
=
true
;
}
}
?>
<?
$name_and_title
=
explode
(
' - '
,
$nav
->
getTitle
())
?>
<li
class=
"login_link"
>
<?
if
(
is_internal_url
(
$url
=
$nav
->
getURL
()))
:
?>
<?
SkipLinks
::
addLink
(
$name_and_title
[
0
],
$url
)
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
$url
,
[
'cancel_login'
=>
1
])
?>
"
<?=
arrayToHtmlAttributes
(
$nav
->
getLinkAttributes
())
?>
>
<?
else
:
?>
<a
href=
"
<?=
htmlReady
(
$url
)
?>
"
target=
"_blank"
rel=
"noopener noreferrer"
>
<?
endif
?>
<?=
htmlReady
(
$name_and_title
[
0
])
?>
<p>
<?=
htmlReady
(
!
empty
(
$name_and_title
[
1
])
?
$name_and_title
[
1
]
:
$nav
->
getDescription
())
?>
</p>
</a>
</li>
<?
endif
?>
<?
endforeach
?>
</ul>
</nav>
<?
i
f
(
$show_hidden_login
)
:
?>
<?
=
i
mplode
(
''
,
PageLayout
::
getMessages
());
?>
<?=
$this
->
render_partial
(
'_standard_loginform'
,
[
<div
id=
"loginbox"
>
'hidden'
=>
empty
(
$loginerror
),
<header>
])
?
>
<h1>
<?=
htmlReady
(
Config
::
get
()
->
UNI_NAME_CLEAN
)
?>
</h1
>
<?
endif
?
>
</header
>
<footer>
<?
if
(
count
(
$GLOBALS
[
'STUDIP_AUTH_PLUGIN'
])
===
1
&&
StudipAuthAbstract
::
isLoginEnabled
())
:
?>
<?
if
(
$GLOBALS
[
'UNI_LOGIN_ADD'
])
:
?>
<?=
$this
->
render_partial
(
'_standard_loginform'
,
[
<div
class=
"uni_login_add"
>
'hidden'
=>
false
,
<?=
$GLOBALS
[
'UNI_LOGIN_ADD'
]
?>
])
?>
</div>
<?
endif
?>
<?
endif
?>
<nav>
<ul>
<?
foreach
(
Navigation
::
getItem
(
'/login'
)
as
$key
=>
$nav
)
:
?>
<?
if
(
$nav
->
isVisible
())
:
?>
<?
if
(
$key
===
'standard_login'
)
{
if
(
count
(
$GLOBALS
[
'STUDIP_AUTH_PLUGIN'
])
===
1
&&
StudipAuthAbstract
::
isLoginEnabled
())
{
continue
;
}
else
{
$show_hidden_login
=
true
;
}
}
?>
<?
$name_and_title
=
explode
(
' - '
,
$nav
->
getTitle
())
?>
<li
class=
"login_link"
>
<?
if
(
is_internal_url
(
$url
=
$nav
->
getURL
()))
:
?>
<?
SkipLinks
::
addLink
(
$name_and_title
[
0
],
$url
)
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
$url
,
[
'cancel_login'
=>
1
])
?>
"
<?=
arrayToHtmlAttributes
(
$nav
->
getLinkAttributes
())
?>
>
<?
else
:
?>
<a
href=
"
<?=
htmlReady
(
$url
)
?>
"
target=
"_blank"
rel=
"noopener noreferrer"
>
<?
endif
?>
<?=
htmlReady
(
$name_and_title
[
0
])
?>
<p>
<?=
htmlReady
(
!
empty
(
$name_and_title
[
1
])
?
$name_and_title
[
1
]
:
$nav
->
getDescription
())
?>
</p>
</a>
</li>
<?
endif
?>
<?
endforeach
?>
</ul>
</nav>
<div
id=
"languages"
>
<?
if
(
$show_hidden_login
)
:
?>
<?
foreach
(
$GLOBALS
[
'INSTALLED_LANGUAGES'
]
as
$temp_language_key
=>
$temp_language
)
:
?>
<?=
$this
->
render_partial
(
'_standard_loginform'
,
[
<?=
Assets
::
img
(
'languages/'
.
$temp_language
[
'picture'
],
[
'alt'
=>
$temp_language
[
'name'
],
'size'
=>
'24'
])
?>
'hidden'
=>
empty
(
$loginerror
),
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'set_language'
=>
$temp_language_key
])
?>
"
>
])
?>
<?=
htmlReady
(
$temp_language
[
'name'
])
?>
<?
endif
?>
</a>
<?
endforeach
?>
</div>
<div
id=
"contrast"
>
<footer>
<?
if
(
isset
(
$_SESSION
[
'contrast'
]))
:
?>
<?
if
(
$GLOBALS
[
'UNI_LOGIN_ADD'
])
:
?>
<?=
Icon
::
create
(
'accessibility'
)
->
asImg
(
24
)
?>
<div
class=
"uni_login_add"
>
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'unset_contrast'
=>
1
,
'cancel_login'
=>
1
])
?>
"
>
<?=
_
(
'Normalen Kontrast aktivieren'
)
?>
</a>
<?=
$GLOBALS
[
'UNI_LOGIN_ADD'
]
?>
<?=
tooltipIcon
(
_
(
'Aktiviert standardmäßige, nicht barrierefreie Kontraste.'
));
?>
</div>
<?
else
:
?>
<?=
Icon
::
create
(
'accessibility'
)
->
asImg
(
24
)
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'set_contrast'
=>
1
,
'cancel_login'
=>
1
])
?>
"
id=
"highcontrastlink"
>
<?=
_
(
'Hohen Kontrast aktivieren'
)
?>
</a>
<?=
tooltipIcon
(
_
(
'Aktiviert einen hohen Kontrast gemäß WCAG 2.1. Diese Einstellung wird nach dem Login übernommen.'
.
'Sie können sie in Ihren persönlichen Einstellungen ändern.'
));
?>
<?
endif
?>
<?
endif
?>
</div>
</footer>
<div
id=
"languages"
>
<?
foreach
(
$GLOBALS
[
'INSTALLED_LANGUAGES'
]
as
$temp_language_key
=>
$temp_language
)
:
?>
<?=
Assets
::
img
(
'languages/'
.
$temp_language
[
'picture'
],
[
'alt'
=>
$temp_language
[
'name'
],
'size'
=>
'24'
])
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'set_language'
=>
$temp_language_key
])
?>
"
>
<?=
htmlReady
(
$temp_language
[
'name'
])
?>
</a>
<?
endforeach
?>
</div>
<div
id=
"contrast"
>
<?
if
(
isset
(
$_SESSION
[
'contrast'
]))
:
?>
<?=
Icon
::
create
(
'accessibility'
)
->
asImg
(
24
)
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'unset_contrast'
=>
1
,
'cancel_login'
=>
1
])
?>
"
>
<?=
_
(
'Normalen Kontrast aktivieren'
)
?>
</a>
<?=
tooltipIcon
(
_
(
'Aktiviert standardmäßige, nicht barrierefreie Kontraste.'
));
?>
<?
else
:
?>
<?=
Icon
::
create
(
'accessibility'
)
->
asImg
(
24
)
?>
<a
href=
"
<?=
URLHelper
::
getLink
(
'index.php'
,
[
'set_contrast'
=>
1
,
'cancel_login'
=>
1
])
?>
"
id=
"highcontrastlink"
>
<?=
_
(
'Hohen Kontrast aktivieren'
)
?>
</a>
<?=
tooltipIcon
(
_
(
'Aktiviert einen hohen Kontrast gemäß WCAG 2.1. Diese Einstellung wird nach dem Login übernommen.'
.
'Sie können sie in Ihren persönlichen Einstellungen ändern.'
));
?>
<?
endif
?>
</div>
</footer>
</div>
</div>
</div>
<?
if
(
Config
::
get
()
->
LOGIN_FAQ_VISIBILITY
&&
count
(
$faq_entries
)
>
0
)
:
?>
<?
if
(
Config
::
get
()
->
LOGIN_FAQ_VISIBILITY
&&
count
(
$faq_entries
)
>
0
)
:
?>
<div
id=
"faq_box"
>
<div
id=
"faq_box"
>
<header><h1>
<?=
htmlReady
(
Config
::
get
()
->
LOGIN_FAQ_TITLE
)
?>
</h1></header>
<header><h1>
<?=
htmlReady
(
Config
::
get
()
->
LOGIN_FAQ_TITLE
)
?>
</h1></header>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment