@@ -18,8 +18,11 @@ |
||
| 18 | 18 | <?php foreach ($userMessages as $userMessage) : ?> |
| 19 | 19 | <?php echo $this->render('_messagePreview', array('userMessage' => $userMessage)); ?>
|
| 20 | 20 | <?php endforeach; ?> |
| 21 | - <?php else: ?> |
|
| 22 | - <li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.'); ?></li>
|
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 23 | + <li class="placeholder"><?php echo Yii::t('MailModule.views_mail_index', 'There are no messages yet.'); |
|
| 24 | +} |
|
| 25 | +?></li> |
|
| 23 | 26 | <?php endif; ?> |
| 24 | 27 | </ul> |
| 25 | 28 | </div> |
@@ -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" data-ui-loader=""><?php echo Yii::t('UserModule.views_auth_createAccount_success', 'Go to login page') ?></a> |
@@ -69,8 +69,11 @@ |
||
| 69 | 69 | <!-- start: show content (and check, if exists a sublayout --> |
| 70 | 70 | <?php if (isset($this->subLayout) && $this->subLayout != "") : ?> |
| 71 | 71 | <?php echo $this->renderPartial($this->subLayout, array('content' => $content)); ?> |
| 72 | - <?php else: ?> |
|
| 73 | - <?php echo $content; ?> |
|
| 72 | + <?php else { |
|
| 73 | + : ?> |
|
| 74 | + <?php echo $content; |
|
| 75 | +} |
|
| 76 | +?> |
|
| 74 | 77 | <?php endif; ?> |
| 75 | 78 | <!-- end: show content --> |
| 76 | 79 | |
@@ -23,12 +23,12 @@ |
||
| 23 | 23 | </div> |
| 24 | 24 | <div class="col-md-3 layout-sidebar-container"> |
| 25 | 25 | <?php |
| 26 | - echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
| 27 | - [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
| 28 | - [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
| 29 | - [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
| 30 | - ]]); |
|
| 31 | - ?> |
|
| 26 | + echo \humhub\modules\space\widgets\Sidebar::widget(['space' => $space, 'widgets' => [ |
|
| 27 | + [\humhub\modules\activity\widgets\Stream::className(), ['streamAction' => '/space/space/stream', 'contentContainer' => $space], ['sortOrder' => 10]], |
|
| 28 | + [\humhub\modules\space\modules\manage\widgets\PendingApprovals::className(), ['space' => $space], ['sortOrder' => 20]], |
|
| 29 | + [\humhub\modules\space\widgets\Members::className(), ['space' => $space], ['sortOrder' => 30]] |
|
| 30 | + ]]); |
|
| 31 | + ?> |
|
| 32 | 32 | </div> |
| 33 | 33 | <?php endif; ?> |
| 34 | 34 | </div> |
@@ -17,9 +17,12 @@ |
||
| 17 | 17 | <div class="col-md-10 layout-content-container"> |
| 18 | 18 | <?php echo $content; ?> |
| 19 | 19 | </div> |
| 20 | - <?php else: ?> |
|
| 20 | + <?php else { |
|
| 21 | + : ?> |
|
| 21 | 22 | <div class="col-md-7 layout-content-container"> |
| 22 | - <?php echo $content; ?> |
|
| 23 | + <?php echo $content; |
|
| 24 | +} |
|
| 25 | +?> |
|
| 23 | 26 | </div> |
| 24 | 27 | <div class="col-md-3 layout-sidebar-container"> |
| 25 | 28 | <?php |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | 'url' => $space->createUrl('/space/manage/module/enable', ['moduleId' => $moduleId]), |
| 57 | 57 | ], |
| 58 | 58 | 'htmlOptions' => [ |
| 59 | - 'class' => 'btn btn-sm btn-primary '. $enable, |
|
| 59 | + 'class' => 'btn btn-sm btn-primary ' . $enable, |
|
| 60 | 60 | 'id' => 'btn-enable-module-' . $moduleId |
| 61 | 61 | ] |
| 62 | 62 | ]); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | 'url' => $space->createUrl('/space/manage/module/disable', ['moduleId' => $moduleId]), |
| 77 | 77 | ], |
| 78 | 78 | 'htmlOptions' => [ |
| 79 | - 'class' => 'btn btn-sm btn-info '. $disable, |
|
| 79 | + 'class' => 'btn btn-sm btn-info ' . $disable, |
|
| 80 | 80 | 'id' => 'btn-disable-module-' . $moduleId |
| 81 | 81 | ] |
| 82 | 82 | ]); |
@@ -9,7 +9,10 @@ |
||
| 9 | 9 | <?php foreach ($this->context->getItemGroups() as $group) : ?> |
| 10 | 10 | |
| 11 | 11 | <?php $items = $this->context->getItems($group['id']); ?> |
| 12 | - <?php if (count($items) == 0) continue; ?> |
|
| 12 | + <?php if (count($items) == 0) { |
|
| 13 | + continue; |
|
| 14 | +} |
|
| 15 | +?> |
|
| 13 | 16 | |
| 14 | 17 | <div class="btn-group dropdown-navigation"> |
| 15 | 18 | <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" |
@@ -19,7 +19,10 @@ |
||
| 19 | 19 | <img class="img-rounded" src="<?php echo $logo->getUrl(); ?>" id="img-logo"/> |
| 20 | 20 | </a> |
| 21 | 21 | <br> |
| 22 | - <?php else: ?> |
|
| 23 | - <h1 id="app-title" class="animated fadeIn"><?php echo Html::encode(Yii::$app->name); ?></h1> |
|
| 22 | + <?php else { |
|
| 23 | + : ?> |
|
| 24 | + <h1 id="app-title" class="animated fadeIn"><?php echo Html::encode(Yii::$app->name); |
|
| 25 | +} |
|
| 26 | +?></h1> |
|
| 24 | 27 | <?php endif; ?> |
| 25 | 28 | <?php endif; ?> |
@@ -11,8 +11,11 @@ |
||
| 11 | 11 | |
| 12 | 12 | <?php if (!$category->isNewRecord) : ?> |
| 13 | 13 | <h4><?php echo Yii::t('AdminModule.views_userprofile_editCategory', 'Edit profile category'); ?></h4> |
| 14 | - <?php else: ?> |
|
| 15 | - <h4><?php echo Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); ?></h4> |
|
| 14 | + <?php else { |
|
| 15 | + : ?> |
|
| 16 | + <h4><?php echo Yii::t('AdminModule.views_userprofile_editCategory', 'Create new profile category'); |
|
| 17 | +} |
|
| 18 | +?></h4> |
|
| 16 | 19 | <?php endif; ?> |
| 17 | 20 | <br /> |
| 18 | 21 | |
@@ -12,8 +12,11 @@ |
||
| 12 | 12 | |
| 13 | 13 | <?php if (!$field->isNewRecord) : ?> |
| 14 | 14 | <h4><?php echo Yii::t('AdminModule.views_userprofile_editField', 'Edit profile field'); ?></h4> |
| 15 | - <?php else: ?> |
|
| 16 | - <h4><?php echo Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); ?></h4> |
|
| 15 | + <?php else { |
|
| 16 | + : ?> |
|
| 17 | + <h4><?php echo Yii::t('AdminModule.views_userprofile_editField', 'Create new profile field'); |
|
| 18 | +} |
|
| 19 | +?></h4> |
|
| 17 | 20 | <?php endif; ?> |
| 18 | 21 | |
| 19 | 22 | <br /> |