@@ -116,7 +116,7 @@ |
||
116 | 116 | */ |
117 | 117 | public function getURL() { |
118 | 118 | return e(route('place-hierarchy', |
119 | - ['parent' => array_reverse($this->gedcom_place),'ged' => $this->tree->getNameUrl()])); |
|
119 | + ['parent' => array_reverse($this->gedcom_place), 'ged' => $this->tree->getNameUrl()])); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | /** |
@@ -2787,7 +2787,7 @@ |
||
2787 | 2787 | <?php |
2788 | 2788 | if ($level < 3 && $record->pl_icon != '') { |
2789 | 2789 | echo 'var image = { |
2790 | - "url" : "' . WT_MODULES_DIR . 'googlemap/" + "' . $record->pl_icon . '", |
|
2790 | + "url" : "' . WT_MODULES_DIR . 'googlemap/" + "' . $record->pl_icon . '", |
|
2791 | 2791 | "size" : new google.maps.Size(25, 15), |
2792 | 2792 | "origin" : new google.maps.Point(0, 0), |
2793 | 2793 | "anchor" : new google.maps.Point(12, 15) |
@@ -184,6 +184,6 @@ |
||
184 | 184 | </table> |
185 | 185 | </form> |
186 | 186 | |
187 | -<div class="wt-ajax-load wt-page-content" data-ajax-url="<?= e(route('calendar-events', ['ged' => $tree->getName(), 'cal' => $cal, 'day' => $day, 'month' => $month, 'year' => $year, 'view' => $view, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx,])) ?>"></div> |
|
187 | +<div class="wt-ajax-load wt-page-content" data-ajax-url="<?= e(route('calendar-events', ['ged' => $tree->getName(), 'cal' => $cal, 'day' => $day, 'month' => $month, 'year' => $year, 'view' => $view, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, ])) ?>"></div> |
|
188 | 188 | |
189 | 189 | <?= view('modals/ajax') ?> |
@@ -6,13 +6,13 @@ |
||
6 | 6 | |
7 | 7 | <?php if ($individual->isPendingDeletion()): ?> |
8 | 8 | <?php if (Auth::isModerator($individual->getTree())): ?> |
9 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This individual has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
9 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This individual has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
10 | 10 | <?php elseif (Auth::isEditor($individual->getTree())): ?> |
11 | 11 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This individual has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
12 | 12 | <?php endif ?> |
13 | 13 | <?php elseif ($individual->isPendingAddition()): ?> |
14 | 14 | <?php if (Auth::isModerator($individual->getTree())): ?> |
15 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This individual has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ) . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
15 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This individual has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($individual->getXref()) . '\', \'' . e($individual->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
16 | 16 | <?php elseif (Auth::isEditor($individual->getTree())): ?> |
17 | 17 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This individual has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
18 | 18 | <?php endif ?> |
@@ -8,13 +8,13 @@ |
||
8 | 8 | |
9 | 9 | <?php if ($record->isPendingDeletion()): ?> |
10 | 10 | <?php if (Auth::isModerator($record->getTree())): ?> |
11 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This family has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
11 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This family has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
12 | 12 | <?php elseif (Auth::isEditor($record->getTree())): ?> |
13 | 13 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This family has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
14 | 14 | <?php endif ?> |
15 | 15 | <?php elseif ($record->isPendingAddition()): ?> |
16 | 16 | <?php if (Auth::isModerator($record->getTree())): ?> |
17 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This family has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ) . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
17 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This family has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($record->getXref()) . '\', \'' . e($record->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
18 | 18 | <?php elseif (Auth::isEditor($record->getTree())): ?> |
19 | 19 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This family has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
20 | 20 | <?php endif ?> |
@@ -7,13 +7,13 @@ |
||
7 | 7 | |
8 | 8 | <?php if ($repository->isPendingDeletion()): ?> |
9 | 9 | <?php if (Auth::isModerator($repository->getTree())): ?> |
10 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This repository has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
10 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This repository has been deleted. You should review the deletion and then %1$s or %2$s it.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the deletion and then accept or reject it.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
11 | 11 | <?php elseif (Auth::isEditor($repository->getTree())): ?> |
12 | 12 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This repository has been deleted. The deletion will need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
13 | 13 | <?php endif ?> |
14 | 14 | <?php elseif ($repository->isPendingAddition()): ?> |
15 | 15 | <?php if (Auth::isModerator($repository->getTree())): ?> |
16 | - <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate( 'This repository has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . $repository->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>' ) . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
16 | + <?= view('alerts/warning-dissmissible', ['alert' => /* I18N: %1$s is “accept”, %2$s is “reject”. These are links. */ I18N::translate('This repository has been edited. You should review the changes and then %1$s or %2$s them.', '<a href="#" class="alert-link" onclick="accept_changes(\'' . e($repository->getXref()) . '\', \'' . e($repository->getTree()->getName()) . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'accept') . '</a>', '<a href="#" class="alert-link" onclick="reject_changes(\'' . $repository->getXref() . '\');">' . I18N::translateContext('You should review the changes and then accept or reject them.', 'reject') . '</a>') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
|
17 | 17 | <?php elseif (Auth::isEditor($repository->getTree())): ?> |
18 | 18 | <?= view('alerts/warning-dissmissible', ['alert' => I18N::translate('This repository has been edited. The changes need to be reviewed by a moderator.') . ' ' . FunctionsPrint::helpLink('pending_changes')]) ?> |
19 | 19 | <?php endif ?> |
@@ -21,13 +21,13 @@ |
||
21 | 21 | <div class="center"> |
22 | 22 | <?php if ($showeventslink): ?> |
23 | 23 | <a class="formField" href= <?= e(route('place-hierarchy', |
24 | - ['ged' => $tree->getName(), 'parent' => $parent, 'action' => 'hierarchy-e'] |
|
25 | - ) |
|
26 | - ) ?>><?= I18N::translate('View table of events occurring in %s', $place) ?></a> |
|
24 | + ['ged' => $tree->getName(), 'parent' => $parent, 'action' => 'hierarchy-e'] |
|
25 | + ) |
|
26 | + ) ?>><?= I18N::translate('View table of events occurring in %s', $place) ?></a> |
|
27 | 27 | | |
28 | 28 | <?php endif ?> |
29 | 29 | <a href="<?= e(route('place-hierarchy', ['ged' => $tree->getName(), 'action' => key($nextaction)])) |
30 | - ?>"><?= current($nextaction) ?></a> |
|
30 | + ?>"><?= current($nextaction) ?></a> |
|
31 | 31 | </div> |
32 | 32 | </div> |
33 | 33 | </div> |
@@ -10,14 +10,14 @@ |
||
10 | 10 | |
11 | 11 | <?php if (Auth::isAdmin()): ?> |
12 | 12 | <p class="center"> |
13 | - <a href="<?= e(route('admin-module',[ |
|
13 | + <a href="<?= e(route('admin-module', [ |
|
14 | 14 | 'module' => $module, |
15 | 15 | 'action' => 'AdminConfig', |
16 | 16 | ])) ?>"> |
17 | 17 | <?= I18N::translate('Map module preferences') ?> |
18 | 18 | </a> |
19 | 19 | | |
20 | - <a href="<?= e(route('admin-module',[ |
|
20 | + <a href="<?= e(route('admin-module', [ |
|
21 | 21 | 'module' => $module, |
22 | 22 | 'action' => 'AdminPlaces', |
23 | 23 | ])) ?>"> |
@@ -6,10 +6,10 @@ |
||
6 | 6 | |
7 | 7 | <h3><?= $title ?></h3> |
8 | 8 | <form id="upload_form" method="post" enctype="multipart/form-data" action="<?= |
9 | - e(route('admin-module',[ |
|
10 | - 'module' => $module, |
|
11 | - 'action' => 'AdminImport', |
|
12 | - ])) ?>"> |
|
9 | + e(route('admin-module',[ |
|
10 | + 'module' => $module, |
|
11 | + 'action' => 'AdminImport', |
|
12 | + ])) ?>"> |
|
13 | 13 | <?= csrf_field() ?> |
14 | 14 | <input type="hidden" name="parent_id" value="<?= $parent_id ?>"> |
15 | 15 | <input type="hidden" name="inactive" value="<?= $inactive ?>"> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | |
7 | 7 | <h3><?= $title ?></h3> |
8 | 8 | <form id="upload_form" method="post" enctype="multipart/form-data" action="<?= |
9 | - e(route('admin-module',[ |
|
9 | + e(route('admin-module', [ |
|
10 | 10 | 'module' => $module, |
11 | 11 | 'action' => 'AdminImport', |
12 | 12 | ])) ?>"> |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | </div> |
30 | 30 | <select id="serverfile" name="serverfile" class="form-control"> |
31 | 31 | <option class='custom-select' selected disabled value=''><?= I18N::translate('choose a file…') ?></option> |
32 | - <?php foreach($files as $file): ?> |
|
32 | + <?php foreach ($files as $file): ?> |
|
33 | 33 | <option value="<?= e($file) ?>"><?= $file ?></option> |
34 | 34 | <?php endforeach ?> |
35 | 35 | </select> |