social-sign-up-bar.php 791 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
<?php
/**
3
4
5
 * Copyright 2020 Art-ER S. Cons. P.A.
 * EROI - Emilia Romagna Open Innovation is based on:
 * https://www.open2.0.regione.lombardia.it
Marcello Pivanti's avatar
Marcello Pivanti committed
6
 *
Aster's avatar
Aster committed
7
 * @see http://example.com Developers'community
8
9
 * @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
 *
Aster's avatar
Aster 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-up?provider=' . $lowCaseName, ['class' => 'btn btn-default']);
    }
    ?>
</div>