Commit 84264324 authored by Шакарим Сапа's avatar Шакарим Сапа

Merge remote-tracking branch 'origin/master'

parents d22248b7 eaca39a6
...@@ -20,7 +20,6 @@ class BaseForm extends \yii\widgets\ActiveForm ...@@ -20,7 +20,6 @@ class BaseForm extends \yii\widgets\ActiveForm
{ {
$this->model = $model; $this->model = $model;
$behaviors = $model->behaviors(); $behaviors = $model->behaviors();
//die(print_r($behaviors)); //die(print_r($behaviors));
$metaFlags = false; $metaFlags = false;
...@@ -172,9 +171,11 @@ class BaseForm extends \yii\widgets\ActiveForm ...@@ -172,9 +171,11 @@ class BaseForm extends \yii\widgets\ActiveForm
break; break;
} }
} }
if($element != '</div>'){
/*временная заплатка*/ /*временная заплатка*/
$config['options'][] = '<div style="clear: both;"></div>'; $config['options'][] = '<div style="clear: both;"></div>';
/* **************** */ /* **************** */
}
} }
unset($config['elements']); unset($config['elements']);
if($metaFlags) { if($metaFlags) {
......
...@@ -23,16 +23,26 @@ if ($popup) { ...@@ -23,16 +23,26 @@ if ($popup) {
?> ?>
<div class="eauth" id="<?php echo $id; ?>"> <div class="eauth" id="<?php echo $id; ?>">
<p>Войти, используя соцсети:</p> <!--<p>Войти, используя соцсети:</p>-->
<ul class="eauth-list"> <ul class="eauth-list">
<?php <?php foreach ($services as $name => $service) {
foreach ($services as $name => $service) { if($service->id == 'google'){
echo '<li class="eauth-service eauth-service-id-' . $service->id . '">'; $image = '<img src="images/button_g.jpg" height="39" width="186" alt="">';
echo Html::a($service->title, [$action, 'service_eauth' => $name], [ }
'class' => 'eauth-service-link', elseif($service->id == 'vk'){
$image = '<img src="images/button_vk.jpg" height="39" width="186" alt="">';
}
elseif($service->id == 'facebook'){
$image = '<img src="images/button_f.jpg" height="39" width="186" alt="">';
}
//echo '<li class="eauth-service eauth-service-id-' . $service->id . '"><p>';
echo '<li class="eauth-service-id-' . $service->id . '"><p>';
echo Html::a($image, [$action, 'service_eauth' => $name], [
//'class' => 'eauth-service-link',
'data-eauth-service' => $service->id, 'data-eauth-service' => $service->id,
]); ]);
echo '</li>';
echo '</p></li>';
} }
?> ?>
</ul> </ul>
......
...@@ -17,6 +17,7 @@ class WidgetAssetBundle extends AssetBundle ...@@ -17,6 +17,7 @@ class WidgetAssetBundle extends AssetBundle
public $sourcePath = '@common/modules/school/assets'; public $sourcePath = '@common/modules/school/assets';
public $css = [ public $css = [
'css/school.css', 'css/school.css',
'css/style_add.css',
]; ];
public $js = [ public $js = [
'js/school.js', 'js/school.js',
......
...@@ -39,9 +39,6 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link { ...@@ -39,9 +39,6 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link {
margin-top: 20px; margin-top: 20px;
display: block; display: block;
} }
#login_form, #login_form_popup {
display:none;
}
.mfp-container { .mfp-container {
height: auto; height: auto;
} }
...@@ -51,3 +48,19 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link { ...@@ -51,3 +48,19 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link {
.soc_item .fa, .fbicon:before, .gplusicon:before { .soc_item .fa, .fbicon:before, .gplusicon:before {
margin-top: 10px; margin-top: 10px;
} }
.popup_bt_send{
padding-top: 16px;
margin-left: 0px;
}
.registration_form input:not(:last-child) {
margin-bottom: 7px;
}
.registration_form .form-group {
margin-bottom: 7px !important;
}
.input_st {
margin-bottom: 12px !important;
}
.button_social{
margin-top: -10px;
}
\ No newline at end of file
.clear {
clear: both;
}
.support_form {
width: 760px;
padding: 30px;
padding-bottom: 40px;
color: #525252;
}
.popup_2 .popup__title {
font-size: 38px;
font-weight: bold;
color: #344555;
text-align: left;
}
.support_form_left {
width: 45%;
float: left;
padding-right: 15px;
}
.support_form_right {
width: 55%;
float: right;
padding-left: 15px;
}
.popup_2 p {
font-size: 17px;
color: #525252;
line-height: 22px;
font-weight: 400;
}
.support_form .support_block__link_pv {
margin-top: 10px;
}
.popup_2 input:not([type="radio"]):not([type="checkbox"]){
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-o-border-radius: 10px;
-ms-border-radius: 10px;
width: 100%;
}
.popup_2 input {
margin-bottom: 10px;
}
.popup_2 input:not(:last-child) {
margin-bottom: 30px;
}
.popup_2 .checkbox:not(checked) + label {
position: relative;
padding: 6px 0px 0px 28px;
margin-bottom: 30px;
}
.popup_2 label {
margin-bottom: 10px;
}
.support_form_left2 {
float: left;
width: 50%;
padding-right: 15px;
}
.support_form_right2 {
float: right;
width: 50%;
padding-left: 15px;
margin-bottom: 30px;
}
.popup_2 .sect_cont_form__textarea {
background-color: #f1f1f1;
height: 170px;
width: 100%;
line-height: 24px;
resize: none;
}
.file-upload_block_cs2 {
height: 170px;
background-color: #f8f8f8;
padding-top: 30px;
border: 2px solid #f1f1f1;
border-radius: 10px;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-o-border-radius: 10px;
-ms-border-radius: 10px;
}
.file-upload_block_cs2 .filename_cs {
background-color: #f8f8f8;
margin-bottom: 0px !important;
}
.button-lg {
padding-left: 30px;
padding-right: 30px;
width: auto;
}
.blog_form {
width: 820px;
padding: 30px;
padding-bottom: 40px;
color: #525252;
}
.blog_form_left {
width: 280px;
float: left;
padding-right: 18px;
}
.blog_form_right {
width: 340px;
float: left;
font-size: 15px;
}
.blog_form_right p {
font-size: 15px;
}
.blog_lmg {
float: right;
}
.blog_form_2 {
width: 670px;
padding: 30px;
padding-bottom: 40px;
color: #525252;
}
.blog_form_left50 {
float: left;
width: 50%;
padding-right: 15px;
}
.blog_form_right50 {
float: right;
width: 50%;
padding-left: 15px;
}
.registration_form {
width: 940px;
padding: 0;
color: #525252;
}
.popup__title2 {
display: block;
background-color: #3a4447;
padding: 30px;
font-size: 25px;
line-height: 30px;
color: #fff;
-moz-border-radius: 6px 6px 0 0;
-webkit-border-radius: 6px 6px 0 0;
-o-border-radius: 6px 6px 0 0;
-ms-border-radius: 6px 6px 0 0;
margin-top: -1px;
}
.validreg_form2 {
padding: 30px;
}
.registration_form .mfp-close {
color: #fff;
}
.registration_form_left {
width: 40%;
float: left;
padding-right: 15px;
}
.registration_form_right {
width: 60%;
float: right;
padding-left: 15px;
}
.save-button-lg {
height: 60px;
font-size: 24px;
margin-bottom: 30px;
}
.popup__title3 {
font-size: 25px;
line-height: 27px;
font-weight: bold;
margin-bottom: 18px;
display: block;
}
.registration_form p {
font-size: 16px;
color: #3c4755;
line-height: 27px;
font-weight: 400;
}
.registration_form input:not([type="radio"]):not([type="checkbox"]), select.input_st {
width: 100%;
}
.registration_form input:not(:last-child) {
margin-bottom: 20px;
}
.red_text {
color: #bb6e6e;
}
.registration_form_img img {
width: 100%;
}
.registration_form2 {
width: 700px;
}
.registration_form_left50 {
float: left;
width: 50%;
padding-right: 35px;
}
.registration_form_right50 {
float: right;
width: 50%;
padding-left: 35px;
}
.button_social a:hover {
opacity: 0.8;
}
.input_st_wr {
padding: 0 10px;
background: #F5F5F5;
border-radius: 50px;
-moz-border-radius: 50px;
-webkit-border-radius: 50px;
-o-border-radius: 50px;
-ms-border-radius: 50px;
margin-bottom: 20px;
}
.input_st_wr .input_st {
margin: 0;
}
@media only screen and (max-width: 992px) {
.registration_form, .blog_form_2, .blog_form, .support_form {
width: 100%;
height: auto;
}
.popup_2 .popup__title {
font-size: 32px;
}
}
@media only screen and (max-width: 820px) {
.blog_lmg {
display: none;
}
}
@media only screen and (max-width: 767px) {
.form_resp {
float: none;
width: 100%;
padding-left: 0;
padding-right: 0;
}
.support_form_right {
margin-bottom: 20px;
}
}
@media only screen and (max-width: 479px) {
.popup_2 .popup__title {
font-size: 22px;
}
.blog_form_right {
width: 100%;
}
}
.button_social p img{
margin-bottom: 5px;
}
\ No newline at end of file
...@@ -66,6 +66,7 @@ $(document).ready(function() { ...@@ -66,6 +66,7 @@ $(document).ready(function() {
}); });
$(".submit_form_reg_popup").on('click', function () { $(".submit_form_reg_popup").on('click', function () {
alert(1);
$('#reg_form_popup').ajaxSubmit(optionsPopup); $('#reg_form_popup').ajaxSubmit(optionsPopup);
return false; return false;
}); });
...@@ -99,6 +100,30 @@ $(document).ready(function() { ...@@ -99,6 +100,30 @@ $(document).ready(function() {
$('#sh_reg_form').show(); $('#sh_reg_form').show();
$('#login_form').hide(); $('#login_form').hide();
}); });
$('body').on('click', '.call_form_reg', function(){
link = $(this);
title = 'Регистрация на курс <br>'+link.data('title');
spec_propotion = link.data('spec');
$('.popup__title2').html(title);
if(spec_propotion){
$('.spec_propotition').show();
}
else {
$('.spec_propotition').hide();
}
/*jQuery.ajax({
type: 'POST',
url: "/school/lessons-admin/update-form-document",
data: {'docId': doc},
success: function(data){
jQuery('#doc-upd').append(
data
);
}
});*/
});
}); });
// pre-submit callback // pre-submit callback
......
...@@ -32,11 +32,11 @@ class CourseController extends BaseController ...@@ -32,11 +32,11 @@ class CourseController extends BaseController
$modelUser = new User(); $modelUser = new User();
$modelLogin = new LoginForm(); $modelLogin = new LoginForm();
$form = new \common\components\BaseForm('/common/modules/users/forms/RegistrationUserForm', $modelUser);
$formPopup = new \common\components\BaseForm('/common/modules/users/forms/RegistrationUserPopupForm', $modelUser); $formPopup = new \common\components\BaseForm('/common/modules/users/forms/RegistrationUserPopupForm', $modelUser);
$formLogin = new \common\components\BaseForm('/common/modules/users/forms/LoginForm', $modelLogin); //$form = new \common\components\BaseForm('/common/modules/users/forms/RegistrationUserForm', $modelUser);
//$formLogin = new \common\components\BaseForm('/common/modules/users/forms/LoginForm', $modelLogin);
$formLoginPopup = new \common\components\BaseForm('/common/modules/users/forms/LoginPopupForm', $modelLogin); $formLoginPopup = new \common\components\BaseForm('/common/modules/users/forms/LoginPopupForm', $modelLogin);
return $this->render('index', ['dataProvider' => $dataProvider, 'form' => $form->out, 'formLogin' => $formLogin->out, return $this->render('index', ['dataProvider' => $dataProvider,
'formPopup' => $formPopup->out, 'formLoginPopup' => $formLoginPopup->out]); 'formPopup' => $formPopup->out, 'formLoginPopup' => $formLoginPopup->out]);
} }
......
...@@ -90,7 +90,7 @@ WidgetAssetBundle::register($this); ...@@ -90,7 +90,7 @@ WidgetAssetBundle::register($this);
</div> </div>
</div> </div>
</section> </section>
<?php if (Yii::$app->user->isGuest):?> <?php /*if (Yii::$app->user->isGuest):?>
<section class="sh_ft"> <section class="sh_ft">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -111,7 +111,7 @@ WidgetAssetBundle::register($this); ...@@ -111,7 +111,7 @@ WidgetAssetBundle::register($this);
</div> </div>
</div> </div>
</section> </section>
<?php endif;?> <?php endif;*/?>
<div class="tr_foot"></div> <div class="tr_foot"></div>
<footer> <footer>
...@@ -163,16 +163,25 @@ WidgetAssetBundle::register($this); ...@@ -163,16 +163,25 @@ WidgetAssetBundle::register($this);
<button class="save-button popup_bt_send">Заказать звонок</button> <button class="save-button popup_bt_send">Заказать звонок</button>
</form> </form>
</div> </div>
<div id="reg_form" class="popup"> <!--<div id="reg_form" class="popup">
<!-- <div class="txtbtnclose">Закрыть</div> -->
<?php <?php
echo $formPopup; /*echo $formLoginPopup;
?> ?>
<?php echo \common\modules\eauth\widgets\SocialWidget::widget(['action' => '/site/login']); */?>
</div>-->
<!-- add 00.02.16 -->
<div id="registration_form" class="popup registration_form">
<!-- <div class="txtbtnclose">Закрыть</div> -->
<span class="popup__title2">Регистрация на курс <br>Лекции для менеджеров it-отрасли</span>
<?php <?php
echo $formLoginPopup; echo $formPopup;
?> ?>
<?php echo \common\modules\eauth\widgets\SocialWidget::widget(['action' => '/site/login']); ?> </div>
<div id="registration_form2" class="popup registration_form registration_form2">
<span class="popup__title2">Войти как пользователь</span>
<?php echo $formLoginPopup;?>
</div> </div>
</div> </div>
......
...@@ -17,8 +17,11 @@ ...@@ -17,8 +17,11 @@
<div class="blip_kurs">За просмотр этих курсов<br> мы заплатим 15 000 руб.</div> <div class="blip_kurs">За просмотр этих курсов<br> мы заплатим 15 000 руб.</div>
<?php endif;?> <?php endif;?>
<div class="kurs_foot clearfix"> <div class="kurs_foot clearfix">
<?php if($model->type == Courses::TYPE_DV && Yii::$app->user->isGuest):?> <?php if($model->type == Courses::TYPE_DV):?>
<a href="#reg_form" class="kurs_bt popup-form">Предварительная регистрация</a> <a href="#registration_form" class="kurs_bt popup-form call_form_reg" data-title="<?php echo $model->title;?>"
data-spec ="<?php echo $model->spec_proposition;?>">
Предварительная регистрация
</a>
<?php else:?> <?php else:?>
<a href="<?php echo Url::toRoute(['/school/course/view', 'id' => $model->id]);?>" class="kurs_bt">Подробнее</a> <a href="<?php echo Url::toRoute(['/school/course/view', 'id' => $model->id]);?>" class="kurs_bt">Подробнее</a>
<?php endif;?> <?php endif;?>
......
...@@ -122,7 +122,6 @@ class UserController extends \common\components\BaseController { ...@@ -122,7 +122,6 @@ class UserController extends \common\components\BaseController {
if (isset($_POST['User'])) { if (isset($_POST['User'])) {
$model->attributes = $_POST['User']; $model->attributes = $_POST['User'];
if ($model->validate()) { if ($model->validate()) {
$password = $model->password; $password = $model->password;
$model->password = Yii::$app->getSecurity()->generatePasswordHash($model->password); $model->password = Yii::$app->getSecurity()->generatePasswordHash($model->password);
......
<?php <?php
$socButtons = \common\modules\eauth\widgets\SocialWidget::widget(['action' => '/site/login']);
$elements = [ $elements = [
'title_login' => '<span class="popup__title">Авторизация</span>', 'open_form_login' => '<div class="registration_form_left form_resp">',
'errors_login' => '<div class="errors_login_popup"></div>', 'errors_login' => '<div class="errors_login_popup"></div>',
'username' => ['type' => 'text', 'placeholder'=>"E-mail", 'options'=>['label'=>false], 'username' => ['type' => 'text', 'placeholder'=>"E-mail", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'password' => ['type' => 'password', 'placeholder'=>"Пароль", 'options'=>['label'=>false], 'password' => ['type' => 'password', 'placeholder'=>"Пароль", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'button_submit' => '<a href="javascript:void(0)" class="submit_form_login_popup"> 'button_submit' => '<a href="javascript:void(0)" class="submit_form_login_popup">
<div class="save-button sh_bt_send"> <div class="save-button popup_bt_send save-button-lg">
Войти Войти
</div> </div>
</a>', </a>',
'registration_link' => '<a class="reg_popup_link" href="javascript:void(0)">Регистрация</a>', 'close_form_login' => '</div>',
'soc_block_open' =>'<div class="registration_form_right50 form_resp">
<p>Войти через</p>
<br>
<div class="button_social">',
'soc_buttons' => $socButtons,
'soc_block_close' =>'</div>
</div>
<div class="clear"></div>
<br>
<p>Если у Вас еще нет аккаунта <a href="#registration_form" class="popup-form">Зарегистрируйтесь.</a></p>'
]; ];
...@@ -19,7 +31,8 @@ return [ ...@@ -19,7 +31,8 @@ return [
'activeForm'=>[ 'activeForm'=>[
'id' => 'login_form_popup', 'id' => 'login_form_popup',
'options' => [ 'options' => [
'enctype' => 'multipart/form-data' 'enctype' => 'multipart/form-data',
'class' =>'validreg_form2',
], ],
], ],
'elements' => $elements, 'elements' => $elements,
......
...@@ -2,45 +2,59 @@ ...@@ -2,45 +2,59 @@
use common\modules\users\models\User; use common\modules\users\models\User;
$elements = [ $elements = [
'title_reg' => '<span class="popup__title">Регистрация</span>',
'open_form_reg' => '<div class="registration_form_left form_resp">',
'errors_reg' => '<div class="errors-reg_popup"></div>', 'errors_reg' => '<div class="errors-reg_popup"></div>',
'name' => ['type' => 'text', 'placeholder'=>"Ваше имя*", 'options'=>['label'=>false], 'name' => ['type' => 'text', 'placeholder'=>"Ваше имя*", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required alphanumeric']],
'email' => ['type' => 'text', 'placeholder'=>"E-mail*", 'options'=>['label'=>false], 'email' => ['type' => 'text', 'placeholder'=>"E-mail*", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'password' => ['type' => 'password', 'placeholder'=>"Придумайте пароль*", 'options'=>['label'=>false], 'password' => ['type' => 'password', 'placeholder'=>"Придумайте пароль*", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'password_c' => ['type' => 'password', 'placeholder'=>"Повторите пароль*", 'options'=>['label'=>false], 'password_c' => ['type' => 'password', 'placeholder'=>"Повторите пароль*", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'phone' => ['type' => 'text', 'placeholder'=>"Телефон", 'options'=>['label'=>false], 'phone' => ['type' => 'text', 'placeholder'=>"Телефон", 'options'=>['label'=>false],
'inputOptions'=>['class'=>'input_st field-input required alphanumeric']], 'inputOptions'=>['class'=>'input_st field-input required email']],
'teltext' => '<div class="teltext-block">Для участие в проводимых конкурсах укажите Ваш реальный номер телефона,
что бы мы смогли вас оповестить о результатах</div>',
'occupation' => [ 'occupation' => [
'type' => 'dropdownlist', 'type' => 'dropdownlist',
'items' => User::$occupation_list, 'items' => User::$occupation_list,
'placeholder'=>"Род занятий", 'placeholder'=>"Чем вы занимаетесь",
'options'=>['label'=>false], 'options'=>['label'=>false],
'empty'=>'Чем вы занимаетесь', 'empty'=>'Чем вы занимаетесь',
'inputOptions'=>['class'=>'input_st field-input required alphanumeric'] 'inputOptions'=>['class'=>'input_st field-input required alphanumeric']
], ],
'button_submit' => '<a href="javascript:void(0)" class="submit_form_reg_popup"> 'button_submit' => '<a href="javascript:void(0)" class="submit_form_reg_popup">
<div class="save-button sh_bt_send"> <div class="save-button popup_bt_send save-button-lg">
Записаться Начать обучение
</div> </div>
</a>', </a>',
'login_popup_link' => '<a class="login_form_popup_link" href="javascript:void(0)">Уже есть аккаунт?</a>', 'close_form_reg' => '</div>',
'text-reg' => '<span class="popup_text">Проходя регистрацию вы подтверждаете<br> 'how_work' =>' <div class="registration_form_right form_resp">
<a href="javascript:void(0)">согласие на обработку персональных данных.</a></span>', <span class="popup__title3">Как это работает?</span>
<p>Каждую неделю мы будем высылать тебе по 1 видео-уроку, который позволит освоить данную тему. Просмотр уроков и бонусных материалов - бесплатный!</p>
<div class="registration_form_img">
<br>
<img src="images/registration_form_img.jpg" alt="">
<br>
<br>
</div>
<div class="spec_propotition">
<p><strong>Более того, самому активному пользователю мы предусмотрели <span class="red_text">приз в размере 15 000 руб</span>. Все что надо, чтобы получить награду, это смотреть ролики и проявлять активность.</strong></p>
</div>
<br>
<br>
<p>Если у Вас уже есть аккаунт <a href="#registration_form2" class="popup-form">Войти</a></p>
</div>
<div class="clear"></div>'
]; ];
return [ return [
'activeForm'=>[ 'activeForm'=>[
'id' => 'reg_form_popup', 'id'=>'reg_form_popup',
'options' => [ 'options' => [
'enctype' => 'multipart/form-data' 'enctype' => 'multipart/form-data',
'class' =>'validreg_form2',
], ],
], ],
'elements' => $elements, 'elements' => $elements,
......
...@@ -162,7 +162,7 @@ return [ ...@@ -162,7 +162,7 @@ return [
'school' => 'school/course/index', 'school' => 'school/course/index',
'school/course/<id>' => 'school/course/view', 'school/course/<id>' => 'school/course/view',
'school/lesson/<id>' => 'school/lesson/view', 'school/lesson/<id>' => 'school/lesson/view',
'login/eauth/<service_eauth:google|facebook|vk|twitter>' => 'site/login', 'login/eauth/<service_eauth:google|vk|facebook>' => 'site/login',
'login' => 'site/login', 'login' => 'site/login',
'logout' => 'site/logout', 'logout' => 'site/logout',
'activate/<code>'=>'users/user/activate', 'activate/<code>'=>'users/user/activate',
...@@ -229,24 +229,24 @@ return [ ...@@ -229,24 +229,24 @@ return [
'clientSecret' => '...', 'clientSecret' => '...',
'title' => 'Google', 'title' => 'Google',
], ],
'facebook' => [
// register your app here: https://developers.facebook.com/apps/
'class' => 'common\modules\eauth\components\FacebookOAuth2Service',
'clientId' => '...',
'clientSecret' => '...',
],
'vk' => [ 'vk' => [
// register your app here: https://vk.com/editapp?act=create&site=1 // register your app here: https://vk.com/editapp?act=create&site=1
'class' => 'common\modules\eauth\components\VkOAuth2Service', 'class' => 'common\modules\eauth\components\VkOAuth2Service',
'clientId' => '...', 'clientId' => '...',
'clientSecret' => '...', 'clientSecret' => '...',
], ],
'twitter' => [ 'facebook' => [
// register your app here: https://developers.facebook.com/apps/
'class' => 'common\modules\eauth\components\FacebookOAuth2Service',
'clientId' => '...',
'clientSecret' => '...',
],
/*'twitter' => [
// register your app here: https://dev.twitter.com/apps/new // register your app here: https://dev.twitter.com/apps/new
'class' => 'common\modules\eauth\components\TwitterOAuth1Service', 'class' => 'common\modules\eauth\components\TwitterOAuth1Service',
'key' => '...', 'key' => '...',
'secret' => '...', 'secret' => '...',
], ],*/
], ],
], ],
], ],
......
...@@ -59,9 +59,7 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link{ ...@@ -59,9 +59,7 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link{
margin-top: 20px; margin-top: 20px;
display: block; display: block;
} }
#login_form, #login_form_popup{
display:none;
}
.sh_ft .popup_text, .reg_form .popup_text{ .sh_ft .popup_text, .reg_form .popup_text{
margin-top: 10px; margin-top: 10px;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment