ZwiiCMS/core/module/theme/view/body/body.php

108 lines
3.5 KiB
PHP
Raw Normal View History

2018-04-02 08:29:19 +02:00
<?php echo template::formOpen('themeBodyForm'); ?>
2021-10-28 16:41:10 +02:00
<div class="row">
<div class="col1">
2021-10-28 16:41:10 +02:00
<?php echo template::button('themeBodyBack', [
'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'theme',
'value' => template::ico('left')
2021-10-28 16:41:10 +02:00
]); ?>
</div>
<div class="col1">
<?php /* echo template::button('themeBodyHelp', [
2021-11-10 08:03:31 +01:00
'href' => 'https://doc.zwiicms.fr/arriere-plan',
'target' => '_blank',
'value' => template::ico('help'),
2021-11-10 08:03:31 +01:00
'class' => 'buttonHelp'
]); */ ?>
2021-11-10 08:03:31 +01:00
</div>
<div class="col2 offset8">
2021-10-28 16:41:10 +02:00
<?php echo template::submit('themeBodySubmit'); ?>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Couleurs'); ?></h4>
2021-10-28 16:41:10 +02:00
<div class="row">
<div class="col6">
<?php echo template::text('themeBodyBackgroundColor', [
'class' => 'colorPicker',
'help' => 'Couleur visible en l\'absence d\'une image.<br />Le curseur horizontal règle le niveau de transparence.',
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan',
2021-10-28 16:41:10 +02:00
'value' => $this->getData(['theme', 'body', 'backgroundColor'])
]); ?>
</div>
</div>
<div class="row">
<div class="col6">
2023-04-15 08:06:26 +02:00
<?php echo template::text('themeBodyToTopColor', [
2021-10-28 16:41:10 +02:00
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
2023-04-15 08:06:26 +02:00
'label' => 'Couleur icône haut de page',
'value' => $this->getData(['theme', 'body', 'toTopColor'])
2021-10-28 16:41:10 +02:00
]); ?>
2023-04-15 08:06:26 +02:00
2021-10-28 16:41:10 +02:00
</div>
<div class="col6">
2023-04-15 08:06:26 +02:00
<?php echo template::text('themeBodyToTopBackground', [
2021-10-28 16:41:10 +02:00
'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.',
2023-04-15 08:06:26 +02:00
'label' => 'Icône haut de page, couleur arrière-plan',
'value' => $this->getData(['theme', 'body', 'toTopbackgroundColor'])
2021-10-28 16:41:10 +02:00
]); ?>
</div>
</div>
2018-04-02 08:29:19 +02:00
</div>
</div>
2021-10-28 16:41:10 +02:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-10-03 18:37:25 +02:00
<h4><?php echo helper::translate('Image'); ?>
2022-09-14 22:54:46 +02:00
</h4>
2021-10-28 16:41:10 +02:00
<div class="row">
<div class="col12">
<?php
2022-09-29 08:45:59 +02:00
$imageFile = file_exists(self::FILE_DIR . 'source/' . $this->getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
2021-10-28 16:41:10 +02:00
echo template::file('themeBodyImage', [
'language' => $this->getData(['user', $this->getUser('id'), 'language']),
2022-10-02 10:59:42 +02:00
'label' => 'Arrière plan',
2021-10-28 16:41:10 +02:00
'type' => 1,
'value' => $imageFile
]); ?>
2020-02-13 10:48:56 +01:00
</div>
2021-10-28 16:41:10 +02:00
</div>
<div id="themeBodyImageOptions" class="displayNone">
2020-02-13 10:48:56 +01:00
<div class="row">
<div class="col6">
2021-10-28 16:41:10 +02:00
<?php echo template::select('themeBodyImageRepeat', $module::$repeats, [
'label' => 'Répétition',
'selected' => $this->getData(['theme', 'body', 'imageRepeat'])
2020-02-13 10:48:56 +01:00
]); ?>
</div>
<div class="col6">
2021-10-28 16:41:10 +02:00
<?php echo template::select('themeBodyImagePosition', $module::$imagePositions, [
'label' => 'Position',
'selected' => $this->getData(['theme', 'body', 'imagePosition'])
2020-08-12 17:39:43 +02:00
]); ?>
2020-02-13 10:48:56 +01:00
</div>
</div>
2020-08-12 17:39:43 +02:00
<div class="row">
2021-10-28 16:41:10 +02:00
<div class="col6">
<?php echo template::select('themeBodyImageAttachment', $module::$attachments, [
'label' => 'Défilement',
'selected' => $this->getData(['theme', 'body', 'imageAttachment'])
2020-08-12 17:39:43 +02:00
]); ?>
</div>
2021-10-28 16:41:10 +02:00
<div class="col6">
<?php echo template::select('themeBodyImageSize', $module::$bodySizes, [
'label' => 'Taille',
'selected' => $this->getData(['theme', 'body', 'imageSize'])
]); ?>
2018-04-02 08:29:19 +02:00
</div>
</div>
</div>
</div>
</div>
2021-10-28 16:41:10 +02:00
</div>
2022-09-29 08:45:59 +02:00
<?php echo template::formClose(); ?>