1<?php 2 3declare(strict_types=1); 4 5use Fisharebest\Webtrees\Family; 6use Fisharebest\Webtrees\I18N; 7use Fisharebest\Webtrees\Individual; 8use Fisharebest\Webtrees\Location; 9use Fisharebest\Webtrees\Place; 10 11/** 12 * @var string $edit_url 13 * @var int $id 14 * @var Place $place 15 * @var bool $showlink 16 * @var string $sidebar_class 17 * @var array<string,string> $stats 18 */ 19?> 20 21<li class="gchart px-md-2 <?= $sidebar_class ?>" data-wt-feature-id="<?= $id ?>"> 22 <div class="row label"> 23 <div class="col" style="word-wrap: break-word"> 24 <?php if ($showlink) : ?> 25 <a href="<?= e($place->url()) ?>"> 26 <?= $place->placeName() ?> 27 </a> 28 <?php else : ?> 29 <?= $place->placeName() ?> 30 <?php endif ?> 31 </div> 32 </div> 33 34 <?php if ($sidebar_class === 'unmapped') : ?> 35 <div class="row"> 36 <div class="col-sm-9"><i><?= I18N::translate('The location of this place is not known.') ?></i></div> 37 <?php if ($edit_url === '') : ?> 38 <div class="col-sm-3 align-digits"><?= view('icons/warning') ?></div> 39 <?php else : ?> 40 <div class="col-sm-3 align-digits"><a class="col-sm-3 align-digits"><a href="<?= e($edit_url) ?>"><?= view('icons/edit') ?></a></div> 41 <?php endif ?> 42 </div> 43 <?php endif ?> 44 45 <div class="row"> 46 <div class="col-sm-9"><?= I18N::translate('Individuals') ?></div> 47 <div class="col-sm-3 align-digits"><?= I18N::number($stats[Individual::RECORD_TYPE]) ?></div> 48 </div> 49 50 <?php if ($stats[Family::RECORD_TYPE] > 0) : ?> 51 <div class="row"> 52 <div class="col-sm-9"><?= I18N::translate('Families') ?></div> 53 <div class="col-sm-3 align-digits"><?= I18N::number($stats[Family::RECORD_TYPE]) ?></div> 54 </div> 55 <?php endif ?> 56 57 <?php if ($stats[Location::RECORD_TYPE] > 0) : ?> 58 <div class="row"> 59 <div class="col-sm-9"><?= I18N::translate('Locations') ?></div> 60 <div class="col-sm-3 align-digits"><?= I18N::number($stats[Location::RECORD_TYPE]) ?></div> 61 </div> 62 <?php endif ?> 63</li> 64