@@ -55,11 +55,11 @@ discard block |
||
55 | 55 | </legend> |
56 | 56 | <div class="col-sm-8"> |
57 | 57 | <?= Bootstrap4::radioButtons( |
58 | - 'cleardatabase', |
|
59 | - [I18N::translate('no'), I18N::translate('yes')], |
|
60 | - '0', |
|
61 | - true |
|
62 | - ) ?> |
|
58 | + 'cleardatabase', |
|
59 | + [I18N::translate('no'), I18N::translate('yes')], |
|
60 | + '0', |
|
61 | + true |
|
62 | + ) ?> |
|
63 | 63 | </div> |
64 | 64 | </div> |
65 | 65 | </fieldset> |
@@ -72,14 +72,14 @@ discard block |
||
72 | 72 | </legend> |
73 | 73 | <div class="col-sm-8"> |
74 | 74 | <?= Bootstrap4::select( |
75 | - [ |
|
76 | - 'addupdate' => I18N::translate('Add new, and update existing records'), |
|
77 | - 'add' => I18N::translate('Only add new records'), |
|
78 | - 'update' => I18N::translate('Only update existing records'), |
|
79 | - ], |
|
80 | - '0', |
|
81 | - ['id' => 'import-options', 'name' => 'import-options'] |
|
82 | - ) ?> |
|
75 | + [ |
|
76 | + 'addupdate' => I18N::translate('Add new, and update existing records'), |
|
77 | + 'add' => I18N::translate('Only add new records'), |
|
78 | + 'update' => I18N::translate('Only update existing records'), |
|
79 | + ], |
|
80 | + '0', |
|
81 | + ['id' => 'import-options', 'name' => 'import-options'] |
|
82 | + ) ?> |
|
83 | 83 | </div> |
84 | 84 | </div> |
85 | 85 | </fieldset> |
@@ -23,7 +23,7 @@ |
||
23 | 23 | </div> |
24 | 24 | <select id="serverfile" name="serverfile" class="form-control"> |
25 | 25 | <option selected value=""></option> |
26 | - <?php foreach($files as $file): ?> |
|
26 | + <?php foreach ($files as $file): ?> |
|
27 | 27 | <option value="<?= e($file) ?>"> |
28 | 28 | <?= e($file) ?> |
29 | 29 | </option> |
@@ -75,27 +75,27 @@ discard block |
||
75 | 75 | <a class="btn btn-primary" href="<?= e(route('map-data', ['parent_id' => $parent_id])) ?>"> |
76 | 76 | <?= FontAwesome::decorativeIcon('add') ?> |
77 | 77 | <?= /* I18N: A button label. */ |
78 | - I18N::translate('add place') ?> |
|
78 | + I18N::translate('add place') ?> |
|
79 | 79 | </a> |
80 | 80 | <button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenuButton" |
81 | 81 | data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
82 | 82 | <?= FontAwesome::decorativeIcon('download') ?> |
83 | 83 | <?= /* I18N: A button label. */ |
84 | - I18N::translate('export file') ?> |
|
84 | + I18N::translate('export file') ?> |
|
85 | 85 | </button> |
86 | 86 | <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> |
87 | 87 | <a class="dropdown-item" href="<?= e(route('locations-export', ['parent_id' => $parent_id, 'format' => 'csv'])) ?>"> |
88 | 88 | csv |
89 | 89 | </a> |
90 | 90 | <a class="dropdown-item" href="<?= e(route('locations-export', ['parent_id' => $parent_id, 'format' => 'geojson'] |
91 | - )) ?>"> |
|
91 | + )) ?>"> |
|
92 | 92 | geoJSON |
93 | 93 | </a> |
94 | 94 | </div> |
95 | 95 | <a class="btn btn-primary" href="<?= e(route('locations-import', ['parent_id' => $parent_id])) ?>"> |
96 | 96 | <?= FontAwesome::decorativeIcon('upload') ?> |
97 | 97 | <?= /* I18N: A button label. */ |
98 | - I18N::translate('import file') ?> |
|
98 | + I18N::translate('import file') ?> |
|
99 | 99 | </a> |
100 | 100 | </td> |
101 | 101 | </tr> |
@@ -111,16 +111,16 @@ discard block |
||
111 | 111 | </label> |
112 | 112 | <div class="col-sm-6"> |
113 | 113 | <?= Bootstrap4::select( |
114 | - Tree::getNameList(), |
|
115 | - '', |
|
116 | - ['id' => 'ged', 'name' => 'ged'] |
|
117 | - ) ?> |
|
114 | + Tree::getNameList(), |
|
115 | + '', |
|
116 | + ['id' => 'ged', 'name' => 'ged'] |
|
117 | + ) ?> |
|
118 | 118 | </div> |
119 | 119 | <div class="col-sm-2"> |
120 | 120 | <button type="submit" class="btn btn-primary"> |
121 | 121 | <?= view('icons/upload') ?> |
122 | 122 | <?= /* I18N: A button label. */ |
123 | - I18N::translate('import') ?> |
|
123 | + I18N::translate('import') ?> |
|
124 | 124 | </button> |
125 | 125 | </div> |
126 | 126 | </div> |
@@ -32,12 +32,10 @@ |
||
32 | 32 | </a> |
33 | 33 | </th> |
34 | 34 | <td> |
35 | - <?= ($place->pl_lati === null) ? FontAwesome::decorativeIcon('warning') : |
|
36 | - strtr($place->pl_lati, ['N' => '', 'S' => '-', ',' => '.']) ?> |
|
35 | + <?= ($place->pl_lati === null) ? FontAwesome::decorativeIcon('warning') : strtr($place->pl_lati, ['N' => '', 'S' => '-', ',' => '.']) ?> |
|
37 | 36 | </td> |
38 | 37 | <td> |
39 | - <?= ($place->pl_long === null) ? FontAwesome::decorativeIcon('warning') : |
|
40 | - strtr($place->pl_long, ['E' => '', 'W' => '-', ',' => '.']) ?> |
|
38 | + <?= ($place->pl_long === null) ? FontAwesome::decorativeIcon('warning') : strtr($place->pl_long, ['E' => '', 'W' => '-', ',' => '.']) ?> |
|
41 | 39 | </td> |
42 | 40 | <td> |
43 | 41 | <?= $place->pl_long === null ? FontAwesome::decorativeIcon('warning') : $place->pl_zoom ?> |
@@ -28,7 +28,7 @@ |
||
28 | 28 | </div> |
29 | 29 | <div id="card-tree-content-<?= $managed_tree->getTreeId() ?>" class="collapse<?= $managed_tree == $tree || $managed_tree->getPreference('imported') === '0' ? ' show' : '' ?>" role="tabpanel" aria-labelledby="panel-tree-header-<?= $managed_tree->getTreeId() ?>"> |
30 | 30 | <div class="card-body"> |
31 | - <?php $importing = Database::prepare("SELECT 1 FROM `##gedcom_chunk` WHERE gedcom_id = ? AND imported = '0' LIMIT 1" )->execute([$managed_tree->getTreeId()])->fetchOne() ?> |
|
31 | + <?php $importing = Database::prepare("SELECT 1 FROM `##gedcom_chunk` WHERE gedcom_id = ? AND imported = '0' LIMIT 1")->execute([$managed_tree->getTreeId()])->fetchOne() ?> |
|
32 | 32 | <?php if ($importing): ?> |
33 | 33 | <div id="import<?= $managed_tree->getTreeId() ?>" class="col-xs-12"> |
34 | 34 | <div class="progress"> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | </label> |
75 | 75 | <div class="col-sm-9 wt-page-options-value"> |
76 | 76 | <?= FunctionsEdit::formControlIndividual($tree, $default_individual, ['id' => 'root-id', |
77 | - 'name' => 'root_id', 'aria-describedby' => 'root-id-description']) ?> |
|
77 | + 'name' => 'root_id', 'aria-describedby' => 'root-id-description']) ?> |
|
78 | 78 | <p class="small text-muted" id="root-id-description"> |
79 | 79 | <?= I18N::translate('This individual will be selected by default when viewing charts and reports.') ?> |
80 | 80 | </p> |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | <?= Bootstrap4::select($themes, $user->getPreference('theme'), ['id' => 'theme', 'name' => 'theme', 'aria-describedby' => 'theme-description']) ?> |
150 | 150 | <p class="small text-muted" id="theme-description"> |
151 | 151 | <?= /* I18N: Help text for the "Default theme" site configuration setting */ |
152 | - I18N::translate('You can change the appearance of webtrees using “themes”. Each theme has a different style, layout, color scheme, etc.') ?> |
|
152 | + I18N::translate('You can change the appearance of webtrees using “themes”. Each theme has a different style, layout, color scheme, etc.') ?> |
|
153 | 153 | </p> |
154 | 154 | </div> |
155 | 155 | </div> |
@@ -241,7 +241,7 @@ |
||
241 | 241 | ], |
242 | 242 | 'CEME' => [ |
243 | 243 | // CEME is NOT a valid 5.5.1 tag |
244 | - //'BURI', |
|
244 | + //'BURI', |
|
245 | 245 | ], |
246 | 246 | 'RELA' => [ |
247 | 247 | 'ASSO', |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * webtrees: online genealogy |
5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -345,10 +345,10 @@ |
||
345 | 345 | } |
346 | 346 | // print gedcom ages |
347 | 347 | foreach ([ |
348 | - I18N::translate('Age') => $fact_age, |
|
349 | - I18N::translate('Husband') => $husb_age, |
|
350 | - I18N::translate('Wife') => $wife_age, |
|
351 | - ] as $label => $age) { |
|
348 | + I18N::translate('Age') => $fact_age, |
|
349 | + I18N::translate('Husband') => $husb_age, |
|
350 | + I18N::translate('Wife') => $wife_age, |
|
351 | + ] as $label => $age) { |
|
352 | 352 | if ($age != '') { |
353 | 353 | $html .= ' <span class="label">' . $label . ':</span> <span class="age">' . FunctionsDate::getAgeAtEvent($age) . '</span>'; |
354 | 354 | } |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | /** |
4 | 4 | * webtrees: online genealogy |
5 | 5 | * Copyright (C) 2018 webtrees development team |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | if ($note->canShow()) { |
141 | 141 | $noterec = $note->getGedcom(); |
142 | 142 | $nt = preg_match("/0 @$nmatch[1]@ NOTE (.*)/", $noterec, $n1match); |
143 | - $data .= self::printNoteRecord($tree, ($nt > 0) ? $n1match[1] : '', 1, $noterec); |
|
143 | + $data .= self::printNoteRecord($tree, ($nt > 0) ? $n1match[1] : '', 1, $noterec); |
|
144 | 144 | } |
145 | 145 | } else { |
146 | 146 | $data = '<div class="fact_NOTE"><span class="label">' . I18N::translate('Note') . '</span>: <span class="field error">' . $nmatch[1] . '</span></div>'; |
@@ -386,35 +386,35 @@ discard block |
||
386 | 386 | if (preg_match_all('/\n3 (?:_HEB|ROMN) (.+)/', $placerec, $matches)) { |
387 | 387 | foreach ($matches[1] as $match) { |
388 | 388 | $wt_place = new Place($match, $tree); |
389 | - $html .= ' - ' . $wt_place->getFullName(); |
|
389 | + $html .= ' - ' . $wt_place->getFullName(); |
|
390 | 390 | } |
391 | 391 | } |
392 | 392 | $map_lati = ''; |
393 | 393 | $cts = preg_match('/\d LATI (.*)/', $placerec, $match); |
394 | 394 | if ($cts > 0) { |
395 | 395 | $map_lati = $match[1]; |
396 | - $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
396 | + $html .= '<br><span class="label">' . I18N::translate('Latitude') . ': </span>' . $map_lati; |
|
397 | 397 | } |
398 | 398 | $map_long = ''; |
399 | 399 | $cts = preg_match('/\d LONG (.*)/', $placerec, $match); |
400 | 400 | if ($cts > 0) { |
401 | 401 | $map_long = $match[1]; |
402 | - $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
402 | + $html .= ' <span class="label">' . I18N::translate('Longitude') . ': </span>' . $map_long; |
|
403 | 403 | } |
404 | 404 | if ($map_lati && $map_long) { |
405 | 405 | $map_lati = trim(strtr($map_lati, 'NSEW,�', ' - -. ')); // S5,6789 ==> -5.6789 |
406 | 406 | $map_long = trim(strtr($map_long, 'NSEW,�', ' - -. ')); // E3.456� ==> 3.456 |
407 | - $html .= FontAwesome::linkIcon('google-maps', I18N::translate('Google Maps™'), [ |
|
407 | + $html .= FontAwesome::linkIcon('google-maps', I18N::translate('Google Maps™'), [ |
|
408 | 408 | 'class' => 'btn btn-link', |
409 | 409 | 'url' => 'https://maps.google.com/maps?q=' . $map_lati . ',' . $map_long, |
410 | 410 | 'rel' => 'nofollow', |
411 | 411 | ]); |
412 | - $html .= FontAwesome::linkIcon('bing-maps', I18N::translate('Bing Maps™'), [ |
|
412 | + $html .= FontAwesome::linkIcon('bing-maps', I18N::translate('Bing Maps™'), [ |
|
413 | 413 | 'class' => 'btn btn-link', |
414 | 414 | 'url' => 'https://www.bing.com/maps/?lvl=15&cp=' . $map_lati . '~' . $map_long, |
415 | 415 | 'rel' => 'nofollow', |
416 | 416 | ]); |
417 | - $html .= FontAwesome::linkIcon('openstreetmap', I18N::translate('OpenStreetMap™'), [ |
|
417 | + $html .= FontAwesome::linkIcon('openstreetmap', I18N::translate('OpenStreetMap™'), [ |
|
418 | 418 | 'class' => 'btn btn-link', |
419 | 419 | 'url' => 'https://www.openstreetmap.org/#map=15/' . $map_lati . '/' . $map_long, |
420 | 420 | 'rel' => 'nofollow', |
@@ -840,9 +840,9 @@ |
||
840 | 840 | } |
841 | 841 | |
842 | 842 | foreach ([ |
843 | - 'main' => $main_blocks, |
|
844 | - 'side' => $side_blocks, |
|
845 | - ] as $location => $updated_blocks) { |
|
843 | + 'main' => $main_blocks, |
|
844 | + 'side' => $side_blocks, |
|
845 | + ] as $location => $updated_blocks) { |
|
846 | 846 | foreach ($updated_blocks as $block_order => $block_id) { |
847 | 847 | if (is_numeric($block_id)) { |
848 | 848 | // Updated block |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public function treePageBlockEdit(Request $request, Tree $tree, User $user): Response |
49 | 49 | { |
50 | - $block_id = (int)$request->get('block_id'); |
|
50 | + $block_id = (int) $request->get('block_id'); |
|
51 | 51 | $block = $this->treeBlock($request, $user); |
52 | 52 | $title = $block->getTitle() . ' — ' . I18N::translate('Preferences'); |
53 | 53 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | */ |
90 | 90 | private function treeBlock(Request $request, User $user): ModuleBlockInterface |
91 | 91 | { |
92 | - $block_id = (int)$request->get('block_id'); |
|
92 | + $block_id = (int) $request->get('block_id'); |
|
93 | 93 | |
94 | 94 | $block_info = Database::prepare( |
95 | 95 | "SELECT module_Name, user_id FROM `##block` WHERE block_id = :block_id" |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function userPageBlockEdit(Request $request, Tree $tree, User $user): Response |
127 | 127 | { |
128 | - $block_id = (int)$request->get('block_id'); |
|
128 | + $block_id = (int) $request->get('block_id'); |
|
129 | 129 | $block = $this->userBlock($request, $user); |
130 | 130 | $title = $block->getTitle() . ' — ' . I18N::translate('Preferences'); |
131 | 131 | |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | */ |
168 | 168 | private function userBlock(Request $request, User $user): ModuleBlockInterface |
169 | 169 | { |
170 | - $block_id = (int)$request->get('block_id'); |
|
170 | + $block_id = (int) $request->get('block_id'); |
|
171 | 171 | |
172 | 172 | $block_info = Database::prepare( |
173 | 173 | "SELECT module_Name, user_id FROM `##block` WHERE block_id = :block_id" |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | throw new NotFoundHttpException($block_info->module_name . ' is not a block'); |
186 | 186 | } |
187 | 187 | |
188 | - $block_owner_id = (int)$block_info->user_id; |
|
188 | + $block_owner_id = (int) $block_info->user_id; |
|
189 | 189 | |
190 | 190 | if ($block_owner_id !== $user->getUserId() && !Auth::isAdmin()) { |
191 | 191 | throw new AccessDeniedHttpException('You are not allowed to edit this block'); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function treePageBlock(Request $request, Tree $tree): Response |
233 | 233 | { |
234 | - $block_id = (int)$request->get('block_id'); |
|
234 | + $block_id = (int) $request->get('block_id'); |
|
235 | 235 | |
236 | 236 | $block = Database::prepare( |
237 | 237 | "SELECT * FROM `##block` WHERE block_id = :block_id AND gedcom_id = :tree_id AND user_id IS NULL" |
@@ -297,8 +297,8 @@ discard block |
||
297 | 297 | */ |
298 | 298 | public function treePageDefaultUpdate(Request $request): RedirectResponse |
299 | 299 | { |
300 | - $main_blocks = (array)$request->get('main'); |
|
301 | - $side_blocks = (array)$request->get('side'); |
|
300 | + $main_blocks = (array) $request->get('main'); |
|
301 | + $side_blocks = (array) $request->get('side'); |
|
302 | 302 | |
303 | 303 | $this->updateTreeBlocks(-1, $main_blocks, $side_blocks); |
304 | 304 | |
@@ -342,14 +342,14 @@ discard block |
||
342 | 342 | */ |
343 | 343 | public function treePageUpdate(Request $request, Tree $tree): RedirectResponse |
344 | 344 | { |
345 | - $defaults = (bool)$request->get('defaults'); |
|
345 | + $defaults = (bool) $request->get('defaults'); |
|
346 | 346 | |
347 | 347 | if ($defaults) { |
348 | 348 | $main_blocks = $this->getBlocksForTreePage(-1, AUth::PRIV_NONE, 'main'); |
349 | 349 | $side_blocks = $this->getBlocksForTreePage(-1, Auth::PRIV_NONE, 'side'); |
350 | 350 | } else { |
351 | - $main_blocks = (array)$request->get('main'); |
|
352 | - $side_blocks = (array)$request->get('side'); |
|
351 | + $main_blocks = (array) $request->get('main'); |
|
352 | + $side_blocks = (array) $request->get('side'); |
|
353 | 353 | } |
354 | 354 | |
355 | 355 | $this->updateTreeBlocks($tree->getTreeId(), $main_blocks, $side_blocks); |
@@ -396,7 +396,7 @@ discard block |
||
396 | 396 | */ |
397 | 397 | public function userPageBlock(Request $request, Tree $tree, User $user): Response |
398 | 398 | { |
399 | - $block_id = (int)$request->get('block_id'); |
|
399 | + $block_id = (int) $request->get('block_id'); |
|
400 | 400 | |
401 | 401 | $block = Database::prepare( |
402 | 402 | "SELECT * FROM `##block` WHERE block_id = :block_id AND gedcom_id IS NULL AND user_id = :user_id" |
@@ -461,8 +461,8 @@ discard block |
||
461 | 461 | */ |
462 | 462 | public function userPageDefaultUpdate(Request $request): RedirectResponse |
463 | 463 | { |
464 | - $main_blocks = (array)$request->get('main'); |
|
465 | - $side_blocks = (array)$request->get('side'); |
|
464 | + $main_blocks = (array) $request->get('main'); |
|
465 | + $side_blocks = (array) $request->get('side'); |
|
466 | 466 | |
467 | 467 | $this->updateUserBlocks(-1, $main_blocks, $side_blocks); |
468 | 468 | |
@@ -508,14 +508,14 @@ discard block |
||
508 | 508 | */ |
509 | 509 | public function userPageUpdate(Request $request, Tree $tree, User $user): RedirectResponse |
510 | 510 | { |
511 | - $defaults = (bool)$request->get('defaults'); |
|
511 | + $defaults = (bool) $request->get('defaults'); |
|
512 | 512 | |
513 | 513 | if ($defaults) { |
514 | 514 | $main_blocks = $this->getBlocksForUserPage(-1, -1, AUth::PRIV_NONE, 'main'); |
515 | 515 | $side_blocks = $this->getBlocksForUserPage(-1, -1, Auth::PRIV_NONE, 'side'); |
516 | 516 | } else { |
517 | - $main_blocks = (array)$request->get('main'); |
|
518 | - $side_blocks = (array)$request->get('side'); |
|
517 | + $main_blocks = (array) $request->get('main'); |
|
518 | + $side_blocks = (array) $request->get('side'); |
|
519 | 519 | } |
520 | 520 | |
521 | 521 | $this->updateUserBlocks($user->getUserId(), $main_blocks, $side_blocks); |
@@ -532,7 +532,7 @@ discard block |
||
532 | 532 | */ |
533 | 533 | public function userPageUserEdit(Request $request): Response |
534 | 534 | { |
535 | - $user_id = (int)$request->get('user_id'); |
|
535 | + $user_id = (int) $request->get('user_id'); |
|
536 | 536 | $user = User::find($user_id); |
537 | 537 | $main_blocks = $this->getBlocksForUserPage(-1, $user_id, Auth::PRIV_NONE, 'main'); |
538 | 538 | $side_blocks = $this->getBlocksForUserPage(-1, $user_id, Auth::PRIV_NONE, 'side'); |
@@ -561,9 +561,9 @@ discard block |
||
561 | 561 | */ |
562 | 562 | public function userPageUserUpdate(Request $request): RedirectResponse |
563 | 563 | { |
564 | - $user_id = (int)$request->get('user_id'); |
|
565 | - $main_blocks = (array)$request->get('main'); |
|
566 | - $side_blocks = (array)$request->get('side'); |
|
564 | + $user_id = (int) $request->get('user_id'); |
|
565 | + $main_blocks = (array) $request->get('main'); |
|
566 | + $side_blocks = (array) $request->get('side'); |
|
567 | 567 | |
568 | 568 | $this->updateUserBlocks($user_id, $main_blocks, $side_blocks); |
569 | 569 |
@@ -13,18 +13,18 @@ |
||
13 | 13 | <?= csrf_field() ?> |
14 | 14 | <ul class="fa-ul"> |
15 | 15 | <?php |
16 | - foreach ($entries as $entry) { |
|
17 | - if (in_array($entry, $protected)) { |
|
18 | - echo '<li><span class="fa-li">' . view('icons/ban') . '</span>', e($entry), '</li>'; |
|
19 | - } else { |
|
20 | - echo '<li><span class="fa-li">' . view('icons/delete') . '</span>'; |
|
21 | - echo '<label>'; |
|
22 | - echo '<input type="checkbox" name="to_delete[]" value="', e($entry), '"> '; |
|
23 | - echo e($entry); |
|
24 | - echo '</label></li>'; |
|
25 | - } |
|
26 | - } |
|
27 | - ?> |
|
16 | + foreach ($entries as $entry) { |
|
17 | + if (in_array($entry, $protected)) { |
|
18 | + echo '<li><span class="fa-li">' . view('icons/ban') . '</span>', e($entry), '</li>'; |
|
19 | + } else { |
|
20 | + echo '<li><span class="fa-li">' . view('icons/delete') . '</span>'; |
|
21 | + echo '<label>'; |
|
22 | + echo '<input type="checkbox" name="to_delete[]" value="', e($entry), '"> '; |
|
23 | + echo e($entry); |
|
24 | + echo '</label></li>'; |
|
25 | + } |
|
26 | + } |
|
27 | + ?> |
|
28 | 28 | </ul> |
29 | 29 | |
30 | 30 | <button class="btn btn-danger" type="submit"> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | |
8 | 8 | <p> |
9 | 9 | <?= /* I18N: FAQ = “Frequently Asked Question” */ |
10 | - I18N::translate('FAQs are lists of questions and answers, which allow you to explain the site’s rules, policies, and procedures to your visitors. Questions are typically concerned with privacy, copyright, user-accounts, unsuitable content, requirement for source-citations, etc.') ?> |
|
10 | + I18N::translate('FAQs are lists of questions and answers, which allow you to explain the site’s rules, policies, and procedures to your visitors. Questions are typically concerned with privacy, copyright, user-accounts, unsuitable content, requirement for source-citations, etc.') ?> |
|
11 | 11 | <?= I18N::translate('You may use HTML to format the answer and to add links to other websites.') ?> |
12 | 12 | </p> |
13 | 13 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | <a href="<?= e(route('module', ['module' => 'faq', 'action' => 'AdminEdit', 'ged' => $tree->getName()])) ?>" class="btn btn-link"> |
29 | 29 | <?= view('icons/add') ?> |
30 | 30 | <?= /* I18N: FAQ = “Frequently Asked Question” */ |
31 | - I18N::translate('Add an FAQ') ?> |
|
31 | + I18N::translate('Add an FAQ') ?> |
|
32 | 32 | </a> |
33 | 33 | </p> |
34 | 34 |