forked from ZwiiCMS-Team/ZwiiCMS
[10.0.008.dev] fix couleur fond menu + banniere pans install
This commit is contained in:
parent
0c1273e69a
commit
d98e0c67da
@ -34,7 +34,7 @@ class common {
|
|||||||
const TEMP_DIR = 'site/tmp/';
|
const TEMP_DIR = 'site/tmp/';
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.0.007.dev';
|
const ZWII_VERSION = '10.0.008.dev';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
|
@ -51,15 +51,19 @@ class install extends common {
|
|||||||
$userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true);
|
$userLastname = $this->getInput('installLastname', helper::FILTER_STRING_SHORT, true);
|
||||||
$userMail = $this->getInput('installMail', helper::FILTER_MAIL, true);
|
$userMail = $this->getInput('installMail', helper::FILTER_MAIL, true);
|
||||||
$userId = $this->getInput('installId', helper::FILTER_ID, true);
|
$userId = $this->getInput('installId', helper::FILTER_ID, true);
|
||||||
|
// Copier la bannière par défaut
|
||||||
|
mkdir(self::FILE_DIR.'source/banner/');
|
||||||
|
mkdir(self::FILE_DIR.'thumb/banner/');
|
||||||
|
copy('core/module/install/ressource/file/source/banner960.jpg',self::FILE_DIR.'source/banner/banner960.jpg');
|
||||||
|
copy('core/module/install/ressource/file/thumb/banner960.jpg',self::FILE_DIR.'thumb/banner/banner960.jpg');
|
||||||
// Configure certaines données par défaut
|
// Configure certaines données par défaut
|
||||||
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === TRUE) {
|
if ($this->getInput('installDefaultData',helper::FILTER_BOOLEAN) === TRUE) {
|
||||||
$this->initData('page','fr',true);
|
$this->initData('page','fr',true);
|
||||||
$this->initData('module','fr',true);
|
$this->initData('module','fr',true);
|
||||||
} else {
|
|
||||||
$this->setData(['module', 'blog', 'mon-premier-article', 'userId', $userId]);
|
$this->setData(['module', 'blog', 'mon-premier-article', 'userId', $userId]);
|
||||||
$this->setData(['module', 'blog', 'mon-deuxieme-article', 'userId', $userId]);
|
$this->setData(['module', 'blog', 'mon-deuxieme-article', 'userId', $userId]);
|
||||||
$this->setData(['module', 'blog', 'mon-troisieme-article', 'userId', $userId]);
|
$this->setData(['module', 'blog', 'mon-troisieme-article', 'userId', $userId]);
|
||||||
}
|
}
|
||||||
$success = $this->setData([
|
$success = $this->setData([
|
||||||
'user',
|
'user',
|
||||||
$userId,
|
$userId,
|
||||||
|
@ -15,13 +15,13 @@ class init extends common {
|
|||||||
'pinterestId' => '',
|
'pinterestId' => '',
|
||||||
'twitterId' => '',
|
'twitterId' => '',
|
||||||
'youtubeId' => '',
|
'youtubeId' => '',
|
||||||
'githubId' => ''
|
'githubId' => 'fredtempez/ZwiiCMS/'
|
||||||
],
|
],
|
||||||
'timezone' => 'Europe/Paris',
|
'timezone' => 'Europe/Paris',
|
||||||
'itemsperPage' => 10,
|
'itemsperPage' => 10,
|
||||||
'legalPageId' => '',
|
'legalPageId' => '',
|
||||||
'metaDescription' => 'Zwii est un CMS sans base de données qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.',
|
'metaDescription' => 'Zwii est un CMS sans base de données qui permet de créer et gérer facilement un site web sans aucune connaissance en programmation.',
|
||||||
'title' => 'Zwii, votre site en quelques clics !'
|
'title' => 'Votre site en quelques clics !'
|
||||||
],
|
],
|
||||||
'core' => [
|
'core' => [
|
||||||
'dataVersion' => 10000,
|
'dataVersion' => 10000,
|
||||||
@ -104,14 +104,14 @@ class init extends common {
|
|||||||
'fontSize' => '2em',
|
'fontSize' => '2em',
|
||||||
'fontWeight' => 'normal',
|
'fontWeight' => 'normal',
|
||||||
'height' => '150px',
|
'height' => '150px',
|
||||||
'image' => 'banniere/zwii_banniere-960px.jpg',
|
'image' => 'banner/banner960.jpg',
|
||||||
'imagePosition' => 'center center',
|
'imagePosition' => 'center center',
|
||||||
'imageRepeat' => 'no-repeat',
|
'imageRepeat' => 'no-repeat',
|
||||||
'margin' => false,
|
'margin' => false,
|
||||||
'position' => 'site',
|
'position' => 'site',
|
||||||
'textAlign' => 'center',
|
'textAlign' => 'center',
|
||||||
'textColor' => 'rgba(33, 34, 35, 1)',
|
'textColor' => 'rgba(33, 34, 35, 1)',
|
||||||
'textHide' => true,
|
'textHide' => false,
|
||||||
'textTransform' => 'none',
|
'textTransform' => 'none',
|
||||||
'linkHomePage' => true,
|
'linkHomePage' => true,
|
||||||
'imageContainer' => 'auto'
|
'imageContainer' => 'auto'
|
||||||
|
BIN
core/module/install/ressource/file/source/banner960.jpg
Normal file
BIN
core/module/install/ressource/file/source/banner960.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 100 KiB |
BIN
core/module/install/ressource/file/thumb/banner960.jpg
Normal file
BIN
core/module/install/ressource/file/thumb/banner960.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.3 KiB |
@ -30,6 +30,7 @@ $("input, select").on("change", function() {
|
|||||||
// Informations affichées
|
// Informations affichées
|
||||||
$("#themeHeaderImageHeight").html(tmpImg.height + "px");
|
$("#themeHeaderImageHeight").html(tmpImg.height + "px");
|
||||||
$("#themeHeaderImageWidth").html(tmpImg.width + "px");
|
$("#themeHeaderImageWidth").html(tmpImg.width + "px");
|
||||||
|
$("#themeHeaderImageRatio").html(tmpImg.width / tmpImg.height);
|
||||||
|
|
||||||
// Limiter la hauteur à 600 px
|
// Limiter la hauteur à 600 px
|
||||||
if (tmpImg.height > 600) {
|
if (tmpImg.height > 600) {
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12 textAlignCenter">
|
<div class="col12 textAlignCenter">
|
||||||
<span id="themeHeaderImage">
|
<span id="themeHeaderImage">
|
||||||
Dimensions de l'image : largeur <span id="themeHeaderImageWidth"></span> - hauteur <span id="themeHeaderImageHeight"></span>
|
Dimensions de l'image : largeur <span id="themeHeaderImageWidth"></span> - hauteur <span id="themeHeaderImageHeight"></span> - ratio <span id="themeHeaderImageRatio"></span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
<div class="col6">
|
<div class="col6">
|
||||||
<?php
|
<?php
|
||||||
echo template::checkbox('themeMenuActiveColorAuto', true, 'Page sélectionnée, couleur de fond automatique ', [
|
echo template::checkbox('themeMenuActiveColorAuto', true, 'Page sélectionnée, couleur de fond automatique ', [
|
||||||
'checked' => is_null($this->getData(['theme', 'menu', 'activeColor'])) ? true : $this->getData(['theme', 'menu', 'activeColorAuto']),
|
'checked' => $this->getData(['theme', 'menu', 'activeColorAuto']),
|
||||||
'help' => 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.'
|
'help' => 'La couleur de fond de la page active peut être définie automatique ou selon une couleur définie, comme par exemple celle de fond des pages.'
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user