@@ -24,7 +24,7 @@ |
||
24 | 24 | public function files(): ?string |
25 | 25 | { |
26 | 26 | return $this->view->render('main/files', [ |
27 | - 'connector' => App::$Alias->scriptUrl . '/api/main/files?lang=' . $this->request->getLanguage() |
|
27 | + 'connector' => App::$Alias->scriptUrl.'/api/main/files?lang='.$this->request->getLanguage() |
|
28 | 28 | ]); |
29 | 29 | } |
30 | 30 | } |
31 | 31 | \ No newline at end of file |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $search = \Apps\ActiveRecord\App::getItem('widget', $controller); |
83 | 83 | |
84 | 84 | // check what we got |
85 | - if (!$search || (int)$search->id < 1) { |
|
85 | + if (!$search || (int) $search->id < 1) { |
|
86 | 86 | throw new NotFoundException('Widget is not founded'); |
87 | 87 | } |
88 | 88 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | ->first(); |
118 | 118 | |
119 | 119 | // check if widget admin controller exists |
120 | - if (!$record || (int)$record->id < 1) { |
|
120 | + if (!$record || (int) $record->id < 1) { |
|
121 | 121 | throw new ForbiddenException('Widget is not founded'); |
122 | 122 | } |
123 | 123 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $search = \Apps\ActiveRecord\App::getItem('app', $controller); |
85 | 85 | |
86 | 86 | // check what we got |
87 | - if (!$search || (int)$search->id < 1) { |
|
87 | + if (!$search || (int) $search->id < 1) { |
|
88 | 88 | throw new NotFoundException('App is not founded'); |
89 | 89 | } |
90 | 90 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $search = \Apps\ActiveRecord\App::where('sys_name', $controllerName) |
117 | 117 | ->where('type', 'app') |
118 | 118 | ->first(); |
119 | - if (!$search || (int)$search->id < 1) { |
|
119 | + if (!$search || (int) $search->id < 1) { |
|
120 | 120 | throw new ForbiddenException('App is not founded'); |
121 | 121 | } |
122 | 122 |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <h1><?= __('Feedback list') ?></h1> |
26 | 26 | <?php |
27 | 27 | if (!$records || $records->count() < 1) { |
28 | - echo '<p class="alert alert-warning">' . __('Feedback requests is empty now!') . '</p>'; |
|
28 | + echo '<p class="alert alert-warning">'.__('Feedback requests is empty now!').'</p>'; |
|
29 | 29 | $this->stop(); |
30 | 30 | return; |
31 | 31 | } |
@@ -45,11 +45,11 @@ discard block |
||
45 | 45 | foreach ($records as $item) { |
46 | 46 | /** @var \Apps\ActiveRecord\FeedbackPost $item*/ |
47 | 47 | $table->row([ |
48 | - ['text' => $item->id . (!$item->readed ? ' <i class="fa fa-bell alert-info"></i>' : null) . ($item->closed ? ' <i class="fa fa-eye-slash alert-danger"></i>' : null), 'html' => true], |
|
48 | + ['text' => $item->id.(!$item->readed ? ' <i class="fa fa-bell alert-info"></i>' : null).($item->closed ? ' <i class="fa fa-eye-slash alert-danger"></i>' : null), 'html' => true], |
|
49 | 49 | ['text' => Url::a(['feedback/read', [$item->id]], Text::snippet($item->message, 40)), 'html' => true], |
50 | - ['text' => '<span class="badge badge-light">' . $item->answers->count() . '</span>', 'html' => true], |
|
50 | + ['text' => '<span class="badge badge-light">'.$item->answers->count().'</span>', 'html' => true], |
|
51 | 51 | ['text' => $item->email], |
52 | - ['text' => (bool)$item->closed ? '<span class="badge badge-danger">' . __('Closed') . '</span>' : '<span class="label label-success">' . __('Opened') . '</span>', 'html' => true, '!secure' => true], |
|
52 | + ['text' => (bool) $item->closed ? '<span class="badge badge-danger">'.__('Closed').'</span>' : '<span class="label label-success">'.__('Opened').'</span>', 'html' => true, '!secure' => true], |
|
53 | 53 | ['text' => Date::convertToDatetime($item->updated_at, Date::FORMAT_TO_HOUR)], |
54 | 54 | ['text' => $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm', 'role' => 'group']) |
55 | 55 | ->add('<i class="fa fa-feed"></i>', ['feedback/read', [$item->id]], ['class' => 'btn btn-light', 'html' => true]) |
@@ -37,7 +37,7 @@ |
||
37 | 37 | <div class="text-right"><strong><?= __('Profile preview') ?></strong></div> |
38 | 38 | </div> |
39 | 39 | <div class="col-md-9"> |
40 | - <a href="<?= \App::$Alias->scriptUrl . '/profile/show/' . $model->_user->id ?>" target="_blank"><?= __('View profile on website') ?></a> |
|
40 | + <a href="<?= \App::$Alias->scriptUrl.'/profile/show/'.$model->_user->id ?>" target="_blank"><?= __('View profile on website') ?></a> |
|
41 | 41 | </div> |
42 | 42 | </div> |
43 | 43 | <div class="row mt-3 mb-3"> |
@@ -134,7 +134,8 @@ discard block |
||
134 | 134 | <span class="text-sm">No feedback queries found</span> |
135 | 135 | </div> |
136 | 136 | </div> |
137 | - <?php else: ?> |
|
137 | + <?php else { |
|
138 | + : ?> |
|
138 | 139 | <?php foreach ($features->getFeedback() as $feed): ?> |
139 | 140 | <div class="media"> |
140 | 141 | <div class="media-left"> |
@@ -145,7 +146,9 @@ discard block |
||
145 | 146 | <span class="text-sm"><?= Text::snippet($feed->message, 100) ?></span> |
146 | 147 | </div> |
147 | 148 | </div> |
148 | - <?php endforeach; ?> |
|
149 | + <?php endforeach; |
|
150 | +} |
|
151 | +?> |
|
149 | 152 | <?php endif; ?> |
150 | 153 | </div> |
151 | 154 | |
@@ -167,7 +170,8 @@ discard block |
||
167 | 170 | <span class="text-sm">No comments found</span> |
168 | 171 | </div> |
169 | 172 | </div> |
170 | - <?php else: ?> |
|
173 | + <?php else { |
|
174 | + : ?> |
|
171 | 175 | <?php foreach ($features->getComments() as $comment): ?> |
172 | 176 | <?php /** @var \Apps\ActiveRecord\CommentPost $comment */ ?> |
173 | 177 | <div class="media"> |
@@ -175,6 +179,7 @@ discard block |
||
175 | 179 | <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>"> |
176 | 180 | <?php |
177 | 181 | $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
182 | +} |
|
178 | 183 | if ($comment->user && $comment->user->id > 0) { |
179 | 184 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
180 | 185 | } |
@@ -220,9 +225,12 @@ discard block |
||
220 | 225 | <?php foreach ($breadcrumbs as $url => $text): ?> |
221 | 226 | <?php if (\Ffcms\Core\Helper\Type\Any::isInt($url)): ?> |
222 | 227 | <?= $text ?> |
223 | - <?php else: ?> |
|
228 | + <?php else { |
|
229 | + : ?> |
|
224 | 230 | <a href="<?= $url ?>"><?= $text ?></a> / |
225 | - <?php endif; ?> |
|
231 | + <?php endif; |
|
232 | +} |
|
233 | +?> |
|
226 | 234 | <?php endforeach; ?> |
227 | 235 | <?php endif; ?> |
228 | 236 | </h2> |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | <div class="media-left"> |
179 | 179 | <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>"> |
180 | 180 | <?php |
181 | - $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg'; |
|
181 | + $commentAva = \App::$Alias->scriptUrl.'/upload/user/avatar/small/default.jpg'; |
|
182 | 182 | if ($comment->user && $comment->user->id > 0) { |
183 | 183 | $commentAva = $comment->user->profile->getAvatarUrl('small'); |
184 | 184 | } |
@@ -222,8 +222,8 @@ discard block |
||
222 | 222 | $list = $this->listing('ul', ['class' => 'list-inline']); |
223 | 223 | foreach (\App::$Properties->get('languages') as $lang) { |
224 | 224 | $list->li([ |
225 | - 'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" alt="' . $lang . '">', |
|
226 | - 'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(), |
|
225 | + 'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" alt="'.$lang.'">', |
|
226 | + 'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(), |
|
227 | 227 | 'html' => true |
228 | 228 | ], ['class' => 'list-inline-item']); |
229 | 229 | } |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | </li> |
267 | 267 | <li class="nav-item<?= (\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? ' active' : null ?>"> |
268 | 268 | <?= Url::a(['#system-dropdown'], |
269 | - '<i class="fa fa-fire"></i> <span class="nav-text">' . __('System') . '</span>', |
|
269 | + '<i class="fa fa-fire"></i> <span class="nav-text">'.__('System').'</span>', |
|
270 | 270 | [ |
271 | 271 | 'class' => 'nav-container', |
272 | 272 | 'data-toggle' => 'collapse', |
@@ -274,12 +274,12 @@ discard block |
||
274 | 274 | ]) |
275 | 275 | ?> |
276 | 276 | |
277 | - <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
278 | - ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true]) |
|
279 | - ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true]) |
|
280 | - ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true]) |
|
281 | - ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true]) |
|
282 | - ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true]) |
|
277 | + <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown']) |
|
278 | + ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true]) |
|
279 | + ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true]) |
|
280 | + ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true]) |
|
281 | + ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true]) |
|
282 | + ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true]) |
|
283 | 283 | ->display(); |
284 | 284 | ?> |
285 | 285 | </li> |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | ?> |
298 | 298 | <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? ' active' : null ?>"> |
299 | 299 | <?= Url::a(['#apps-dropdown'], |
300 | - '<i class="fa fa-plug"></i> <span class="nav-text">' . __('Applications') . '</span>', |
|
300 | + '<i class="fa fa-plug"></i> <span class="nav-text">'.__('Applications').'</span>', |
|
301 | 301 | [ |
302 | 302 | 'class' => 'nav-container', |
303 | 303 | 'data-toggle' => 'collapse', |
@@ -306,18 +306,18 @@ discard block |
||
306 | 306 | ?> |
307 | 307 | |
308 | 308 | <?php |
309 | - $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
309 | + $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']); |
|
310 | 310 | foreach ($apps as $app) { |
311 | 311 | /** @var \Apps\ActiveRecord\App $app */ |
312 | - $appMenu->menu(['link' => [Str::lowerCase($app->sys_name) . '/index'], 'text' => $app->getLocaleName()]); |
|
312 | + $appMenu->menu(['link' => [Str::lowerCase($app->sys_name).'/index'], 'text' => $app->getLocaleName()]); |
|
313 | 313 | } |
314 | - $appMenu->menu(['link' => 'application/index', 'text' => __('All apps') . '...']); |
|
314 | + $appMenu->menu(['link' => 'application/index', 'text' => __('All apps').'...']); |
|
315 | 315 | echo $appMenu->display(); |
316 | 316 | ?> |
317 | 317 | </li> |
318 | 318 | <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? ' active' : null ?>"> |
319 | 319 | <?= Url::a(['#widgets-dropdown'], |
320 | - '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">' . __('Widgets') . '</span>', |
|
320 | + '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">'.__('Widgets').'</span>', |
|
321 | 321 | [ |
322 | 322 | 'class' => 'nav-container', |
323 | 323 | 'data-toggle' => 'collapse', |
@@ -326,12 +326,12 @@ discard block |
||
326 | 326 | ?> |
327 | 327 | |
328 | 328 | <?php |
329 | - $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
329 | + $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']); |
|
330 | 330 | foreach ($widgets as $widget) { |
331 | 331 | /** @var \Apps\ActiveRecord\App $widget */ |
332 | - $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name) . '/index'], 'text' => $widget->getLocaleName()]); |
|
332 | + $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name).'/index'], 'text' => $widget->getLocaleName()]); |
|
333 | 333 | } |
334 | - $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets') . '...']); |
|
334 | + $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets').'...']); |
|
335 | 335 | echo $widgetMenu->display(); |
336 | 336 | ?> |
337 | 337 | </li> |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | $index = implode('-', $this->_skip); |
63 | 63 | // try to get this slow query from cache |
64 | - $cache = App::$Cache->getItem('entity.content.search.index.' . $index); |
|
64 | + $cache = App::$Cache->getItem('entity.content.search.index.'.$index); |
|
65 | 65 | if (!$cache->isHit()) { |
66 | 66 | $cache->set($this->makeSearch()); |
67 | 67 | $cache->expiresAfter(static::CACHE_TIME); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | 'id' => $item->id, |
96 | 96 | 'title' => $item->getLocaled('title'), |
97 | 97 | 'snippet' => Text::snippet($text), |
98 | - 'uri' => '/content/read/' . $item->getPath(), |
|
98 | + 'uri' => '/content/read/'.$item->getPath(), |
|
99 | 99 | 'thumb' => $item->getPosterThumbUri() |
100 | 100 | ]; |
101 | 101 | } |
@@ -51,9 +51,9 @@ discard block |
||
51 | 51 | $langMenu->menu([ |
52 | 52 | 'text' => Str::upperCase($lang), |
53 | 53 | 'tab' => function() use ($form, $lang) { |
54 | - return $form->fieldset()->text('title.' . $lang, null, __('Fill the title of the content for current language locale')) . |
|
55 | - '<strong>' . __('Content text') . '</strong><br />' . |
|
56 | - $form->field()->textarea('text.' . $lang, ['class' => 'form-control wysiwyg', 'rows' => 7]); |
|
54 | + return $form->fieldset()->text('title.'.$lang, null, __('Fill the title of the content for current language locale')). |
|
55 | + '<strong>'.__('Content text').'</strong><br />'. |
|
56 | + $form->field()->textarea('text.'.$lang, ['class' => 'form-control wysiwyg', 'rows' => 7]); |
|
57 | 57 | }, |
58 | 58 | 'tabActive' => $lang === \App::$Request->getLanguage() |
59 | 59 | ]); |
@@ -72,9 +72,9 @@ discard block |
||
72 | 72 | $langMenu->menu([ |
73 | 73 | 'text' => Str::upperCase($lang), |
74 | 74 | 'tab' => function() use ($form, $lang) { |
75 | - return $form->fieldset()->text('metaTitle.' . $lang, null, __('Set meta title for content page (displayed in browser head). Recommended length: 50-70 chars')). |
|
76 | - $form->fieldset()->text('metaKeywords.' . $lang, ['class' => 'tag-selectize'], __('Set meta keywords for this content (for search engine crawlers) separated by comma')). |
|
77 | - $form->fieldset()->text('metaTitle.' . $lang, null, __('Set meta description for this content (for search engine crawlers). Recommended length: 200-250 chars')); |
|
75 | + return $form->fieldset()->text('metaTitle.'.$lang, null, __('Set meta title for content page (displayed in browser head). Recommended length: 50-70 chars')). |
|
76 | + $form->fieldset()->text('metaKeywords.'.$lang, ['class' => 'tag-selectize'], __('Set meta keywords for this content (for search engine crawlers) separated by comma')). |
|
77 | + $form->fieldset()->text('metaTitle.'.$lang, null, __('Set meta description for this content (for search engine crawlers). Recommended length: 200-250 chars')); |
|
78 | 78 | }, |
79 | 79 | 'tabActive' => $lang === \App::$Request->getLanguage() |
80 | 80 | ]); |
@@ -92,16 +92,16 @@ discard block |
||
92 | 92 | <div class="dropzone dropzone-previews" id="ffcms-dropzone"></div> |
93 | 93 | </div> |
94 | 94 | <div class="col-md-4"> |
95 | - ' . $form->fieldset()->select('poster', ['options' => [__('Not selected...')]], __("Select image from gallery as a poster for this content")) . ' |
|
95 | + ' . $form->fieldset()->select('poster', ['options' => [__('Not selected...')]], __("Select image from gallery as a poster for this content")).' |
|
96 | 96 | </div> |
97 | 97 | </div><br/><br/>'; |
98 | 98 | }]) |
99 | 99 | ->menu(['text' => __('Other'), 'tab' => function() use ($form, $model) { |
100 | - return $form->fieldset()->boolean('display', null, __('Can users view this content or only available for administrators?')) . |
|
101 | - $form->fieldset()->boolean('important', null, __('Make this material important and stack it on top of all news?')) . |
|
102 | - $form->fieldset()->text('createdAt', ['class' => 'form-control datepick'], __('Set the date of creation or leave empty for current date')) . |
|
103 | - $form->fieldset()->select('authorId', ['options' => $model->getUserIdName(), 'optionsKey' => true, 'class' => 'selectize-option'], __('Enter author user_id or leave empty to set current user as author')) . |
|
104 | - $form->fieldset()->text('source', null, __('Set source URL if this content is copied from another website')) . |
|
100 | + return $form->fieldset()->boolean('display', null, __('Can users view this content or only available for administrators?')). |
|
101 | + $form->fieldset()->boolean('important', null, __('Make this material important and stack it on top of all news?')). |
|
102 | + $form->fieldset()->text('createdAt', ['class' => 'form-control datepick'], __('Set the date of creation or leave empty for current date')). |
|
103 | + $form->fieldset()->select('authorId', ['options' => $model->getUserIdName(), 'optionsKey' => true, 'class' => 'selectize-option'], __('Enter author user_id or leave empty to set current user as author')). |
|
104 | + $form->fieldset()->text('source', null, __('Set source URL if this content is copied from another website')). |
|
105 | 105 | $form->fieldset()->text('addRating', null, __('Add or reduce this content rating. Example: 5 gives +5 to total rating, -5 gives -5 to total')); |
106 | 106 | }]); |
107 | 107 | |
@@ -128,11 +128,11 @@ discard block |
||
128 | 128 | ['text' => $comment->id], |
129 | 129 | ['text' => Text::snippet(\App::$Security->strip_tags($comment->message), 100)], |
130 | 130 | ['text' => $comment->getAnswerCount()], |
131 | - ['text' => Url::a(['user/update', [$comment->user_id]], ($comment->user->profile->nick ?? 'id' . $comment->user->id)), 'html' => true], |
|
131 | + ['text' => Url::a(['user/update', [$comment->user_id]], ($comment->user->profile->nick ?? 'id'.$comment->user->id)), 'html' => true], |
|
132 | 132 | ['text' => $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm']) |
133 | 133 | ->add('<i class="fa fa-pencil"></i>', ['comments/read', [$comment->id]], ['html' => true, 'class' => 'btn btn-primary', 'target' => '_blank']) |
134 | 134 | ->add('<i class="fa fa-trash-o"></i>', ['comments/delete', ['comment', $comment->id]], ['html' => true, 'class' => 'btn btn-danger', 'target' => '_blank']) |
135 | - ->display(),'properties' => ['class' => 'text-center'], 'html' => true |
|
135 | + ->display(), 'properties' => ['class' => 'text-center'], 'html' => true |
|
136 | 136 | ] |
137 | 137 | ]); |
138 | 138 | } |
@@ -238,7 +238,7 @@ discard block |
||
238 | 238 | var DropzoneFiles = []; |
239 | 239 | $('#ffcms-dropzone').dropzone({ |
240 | 240 | url: script_url + '/api/content/galleryupload/<?= $model->galleryFreeId ?>?lang=' + script_lang, |
241 | - dictDefaultMessage: '<?= __('Drop files here to upload in gallery') . '<br />' . __('(or click here)') ?>', |
|
241 | + dictDefaultMessage: '<?= __('Drop files here to upload in gallery').'<br />'.__('(or click here)') ?>', |
|
242 | 242 | acceptedFiles: ".jpeg,.jpg,.png,.gif,.webp", |
243 | 243 | addRemoveLinks: true, |
244 | 244 | removedfile: function (file) { // file remove click, lets try to remove file from server & make visual changes |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <h1><?= __('Category list') ?></h1> |
26 | 26 | <div class="row"> |
27 | 27 | <div class="col-md-12"> |
28 | - <?= Url::a(['content/categoryupdate'], '<i class="fa fa-plus"></i> ' . __('Add category'), ['class' => 'btn btn-primary', 'html' => true]) ?> |
|
28 | + <?= Url::a(['content/categoryupdate'], '<i class="fa fa-plus"></i> '.__('Add category'), ['class' => 'btn btn-primary', 'html' => true]) ?> |
|
29 | 29 | </div> |
30 | 30 | </div> |
31 | 31 | <div class="table-responsive"> |
@@ -56,17 +56,17 @@ discard block |
||
56 | 56 | <tr> |
57 | 57 | <td> |
58 | 58 | <div class="row"> |
59 | - <div class="d-none d-md-block col-md-<?= $offset ?> col-xs-<?= $offset+2 ?> " style="border-bottom: 2px solid #8a8a8a;height: 1px;padding-top: 10px;"></div> |
|
60 | - <div class="col-md-<?= $set ?> col-xs-<?= $set-2 ?>"> |
|
59 | + <div class="d-none d-md-block col-md-<?= $offset ?> col-xs-<?= $offset + 2 ?> " style="border-bottom: 2px solid #8a8a8a;height: 1px;padding-top: 10px;"></div> |
|
60 | + <div class="col-md-<?= $set ?> col-xs-<?= $set - 2 ?>"> |
|
61 | 61 | <?= $row->getLocaled('title') ?> |
62 | 62 | <sup>id: <?= $row->id ?></sup> |
63 | - <a href="<?= \App::$Alias->scriptUrl . '/content/list/' . $row->path ?>" target="_blank" class="badge badge-secondary">/<?= $row->path ?></a> |
|
63 | + <a href="<?= \App::$Alias->scriptUrl.'/content/list/'.$row->path ?>" target="_blank" class="badge badge-secondary">/<?= $row->path ?></a> |
|
64 | 64 | </div> |
65 | 65 | </div> |
66 | 66 | </td> |
67 | 67 | <td class="text-center"> |
68 | 68 | <?php $btn = $this->bootstrap()->btngroup(['class' => 'btn-group btn-group-sm', 'dropdown' => ['class' => 'btn-group btn-group-sm'], 'role' => 'group'], 4) |
69 | - ->add('<i class="fa fa-eye"></i>', [\App::$Alias->scriptUrl . '/content/list/' . $row->path], ['html' => true, 'target' => '_blank']) |
|
69 | + ->add('<i class="fa fa-eye"></i>', [\App::$Alias->scriptUrl.'/content/list/'.$row->path], ['html' => true, 'target' => '_blank']) |
|
70 | 70 | ->add('<i class="fa fa-plus"></i>', ['content/categoryupdate', null, ['parent' => $row->id]], ['class' => 'btn btn-success', 'data-toggle' => 'tooltip', 'title' => __('Add subcategory'), 'html' => true]) |
71 | 71 | ->add('<i class="fa fa-cog"></i>', ['content/categoryupdate', [$row->id]], ['class' => 'btn btn-primary', 'data-toggle' => 'tooltip', 'title' => __('Category configurations'), 'html' => true]); |
72 | 72 | if ($row->id > 1) { |