summaryrefslogtreecommitdiff
path: root/resources/views/statistics/families/marriage-length.phtml
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-03-19 09:14:32 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-03-19 09:49:23 +0000
commitbd055353fafed0c5380d9d8c58326ea55d6ad2e4 (patch)
tree333f013e14bbb4359a6a4f119c070972eadcf9cc /resources/views/statistics/families/marriage-length.phtml
parent225b5f8167b63c0bdcb74058385809e0ddde9192 (diff)
downloadwebtrees-bd055353fafed0c5380d9d8c58326ea55d6ad2e4.tar.gz
webtrees-bd055353fafed0c5380d9d8c58326ea55d6ad2e4.tar.bz2
webtrees-bd055353fafed0c5380d9d8c58326ea55d6ad2e4.zip
Use placeholders to generate statistics pages
Diffstat (limited to 'resources/views/statistics/families/marriage-length.phtml')
-rw-r--r--resources/views/statistics/families/marriage-length.phtml55
1 files changed, 0 insertions, 55 deletions
diff --git a/resources/views/statistics/families/marriage-length.phtml b/resources/views/statistics/families/marriage-length.phtml
deleted file mode 100644
index 972c56d420..0000000000
--- a/resources/views/statistics/families/marriage-length.phtml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-use Fisharebest\Webtrees\I18N;
-use Fisharebest\Webtrees\Statistics;
-
-/** @var Statistics $stats */
-?>
-
-<h4 class="border-bottom p-2 mb-4">
- <?= I18N::translate('Length of marriage') ?>
-</h4>
-
-<div class="row row-cols-1 row-cols-md-2 g-3 mb-3">
- <div class="col">
- <div class="card">
- <?php $age = $stats->topAgeOfMarriage() ?>
- <?php $result = $stats->topAgeOfMarriageFamily() ?>
- <h5 class="card-header">
- <?= I18N::translate('Longest marriage') ?>
- <?php if ($age) :
- ?><?= ' - ', $age ?><?php
- endif; ?>
- </h5>
- <div class="card-body">
- <?php if ($result) : ?>
- <?= $result ?>
- <?php else : ?>
- <?= I18N::translate('This information is not available.') ?>
- <?php endif; ?>
- </div>
- </div>
- </div>
-
- <div class="col">
- <div class="card">
- <?php $age = $stats->minAgeOfMarriage() ?>
- <?php $result = $stats->minAgeOfMarriageFamily() ?>
- <h5 class="card-header">
- <?= I18N::translate('Shortest marriage') ?>
- <?php if ($age) :
- ?><?= ' - ', $age ?><?php
- endif; ?>
- </h5>
- <div class="card-body">
- <?php if ($result) : ?>
- <?= $result ?>
- <?php else : ?>
- <?= I18N::translate('This information is not available.') ?>
- <?php endif; ?>
- </div>
- </div>
- </div>
-</div>