Add social sharing

parent f487ec99
...@@ -35,11 +35,11 @@ a.submit_form_reg, a.submit_form_reg_popup, a.submit_form_login, a.submit_form_l ...@@ -35,11 +35,11 @@ a.submit_form_reg, a.submit_form_reg_popup, a.submit_form_login, a.submit_form_l
display: block; display: block;
margin-bottom: 10px; margin-bottom: 10px;
} }
a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link{ 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{ #login_form, #login_form_popup {
display:none; display:none;
} }
.mfp-container { .mfp-container {
...@@ -47,4 +47,7 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link{ ...@@ -47,4 +47,7 @@ a.login_form_link, a.login_form_popup_link, a.reg_popup_link, a.reg_form_link{
} }
.kurs_img img { .kurs_img img {
height: 100%; height: 100%;
} }
\ No newline at end of file .soc_item .fa, .fbicon:before, .gplusicon:before {
margin-top: 10px;
}
...@@ -21,6 +21,10 @@ class CourseController extends BaseController ...@@ -21,6 +21,10 @@ class CourseController extends BaseController
public function actionIndex() public function actionIndex()
{ {
\Yii::$app->view->registerMetaTag([
'property' => 'og:title',
'content' => 'Школа аналитики'
]);
$searchModel = new SearchCourses(); $searchModel = new SearchCourses();
$search = \Yii::$app->request->queryParams; $search = \Yii::$app->request->queryParams;
$dataProvider = $searchModel->search($search); $dataProvider = $searchModel->search($search);
......
...@@ -7,7 +7,6 @@ use common\modules\school\assets\WidgetAssetBundle; ...@@ -7,7 +7,6 @@ use common\modules\school\assets\WidgetAssetBundle;
WidgetAssetBundle::register($this); WidgetAssetBundle::register($this);
?> ?>
<section class="sh_kurs"> <section class="sh_kurs">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -15,15 +14,20 @@ WidgetAssetBundle::register($this); ...@@ -15,15 +14,20 @@ WidgetAssetBundle::register($this);
<h1>Школа аналитики</h1> <h1>Школа аналитики</h1>
</div> </div>
<div class="col-md-3 col-md-offset-3 col-xs-6 col-sm-12"> <div class="col-md-3 col-md-offset-3 col-xs-6 col-sm-12">
<ul class="sh_social"> <!--<ul class="sh_social">
<li> <li>
<a href="#"><img src="/images/icon/sh_social_vk.png" height="30" width="30" alt=""></a> <a href="#"><img src="/images/icon/sh_social_vk.png" height="30" width="30" alt=""></a>
<a href="#"><img src="/images/icon/sh_social_fb.png" height="30" width="30" alt=""></a> <a href="#"><img src="/images/icon/sh_social_fb.png" height="30" width="30" alt=""></a>
<a href="#"><img src="/images/icon/sh_social_tw.png" height="30" width="30" alt=""></a> <a href="#"><img src="/images/icon/sh_social_tw.png" height="30" width="30" alt=""></a>
<a href="#"><img src="/images/icon/sh_social_gp.png" height="30" width="30" alt=""></a> <a href="#"><img src="/images/icon/sh_social_gp.png" height="30" width="30" alt=""></a>
<a href="#"><img src="/images/icon/sh_social_t.png" height="30" width="30" alt=""></a> <a href="#"><img src="/images/icon/sh_social_t.png" height="30" width="30" alt=""></a>
</li> </li>
</ul> </ul>-->
<div class="sh_social">
<script type="text/javascript" src="//yastatic.net/es5-shims/0.0.2/es5-shims.min.js" charset="utf-8"></script>
<script type="text/javascript" src="//yastatic.net/share2/share.js" charset="utf-8"></script>
<div class="ya-share2" data-services="vkontakte,facebook,gplus,twitter,tumblr" data-title="Школа аналитики"></div>
</div>
</div> </div>
</div> </div>
<?php <?php
......
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