@@ -123,7 +123,7 @@ |
||
| 123 | 123 | /** |
| 124 | 124 | * Get current extension active record |
| 125 | 125 | * @param string|null $type |
| 126 | - * @return mixed |
|
| 126 | + * @return AppRecord |
|
| 127 | 127 | */ |
| 128 | 128 | public function getTypeItem($type = null) |
| 129 | 129 | { |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * FormCommentUpdate constructor. Pass record inside the model. |
| 22 | - * @param \Apps\ActiveRecord\CommentPost|\Apps\ActiveRecord\CommentAnswer $record |
|
| 22 | + * @param \Ffcms\Core\Arch\ActiveModel $record |
|
| 23 | 23 | */ |
| 24 | 24 | public function __construct($record, $type = 'comment') |
| 25 | 25 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * FormContentPublish constructor. Pass records inside |
| 20 | - * @param Content[]|Collection $records |
|
| 20 | + * @param \Ffcms\Core\Arch\ActiveModel $records |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct($records) |
| 23 | 23 | { |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | /** |
| 169 | 169 | * Get user person like a object via email |
| 170 | 170 | * @param string|null $email |
| 171 | - * @return null|self |
|
| 171 | + * @return null|ActiveModel |
|
| 172 | 172 | */ |
| 173 | 173 | public static function getIdentityViaEmail(?string $email = null) |
| 174 | 174 | { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | /** |
| 33 | 33 | * EntityContentSearch constructor. Pass search terms (query string) to model and used items to skip it by id. |
| 34 | 34 | * @param $terms |
| 35 | - * @param int|array $skipIds |
|
| 35 | + * @param integer $skipIds |
|
| 36 | 36 | * @param int|null $categoryId |
| 37 | 37 | */ |
| 38 | 38 | public function __construct($terms, $skipIds = 0, $categoryId = null) |
@@ -77,7 +77,8 @@ discard block |
||
| 77 | 77 | </div> |
| 78 | 78 | <?php if (\App::$Captcha->isFull()): ?> |
| 79 | 79 | <div class="col-md-offset-3 col-md-9"><?= \App::$Captcha->get() ?></div> |
| 80 | - <?php else: ?> |
|
| 80 | + <?php else { |
|
| 81 | + : ?> |
|
| 81 | 82 | <div class="form-group"> |
| 82 | 83 | <label for="guest-captcha" class="col-sm-3 control-label"><?= __('Captcha') ?>:</label> |
| 83 | 84 | <div class="col-sm-9"> |
@@ -85,7 +86,9 @@ discard block |
||
| 85 | 86 | <input id="guest-captcha" type="text" name="captcha" class="form-control" required> |
| 86 | 87 | </div> |
| 87 | 88 | </div> |
| 88 | - <?php endif; ?> |
|
| 89 | + <?php endif; |
|
| 90 | +} |
|
| 91 | +?> |
|
| 89 | 92 | <?php endif; ?> |
| 90 | 93 | <textarea class="form-control wysi-comments" name="message"></textarea> |
| 91 | 94 | </form> |
@@ -18,9 +18,12 @@ |
||
| 18 | 18 | <li><i class="glyphicon glyphicon-user"></i> |
| 19 | 19 | <?php if ((int)$comment['user']['id'] > 0): ?> |
| 20 | 20 | <?= Url::link(['profile/show', $comment['user']['id']], $comment['user']['name']) ?> |
| 21 | - <?php else: ?> |
|
| 21 | + <?php else { |
|
| 22 | + : ?> |
|
| 22 | 23 | <?= $comment['user']['name'] ?> |
| 23 | - <?php endif; ?> |
|
| 24 | + <?php endif; |
|
| 25 | +} |
|
| 26 | +?> |
|
| 24 | 27 | </li> |
| 25 | 28 | </ul> |
| 26 | 29 | </li> |
@@ -74,9 +74,12 @@ discard block |
||
| 74 | 74 | <?php if ($properties['author'] === true): ?> |
| 75 | 75 | <?php if ($model->authorId !== null && $model->authorId > 0): ?> |
| 76 | 76 | <span class="spaced"><i class="glyphicon glyphicon-user"></i> <?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span> |
| 77 | - <?php else: ?> |
|
| 77 | + <?php else { |
|
| 78 | + : ?> |
|
| 78 | 79 | <span class="spaced"><i class="glyphicon glyphicon-user"></i> <s><?= $model->authorName ?></s></span> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php endif; ?> |
| 81 | 84 | <?php if ($properties['views'] === true): ?> |
| 82 | 85 | <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span> |
@@ -85,9 +88,12 @@ discard block |
||
| 85 | 88 | <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="glyphicon glyphicon-pencil" style="color: #ff0000;"></i></a></span> |
| 86 | 89 | <?php endif; ?> |
| 87 | 90 | </div> |
| 88 | - <?php else: ?> |
|
| 91 | + <?php else { |
|
| 92 | + : ?> |
|
| 89 | 93 | <hr /> |
| 90 | - <?php endif; ?> |
|
| 94 | + <?php endif; |
|
| 95 | +} |
|
| 96 | +?> |
|
| 91 | 97 | <?php if ($trash): ?> |
| 92 | 98 | <p class="alert alert-danger"><i class="glyphicon glyphicon-trash"></i> <?= __('This content is placed in trash') ?></p> |
| 93 | 99 | <?php endif; ?> |
@@ -109,9 +109,12 @@ |
||
| 109 | 109 | <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $item['views'] ?></span> |
| 110 | 110 | <?php endif; ?> |
| 111 | 111 | </div> |
| 112 | - <?php else: ?> |
|
| 112 | + <?php else { |
|
| 113 | + : ?> |
|
| 113 | 114 | <hr /> |
| 114 | - <?php endif; ?> |
|
| 115 | + <?php endif; |
|
| 116 | +} |
|
| 117 | +?> |
|
| 115 | 118 | <div class="row"> |
| 116 | 119 | <div class="col-md-12"> |
| 117 | 120 | <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?> |