Check présence feuille de style avant chargement
This commit is contained in:
parent
77e3a54158
commit
afbc7053e3
|
@ -1,2 +1,4 @@
|
||||||
# version 3.4
|
# version 3.4
|
||||||
- Changement de nom du bouton Thème devient mise en page
|
- Changement de nom du bouton Thème devient mise en page
|
||||||
|
# Version 3.5
|
||||||
|
- Appel de la feuille de style si présente
|
|
@ -17,7 +17,7 @@
|
||||||
class gallery extends common {
|
class gallery extends common {
|
||||||
|
|
||||||
|
|
||||||
const VERSION = '3.4';
|
const VERSION = '3.5';
|
||||||
const REALNAME = 'Galerie';
|
const REALNAME = 'Galerie';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
@ -665,7 +665,9 @@ class gallery extends common {
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
'title' => $this->getData(['module', $this->getUrl(0), 'content', $gallery, 'config', 'name']),
|
'title' => $this->getData(['module', $this->getUrl(0), 'content', $gallery, 'config', 'name']),
|
||||||
'view' => 'gallery',
|
'view' => 'gallery',
|
||||||
'style' => $this->getData(['module', $this->getUrl(0), 'theme', 'style'])
|
'style' => file_exists($this->getData(['module', $this->getUrl(0), 'theme', 'style']))
|
||||||
|
? $this->getData(['module', $this->getUrl(0), 'theme', 'style'])
|
||||||
|
: ''
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
// Pas d'image dans la galerie
|
// Pas d'image dans la galerie
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
# Version 4
|
# Version 4.2
|
||||||
- Config : le nombre d'objet est fixe, constante dans news.php
|
- Config : le nombre d'objet est fixe, constante dans news.php
|
||||||
- Ecran layout réservé à la configuration et au thème
|
- Ecran layout réservé à la configuration et au thème
|
||||||
- Bug avec l'initialisation, fichier css déclaré mais absent
|
- Bug avec l'initialisation, fichier css déclaré mais absent
|
||||||
|
- Appel de la feuille style si présente
|
||||||
|
|
||||||
A faire partie CSS à amléiorer au niveau des options
|
A faire partie CSS à amléiorer au niveau des options
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
class news extends common {
|
class news extends common {
|
||||||
|
|
||||||
const VERSION = '4.1';
|
const VERSION = '4.2';
|
||||||
const REALNAME = 'News';
|
const REALNAME = 'News';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
@ -515,7 +515,9 @@ class news extends common {
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
'showPageContent' => true,
|
'showPageContent' => true,
|
||||||
'view' => 'index',
|
'view' => 'index',
|
||||||
'style' => $this->getData(['module', $this->getUrl(0),'theme', 'style'])
|
'style' => file_exists($this->getData(['module', $this->getUrl(0), 'theme', 'style']))
|
||||||
|
? $this->getData(['module', $this->getUrl(0), 'theme', 'style'])
|
||||||
|
: ''
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
class search extends common {
|
class search extends common {
|
||||||
|
|
||||||
const VERSION = '2.4';
|
const VERSION = '2.6';
|
||||||
const REALNAME = 'Recherche';
|
const REALNAME = 'Recherche';
|
||||||
const DELETE = true;
|
const DELETE = true;
|
||||||
const UPDATE = '0.0';
|
const UPDATE = '0.0';
|
||||||
|
@ -313,7 +313,9 @@ class search extends common {
|
||||||
'view' => 'index',
|
'view' => 'index',
|
||||||
'showBarEditButton' => true,
|
'showBarEditButton' => true,
|
||||||
'showPageContent' => !$this->getData(['module', $this->getUrl(0), 'config', 'resultHideContent']),
|
'showPageContent' => !$this->getData(['module', $this->getUrl(0), 'config', 'resultHideContent']),
|
||||||
'style' => $this->getData(['module', $this->getUrl(0), 'theme', 'style'])
|
'style' => file_exists($this->getData(['module', $this->getUrl(0), 'theme', 'style']))
|
||||||
|
? $this->getData(['module', $this->getUrl(0), 'theme', 'style'])
|
||||||
|
: ''
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
// Valeurs en sortie, affichage du formulaire
|
// Valeurs en sortie, affichage du formulaire
|
||||||
|
|
Loading…
Reference in New Issue