@@ -22,7 +22,10 @@ |
||
22 | 22 | id="img-logo"/> |
23 | 23 | </a> |
24 | 24 | <br> |
25 | - <?php else: ?> |
|
26 | - <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl; ?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1> |
|
25 | + <?php else { |
|
26 | + : ?> |
|
27 | + <h1 id="app-title" class="animated fadeIn"><a href="<?php echo Yii::$app->homeUrl; |
|
28 | +} |
|
29 | +?>"><?php echo Html::encode(Yii::$app->name); ?></a></h1> |
|
27 | 30 | <?php endif; ?> |
28 | 31 | <?php endif; ?> |
29 | 32 | \ No newline at end of file |
@@ -8,7 +8,7 @@ |
||
8 | 8 | <div class="panel-heading"><?php echo Yii::t('base', "Menu"); ?></div> |
9 | 9 | <div class="list-group dashboard-menu-item"> |
10 | 10 | <?php foreach ($this->context->getItems() as $item) : ?> |
11 | - <?php echo Html::a("<span>".$item['label']."</span>", $item['url'], $item['htmlOptions']); ?> |
|
11 | + <?php echo Html::a("<span>" . $item['label'] . "</span>", $item['url'], $item['htmlOptions']); ?> |
|
12 | 12 | <?php endforeach; ?> |
13 | 13 | </div> |
14 | 14 | </div> |
15 | 15 | \ No newline at end of file |
@@ -119,8 +119,11 @@ |
||
119 | 119 | <!-- start: show content (and check, if exists a sublayout --> |
120 | 120 | <?php if (isset($this->context->subLayout) && $this->context->subLayout != "") : ?> |
121 | 121 | <?php echo $this->render($this->context->subLayout, array('content' => $content)); ?> |
122 | - <?php else: ?> |
|
123 | - <?php echo $content; ?> |
|
122 | + <?php else { |
|
123 | + : ?> |
|
124 | + <?php echo $content; |
|
125 | +} |
|
126 | +?> |
|
124 | 127 | <?php endif; ?> |
125 | 128 | <!-- end: show content --> |
126 | 129 |
@@ -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]);?> |
@@ -25,9 +25,9 @@ |
||
25 | 25 | |
26 | 26 | "; |
27 | 27 | ?> |
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 | - <?= 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 | - <?= 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]);?> |
|
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 | + <?= 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 | + <?= 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]); ?> |
|
31 | 31 | </div> |
32 | 32 | </div> |
33 | 33 | </div> |
34 | 34 | \ No newline at end of file |
@@ -9,8 +9,11 @@ |
||
9 | 9 | |
10 | 10 | <?php if (Yii::$app->user->isGuest): ?> |
11 | 11 | <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-heart-o"></i>'), Yii::$app->user->loginUrl, array('data-target' => '#globalModal')); ?> |
12 | - <?php else: ?> |
|
13 | - <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]); ?> |
|
12 | + <?php else { |
|
13 | + : ?> |
|
14 | + <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $likeUrl, ['style' => 'display:' . ((!$currentUserLiked) ? 'inline' : 'none'), 'class' => 'like likeAnchor', 'data-objectId' => $id]); |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | <?php echo Html::a(Yii::t('LikeModule.widgets_views_likeLink', '<i class="fa fa-thumbs-o-up"></i>'), $unlikeUrl, ['style' => 'display:' . (($currentUserLiked) ? 'inline' : 'none'), 'class' => 'unlike likeAnchor', 'data-objectId' => $id]); ?> |
15 | 18 | <?php endif; ?> |
16 | 19 |
@@ -14,10 +14,13 @@ |
||
14 | 14 | <div class="col-md-12 layout-content-container"> |
15 | 15 | <?php echo $content; ?> |
16 | 16 | </div> |
17 | - <?php else: ?> |
|
17 | + <?php else { |
|
18 | + : ?> |
|
18 | 19 | <div class="col-md-4 layout-sidebar-container"> |
19 | 20 | <div class="panel-light no-icons"> |
20 | - <?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]); ?> |
|
21 | + <?php echo \humhub\modules\space\widgets\Menu::widget(['space' => $space]); |
|
22 | +} |
|
23 | +?> |
|
21 | 24 | </div> |
22 | 25 | <?php |
23 | 26 | echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
@@ -18,8 +18,11 @@ |
||
18 | 18 | <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'After activating your account by the administrator, you will receive a notification by email.'); ?></p> |
19 | 19 | <br/> |
20 | 20 | <a href="<?php echo Url::home() ?>" class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'back to home') ?></a> |
21 | - <?php else: ?> |
|
22 | - <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.'); ?></p> |
|
21 | + <?php else { |
|
22 | + : ?> |
|
23 | + <p><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'To log in with your new account, click the button below.'); |
|
24 | +} |
|
25 | +?></p> |
|
23 | 26 | <br/> |
24 | 27 | <a href="<?php echo Url::home() ?>" |
25 | 28 | class="btn btn-primary"><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'Go to login page') ?></a> |
@@ -67,8 +67,11 @@ |
||
67 | 67 | <!-- start: show content (and check, if exists a sublayout --> |
68 | 68 | <?php if (isset($this->subLayout) && $this->subLayout != "") : ?> |
69 | 69 | <?php echo $this->renderPartial($this->subLayout, array('content' => $content)); ?> |
70 | - <?php else: ?> |
|
71 | - <?php echo $content; ?> |
|
70 | + <?php else { |
|
71 | + : ?> |
|
72 | + <?php echo $content; |
|
73 | +} |
|
74 | +?> |
|
72 | 75 | <?php endif; ?> |
73 | 76 | <!-- end: show content --> |
74 | 77 |
@@ -81,8 +81,11 @@ |
||
81 | 81 | <!-- start: show content (and check, if exists a sublayout --> |
82 | 82 | <?php if (isset($this->subLayout) && $this->subLayout != "") : ?> |
83 | 83 | <?php echo $this->renderPartial($this->subLayout, array('content' => $content)); ?> |
84 | - <?php else: ?> |
|
85 | - <?php echo $content; ?> |
|
84 | + <?php else { |
|
85 | + : ?> |
|
86 | + <?php echo $content; |
|
87 | +} |
|
88 | +?> |
|
86 | 89 | <?php endif; ?> |
87 | 90 | <!-- end: show content --> |
88 | 91 |