Beispiel #1
0
    ?>
                        <tr>
                            <td style="width: 32px; vertical-align: middle">
                                <?php 
    echo Html::tag('span', '', ['class' => 'auth-icon ' . $client->getName()]);
    ?>
                            </td>
                            <td style="vertical-align: middle">
                                <strong><?php 
    echo $client->getTitle();
    ?>
</strong>
                            </td>
                            <td style="width: 120px">
                                <?php 
    echo $auth->isConnected($client) ? Html::a(Yii::t('user', 'Disconnect'), $auth->createClientUrl($client), ['class' => 'btn btn-danger btn-block', 'data-method' => 'post']) : Html::a(Yii::t('user', 'Connect'), $auth->createClientUrl($client), ['class' => 'btn btn-success btn-block']);
    ?>
                            </td>
                        </tr>
                    <?php 
}
?>
                </table>
                <?php 
Connect::end();
?>
            </div>
        </div>
    </div>
</div>
Beispiel #2
0
?>
            </div>
        </div>
        <?php 
if ($module->enableConfirmation) {
    ?>
            <p class="text-center">
                <?php 
    echo Html::a(Yii::t('user', 'Didn\'t receive confirmation message?'), ['/user/registration/resend']);
    ?>
            </p>
        <?php 
}
?>
        <?php 
if ($module->enableRegistration) {
    ?>
            <p class="text-center">
                <?php 
    echo Html::a(Yii::t('user', 'Don\'t have an account? Sign up!'), ['/user/registration/register']);
    ?>
            </p>
        <?php 
}
?>
        <?php 
echo Connect::widget(['baseAuthUrl' => ['/user/security/auth']]);
?>
    </div>
</div>