/trunk/popup.php |
---|
26,11 → 26,11 |
<!-- CSS --> |
<link href="http://www.tela-botanica.org/sites/commun/generique/styles/commun.css" rel="stylesheet" type="text/css" /> |
<link href="http://www.tela-botanica.org/sites/botanique/generique/styles/botanique.css" rel="stylesheet" type="text/css" /> |
<link href="http://www.tela-botanica.org/commun/bootstrap/2.0.2/css/bootstrap.css" rel="stylesheet" type="text/css" /> |
<link href="presentations/styles/eflore.css" rel="stylesheet" type="text/css" /> |
<link href="presentations/styles/popup.css" rel="stylesheet" type="text/css" /> |
<?php echo AppControleur::getStyles(); ?> |
<!-- JavaScript --> |
<?php echo AppControleur::getScripts(); ?> |
<?php echo AppControleur::getEntete(); ?> |
</head> |
<body> |
<div id="zone-conteneur"> |
/trunk/index.php |
---|
41,6 → 41,7 |
<script type="text/Javascript" src="presentations/scripts/recherche.js"></script> |
<script type="text/Javascript" src="presentations/scripts/fiche-synthese.js"></script> |
<?php echo AppControleur::getEntete(); ?> |
</head> |
<body id="botanique"> |
/trunk/controleurs/AppControleur.php |
---|
34,7 → 34,7 |
public function __construct() { |
$sortie = array( |
'titre' => '', 'description' => '', 'tags' => '', |
'styles' => '', 'scripts' => '', 'tags' => '', |
'entete' => '', 'tags' => '', |
'corps' => '', 'tete' => '', 'pied' => '', |
'navigation' => '', 'menu' => ''); |
247,23 → 247,14 |
} |
/** |
* Retourne les scripts (Javascripts) spécifiques à l'application. |
* Retourne les informations à placer dans la balise HEAD du HTML. |
*/ |
public static function getScripts() { |
$contenu = self::$parametres['sortie']['scripts']; |
public static function getEntete() { |
$contenu = self::$parametres['sortie']['entete']; |
$sortie = self::convertirEncodage($contenu); |
return $sortie; |
} |
/** |
* Retourne les styles (CSS) spécifiques à l'application. |
*/ |
public static function getStyles() { |
$contenu = self::$parametres['sortie']['styles']; |
$sortie = self::convertirEncodage($contenu); |
return $sortie; |
} |
/** |
* Retourne le contenu du corps de l'application. |
*/ |
/trunk/controleurs/aControleur.php |
---|
17,13 → 17,12 |
const META_TITRE = 'titre'; |
const META_DESCRIPTION = 'description'; |
const META_TAGS = 'tags'; |
const ENTETE = 'entete'; |
const RENDU_TETE = 'tete'; |
const RENDU_CORPS = 'corps'; |
const RENDU_PIED = 'pied'; |
const RENDU_NAVIGATION = 'navigation'; |
const RENDU_MENU = 'menu'; |
const RENDU_SCRIPT = 'scripts'; |
const RENDU_STYLE = 'styles'; |
private $sortie = array(); |
protected $urlBase = null; |
74,10 → 73,9 |
if ($type != self::RENDU_TETE && |
$type != self::RENDU_CORPS && |
$type != self::RENDU_PIED && |
$type != self::RENDU_SCRIPT && |
$type != self::RENDU_STYLE && |
$type != self::RENDU_NAVIGATION && |
$type != self::RENDU_MENU && |
$type != self::ENTETE && |
$type != self::META_TITRE && |
$type != self::META_DESCRIPTION && |
$type != self::META_TAGS) { |