@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | |
32 | 32 | // don't use breadcrumbs on injected pathway rule |
33 | -if (!\App::$Request->isPathInjected() && (bool)$model->getCategory()->getProperty('showCategory')) { |
|
33 | +if (!\App::$Request->isPathInjected() && (bool) $model->getCategory()->getProperty('showCategory')) { |
|
34 | 34 | $breadcrumbs = [ |
35 | 35 | Url::to('/') => __('Home') |
36 | 36 | ]; |
@@ -42,22 +42,22 @@ discard block |
||
42 | 42 | $breadcrumbs[Url::to('content/list', $cat['path'], null, [], false)] = $cat['name']; |
43 | 43 | } |
44 | 44 | } |
45 | - $breadcrumbs[] = __('Content') . ': ' . Str::sub($this->title, 0, 40); |
|
45 | + $breadcrumbs[] = __('Content').': '.Str::sub($this->title, 0, 40); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $this->breadcrumbs = $breadcrumbs; |
49 | 49 | } |
50 | 50 | |
51 | 51 | $properties = [ |
52 | - 'date' => (bool)$model->getCategory()->getProperty('showDate'), |
|
53 | - 'author' => (bool)$model->getCategory()->getProperty('showAuthor'), |
|
54 | - 'views' => (bool)$model->getCategory()->getProperty('showViews'), |
|
55 | - 'category' => (bool)$model->getCategory()->getProperty('showCategory'), |
|
56 | - 'rating' => (bool)$model->getCategory()->getProperty('showRating'), |
|
57 | - 'tags' => (bool)$model->getCategory()->getProperty('showTags') |
|
52 | + 'date' => (bool) $model->getCategory()->getProperty('showDate'), |
|
53 | + 'author' => (bool) $model->getCategory()->getProperty('showAuthor'), |
|
54 | + 'views' => (bool) $model->getCategory()->getProperty('showViews'), |
|
55 | + 'category' => (bool) $model->getCategory()->getProperty('showCategory'), |
|
56 | + 'rating' => (bool) $model->getCategory()->getProperty('showRating'), |
|
57 | + 'tags' => (bool) $model->getCategory()->getProperty('showTags') |
|
58 | 58 | ]; |
59 | -$showComments = (bool)$model->getCategory()->getProperty('showComments'); |
|
60 | -$showPoster = (bool)$model->getCategory()->getProperty('showPoster'); |
|
59 | +$showComments = (bool) $model->getCategory()->getProperty('showComments'); |
|
60 | +$showPoster = (bool) $model->getCategory()->getProperty('showPoster'); |
|
61 | 61 | |
62 | 62 | ?> |
63 | 63 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | <span class="spaced"><i class="glyphicon glyphicon-eye-open"></i> <?= $model->views ?></span> |
83 | 83 | <?php endif ?> |
84 | 84 | <?php if (\App::$User->isAuth() && \App::$User->identity()->role->can('Admin/Content/Update')): ?> |
85 | - <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> |
|
85 | + <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 | 86 | <?php endif; ?> |
87 | 87 | </div> |
88 | 88 | <?php else: ?> |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | <div id="content-text"> |
98 | 98 | <?php if ($showPoster === true && $model->posterFull !== null && $model->posterThumb !== null): ?> |
99 | 99 | <a href="#showPoster" data-toggle="modal" data-target="#showPoster"> |
100 | - <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase($model->title) ?>" src="<?= \App::$Alias->scriptUrl . $model->posterThumb ?>" class="image_poster img-thumbnail" /> |
|
100 | + <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase($model->title) ?>" src="<?= \App::$Alias->scriptUrl.$model->posterThumb ?>" class="image_poster img-thumbnail" /> |
|
101 | 101 | </a> |
102 | 102 | |
103 | 103 | <!-- Modal poster pop-up --> |
@@ -109,12 +109,12 @@ discard block |
||
109 | 109 | <h4 class="modal-title" id="myModalLabel"><?= __('View poster') ?></h4> |
110 | 110 | </div> |
111 | 111 | <div class="modal-body"> |
112 | - <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" /> |
|
112 | + <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" /> |
|
113 | 113 | </div> |
114 | 114 | </div> |
115 | 115 | </div> |
116 | 116 | </div> |
117 | - <?php endif ;?> |
|
117 | + <?php endif; ?> |
|
118 | 118 | <?= $model->text ?> |
119 | 119 | </div> |
120 | 120 | <?php if ($model->galleryItems !== null && Any::isArray($model->galleryItems)): ?> |
@@ -122,8 +122,8 @@ discard block |
||
122 | 122 | <?php $i = 1; ?> |
123 | 123 | <?php foreach ($model->galleryItems as $thumbPic => $fullPic): ?> |
124 | 124 | <div class="col-md-2 well"> |
125 | - <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl . $fullPic ?>" id="gallery-<?= $i ?>"> |
|
126 | - <img src="<?= \App::$Alias->scriptUrl . $thumbPic ?>" class="img-responsive image-item" /> |
|
125 | + <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl.$fullPic ?>" id="gallery-<?= $i ?>"> |
|
126 | + <img src="<?= \App::$Alias->scriptUrl.$thumbPic ?>" class="img-responsive image-item" /> |
|
127 | 127 | </a> |
128 | 128 | </div> |
129 | 129 | <?php $i++ ?> |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | <h4 class="modal-title" id="showModalLabel"><?= __('View picture') ?></h4> |
138 | 138 | </div> |
139 | 139 | <div class="modal-body" id="modal-gallery-body"> |
140 | - <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" /> |
|
140 | + <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" /> |
|
141 | 141 | </div> |
142 | 142 | </div> |
143 | 143 | </div> |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | </div> |
159 | 159 | <div id="similar<?= $idx ?>" class="panel-collapse collapse"> |
160 | 160 | <div class="panel-body"> |
161 | - <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>"> |
|
161 | + <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>"> |
|
162 | 162 | <?= $item['snippet'] ?> |
163 | 163 | </a> |
164 | 164 | </div> |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | echo '<i class="glyphicon glyphicon-tags hidden-xs"></i> '; |
190 | 190 | foreach ($model->metaKeywords as $tag) { |
191 | 191 | $tag = trim($tag); |
192 | - echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . " "; |
|
192 | + echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])." "; |
|
193 | 193 | } |
194 | 194 | } |
195 | 195 | ?> |
@@ -27,10 +27,10 @@ |
||
27 | 27 | } |
28 | 28 | $items = []; |
29 | 29 | foreach ($records as $record) { |
30 | - $moderate = (int)$record->display === 0; |
|
30 | + $moderate = (int) $record->display === 0; |
|
31 | 31 | $title = $record->getLocaled('title'); |
32 | 32 | if ($moderate) { |
33 | - $title = Url::link(['content/update', $record->id], $title) . ' <i class="glyphicon glyphicon-pencil"></i>'; |
|
33 | + $title = Url::link(['content/update', $record->id], $title).' <i class="glyphicon glyphicon-pencil"></i>'; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | $items[] = [ |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | |
16 | 16 | $catConfigs = []; |
17 | 17 | foreach ($model->category['configs'] as $key=>$value) { |
18 | - $catConfigs[$key] = (int)$value === 1; |
|
18 | + $catConfigs[$key] = (int) $value === 1; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | $catMeta = [ |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | <?php foreach ($model->items as $item): ?> |
69 | 69 | <article class="article-item" itemscope="itemscope" itemtype="https://schema.org/NewsArticle"> |
70 | 70 | <h2 itemprop="name"> |
71 | - <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>"> |
|
71 | + <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>"> |
|
72 | 72 | <?= $item['title'] ?> |
73 | 73 | </a> |
74 | 74 | <?php if ($item['important']): ?> |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | <?php |
99 | 99 | $ownerNick = $item['author']->profile->getNickname(); |
100 | 100 | if ($item['author']->getId() < 1) { |
101 | - echo '<s>' . $ownerNick . '</s>'; |
|
101 | + echo '<s>'.$ownerNick.'</s>'; |
|
102 | 102 | } else { |
103 | 103 | echo Url::link(['profile/show', $item['author']->getId()], $ownerNick, ['itemprop' => 'author']); |
104 | 104 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | <div class="row"> |
116 | 116 | <div class="col-md-12"> |
117 | 117 | <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?> |
118 | - <img src="<?= \App::$Alias->scriptUrl . $item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" /> |
|
118 | + <img src="<?= \App::$Alias->scriptUrl.$item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" /> |
|
119 | 119 | <?php endif; ?> |
120 | 120 | <div itemprop="text articleBody"> |
121 | 121 | <?= $item['text'] ?> |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | </div> |
124 | 124 | </div> |
125 | 125 | <div class="meta"> |
126 | - <?php if ((int)$catConfigs['showRating'] === 1) { |
|
126 | + <?php if ((int) $catConfigs['showRating'] === 1) { |
|
127 | 127 | echo \App::$View->render('content/_rate', [ |
128 | 128 | 'id' => $item['id'], |
129 | 129 | 'canRate' => $item['canRate'], |
@@ -132,15 +132,15 @@ discard block |
||
132 | 132 | } ?> |
133 | 133 | |
134 | 134 | <span class="spaced hidden-xs"><i class="glyphicon glyphicon-comment"></i> |
135 | - <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a> |
|
135 | + <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>#comments-list"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a> |
|
136 | 136 | </span> |
137 | 137 | <span class="pull-right"> |
138 | - <?php if ((int)$catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?> |
|
138 | + <?php if ((int) $catConfigs['showTags'] === 1 && $item['tags'] !== null && Any::isArray($item['tags'])): ?> |
|
139 | 139 | <span class="spaced"><i class="glyphicon glyphicon-tags hidden-xs"></i> |
140 | 140 | <?php |
141 | 141 | foreach ($item['tags'] as $tag) { |
142 | 142 | $tag = trim($tag); |
143 | - echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . " "; |
|
143 | + echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])." "; |
|
144 | 144 | } |
145 | 145 | ?> |
146 | 146 | </span> |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** @var \Apps\ActiveRecord\Content $item*/ |
22 | 22 | $items[] = [ |
23 | 23 | 'text' => $item->getLocaled('title'), |
24 | - 'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath() |
|
24 | + 'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath() |
|
25 | 25 | ]; |
26 | 26 | } |
27 | 27 | ?> |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | <?php |
21 | 21 | if (\App::$Captcha->isFull()) { |
22 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
22 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
23 | 23 | } else { |
24 | 24 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
25 | 25 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | <?= $form->field('repassword', 'password', ['class' => 'form-control'], __('Repeat your password to be sure it correct')); ?> |
25 | 25 | <?php if ($useCaptcha) { |
26 | 26 | if (\App::$Captcha->isFull()) { |
27 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
27 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
28 | 28 | } else { |
29 | 29 | echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')); |
30 | 30 | } |
@@ -31,9 +31,9 @@ |
||
31 | 31 | if (Any::isArray($notify) && count($notify) > 0) { |
32 | 32 | foreach ($notify as $type => $messages) { |
33 | 33 | foreach ($messages as $message) { |
34 | - echo '<p class="alert ' . type2html($type) . '"> |
|
34 | + echo '<p class="alert '.type2html($type).'"> |
|
35 | 35 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
36 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
36 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
37 | 37 | } |
38 | 38 | } |
39 | 39 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | <?php |
23 | 23 | $customCssCode = \App::$View->showPlainCode('css'); |
24 | 24 | if ($customCssCode !== null) { |
25 | - echo '<style>' . $customCssCode . '</style>'; |
|
25 | + echo '<style>'.$customCssCode.'</style>'; |
|
26 | 26 | } ?> |
27 | 27 | <script> |
28 | 28 | var script_url = '<?= \App::$Alias->scriptUrl ?>'; |
@@ -40,33 +40,33 @@ discard block |
||
40 | 40 | if (\App::$User->isAuth()) { |
41 | 41 | $userId = \App::$User->identity()->getId(); |
42 | 42 | // show 'add content' button if current controller is Content and user add is enabled |
43 | - if (\App::$Request->getController() === 'Content' && (bool)AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
44 | - $items[] = ['type' => 'link', 'link' => ['content/update'], 'text' => '<i class="glyphicon glyphicon-plus"></i> ' . __('Add content'), 'html' => true, 'position' => 'right']; |
|
43 | + if (\App::$Request->getController() === 'Content' && (bool) AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
44 | + $items[] = ['type' => 'link', 'link' => ['content/update'], 'text' => '<i class="glyphicon glyphicon-plus"></i> '.__('Add content'), 'html' => true, 'position' => 'right']; |
|
45 | 45 | } |
46 | 46 | $accountDropdown[] = ['link' => ['profile/show', $userId], 'text' => __('My profile')]; |
47 | - $accountDropdown[] = ['link' => ['profile/messages'], 'text' => __('Messages') . ' <span class="badge" id="pm-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
47 | + $accountDropdown[] = ['link' => ['profile/messages'], 'text' => __('Messages').' <span class="badge" id="pm-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
48 | 48 | $accountDropdown[] = ['link' => ['profile/feed'], 'text' => __('Feed')]; |
49 | - $accountDropdown[] = ['link' => ['profile/notifications'], 'text' => __('Notifications') . ' <span class="badge" id="notify-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
50 | - if ((bool)AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
49 | + $accountDropdown[] = ['link' => ['profile/notifications'], 'text' => __('Notifications').' <span class="badge" id="notify-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
50 | + if ((bool) AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
51 | 51 | $accountDropdown[] = ['link' => ['content/my'], 'text' => __('My content')]; |
52 | 52 | } |
53 | 53 | $accountDropdown[] = ['link' => ['profile/settings'], 'text' => __('Settings')]; |
54 | 54 | |
55 | 55 | $items[] = [ |
56 | 56 | 'type' => 'dropdown', |
57 | - 'text' => '<i class="glyphicon glyphicon-user"></i> ' . __('Account') . ' <span class="badge" id="summary-count-block">0</span>', |
|
57 | + 'text' => '<i class="glyphicon glyphicon-user"></i> '.__('Account').' <span class="badge" id="summary-count-block">0</span>', |
|
58 | 58 | 'html' => true, |
59 | 59 | '!secure' => true, |
60 | 60 | 'position' => 'right', |
61 | 61 | 'items' => $accountDropdown |
62 | 62 | ]; |
63 | 63 | if (\App::$User->identity()->role->can('Admin/Main/Index')) { |
64 | - $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl . '/admin/', 'text' => '<i class="glyphicon glyphicon-cog"></i> Admin', 'position' => 'right', 'html' => true]; |
|
64 | + $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl.'/admin/', 'text' => '<i class="glyphicon glyphicon-cog"></i> Admin', 'position' => 'right', 'html' => true]; |
|
65 | 65 | } |
66 | - $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="glyphicon glyphicon-log-out"></i> ' . __('Logout'), 'html' => true, 'position' => 'right']; |
|
66 | + $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="glyphicon glyphicon-log-out"></i> '.__('Logout'), 'html' => true, 'position' => 'right']; |
|
67 | 67 | } else { |
68 | - $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="glyphicon glyphicon-log-in"></i> ' . __('Sign in'), 'position' => 'right', 'html' => true]; |
|
69 | - $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="glyphicon glyphicon-check"></i> ' . __('Sign up'), 'position' => 'right', 'html' => true]; |
|
68 | + $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="glyphicon glyphicon-log-in"></i> '.__('Sign in'), 'position' => 'right', 'html' => true]; |
|
69 | + $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="glyphicon glyphicon-check"></i> '.__('Sign up'), 'position' => 'right', 'html' => true]; |
|
70 | 70 | } |
71 | 71 | |
72 | 72 | echo Navbar::display([ |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | 'container' => 'container', |
77 | 77 | 'collapseId' => 'collapse-object', |
78 | 78 | 'items' => $items |
79 | -]);?> |
|
79 | +]); ?> |
|
80 | 80 | </header> |
81 | 81 | |
82 | 82 | <div class="container body-container"> |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | echo $body; |
159 | 159 | } else { |
160 | 160 | \App::$Response->setStatusCode(404); |
161 | - echo '<p>' . __('Page is not founded!') . '</p>'; |
|
161 | + echo '<p>'.__('Page is not founded!').'</p>'; |
|
162 | 162 | } |
163 | 163 | ?> |
164 | 164 | </div> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | <?php |
216 | 216 | $customJsCode = \App::$View->showPlainCode('js'); |
217 | 217 | if ($customJsCode !== null) { |
218 | - echo '<script>' . $customJsCode . '</script>'; |
|
218 | + echo '<script>'.$customJsCode.'</script>'; |
|
219 | 219 | } |
220 | 220 | // render google analytics code here |
221 | 221 | echo \App::$View->render('blocks/googleanalytics'); |
@@ -27,11 +27,11 @@ discard block |
||
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <?php |
30 | -if ((int)$post->closed === 0 && \App::$User->isAuth()) { |
|
30 | +if ((int) $post->closed === 0 && \App::$User->isAuth()) { |
|
31 | 31 | $user = App::$User->identity(); |
32 | - if ($user->getId() === (int)$post->user_id) { |
|
33 | - echo '<div class="pull-right">' . |
|
34 | - Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']) . |
|
32 | + if ($user->getId() === (int) $post->user_id) { |
|
33 | + echo '<div class="pull-right">'. |
|
34 | + Url::link(['feedback/close', $post->id, $post->hash], __('Close request'), ['class' => 'btn btn-danger']). |
|
35 | 35 | '</div>'; |
36 | 36 | } |
37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | </div> |
53 | 53 | <h3><?= __('Answers') ?></h3> |
54 | 54 | <hr /> |
55 | -<?php if ((int)$post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
55 | +<?php if ((int) $post->readed === 0 && ($answers === null || $answers->count() < 1)): ?> |
|
56 | 56 | <p class="alert alert-warning"><?= __('This message is not properly readed by website administrators') ?></p> |
57 | 57 | <?php endif; ?> |
58 | 58 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | <?php foreach ($answers as $answer): ?> |
61 | 61 | <div class="row" id="feedback-answer-<?= $answer->id ?>"> |
62 | 62 | <div class="col-md-12"> |
63 | - <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
63 | + <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
64 | 64 | <div class="panel-heading"> |
65 | 65 | <strong><?= $answer->name ?> (<?= $answer->email ?>)</strong>, |
66 | 66 | <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | <?php endif; ?> |
76 | 76 | |
77 | 77 | <br /> |
78 | -<?php if ((int)$post->closed === 0 && $model !== null): ?> |
|
78 | +<?php if ((int) $post->closed === 0 && $model !== null): ?> |
|
79 | 79 | <h3><?= __('Add answer') ?></h3> |
80 | 80 | <?php $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post']) ?> |
81 | 81 | <?= $form->start() ?> |