@@ -29,9 +29,9 @@ discard block |
||
| 29 | 29 | <div class="col-md-6"> |
| 30 | 30 | <?php |
| 31 | 31 | if ($type === 'trash') { |
| 32 | - echo Url::a(['content/clear'], '<i class="fa fa-minus"></i> ' . __('Remove all'), ['class' => 'btn btn-danger', 'html' => true]); |
|
| 32 | + echo Url::a(['content/clear'], '<i class="fa fa-minus"></i> '.__('Remove all'), ['class' => 'btn btn-danger', 'html' => true]); |
|
| 33 | 33 | } else { |
| 34 | - echo Url::a(['content/update'], '<i class="fa fa-plus"></i> ' . __('Add content'), ['class' => 'btn btn-primary', 'html' => true]); |
|
| 34 | + echo Url::a(['content/update'], '<i class="fa fa-plus"></i> '.__('Add content'), ['class' => 'btn btn-primary', 'html' => true]); |
|
| 35 | 35 | } |
| 36 | 36 | ?> |
| 37 | 37 | </div> |
@@ -54,9 +54,9 @@ discard block |
||
| 54 | 54 | <i class="fa fa-filter"></i> <?= __('Filters') ?> |
| 55 | 55 | </button> |
| 56 | 56 | <div class="dropdown-menu" aria-labelledby="btnCategories"> |
| 57 | - <?= Url::a(['content/index', null, ['type' => 'all']], '<i class="fa fa-list"></i> ' . __('All'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 58 | - <?= Url::a(['content/index', null, ['type' => 'moderate']], '<i class="fa fa-exclamation"></i> ' . __('Moderate'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 59 | - <?= Url::a(['content/index', null, ['type' => 'trash']], '<i class="fa fa-trash"></i> ' . __('Trash'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 57 | + <?= Url::a(['content/index', null, ['type' => 'all']], '<i class="fa fa-list"></i> '.__('All'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 58 | + <?= Url::a(['content/index', null, ['type' => 'moderate']], '<i class="fa fa-exclamation"></i> '.__('Moderate'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 59 | + <?= Url::a(['content/index', null, ['type' => 'trash']], '<i class="fa fa-trash"></i> '.__('Trash'), ['class' => 'dropdown-item', 'html' => true]) ?> |
|
| 60 | 60 | </div> |
| 61 | 61 | </div> |
| 62 | 62 | </div> |
@@ -85,14 +85,14 @@ discard block |
||
| 85 | 85 | if (!$content->category) { |
| 86 | 86 | continue; |
| 87 | 87 | } |
| 88 | - $frontLink = \App::$Alias->scriptUrl . '/content/read'; |
|
| 88 | + $frontLink = \App::$Alias->scriptUrl.'/content/read'; |
|
| 89 | 89 | if (!Str::likeEmpty($content->category->path)) { |
| 90 | - $frontLink .= '/' . $content->category->path; |
|
| 90 | + $frontLink .= '/'.$content->category->path; |
|
| 91 | 91 | } |
| 92 | - $frontLink .= '/' . $content->path; |
|
| 92 | + $frontLink .= '/'.$content->path; |
|
| 93 | 93 | |
| 94 | 94 | $actionMenu = $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm', 'dropdown' => ['class' => 'btn-group btn-group-sm']], 2); |
| 95 | - if (!(bool)$content->display) { |
|
| 95 | + if (!(bool) $content->display) { |
|
| 96 | 96 | $actionMenu->add('<i class="fa fa-eye-slash" style="color: #ff0000;"></i>', ['content/display', [$content->id], ['status' => 1]], [ |
| 97 | 97 | 'html' => true, |
| 98 | 98 | 'class' => 'btn btn-light', |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | ]); |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | - if (!(bool)$content->important) { |
|
| 111 | + if (!(bool) $content->important) { |
|
| 112 | 112 | $actionMenu->add('<i class="fa fa-star-o"></i>', ['content/important', [$content->id], ['status' => 1]], [ |
| 113 | 113 | 'html' => true, |
| 114 | 114 | 'class' => 'btn btn-light', |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | $hiddenExist = true; |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - $contentInfo = '<div>' . Url::a(['content/update', [$content->id]], $content->getLocaled('title')) . '</div>'; |
|
| 141 | + $contentInfo = '<div>'.Url::a(['content/update', [$content->id]], $content->getLocaled('title')).'</div>'; |
|
| 142 | 142 | $contentInfo .= '<div class="small">'; |
| 143 | 143 | $contentInfo .= __('Category: <a href="%url%">%name%</a>', ['name' => $content->category->getLocaled('title'), 'url' => Url::to('content/categoryupdate', [$content->category_id])]); |
| 144 | 144 | $contentInfo .= '</div>'; |
@@ -54,8 +54,8 @@ |
||
| 54 | 54 | $table->row([ |
| 55 | 55 | ['text' => $row->id], |
| 56 | 56 | ['text' => $row->getLocaled('name')], |
| 57 | - ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true], |
|
| 58 | - ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true], |
|
| 57 | + ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true], |
|
| 58 | + ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true], |
|
| 59 | 59 | ['text' => $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm']) |
| 60 | 60 | ->add('<i class="fa fa-pencil"></i>', ['profile/fieldupdate', [$row->id]], ['class' => 'btn btn-primary', 'html' => true]) |
| 61 | 61 | ->add('<i class="fa fa-trash-o"></i>', ['profile/fielddelete', [$row->id]], ['class' => 'btn btn-danger', 'html' => true]) |