@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use yii\base\Model; |
| 7 | 7 | use yii\helpers\Url; |
| 8 | 8 | use yii\helpers\Json; |
| 9 | -use yii\caching\TagDependency; |
|
| 10 | 9 | use yii\data\ActiveDataProvider; |
| 11 | 10 | use ogheo\comments\assets\CommentsAsset; |
| 12 | 11 | use ogheo\comments\helpers\CommentsHelper; |
@@ -18,7 +18,8 @@ discard block |
||
| 18 | 18 | <?= Yii::t('comments', '<a href="{url}">Log in</a> to post a comment.', ['url' => Url::to(Yii::$app->getUser()->loginUrl)]) ?> |
| 19 | 19 | </div> |
| 20 | 20 | |
| 21 | - <?php else: ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | |
| 23 | 24 | <?php $form = ActiveForm::begin([ |
| 24 | 25 | 'action' => Url::to( |
@@ -92,12 +93,17 @@ discard block |
||
| 92 | 93 | </div> |
| 93 | 94 | <?php } else { ?> |
| 94 | 95 | <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 user-data"> |
| 95 | - <?= Yii::t('comments', 'As') . ' <b>' . $commentModel->username . '</b>'; ?> |
|
| 96 | + <?= Yii::t('comments', 'As') . ' <b>' . $commentModel->username . '</b>'; |
|
| 97 | +} |
|
| 98 | +?> |
|
| 96 | 99 | </div> |
| 97 | 100 | <?php } ?> |
| 98 | - <?php else: ?> |
|
| 101 | + <?php else { |
|
| 102 | + : ?> |
|
| 99 | 103 | <div class="col-xs-6 col-sm-6 col-md-6 col-lg-6 user-data"> |
| 100 | - <?= Yii::t('comments', 'As') . ' <b>' . Yii::$app->user->identity->username . '</b>'; ?> |
|
| 104 | + <?= Yii::t('comments', 'As') . ' <b>' . Yii::$app->user->identity->username . '</b>'; |
|
| 105 | +} |
|
| 106 | +?> |
|
| 101 | 107 | </div> |
| 102 | 108 | <?php endif; ?> |
| 103 | 109 | |