dev27 : controle formulaire entrée image header et body

This commit is contained in:
fredtempez 2019-03-03 18:50:51 +01:00
parent 21f9da2ee4
commit df43aa5922
3 changed files with 10 additions and 5 deletions

View File

@ -26,7 +26,7 @@ class common {
const GROUP_MEMBER = 1; const GROUP_MEMBER = 1;
const GROUP_MODERATOR = 2; const GROUP_MODERATOR = 2;
const GROUP_ADMIN = 3; const GROUP_ADMIN = 3;
// Numéro de version de développement :/ // Numéro de version de développement :
// Désactive l'update auto // Désactive l'update auto
const ZWII_VERSION = '9.0.00-dev27'; const ZWII_VERSION = '9.0.00-dev27';
// Numéro de version stable // Numéro de version stable
@ -59,6 +59,7 @@ class common {
'pinterestId' => '', 'pinterestId' => '',
'twitterId' => '', 'twitterId' => '',
'youtubeId' => '' 'youtubeId' => ''
],
'timezone' => 'Europe/Paris', 'timezone' => 'Europe/Paris',
'title' => 'Zwii, votre site en quelques clics !', 'title' => 'Zwii, votre site en quelques clics !',
'itemsperPage' => 10 'itemsperPage' => 10

View File

@ -26,10 +26,12 @@
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Image</h4> <h4>Image</h4>
<?php echo template::file('themeBodyImage', [ <?php
$imageFile = file_exists('site/file/source/'.$this->getData(['theme', 'body', 'image'])) ? $this->getData(['theme', 'body', 'image']) : "";
echo template::file('themeBodyImage', [
'label' => 'Fond', 'label' => 'Fond',
'type' => 1, 'type' => 1,
'value' => $this->getData(['theme', 'body', 'image']) 'value' => $imageFile
]); ?> ]); ?>
<div id="themeBodyImageOptions" class="displayNone"> <div id="themeBodyImageOptions" class="displayNone">
<div class="row"> <div class="row">

View File

@ -40,10 +40,12 @@
<div class="col6"> <div class="col6">
<div class="block"> <div class="block">
<h4>Image</h4> <h4>Image</h4>
<?php echo template::file('themeHeaderImage', [ <?php
$imageFile = file_exists('site/file/source/'.$this->getData(['theme', 'header', 'image'])) ? $this->getData(['theme', 'header', 'image']) : "";
echo template::file('themeHeaderImage', [
'label' => 'Fond', 'label' => 'Fond',
'type' => 1, 'type' => 1,
'value' => $this->getData(['theme', 'header', 'image']) 'value' => $imageFile
]); ?> ]); ?>
<div id="themeHeaderImageOptions" class="displayNone"> <div id="themeHeaderImageOptions" class="displayNone">
<div class="row"> <div class="row">