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