summaryrefslogtreecommitdiff
path: root/resources/views/modules/personal_facts
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules/personal_facts')
-rw-r--r--resources/views/modules/personal_facts/tab.php62
1 files changed, 31 insertions, 31 deletions
diff --git a/resources/views/modules/personal_facts/tab.php b/resources/views/modules/personal_facts/tab.php
index 652d367721..f06f44482a 100644
--- a/resources/views/modules/personal_facts/tab.php
+++ b/resources/views/modules/personal_facts/tab.php
@@ -4,40 +4,40 @@
<?php use Fisharebest\Webtrees\View; ?>
<div class="wt-facts-tab py-4">
- <table class="table wt-facts-table">
- <tbody>
- <tr>
- <td colspan="2">
- <label>
- <input id="show-relatives-facts" type="checkbox" data-toggle="collapse" data-target=".wt-relation-fact">
- <?= I18N::translate('Events of close relatives') ?>
- </label>
- <?php if ($has_historical_facts): ?>
- <label>
- <input id="show-historical-facts" type="checkbox" data-toggle="collapse" data-target=".wt-historic-fact">
- <?= I18N::translate('Historical facts') ?>
- </label>
- <?php endif ?>
- </td>
- </tr>
+ <table class="table wt-facts-table">
+ <tbody>
+ <tr>
+ <td colspan="2">
+ <label>
+ <input id="show-relatives-facts" type="checkbox" data-toggle="collapse" data-target=".wt-relation-fact">
+ <?= I18N::translate('Events of close relatives') ?>
+ </label>
+ <?php if ($has_historical_facts) : ?>
+ <label>
+ <input id="show-historical-facts" type="checkbox" data-toggle="collapse" data-target=".wt-historic-fact">
+ <?= I18N::translate('Historical facts') ?>
+ </label>
+ <?php endif ?>
+ </td>
+ </tr>
- <?php foreach ($facts as $fact): ?>
- <?php FunctionsPrintFacts::printFact($fact, $individual) ?>
- <?php endforeach ?>
+ <?php foreach ($facts as $fact) : ?>
+ <?php FunctionsPrintFacts::printFact($fact, $individual) ?>
+ <?php endforeach ?>
- <?php if (empty($facts)): ?>
- <tr>
- <td colspan="2">
- <?= I18N::translate('There are no facts for this individual.') ?>
- </td>
- </tr>
- <?php endif ?>
+ <?php if (empty($facts)) : ?>
+ <tr>
+ <td colspan="2">
+ <?= I18N::translate('There are no facts for this individual.') ?>
+ </td>
+ </tr>
+ <?php endif ?>
- <?php if ($individual->canEdit()): ?>
- <?php FunctionsPrint::printAddNewFact($individual, $facts, 'INDI') ?>
- <?php endif ?>
- </tbody>
- </table>
+ <?php if ($individual->canEdit()) : ?>
+ <?php FunctionsPrint::printAddNewFact($individual, $facts, 'INDI') ?>
+ <?php endif ?>
+ </tbody>
+ </table>
</div>
<?php View::push('javascript') ?>