Browse Source

dev27 : controle formulaire entrée image header et body

pull/5/head
fredtempez 3 years ago
parent
commit
df43aa5922
  1. 3
      core/core.php
  2. 6
      core/module/theme/view/body/body.php
  3. 6
      core/module/theme/view/header/header.php

3
core/core.php

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

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

@ -26,10 +26,12 @@
<div class="col6">
<div class="block">
<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',
'type' => 1,
'value' => $this->getData(['theme', 'body', 'image'])
'value' => $imageFile
]); ?>
<div id="themeBodyImageOptions" class="displayNone">
<div class="row">

6
core/module/theme/view/header/header.php

@ -40,10 +40,12 @@
<div class="col6">
<div class="block">
<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',
'type' => 1,
'value' => $this->getData(['theme', 'header', 'image'])
'value' => $imageFile
]); ?>
<div id="themeHeaderImageOptions" class="displayNone">
<div class="row">

Loading…
Cancel
Save