Commit 24c86652 authored by Henning Leutz's avatar Henning Leutz 🥋

Merge branch 'dev'

parents c17d1b5c 024a7e54
......@@ -44,6 +44,7 @@
height: 50px;
line-height: 50px;
margin: 0 0.25rem;
overflow: hidden;
position: relative;
text-align: center;
width: 50px;
......@@ -65,6 +66,11 @@
opacity: 1;
}
.quiqqer-fu-login-social-entry img {
max-height: 100%;
max-width: 100%;
}
.quiqqer-fu-login-social-entry:hover {
background: #adadad;
color: #fff;
......
......@@ -25,7 +25,11 @@
data-authenticator="{$entry.class}"
>
<span class="quiqqer-fu-login-social-entry-icon">
{if $entry.icon}
<span class="{$entry.Login->getAttribute('icon')}"></span>
{elseif $entry.image}
<img src="{$entry.Login->getAttribute('icon')}" alt="" />
{/if}
</span>
<span class="quiqqer-fu-login-social-entry-loader">
<span class="fa fa-spin fa-spinner fas fa-circle-notch"></span>
......
......@@ -76,10 +76,26 @@ class Login extends QUI\Control
continue;
}
$icon = false;
$image = false;
$iconAttribute = $Login->getAttribute('icon');
if (\strpos($iconAttribute, 'fa ') !== false
|| \strpos($iconAttribute, 'fab ') !== false
|| \strpos($iconAttribute, 'fas ') !== false
) {
$icon = true;
} elseif ($iconAttribute !== '') {
$image = true;
}
$instances[] = [
'Auth' => $Auth,
'Login' => $Login,
'class' => $class
'class' => $class,
'icon' => $icon,
'image' => $image
];
} catch (\Exception $Exception) {
QUI\System\Log::writeDebugException($Exception);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment