Deltacms/module/slider/view/config/config.php

135 lines
5.2 KiB
PHP
Raw Normal View History

2022-03-18 07:50:13 +01:00
<?php
// Lexique
2022-06-21 07:53:00 +02:00
include('./module/slider/lang/'. $this->getData(['config', 'i18n', 'langAdmin']) . '/lex_slider.php');
2022-07-05 08:16:26 +02:00
echo template::formOpen('galleryEditForm'); ?>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col2">
2022-06-21 07:53:00 +02:00
<?php echo template::button('galleryEditBack', [
2022-01-31 09:10:49 +01:00
'class' => 'buttonGrey',
2022-06-21 07:53:00 +02:00
'href' => helper::baseUrl() . $this->getUrl(0),
2022-01-31 09:10:49 +01:00
'ico' => 'left',
2022-06-21 07:53:00 +02:00
'value' => $text['slider_view']['edit'][0]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
<div class="col2">
<?php echo template::button('sliderIndexHelp', [
'class' => 'buttonHelp',
'ico' => 'help',
2022-06-21 07:53:00 +02:00
'value' => $text['slider_view']['config'][1]
]); ?>
</div>
<div class="col2 offset6">
<?php echo template::submit('galleryEditSubmit',[
'value' => $text['slider_view']['edit'][1]
2022-01-31 09:10:49 +01:00
]); ?>
</div>
</div>
<!-- Aide à propos de la configuration de slider, view config -->
2022-01-31 09:10:49 +01:00
<div class="helpDisplayContent">
2022-06-21 07:53:00 +02:00
<?php echo file_get_contents( $text['slider_view']['config'][8]) ;?>
2022-01-31 09:10:49 +01:00
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['slider_view']['config'][2]; ?></div>
2022-01-31 09:10:49 +01:00
<div class="row">
<div class="col6">
2022-11-18 07:47:46 +01:00
<?php echo template::select('galleryEditDirectory', str_replace('site/file/source/','',$module::$listDirs), [
2022-06-21 07:53:00 +02:00
'label' => $text['slider_view']['config'][4],
'selected' => array_search($this->getData(['module', $this->getUrl(0), 'config', 'directory']), $module::$listDirs)
2022-12-04 08:19:08 +01:00
]);
?>
2022-06-21 07:53:00 +02:00
</div>
<div id="galleryEditLabelView" class="col4 offset2 displayNone">
2022-12-04 08:19:08 +01:00
<?php echo template::label('galleryEditLabel', $text['slider_view']['config'][9], []);
?>
2022-06-21 07:53:00 +02:00
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col12">
<div class="block">
2022-12-04 08:19:08 +01:00
<div class="blockTitle"><?php echo $text['slider_view']['edit'][2]; ?></div>
2022-06-21 07:53:00 +02:00
<div class="row">
<div class="col4">
<?php echo template::select('sliderBoutonsVisibles', $boutonsVisibles,[
'help' => $text['slider_view']['edit'][5],
'label' => $text['slider_view']['edit'][6],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'boutonsVisibles'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderTypeBouton', $bouton,[
'help' => $text['slider_view']['edit'][7],
'label' => $text['slider_view']['edit'][8],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'typeBouton'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderPagerVisible', $pagerVisible,[
'help' => $text['slider_view']['edit'][9],
'label' => $text['slider_view']['edit'][10],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'pagerVisible'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderMaxiWidth', $module::$maxwidth,[
'help' => $text['slider_view']['edit'][11],
'label' => $text['slider_view']['edit'][12],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'maxiWidth'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderFadingTime', $module::$fadingtime,[
'help' => $text['slider_view']['edit'][13],
'label' => $text['slider_view']['edit'][14],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'fadingTime'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderDiapoTime', $module::$slidertime,[
'help' => $text['slider_view']['edit'][15],
'label' => $text['slider_view']['edit'][16],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'sliderTime'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderVisibiliteLegende', $visibilite_legende,[
'help' => $text['slider_view']['edit'][17],
'label' => $text['slider_view']['edit'][18],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'visibiliteLegende'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-06-21 07:53:00 +02:00
</div>
<div class="col4">
<?php echo template::select('sliderPositionLegende', $position_legende,[
'help' => $text['slider_view']['edit'][19],
'label' => $text['slider_view']['edit'][20],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'positionLegende'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-01-31 09:10:49 +01:00
</div>
2022-06-21 07:53:00 +02:00
<div class="col4">
<?php echo template::select('sliderTempsApparition', $module::$apparition,[
'help' => $text['slider_view']['edit'][21],
'label' => $text['slider_view']['edit'][22],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'tempsApparition'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-01-31 09:10:49 +01:00
</div>
2022-06-21 07:53:00 +02:00
<div class="col4">
<?php echo template::select('sliderTri', $sort,[
'help' => $text['slider_view']['edit'][23],
'label' => $text['slider_view']['edit'][24],
'selected' => $this->getData(['module', $this->getUrl(0), 'config', 'tri'])
2022-12-04 08:19:08 +01:00
]); ?>
2022-01-31 09:10:49 +01:00
</div>
</div>
</div>
</div>
</div>
2022-06-21 07:53:00 +02:00
<?php if($module::$pictures):
echo template::table([3, 5, 4], $module::$pictures, [$text['slider_view']['edit'][25], $text['slider_view']['edit'][26], $text['slider_view']['edit'][27]]);
2022-12-04 08:19:08 +01:00
endif;
echo template::formClose();
?>