social-link-bar.php 731 Bytes
Newer Older
Marcello Pivanti's avatar
Marcello Pivanti committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

/**
 * Art-ER Attrattività, ricerca e territorio dell’Emilia-Romagna
 * OPEN 2.0
 *
 *
 * @package    elitedivision\amos\socialauth
 * @category   CategoryName
 * @author     Elite Division S.r.l.
 */

use yii\helpers\Html;
use elitedivision\amos\core\icons\AmosIcons;
use elitedivision\amos\socialauth\Module;
?>
<div class="social-auth-bar">
    <?php
    foreach ($providers as $providerName=>$config) {
        $lowCaseName = strtolower($providerName);

        echo Html::a(
                AmosIcons::show($lowCaseName) . Module::t('amosadmin', 'Connect'),
                '/socialauth/social-auth/link-user?provider=' . $lowCaseName,
                ['class' => 'btn btn-navigation-primary']);
    }
    ?>
</div>