Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 11 → Rev 12

/trunk/eflore_papyrus.php
New file
0,0 → 1,68
<?php
// declare(encoding='UTF-8');
/**
* Mon exemple d'application.
* Fichier contenant les fonctions nécessaire pour l'insertion de l'application dans Papyrus.
*
* @category PHP 5.2
* @package eflore-consultation
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @author Delphine CAUQUIL <delphine@tela-botanica.org>
* @copyright 2011 Tela-Botanica
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @version $Id$
*/
 
// Gestion des paramêtres définis dans Papyrus
if (isset($GLOBALS['_GEN_commun']['info_application']->module) && !isset($_GET['module'])) {
$_GET['module'] = $GLOBALS['_GEN_commun']['info_application']->module;
}
 
/** Inclusion du fichier principal de l'application*/
require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'eflore.php';
 
// Définition des feuilles de style de l'application pour Papyrus
$chemin = str_replace(PAP_CHEMIN_RACINE, '', Config::get('chemin_presentations'));
GEN_stockerStyleExterne('eflore', $chemin.'styles'.DS.'eflore.css');
 
// Définition des fichiers JS de l'application pour Papyrus
GEN_stockerFichierScript('jquery-1.5', 'commun'.DS.'jquery'.DS.'1.5'.DS.'jquery-1.5.min.js');
 
// +--------------------------------------------------------------------------------------------------+
// Remplacement de méta tags fournit par Papyrus par ceux créés dans l'appli
if (AppControleur::getMetaTitre() != '') {
$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = AppControleur::getMetaTitre();
}
if (AppControleur::getMetaDescription() != '') {
GEN_modifierMetaName('description', AppControleur::getMetaDescription());
}
if (AppControleur::getMetaTags() != '') {
GEN_modifierMetaName('keywords', AppControleur::getMetaTags());
}
 
// +--------------------------------------------------------------------------------------------------+
// Fonctions d'affichage dans Papyrus
/**
* Fonction d'affichage de Papyrus, pour le corps de page.
*/
function afficherContenuCorps() {
return AppControleur::getContenuCorps();
}
 
function afficherContenuTete() {
return AppControleur::getContenuTete();
}
 
function afficherContenuPied() {
return AppControleur::getContenuPied();
}
 
function afficherContenuNavigation() {
return AppControleur::getContenuNavigation();
}
 
function afficherContenuMenu() {
return AppControleur::getContenuMenu();
}
?>