public function init()
{
$view = Yii::$app->getView();
if ($this->popupMode) {
AuthChoiceAsset::register($view);
if (empty($this->clientOptions)) {
$options = '';
} else {
$options = Json::htmlEncode($this->clientOptions);
}
$view->registerJs("\$('#" . $this->getId() . "').authchoice({$options});");
} else {
AuthChoiceStyleAsset::register($view);
}
$this->options['id'] = $this->getId();
echo Html::beginTag('div', $this->options);
}
/** * @inheritdoc */ public function init() { $this->view->registerCss('.y2u-social-connects .auth-clients{margin:0;padding:0}'); parent::init(); }