1<?php 2 3use Fisharebest\Webtrees\I18N; 4 5/** 6 * @var string $controls 7 * @var string $filter 8 * @var array<string,string> $filters 9 * @var array<string,string> $formats 10 * @var string $start 11 */ 12 13?> 14 15<div class="form-group row"> 16 <label class="col-sm-3 col-form-label" for="filter"> 17 <?= I18N::translate('Show only individuals, events, or all') ?> 18 </label> 19 <div class="col-sm-9"> 20 <?= view('components/select', ['name' => 'filter', 'selected' => $filter, 'options' => ['indi' => I18N::translate('Individuals'), 'event' => I18N::translate('Facts and events'), 'all' => I18N::translate('All')]]) ?> 21 </div> 22</div> 23 24<fieldset class="form-group"> 25 <div class="row"> 26 <legend class="col-form-label col-sm-3"> 27 <?= I18N::translate('Type') ?> 28 </legend> 29 <div class="col-sm-9"> 30 <?php foreach ($formats as $type => $label) : ?> 31 <?= view('components/checkbox', ['label' => $label, 'name' => 'filter_' . $type, 'checked' => (bool) $filters[$type]]) ?> 32 <?php endforeach ?> 33 </div> 34 </div> 35</fieldset> 36 37<div class="form-group row"> 38 <label class="col-sm-3 col-form-label" for="controls"> 39 <?= I18N::translate('Show slide show controls') ?> 40 </label> 41 <div class="col-sm-9"> 42 <?= view('components/radios-inline', ['name' => 'controls', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $controls]) ?> 43 </div> 44</div> 45 46<div class="form-group row"> 47 <label class="col-sm-3 col-form-label" for="start"> 48 <?= I18N::translate('Start slide show on page load') ?> 49 </label> 50 <div class="col-sm-9"> 51 <?= view('components/radios-inline', ['name' => 'start', 'options' => [I18N::translate('no'), I18N::translate('yes')], 'selected' => (int) $start]) ?> 52 </div> 53</div> 54