@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | <div class="dropdown-menu"> |
| 8 | 8 | <div class="shareContainer"> |
| 9 | 9 | <?php |
| 10 | - $option = " |
|
| 10 | + $option = " |
|
| 11 | 11 | var width = 575, |
| 12 | 12 | height = 400, |
| 13 | 13 | left = ($(window).width() - width) / 2, |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | return false; |
| 25 | 25 | |
| 26 | 26 | "; |
| 27 | - ?> |
|
| 27 | + ?> |
|
| 28 | 28 | <?= Html::a('<i class="fa fa-facebook" style="font-size:16px;color:#3a5795"> </i>', 'https://www.facebook.com/sharer/sharer.php?u=' . urlencode($permalink) . '&description=' . urlencode($object->getContentDescription()),['onclick'=> $option]);?> |
| 29 | 29 | <?= Html::a('<i class="fa fa-twitter" style="font-size:16px;color:#55acee"> </i> </i>', 'https://twitter.com/intent/tweet?text=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink),['onclick'=> $option]);?> |
| 30 | 30 | <?= Html::a('<i class="fa fa-linkedin-square" style="font-size:16px;color:#0177b5"></i>', 'https://www.linkedin.com/shareArticle?summary=&mini=true&source=&title=' . urlencode($object->getContentDescription()) . '&url=' . urlencode($permalink) . '&ro=false', ['onclick'=> $option]);?> |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | 'isActive' => (Yii::$app->controller->id == "profile" && Yii::$app->controller->action->id == "index"), |
| 41 | 41 | )); |
| 42 | 42 | |
| 43 | - if (Yii::$app->getController()->getUser()->profile->about != "") { |
|
| 43 | + if (Yii::$app->getController()->getUser()->profile->about != "") { |
|
| 44 | 44 | $this->addItem(array( |
| 45 | 45 | 'label' => Yii::t('UserModule.widgets_ProfileMenuWidget', 'About'), |
| 46 | 46 | 'group' => 'profile', |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | 'sortOrder' => 300, |
| 49 | 49 | 'isActive' => (Yii::$app->controller->id == "profile" && Yii::$app->controller->action->id == "about"), |
| 50 | 50 | )); |
| 51 | - } |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | 53 | parent::init(); |
| 54 | 54 | } |