@@ -17,9 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | use Fisharebest\Webtrees\Controller\PageController; |
| 19 | 19 | use Fisharebest\Webtrees\Functions\Functions; |
| 20 | -use Fisharebest\Webtrees\Functions\FunctionsDb; |
|
| 21 | 20 | use Fisharebest\Webtrees\Functions\FunctionsEdit; |
| 22 | -use Fisharebest\Webtrees\Functions\FunctionsImport; |
|
| 23 | 21 | use Fisharebest\Webtrees\Functions\FunctionsPrint; |
| 24 | 22 | use Fisharebest\Webtrees\Query\QueryMedia; |
| 25 | 23 | |
@@ -176,7 +176,8 @@ discard block |
||
| 176 | 176 | <div class="editfacts"> |
| 177 | 177 | <?php if ($fact->getTag() === 'FILE' && $fact->getParent() instanceof Media): ?> |
| 178 | 178 | <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=media-edit&xref=' . $parent->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $parent->getTree()->getNameHtml()]) ?> |
| 179 | - <?php else: ?> |
|
| 179 | + <?php else { |
|
| 180 | + : ?> |
|
| 180 | 181 | <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['class' => 'btn btn-link', 'href' => 'edit_interface.php?action=edit&xref=' . $parent->getXref() . '&fact_id=' . $fact->getFactId() . '&ged=' . $parent->getTree()->getNameHtml()]) ?> |
| 181 | 182 | <?= FontAwesome::linkIcon('copy', I18N::translate('Copy'), ['class' => 'btn btn-link', 'href' => '#', 'onclick' => 'return copy_fact("' . $parent->getXref() . '", "' . $fact->getFactId() . '");']) ?> |
| 182 | 183 | <?= FontAwesome::linkIcon('delete', I18N::translate('Delete'), ['class' => 'btn btn-link', 'href' => '#', 'onclick' => 'return delete_fact("' . I18N::translate('Are you sure you want to delete this fact?') . '", "' . $parent->getXref() . '", "' . $fact->getFactId() . '");']) ?> |
@@ -185,6 +186,7 @@ discard block |
||
| 185 | 186 | <?php |
| 186 | 187 | } else { |
| 187 | 188 | echo $label; |
| 189 | +} |
|
| 188 | 190 | } |
| 189 | 191 | |
| 190 | 192 | switch ($fact->getTag()) { |