@@ -9,8 +9,11 @@ |
||
9 | 9 | <div class="panel-heading"> |
10 | 10 | <?php if ($group === null) : ?> |
11 | 11 | <?php echo Yii::t('DirectoryModule.views_directory_members', '<strong>Member</strong> directory'); ?> |
12 | - <?php else: ?> |
|
13 | - <?php echo Yii::t('DirectoryModule.views_directory_members', '<strong>Group</strong> members - {group}', ['{group}' => $group->name]); ?> |
|
12 | + <?php else { |
|
13 | + : ?> |
|
14 | + <?php echo Yii::t('DirectoryModule.views_directory_members', '<strong>Group</strong> members - {group}', ['{group}' => $group->name]); |
|
15 | +} |
|
16 | +?> |
|
14 | 17 | <?php endif; ?> |
15 | 18 | </div> |
16 | 19 |
@@ -7,11 +7,9 @@ |
||
7 | 7 | echo humhub\modules\content\widgets\Stream::widget(array( |
8 | 8 | 'streamAction' => '//directory/directory/stream', |
9 | 9 | 'messageStreamEmpty' => (!Yii::$app->user->isGuest) ? |
10 | - Yii::t('DirectoryModule.views_directory_userPosts', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') : |
|
11 | - Yii::t('DirectoryModule.views_directory_userPosts', '<b>There are no profile posts yet!</b>'), |
|
10 | + Yii::t('DirectoryModule.views_directory_userPosts', '<b>Nobody wrote something yet.</b><br>Make the beginning and post something...') : Yii::t('DirectoryModule.views_directory_userPosts', '<b>There are no profile posts yet!</b>'), |
|
12 | 11 | 'messageStreamEmptyCss' => (!Yii::$app->user->isGuest) ? |
13 | - 'placeholder-empty-stream' : |
|
14 | - '', |
|
12 | + 'placeholder-empty-stream' : '', |
|
15 | 13 | )); |
16 | 14 | ?> |
17 | 15 |
@@ -2,8 +2,11 @@ |
||
2 | 2 | <?php if ($isSticked): ?> |
3 | 3 | <a href="#" onClick="wallUnstick('<?php echo $unstickUrl; ?>'); |
4 | 4 | return false;"><i class="fa fa-arrow-up"></i> <?php echo Yii::t('ContentModule.widgets_views_stickLink', 'Unstick'); ?></a> |
5 | - <?php else: ?> |
|
6 | - <a href="#" onClick="wallStick('<?php echo $stickUrl; ?>'); |
|
5 | + <?php else { |
|
6 | + : ?> |
|
7 | + <a href="#" onClick="wallStick('<?php echo $stickUrl; |
|
8 | +} |
|
9 | +?>'); |
|
7 | 10 | return false;"><i class="fa fa-arrow-up"></i> <?php echo Yii::t('ContentModule.widgets_views_stickLink', 'Stick'); ?></a> |
8 | 11 | <?php endif; ?> |
9 | 12 | </li> |
@@ -156,11 +156,11 @@ |
||
156 | 156 | function setDefaultVisibility() { |
157 | 157 | <?php if ($defaultVisibility == humhub\modules\content\models\Content::VISIBILITY_PRIVATE) : ?> |
158 | 158 | setPrivateVisibility(); |
159 | - <?php endif ;?> |
|
159 | + <?php endif; ?> |
|
160 | 160 | |
161 | 161 | <?php if ($defaultVisibility == humhub\modules\content\models\Content::VISIBILITY_PUBLIC) : ?> |
162 | 162 | setPublicVisibility(); |
163 | - <?php endif ;?> |
|
163 | + <?php endif; ?> |
|
164 | 164 | } |
165 | 165 | |
166 | 166 | function setPublicVisibility() { |
@@ -10,8 +10,11 @@ |
||
10 | 10 | <?php if ($object->content->isArchived()): ?> |
11 | 11 | <a href="#" onClick="wallUnarchive('<?php echo $id; ?>'); |
12 | 12 | return false;"><i class="fa fa-archive"></i> <?php echo Yii::t('ContentModule.widgets_views_archiveLink', 'Unarchive'); ?></a> |
13 | - <?php else: ?> |
|
14 | - <a href="#" onClick="wallArchive('<?php echo $id; ?>'); |
|
13 | + <?php else { |
|
14 | + : ?> |
|
15 | + <a href="#" onClick="wallArchive('<?php echo $id; |
|
16 | +} |
|
17 | +?>'); |
|
15 | 18 | return false;"><i class="fa fa-archive"></i> <?php echo Yii::t('ContentModule.widgets_views_archiveLink', 'Move to archive'); ?></a> |
16 | 19 | <?php endif; ?> |
17 | 20 | </li> |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <!-- check if flash message exists --> |
2 | -<?php if(Yii::$app->getSession()->hasFlash('data-saved')): ?> |
|
2 | +<?php if (Yii::$app->getSession()->hasFlash('data-saved')): ?> |
|
3 | 3 | |
4 | 4 | <!-- <span> element to display the message --> |
5 | 5 | <span class="data-saved"><i class="fa fa-check-circle"></i> <?php echo Yii::$app->getSession()->getFlash('data-saved'); ?></span> |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | <?php if ($linkOutput == 'button') { ?> |
31 | 31 | |
32 | 32 | <!-- create button element --> |
33 | - <button class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif;?>" style="<?php echo $style; ?>" |
|
33 | + <button class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif; ?>" style="<?php echo $style; ?>" |
|
34 | 34 | data-toggle="modal" data-target="#confirmModal_<?php echo $uniqueID; ?>" <?php echo $tooltip; ?>> |
35 | 35 | <?php echo $linkContent; ?> |
36 | 36 | </button> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <?php } else if ($linkOutput == 'a') { ?> |
39 | 39 | |
40 | 40 | <!-- create normal link element --> |
41 | - <a id="deleteLinkPost_<?php echo $uniqueID; ?>" class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif;?>" style="<?php echo $style; ?>" href="#" |
|
41 | + <a id="deleteLinkPost_<?php echo $uniqueID; ?>" class="<?php echo $class; ?> <?php if ($tooltip != "") : ?>tt<?php endif; ?>" style="<?php echo $style; ?>" href="#" |
|
42 | 42 | data-toggle="modal" data-target="#confirmModal_<?php echo $uniqueID; ?>" <?php echo $tooltip; ?>> |
43 | 43 | <?php echo $linkContent; ?> |
44 | 44 | </a> |
@@ -19,7 +19,7 @@ |
||
19 | 19 | var sortable = ui.item.closest('.<?php echo $containerClassName; ?>'); |
20 | 20 | var items = sortable.find('.<?php echo $sortableItemClassName; ?>'); |
21 | 21 | <?php foreach($additionalAjaxParams as $name => $value) { |
22 | - if($name != null && $name != '' && $value != null && $value != '') { ?> |
|
22 | + if($name != null && $name != '' && $value != null && $value != '') { ?> |
|
23 | 23 | data.<?php echo $name ?> = '<?php echo $value ?>'; |
24 | 24 | <?php } } ?> |
25 | 25 | data.items = []; |
@@ -18,8 +18,8 @@ |
||
18 | 18 | var data = {}; |
19 | 19 | var sortable = ui.item.closest('.<?php echo $containerClassName; ?>'); |
20 | 20 | var items = sortable.find('.<?php echo $sortableItemClassName; ?>'); |
21 | - <?php foreach($additionalAjaxParams as $name => $value) { |
|
22 | - if($name != null && $name != '' && $value != null && $value != '') { ?> |
|
21 | + <?php foreach ($additionalAjaxParams as $name => $value) { |
|
22 | + if ($name != null && $name != '' && $value != null && $value != '') { ?> |
|
23 | 23 | data.<?php echo $name ?> = '<?php echo $value ?>'; |
24 | 24 | <?php } } ?> |
25 | 25 | data.items = []; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | <div class="list-group"> |
21 | 21 | <?php foreach ($items as $item) : ?> |
22 | 22 | <?php $item['htmlOptions']['class'] .= " list-group-item"; ?> |
23 | - <?php echo \yii\helpers\Html::a($item['icon']."<span>".$item['label']."</span>", $item['url'], $item['htmlOptions']); ?> |
|
23 | + <?php echo \yii\helpers\Html::a($item['icon'] . "<span>" . $item['label'] . "</span>", $item['url'], $item['htmlOptions']); ?> |
|
24 | 24 | <?php endforeach; ?> |
25 | 25 | </div> |
26 | 26 | <?php endforeach; ?> |
@@ -12,7 +12,10 @@ |
||
12 | 12 | <?php foreach ($this->context->getItemGroups() as $group) : ?> |
13 | 13 | |
14 | 14 | <?php $items = $this->context->getItems($group['id']); ?> |
15 | - <?php if (count($items) == 0) continue; ?> |
|
15 | + <?php if (count($items) == 0) { |
|
16 | + continue; |
|
17 | +} |
|
18 | +?> |
|
16 | 19 | |
17 | 20 | <?php if ($group['label'] != "") : ?> |
18 | 21 | <div class="panel-heading"><?php echo $group['label']; ?></div> |