@@ -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]);?> |
@@ -24,16 +24,16 @@ discard block |
||
24 | 24 | <?php if ($canWrite): ?> |
25 | 25 | <li> |
26 | 26 | <?php |
27 | - echo AjaxButton::widget([ |
|
28 | - 'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'), |
|
29 | - 'ajaxOptions' => [ |
|
30 | - 'type' => 'POST', |
|
31 | - 'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_" . $comment->id . "').replaceWith(html); $('#comment_input_" . $comment->id . "_contenteditable').focus(); }"), |
|
32 | - 'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), |
|
33 | - ], |
|
34 | - 'tag' => 'a' |
|
35 | - ]); |
|
36 | - ?> |
|
27 | + echo AjaxButton::widget([ |
|
28 | + 'label' => '<i class="fa fa-pencil"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Edit'), |
|
29 | + 'ajaxOptions' => [ |
|
30 | + 'type' => 'POST', |
|
31 | + 'success' => new yii\web\JsExpression("function(html){ $('.preferences .dropdown').removeClass('open'); $('#comment_editarea_" . $comment->id . "').replaceWith(html); $('#comment_input_" . $comment->id . "_contenteditable').focus(); }"), |
|
32 | + 'url' => Url::to(['/comment/comment/edit', 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), |
|
33 | + ], |
|
34 | + 'tag' => 'a' |
|
35 | + ]); |
|
36 | + ?> |
|
37 | 37 | |
38 | 38 | </li> |
39 | 39 | <?php endif; ?> |
@@ -43,18 +43,18 @@ discard block |
||
43 | 43 | |
44 | 44 | <!-- load modal confirm widget --> |
45 | 45 | <?php |
46 | - echo humhub\widgets\ModalConfirm::widget(array( |
|
47 | - 'uniqueID' => 'modal_commentdelete_' . $comment->id, |
|
48 | - 'linkOutput' => 'a', |
|
49 | - 'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'), |
|
50 | - 'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'), |
|
51 | - 'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'), |
|
52 | - 'buttonFalse' => Yii::t('CommentModule.widgets_views_showComment', 'Cancel'), |
|
53 | - 'linkContent' => '<i class="fa fa-trash-o"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Delete'), |
|
54 | - 'linkHref' => Url::to(["/comment/comment/delete", 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), |
|
55 | - 'confirmJS' => "function(html) { $('#comment_" . $comment->id . "').slideUp(); }" |
|
56 | - )); |
|
57 | - ?> |
|
46 | + echo humhub\widgets\ModalConfirm::widget(array( |
|
47 | + 'uniqueID' => 'modal_commentdelete_' . $comment->id, |
|
48 | + 'linkOutput' => 'a', |
|
49 | + 'title' => Yii::t('CommentModule.widgets_views_showComment', '<strong>Confirm</strong> comment deleting'), |
|
50 | + 'message' => Yii::t('CommentModule.widgets_views_showComment', 'Do you really want to delete this comment?'), |
|
51 | + 'buttonTrue' => Yii::t('CommentModule.widgets_views_showComment', 'Delete'), |
|
52 | + 'buttonFalse' => Yii::t('CommentModule.widgets_views_showComment', 'Cancel'), |
|
53 | + 'linkContent' => '<i class="fa fa-trash-o"></i> ' . Yii::t('CommentModule.widgets_views_showComment', 'Delete'), |
|
54 | + 'linkHref' => Url::to(["/comment/comment/delete", 'contentModel' => $comment->object_model, 'contentId' => $comment->object_id, 'id' => $comment->id]), |
|
55 | + 'confirmJS' => "function(html) { $('#comment_" . $comment->id . "').slideUp(); }" |
|
56 | + )); |
|
57 | + ?> |
|
58 | 58 | </li> |
59 | 59 | <?php endif; ?> |
60 | 60 | </ul> |
@@ -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 | } |