<h3 class="page"><a href="<?php echo $tpl['link']($_GET['q_pageless']); ?>"><?php echo __('Options du diaporama'); ?></a></h3>

<form action="<?php echo $tpl['current_url_pageless']; ?>" method="post" class="page">
	<fieldset>
		<legend><?php echo __('Interface'); ?></legend>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_keyboard">
			<input<?php if ($tpl['config']['diaporama_keyboard']) : ?> checked<?php endif; ?> id="feature_diaporama_keyboard" name="config[diaporama_keyboard]" type="checkbox">
			<label for="feature_diaporama_keyboard"><?php echo __('Activer le contrôle au clavier'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_zoom">
			<input<?php if ($tpl['config']['diaporama_zoom']) : ?> checked<?php endif; ?> id="feature_diaporama_zoom" name="config[diaporama_zoom]" type="checkbox">
			<label for="feature_diaporama_zoom"><?php echo __('Activer le zoom (molette de la souris)'); ?></label>
		</p>
		<p class="field field_sublvl">
			<label for="feature_diaporama_zoom_limit"><?php echo __('Limite du zoom :'); ?></label>
			<input required value="<?php echo $tpl['config']['diaporama_zoom_limit']; ?>" id="feature_diaporama_zoom_limit" name="config[diaporama_zoom_limit]" type="text" maxlength="4" size="4" pattern="\d{3,4}"> %
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_control_bars">
			<input<?php if ($tpl['config']['diaporama_control_bars']) : ?> checked<?php endif; ?> id="feature_diaporama_control_bars" name="config[diaporama_control_bars]" type="checkbox">
			<label for="feature_diaporama_control_bars"><?php echo __('Afficher les barres de contrôle en permanence'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_carousel">
			<input<?php if ($tpl['config']['diaporama_carousel']) : ?> checked<?php endif; ?> id="feature_diaporama_carousel" name="config[diaporama_carousel]" type="checkbox">
			<label for="feature_diaporama_carousel"><?php echo __('Afficher le carrousel'); ?></label>
		</p>
		<div class="field_sublvl">
			<p class="field">
				<label for="feature_diaporama_carousel_thumbs_size"><?php echo __('Taille des vignettes :'); ?></label>
				<input required value="<?php echo $tpl['config']['diaporama_carousel_thumbs_size']; ?>" id="feature_diaporama_carousel_thumbs_size" name="config[diaporama_carousel_thumbs_size]" type="text" maxlength="3" size="3" pattern="\d{1,3}"> <?php echo __('pixels'); ?>
			</p>
			<p class="field">
				<label for="diaporama_carousel_thumbs_ratio"><?php echo __('Format des vignettes :'); ?></label>
				<select name="config[diaporama_carousel_thumbs_ratio]" id="diaporama_carousel_thumbs_ratio">
<?php foreach ($tpl['diaporama_carousel_thumbs_ratio'] as &$i) : ?>
					<option<?php if ($i['selected']) : ?> selected<?php endif; ?> value="<?php echo $i['name']; ?>"><?php echo $i['text']; ?></option>
<?php endforeach; ?>
				</select>
			</p>
		</div>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Informations'); ?></legend>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_over_image_title">
			<input<?php if ($tpl['config']['diaporama_over_image_title']) : ?> checked<?php endif; ?> id="feature_diaporama_over_image_title" name="config[diaporama_over_image_title]" type="checkbox">
			<label for="feature_diaporama_over_image_title"><?php echo __('Afficher le titre sur les photos'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_over_image_description">
			<input<?php if ($tpl['config']['diaporama_over_image_description']) : ?> checked<?php endif; ?> id="feature_diaporama_over_image_description" name="config[diaporama_over_image_description]" type="checkbox">
			<label for="feature_diaporama_over_image_description"><?php echo __('Afficher la description sur les photos'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_show_informations">
			<input<?php if ($tpl['config']['diaporama_show_informations']) : ?> checked<?php endif; ?> id="feature_diaporama_show_informations" name="config[diaporama_show_informations]" type="checkbox">
			<label for="feature_diaporama_show_informations"><?php echo __('Ouvrir le panneau d\'informations au lancement du diaporama'); ?></label>
		</p>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Plein écran'); ?></legend>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_fullscreen">
			<input<?php if ($tpl['config']['diaporama_fullscreen']) : ?> checked<?php endif; ?> id="feature_diaporama_fullscreen" name="config[diaporama_fullscreen]" type="checkbox">
			<label for="feature_diaporama_fullscreen"><?php echo __('Mode plein écran au lancement du diaporama'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_fullscreen_mobile">
			<input<?php if ($tpl['config']['diaporama_fullscreen_mobile']) : ?> checked<?php endif; ?> id="feature_diaporama_fullscreen_mobile" name="config[diaporama_fullscreen_mobile]" type="checkbox">
			<label for="feature_diaporama_fullscreen_mobile"><?php echo __('Mode plein écran au lancement du diaporama pour les mobiles'); ?></label>
		</p>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Lecture automatique'); ?></legend>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_auto_start">
			<input<?php if ($tpl['config']['diaporama_auto_start']) : ?> checked<?php endif; ?> id="feature_diaporama_auto_start" name="config[diaporama_auto_start]" type="checkbox">
			<label for="feature_diaporama_auto_start"><?php echo __('Démarrage au lancement du diaporama'); ?></label>
		</p>
		<p class="field">
			<input name="config[_checkboxes][]" type="hidden" value="diaporama_auto_loop">
			<input<?php if ($tpl['config']['diaporama_auto_loop']) : ?> checked<?php endif; ?> id="feature_diaporama_auto_loop" name="config[diaporama_auto_loop]" type="checkbox">
			<label for="feature_diaporama_auto_loop"><?php echo __('Lecture en boucle'); ?></label>
		</p>
		<p class="field">
			<label for="feature_diaporama_auto_duration"><?php echo __('Durée d\'affichage des fichiers :'); ?></label>
			<input required value="<?php echo $tpl['config']['diaporama_auto_duration']; ?>" id="feature_diaporama_auto_duration" name="config[diaporama_auto_duration]" type="text" maxlength="2" size="2" pattern="\d{1,2}"> <?php echo __('secondes'); ?>
		</p>
	</fieldset>
	<fieldset>
		<legend><?php echo __('Transition entre les photos'); ?></legend>
		<p class="field">
			<label for="feature_diaporama_transition_effect"><?php echo __('Effet de transition :'); ?></label>
			<select name="config[diaporama_transition_effect]" id="feature_diaporama_transition_effect">
<?php foreach ($tpl['diaporama_transition_effect'] as &$i) : ?>
				<option<?php if ($i['selected']) : ?> selected<?php endif; ?> value="<?php echo $i['name']; ?>"><?php echo $i['text']; ?></option>
<?php endforeach; ?>
			</select>
		</p>
		<p class="field">
			<label for="feature_diaporama_transition_duration"><?php echo __('Durée de transition :'); ?></label>
			<input required value="<?php echo $tpl['config']['diaporama_transition_duration']; ?>" id="feature_diaporama_transition_duration" name="config[diaporama_transition_duration]" type="text" maxlength="4" size="4" pattern="\d{1,4}"> <?php echo __('millisecondes'); ?>
		</p>
	</fieldset>
	<div id="submit">
		<div>
			<input name="anticsrf" type="hidden" value="<?php echo $tpl['anticsrf'](); ?>">
			<input type="submit" value="<?php echo __('Enregistrer'); ?>">
		</div>
	</div>
</form>
