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