Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 1473 → Rev 1474

/trunk/eflore_wordpress.php
New file
0,0 → 1,130
<?php
// declare(encoding='UTF-8');
/** Inclusion du fichier principal de l'application*/
 
function __autoload($nom_classe) {
// Tableau des chemins à inclure pour trouver une classe relatif à ce fichier
$chemins = array(
'..'.DS.'bibliotheque'.DS.'dao',
'..'.DS.'bibliotheque'.DS.'utilitaires',
'bibliotheque'.DS.'pear','composants'); foreach ($chemins as $chemin) {
$fichier_a_inclure = dirname(__FILE__).DS.$chemin.DS.$nom_classe.'.php';
if (file_exists($fichier_a_inclure)) {
include_once $fichier_a_inclure;
return null;
}
}
}
 
// ATTENTION: aucune autre langue que le français n'est supportée pour eflore
// pour le moment on supprime le paramètre à la main car la présence des fichiers d'i18n n'est pas testée
if(isset($_GET['langue'])) {
unset($_GET['langue']);
}
 
// Le fichier Framework.php du Framework de Tela Botanica doit être appelé avant tout autre chose dans l'application.
// Sinon, rien ne sera chargé.
// L'emplacement du Framework peut varier en fonction de l'environnement (test, prod...). Afin de faciliter la configuration
// de l'emplacement du Framework, un fichier framework.defaut.php doit être renommé en framework.php et configuré pour chaque installation de
// l'application.
// Chemin du fichier chargeant le framework requis
$framework = dirname(__FILE__).'/framework.php';
if (!file_exists($framework)) {
$e = "Veuillez paramêtrer l'emplacement et la version du Framework dans le fichier $framework";
trigger_error($e, E_USER_ERROR);
} else {
// Inclusion du Framework
require_once $framework;
// Ajout d'information concernant cette application
Framework::setCheminAppli(__FILE__);// Obligatoire
Framework::setInfoAppli(Config::get('info'));// Optionnel
 
// Vous pouvez ci-dessous commencer le développement de votre application
if (Config::get('debogage')) {
Debug::tailleMemoireScript('Taille mémoire du script :');
}
if (Config::get('benchmark_chrono')) {
Chronometre::chrono("Lancement d'eFlore");
}
 
Config::charger("../eflore/consultation/configurations/config_wordpress.ini");
 
// Initialisation du controleur principal de l'application
try {
AppControleur::initialiser();
} catch (Exception $e) {
$message = $e->getMessage()."\nLigne : ".$e->getLine()."\nFichier : ".$e->getFile();
Debug::printr($message);
}
 
if (Config::get('benchmark_chrono')) {
Chronometre::chrono("Arrêt d'eFlore");
}
}
 
 
 
 
 
 
 
//require_once 'eflore.php';?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-style-type" content="text/css" />
<meta http-equiv="Content-script-type" content="text/javascript" />
<meta http-equiv="Content-language" content="fr" />
<title><?php echo AppControleur::getMetaTitre(); ?></title>
<meta name="description" content="<?php echo AppControleur::getMetaDescription();?>" />
<meta name="keywords" content="<?php echo AppControleur::getMetaTags();?>" />
 
<meta name="revisit-after" content="15 days" />
<meta name="robots" content="index,follow" />
<meta name="author" content="Tela Botanica" />
 
<!-- OpenGraph pour Facebook, Pinterest, Google+ -->
<meta property="og:type" content="website" />
<meta property="og:title" content="eFlore" />
<meta property="og:site_name" content="Tela Botanica" />
<meta property="og:description" content="eFlore, la flore électronique collaborative en ligne" />
<meta property="og:image" content="http://resources.tela-botanica.org/tb/img/256x256/carre_englobant.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="256" />
<meta property="og:image:height" content="256" />
<meta property="og:locale" content="fr_FR" />
 
<!-- moteur de recherche dans le navigateur chemin xml -->
<link rel="search" type="application/opensearchdescription+xml" title="eFlore <?php echo strtoupper($referentiel); ?> : noms scientifiques" href="configurations/RechercheOpenSearch/OpenSearch<?php echo ucfirst($referentiel); ?>.xml" />
<!-- Favicones -->
<link rel="icon" type="image/png" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
<link rel="shortcut icon" type="image/x-icon" href="http://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />
 
<!-- CSS -->
<link href="../eflore/consultation/presentations/styles/eflore_wordpress.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/jquery/jquery-ui/1.10.2/css/ui-lightness/jquery-ui-1.10.2.custom.css" rel="stylesheet" type="text/css" />
<link href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" rel="stylesheet" type="text/css" />
 
 
<!-- JavaScript -->
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.7.1/jquery-1.7.1.js"></script>
<script type="text/Javascript" src="http://www.tela-botanica.org/commun/jquery/cookie/1.0/jquery.cookie.min.js"></script>
<script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/jquery-ui/1.10.2/js/jquery-ui-1.10.2.custom.min.js"></script>
<script type="text/Javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.pack.js"></script>
 
<script type="text/Javascript" src="http://www.tela-botanica.org/sites/commun/generique/scripts/commun.js"></script>
 
<script type="text/Javascript" src="../eflore/consultation/presentations/scripts/eflore.js"></script>
<script type="text/Javascript" src="../eflore/consultation/presentations/scripts/recherche.js"></script>
<script type="text/Javascript" src="../eflore/consultation/presentations/scripts/fiche-synthese.js"></script>
 
<!-- JavaScript et CSS spécifiques au module -->
<?php echo AppControleur::getEntete(); ?>
</head>
<?php
echo AppControleur::getContenuCorps();
 
 
?>