social-auth-bar.php 757 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
<?php

/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
7
8
9
 * @see https://www.open2.0.regione.lombardia.it Developers'community
 * @license GPLv3
 * @license https://opensource.org/licenses/gpl-3.0.html GNU General Public License version 3
Marcello Pivanti's avatar
Marcello Pivanti committed
10
 *
waltermazza's avatar
waltermazza committed
11
 * @package    arter\amos\socialauth
Marcello Pivanti's avatar
Marcello Pivanti committed
12
13
14
15
16
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

use yii\helpers\Html;
waltermazza's avatar
waltermazza committed
17
use arter\amos\core\icons\AmosIcons;
Marcello Pivanti's avatar
Marcello Pivanti committed
18
19
20
21
22
23
24
25
26
27
?>
<div class="social-auth-bar">
    <?php
    foreach ($providers as $providerName=>$config) {
        $lowCaseName = strtolower($providerName);

        echo Html::a(AmosIcons::show($lowCaseName), '/socialauth/social-auth/sign-in?provider=' . $lowCaseName, ['class' => 'btn btn-default']);
    }
    ?>
</div>