@@ -34,7 +34,7 @@ |
||
34 | 34 | <?= $form->field('url', 'text', ['class' => 'form-control'], __('If you have your own homepage - enter url there')) ?> |
35 | 35 | <?php |
36 | 36 | foreach (ProfileField::getAll() as $custom) { |
37 | - echo $form->field('custom_data.' . $custom->id, 'text', ['class' => 'form-control']); |
|
37 | + echo $form->field('custom_data.'.$custom->id, 'text', ['class' => 'form-control']); |
|
38 | 38 | } |
39 | 39 | ?> |
40 | 40 |
@@ -9,15 +9,15 @@ |
||
9 | 9 | $title = Serialize::getDecodeLocale($record->title); |
10 | 10 | $title = Text::snippet($title, 50); |
11 | 11 | $date = Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR); |
12 | - $categoryUrl = \App::$Alias->baseUrl . '/content/list/' . $record->cpath; |
|
13 | - $categoryLink = '<a href="' . $categoryUrl . '">' . Serialize::getDecodeLocale($record->ctitle) . '</a>'; |
|
14 | - $newsLink = \App::$Alias->baseUrl . '/content/read/' . $record->cpath; |
|
15 | - $newsLink = rtrim($newsLink, '/') . '/' . $record->path; |
|
12 | + $categoryUrl = \App::$Alias->baseUrl.'/content/list/'.$record->cpath; |
|
13 | + $categoryLink = '<a href="'.$categoryUrl.'">'.Serialize::getDecodeLocale($record->ctitle).'</a>'; |
|
14 | + $newsLink = \App::$Alias->baseUrl.'/content/read/'.$record->cpath; |
|
15 | + $newsLink = rtrim($newsLink, '/').'/'.$record->path; |
|
16 | 16 | |
17 | 17 | echo '<div class="row"><div class="col-md-12">'; |
18 | - echo '<a href="' . $newsLink . '">→ ' . $title . '</a><br />'; |
|
19 | - echo '<small class="pull-left">' . $categoryLink . '</small>'; |
|
20 | - echo '<small class="pull-right">' . $date . '</small>'; |
|
18 | + echo '<a href="'.$newsLink.'">→ '.$title.'</a><br />'; |
|
19 | + echo '<small class="pull-left">'.$categoryLink.'</small>'; |
|
20 | + echo '<small class="pull-right">'.$date.'</small>'; |
|
21 | 21 | echo '</div></div>'; |
22 | 22 | echo '<hr class="pretty" />'; |
23 | 23 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | <?php |
23 | 23 | if ($records->count() < 1) { |
24 | - echo '<p class="alert alert-warning">' . __('No requests is founded') . '</p>'; |
|
24 | + echo '<p class="alert alert-warning">'.__('No requests is founded').'</p>'; |
|
25 | 25 | return; |
26 | 26 | } |
27 | 27 | $items = []; |
@@ -30,9 +30,8 @@ discard block |
||
30 | 30 | ['text' => $item->id], |
31 | 31 | ['text' => Url::link(['feedback/read', $item->id, $item->hash], Text::cut($item->message, 0, 40)), 'html' => true], |
32 | 32 | ['text' => |
33 | - (int)$item->closed === 1 ? |
|
34 | - '<span class="label label-danger">' . __('Closed') . '</span>' : |
|
35 | - '<span class="label label-success">' . __('Opened') . '</span>', |
|
33 | + (int) $item->closed === 1 ? |
|
34 | + '<span class="label label-danger">'.__('Closed').'</span>' : '<span class="label label-success">'.__('Opened').'</span>', |
|
36 | 35 | 'html' => true, '!secure' => true], |
37 | 36 | ['text' => Date::convertToDatetime($item->created_at, Date::FORMAT_TO_HOUR)], |
38 | 37 | ['text' => Date::convertToDatetime($item->updated_at, Date::FORMAT_TO_HOUR)] |
@@ -33,7 +33,7 @@ |
||
33 | 33 | <tbody> |
34 | 34 | <tr> |
35 | 35 | <td align="left" style="font-family:Helvetica Neue,Arial,Helvetica,sans-serif;padding-left:9px;font-size:14px;"> |
36 | - <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id . '/' . $record->hash ?>"> |
|
36 | + <a href="<?= \App::$Alias->scriptUrl ?>/feedback/read/<?= $record->id.'/'.$record->hash ?>"> |
|
37 | 37 | <?= __('View request') ?> |
38 | 38 | </a> |
39 | 39 | </td> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | <?php if ($useCaptcha === true) { |
32 | 32 | if (\App::$Captcha->isFull()) { |
33 | - echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>'; |
|
33 | + echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>'; |
|
34 | 34 | } else { |
35 | 35 | 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')); |
36 | 36 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** @var \Apps\ActiveRecord\Content $item*/ |
24 | 24 | $items[] = [ |
25 | 25 | 'text' => Serialize::getDecodeLocale($item->title), |
26 | - 'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath() |
|
26 | + 'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath() |
|
27 | 27 | ]; |
28 | 28 | } |
29 | 29 | ?> |
@@ -7,8 +7,8 @@ |
||
7 | 7 | $numericRating = 0; |
8 | 8 | if ($rating > 0) { |
9 | 9 | $cssRatingClass = 'label-success'; |
10 | - $numericRating = '+' . $rating; |
|
11 | -} elseif($rating < 0) { |
|
10 | + $numericRating = '+'.$rating; |
|
11 | +} elseif ($rating < 0) { |
|
12 | 12 | $cssRatingClass = 'label-danger'; |
13 | 13 | $numericRating = $rating; |
14 | 14 | } |
@@ -30,9 +30,9 @@ |
||
30 | 30 | if (Obj::isArray($notify) && count($notify) > 0) { |
31 | 31 | foreach ($notify as $type => $messages) { |
32 | 32 | foreach ($messages as $message) { |
33 | - echo '<p class="alert ' . type2html($type) . '"> |
|
33 | + echo '<p class="alert '.type2html($type).'"> |
|
34 | 34 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
35 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
35 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | <?php |
17 | 17 | $customCssCode = \App::$View->showPlainCode('css'); |
18 | 18 | if ($customCssCode !== null) { |
19 | - echo '<style>' . $customCssCode . '</style>'; |
|
19 | + echo '<style>'.$customCssCode.'</style>'; |
|
20 | 20 | } ?> |
21 | 21 | <script> |
22 | 22 | window.jQ = []; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | <?php |
63 | 63 | $customJsCode = \App::$View->showPlainCode('js'); |
64 | 64 | if ($customJsCode !== null) { |
65 | - echo '<script>' . $customJsCode . '</script>'; |
|
65 | + echo '<script>'.$customJsCode.'</script>'; |
|
66 | 66 | } |
67 | 67 | ?> |
68 | 68 | </body> |