Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taskonsite-архив-перенесен
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitry Korolev
taskonsite-архив-перенесен
Commits
993fccaf
Commit
993fccaf
authored
Jan 23, 2017
by
Ruslan Karimov
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.task-on.com/ktask/taskoncom
parents
b393ab97
d4822c9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
33 deletions
+48
-33
common/modules/school/assets/css/school.css
common/modules/school/assets/css/school.css
+5
-0
common/modules/school/assets/js/school.js
common/modules/school/assets/js/school.js
+34
-28
common/modules/school/controllers/CourseController.php
common/modules/school/controllers/CourseController.php
+2
-1
common/modules/school/views/course/index.php
common/modules/school/views/course/index.php
+7
-4
No files found.
common/modules/school/assets/css/school.css
View file @
993fccaf
...
@@ -98,4 +98,9 @@ a.ls_block_title {
...
@@ -98,4 +98,9 @@ a.ls_block_title {
background
:
#F26363
;
background
:
#F26363
;
color
:
#fff
;
color
:
#fff
;
text-decoration
:
none
;
text-decoration
:
none
;
}
.mfp-container
{
position
:
fixed
;
top
:
10%
;
}
}
\ No newline at end of file
common/modules/school/assets/js/school.js
View file @
993fccaf
...
@@ -112,37 +112,43 @@ $(document).ready(function() {
...
@@ -112,37 +112,43 @@ $(document).ready(function() {
else
{
else
{
$
(
'
.spec_propotition
'
).
hide
();
$
(
'
.spec_propotition
'
).
hide
();
}
}
});
});
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_y
'
,
function
(){
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_y
'
,
function
(){
link
=
$
(
this
);
link
=
$
(
this
);
courseId
=
link
.
data
(
'
course
'
);
courseId
=
link
.
data
(
'
course
'
);
if
(
!
link
.
hasClass
(
"
ls_likes_y_choice
"
)
)
{
if
(
!
link
.
hasClass
(
"
ls_likes_y_choice
"
)
)
{
jQuery
.
ajax
({
jQuery
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
url
:
"
/school/likes-course/like-course
"
,
url
:
"
/school/likes-course/like-course
"
,
dataType
:
"
html
"
,
dataType
:
"
html
"
,
data
:
{
'
courseId
'
:
courseId
},
data
:
{
'
courseId
'
:
courseId
},
success
:
function
(
data
){
success
:
function
(
data
){
jQuery
(
'
.ls_likes
'
).
html
(
data
);
jQuery
(
'
.ls_likes
'
).
html
(
data
);
}
}
});
});
}
}
});
});
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_n
'
,
function
(){
$
(
'
body
'
).
on
(
'
click
'
,
'
a.ls_likes_n
'
,
function
(){
link
=
$
(
this
);
link
=
$
(
this
);
courseId
=
link
.
data
(
'
course
'
);
courseId
=
link
.
data
(
'
course
'
);
if
(
!
link
.
hasClass
(
"
ls_likes_n_choice
"
))
{
if
(
!
link
.
hasClass
(
"
ls_likes_n_choice
"
))
{
jQuery
.
ajax
({
jQuery
.
ajax
({
type
:
'
POST
'
,
type
:
'
POST
'
,
url
:
"
/school/likes-course/unlike-course
"
,
url
:
"
/school/likes-course/unlike-course
"
,
data
:
{
'
courseId
'
:
courseId
},
data
:
{
'
courseId
'
:
courseId
},
dataType
:
"
html
"
,
dataType
:
"
html
"
,
success
:
function
(
data
){
success
:
function
(
data
){
jQuery
(
'
.ls_likes
'
).
html
(
data
);
jQuery
(
'
.ls_likes
'
).
html
(
data
);
}
}
});
});
}
}
});
$
(
'
#registration_form
'
).
magnificPopup
({
type
:
'
inline
'
,
preloader
:
false
});
});
});
});
...
...
common/modules/school/controllers/CourseController.php
View file @
993fccaf
...
@@ -57,7 +57,8 @@ class CourseController extends FrontendController
...
@@ -57,7 +57,8 @@ class CourseController extends FrontendController
//$formLogin = new \common\components\BaseForm('/common/modules/users/forms/LoginForm', $modelLogin);
//$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
,
return
$this
->
render
(
'index'
,
[
'dataProvider'
=>
$dataProvider
,
/*'formPopup' => $formPopup->out, 'formLoginPopup' => $formLoginPopup->out*/
]);
/*'formPopup' => $formPopup->out, 'formLoginPopup' => $formLoginPopup->out*/
]);
}
}
public
function
actionView
(
$id
)
public
function
actionView
(
$id
)
...
...
common/modules/school/views/course/index.php
View file @
993fccaf
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
//echo FacebookPlugin::widget(['appId'=>'FACEBOOK_APP_ID']);
//echo FacebookPlugin::widget(['appId'=>'FACEBOOK_APP_ID']);
use
common\modules\school\assets\WidgetAssetBundle
;
use
common\modules\school\assets\WidgetAssetBundle
;
use
yii\web\View
;
use
yii\web\View
;
use
common\modules\users\widgets\RegistrationWidget
;
WidgetAssetBundle
::
register
(
$this
);
WidgetAssetBundle
::
register
(
$this
);
...
@@ -90,6 +91,11 @@ WidgetAssetBundle::register($this);
...
@@ -90,6 +91,11 @@ WidgetAssetBundle::register($this);
</div>
</div>
</div>
</div>
</section>
</section>
<div
class=
"white-popup-block mfp-hide"
>
<?=
RegistrationWidget
::
widget
();
?>
</div>
<?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">
...
@@ -113,7 +119,4 @@ WidgetAssetBundle::register($this);
...
@@ -113,7 +119,4 @@ WidgetAssetBundle::register($this);
</section>
</section>
<?php endif;*/
?>
<?php endif;*/
?>
<?php
echo
$this
->
render
(
'@app/views/layouts/footer'
);
?>
<?php
echo
$this
->
render
(
'@app/views/layouts/footer'
);
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment