Commit dfda1fc8 authored by zorn's avatar zorn

Provider icons in admin settings page

parent ed2ca4fa
......@@ -26,3 +26,11 @@ input[readonly] {
background-color: #ebebeb;
color: rgba(0, 0, 0, 0.4);
}
.section h2.provider-title {
margin-bottom: 10px;
}
.provider-title img {
width: 20px;
height: 20px;
margin-bottom: -2px;
}
......@@ -17,7 +17,7 @@ a[href*="/sociallogin/oauth/facebook"]::before {
background-image: url(../img/facebook.svg);
}
a[href*="/sociallogin/oauth/google"]::before {
background-image: url(../img/googleplus.svg);
background-image: url(../img/google.svg);
}
a[href*="/sociallogin/oauth/twitter"]::before {
background-image: url(../img/twitter.svg);
......
......@@ -151,7 +151,7 @@ $providersData = [
<hr/>
<?php foreach ($_['providers'] as $name => $provider): ?>
<div class="provider-settings">
<h2><?php p(ucfirst($name))?></h2>
<h2 class="provider-title"><img src="<?php print_unescaped(image_path('sociallogin', strtolower($name).'.svg')); ?>" /> <?php p(ucfirst($name))?></h2>
<label>
<?php p($l->t('App id')) ?><br>
<input type="text" name="providers[<?php p($name) ?>][appid]" value="<?php p($provider['appid']) ?>"/>
......
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