1<?php use Fisharebest\Webtrees\I18N; ?> 2 3<?php if ($show_last_update) : ?> 4 <p class="card-text"> 5 <?= I18N::translate('This family tree was last updated on %s.', strip_tags($stats->gedcomUpdated())) ?> 6 </p> 7<?php endif ?> 8 9<div class="row"> 10 <div class="col-sm-4"> 11 <table class="table wt-facts-table"> 12 <caption class="sr-only"> 13 <?= I18N::translate('Statistics') ?> 14 </caption> 15 <tbody> 16 <?php if ($stat_indi) : ?> 17 <tr> 18 <th scope="row"> 19 <?= I18N::translate('Individuals') ?> 20 </th> 21 <td> 22 <?= $stats->totalIndividuals() ?> 23 </td> 24 </tr> 25 26 <tr> 27 <th scope="row"> 28 <?= I18N::translate('Males') ?> 29 </th> 30 <td> 31 <?= $stats->totalSexMales() ?> 32 <br> 33 <?= $stats->totalSexMalesPercentage() ?> 34 </td> 35 </tr> 36 37 <tr> 38 <th scope="row"> 39 <?= I18N::translate('Females') ?> 40 </th> 41 <td> 42 <?= $stats->totalSexFemales() ?> 43 <br> 44 <?= $stats->totalSexFemalesPercentage() ?> 45 </td> 46 </tr> 47 <?php endif ?> 48 49 <?php if ($stat_surname) : ?> 50 <tr> 51 <th scope="row"> 52 <?= I18N::translate('Surnames') ?> 53 </th> 54 <td> 55 <?= $stats->totalSurnames() ?> 56 </td> 57 </tr> 58 <?php endif ?> 59 60 <?php if ($stat_fam) : ?> 61 <tr> 62 <th scope="row"> 63 <?= I18N::translate('Families') ?> 64 </th> 65 <td> 66 <?= $stats->totalFamilies() ?> 67 </td> 68 </tr> 69 <?php endif ?> 70 71 72 <?php if ($stat_sour) : ?> 73 <tr> 74 <th scope="row"> 75 <?= I18N::translate('Sources') ?> 76 </th> 77 <td> 78 <?= $stats->totalSources() ?> 79 </td> 80 </tr> 81 <?php endif ?> 82 83 <?php if ($stat_media) : ?> 84 <tr> 85 <th scope="row"> 86 <?= I18N::translate('Media objects') ?> 87 </th> 88 <td> 89 <?= $stats->totalMedia() ?> 90 </td> 91 </tr> 92 <?php endif ?> 93 94 <?php if ($stat_repo) : ?> 95 <tr> 96 <th scope="row"> 97 <?= I18N::translate('Repositories') ?> 98 </th> 99 <td> 100 <?= $stats->totalRepositories() ?> 101 </td> 102 </tr> 103 <?php endif ?> 104 105 <?php if ($stat_events) : ?> 106 <tr> 107 <th scope="row"> 108 <?= I18N::translate('Events') ?> 109 </th> 110 <td> 111 <?= $stats->totalEvents() ?> 112 </td> 113 </tr> 114 <?php endif ?> 115 116 <?php if ($stat_users) : ?> 117 <tr> 118 <th scope="row"> 119 <?= I18N::translate('Users') ?> 120 </th> 121 <td> 122 <?= $stats->totalUsers() ?> 123 </td> 124 </tr> 125 <?php endif ?> 126 </tbody> 127 </table> 128 </div> 129 130 <div class="col-sm-8"> 131 <table class="table wt-facts-table"> 132 <caption class="sr-only"> 133 <?= I18N::translate('Statistics') ?> 134 </caption> 135 136 <tbody> 137 <?php if ($stat_first_birth) : ?> 138 <tr> 139 <th scope="row"> 140 <?= I18N::translate('Earliest birth') ?> 141 </th> 142 <td> 143 <?= $stats->firstBirth() ?> 144 </td> 145 </tr> 146 <?php endif ?> 147 148 <?php if ($stat_last_birth) : ?> 149 <tr> 150 <th scope="row"> 151 <?= I18N::translate('Latest birth') ?> 152 </th> 153 <td> 154 <?= $stats->lastBirth() ?> 155 </td> 156 </tr> 157 <?php endif ?> 158 159 <?php if ($stat_first_death) : ?> 160 <tr> 161 <th scope="row"> 162 <?= I18N::translate('Earliest death') ?> 163 </th> 164 <td> 165 <?= $stats->firstDeath() ?> 166 </td> 167 </tr> 168 <?php endif ?> 169 170 <?php if ($stat_last_death) : ?> 171 <tr> 172 <th scope="row"> 173 <?= I18N::translate('Latest death') ?> 174 </th> 175 <td> 176 <?= $stats->lastDeath() ?> 177 </td> 178 </tr> 179 <?php endif ?> 180 181 <?php if ($stat_long_life) : ?> 182 <tr> 183 <th scope="row"> 184 <?= I18N::translate('Individual who lived the longest') ?> 185 </th> 186 <td> 187 <?= $stats->longestLife() ?> 188 </td> 189 </tr> 190 <?php endif ?> 191 192 <?php if ($stat_avg_life) : ?> 193 <tr> 194 <th scope="row"> 195 <?= I18N::translate('Average age at death') ?> 196 </th> 197 <td> 198 <?= $stats->averageLifespan() ?> 199 <br> 200 <?= I18N::translate('Males') ?>: <?= $stats->averageLifespanMale() ?> 201 <br> 202 <?= I18N::translate('Females') ?> <?= $stats->averageLifespanFemale() ?> 203 </td> 204 </tr> 205 <?php endif ?> 206 207 <?php if ($stat_most_chil) : ?> 208 <tr> 209 <th scope="row"> 210 <?= I18N::translate('Family with the most children') ?> 211 </th> 212 <td> 213 <?= e($stats->largestFamilySize()) ?> 214 <br> 215 <?= $stats->largestFamily() ?> 216 </td> 217 </tr> 218 <?php endif ?> 219 220 <?php if ($stat_avg_chil) : ?> 221 <tr> 222 <th scope="row"> 223 <?= I18N::translate('Average number of children per family') ?> 224 </th> 225 <td> 226 <?= $stats->averageChildren() ?> 227 </td> 228 </tr> 229 <?php endif ?> 230 </tbody> 231 </table> 232 </div> 233</div> 234 235<?php if (!empty($surnames)) : ?> 236 <div class="clearfloat"> 237 <p> 238 <strong> 239 <?= I18N::translate('Most common surnames') ?> 240 </strong> 241 <br> 242 <span class="common_surnames"> 243 <?= $surnames ?> 244 </span> 245 </p> 246 </div> 247<?php endif ?> 248