Subversion Repositories eFlore/Applications.cel

Rev

Rev 587 | Rev 1451 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>Photographies publiques du CEL - Tela Botanica</title>
                
                <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" />
                
                <meta name="revisit-after" content="15 days" />
        <meta name="robots" content="index,follow" />
        <meta name="author" content="Jean-Pascal MILCENT, Grégoire DUCHÉ" />
        <meta name="keywords" content="Tela Botanica, photographie, CEL" />
        <meta name="description" content="Widget de présentation des dernières photo publiées sur le Carnet en Ligne de Tela Botanica" />

                <!-- Spécial mobile -->
                <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
                
                <!-- Favicones -->
                <link rel="icon" type="image/png" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.png" />
                <link rel="shortcut icon" type="image/x-icon" href="http://www.tela-botanica.org/sites/commun/generique/images/favicones/tela_botanica.ico" />
                
                <!-- Feuilles de styles -->
                <link rel="stylesheet" type="text/css" href="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.css" media="screen" />
                <link rel="stylesheet" type="text/css" href="<?=$url_css?>photo.css" media="screen" />
                <style type="text/css">
                        html {
                                overflow:hidden;
                        }
                        body{
                                overflow:hidden;
                                padding:0;
                                margin:0;
                                width:100%;
                                height:100%;
                                background-color:#4A4B4C;
                                color:#CCC;
                        }
                        #cel-photo-contenu, #cel-galerie-photo{
                                width:<?=(($colonne * 69))?>px;
                        }
                        #cel-galerie-photo #cel-photo-extra img{
                                width:<?=(($colonne * 69)-6)?>px;
                        }
                </style>
                
                <!-- Javascript : bibliothèques -->
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/1.4.4/jquery-1.4.4.min.js"></script>
                <script type="text/javascript" src="http://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>
        </head>
        <body>
                <!-- WIDGET:CEL:PHOTO - DEBUT -->
                <div id="cel-photo-contenu">
                <?php if (isset($erreurs) || isset($informations)) : ?>
                        <h1>Erreur &amp; informations</h1>
                        <p>Impossible d'afficher le flux.</p>
                        <!-- Affichage des erreurs et messages d'information : -->
                        <?php if ($erreurs) : ?>
                                <?php foreach ($erreurs as $erreur) : ?>
                                        <p class="erreur"><?=$erreur;?></p>
                                <?php endforeach; ?>
                        <?php endif; ?>
                        
                        <?php if ($informations) : ?>
                                <?php foreach ($informations as $information) : ?>
                                        <p class="info"><?=$information;?></p>
                                <?php endforeach; ?>
                        <?php endif; ?>
                <?php else : ?>
                        <h1>
                                Dernières images du 
                                <a href="http://www.tela-botanica.org/appli:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
                                        CEL
                                </a>
                                <a href="<?=$flux_rss_url?>" 
                                        id="cel-photo-flux" 
                                        title="Suivre les images" 
                                        onclick="window.open(this.href);return false;">
                                        <img src="http://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Suivre les images" />
                                </a>
                        </h1>
                        <div id="cel-galerie-photo">
                        <?php foreach ($items as $item) : ?>
                                <div class="cel-photo">
                                        <a href="<?=sprintf($item['url_tpl'], 'XL')?>" class="cel-img" title="<?=$item['titre']?> - Publiée le <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ">
                                                <img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
                                        </a>
                                        <div id="cel-info-<?=$item['guid']?>" class="cel-infos">
                                                <strong>
                                                        <a class="cel-img-titre" href="<?=$item['eflore_url']?>"
                                                                onclick="window.open(this.href);return false;"  
                                                                title="Cliquez pour accéder à la fiche eFlore">
                                                                <?=$item['titre']?>
                                                        </a>
                                                </strong><br />
                                                <span class="cel-img-date">Publiée le <?=$item['date']?></span>
                                        </div>
                                </div>
                        <?php endforeach; ?>
                        <?php if ($extra_actif) : ?>
                                <div id="cel-photo-extra" class="cel-photo">
                                        <a href="<?=sprintf($extra['url_tpl'], 'XL')?>" class="cel-img" title="<?=$extra['titre']?> - Publiée le <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ">
                                                <img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
                                        </a>
                                </div>
                        </div>
                        <?php endif ?>
                        <p id="cel-photo-date-generation" class="discretion nettoyage">Au <?=strftime('%A %d %B %Y à %H:%M:%S')?></p>
                        <script type="text/Javascript">
                                //<![CDATA[
                                function formaterTitre(titre, currentArray, currentIndex, currentOpts) {
                                        var motif = /GUID : ([0-9]+)$/;
                                        motif.exec(titre);
                                        var guid = RegExp.$1;
                                        var info = $('#cel-info-'+guid).clone().html();
                                        var tpl = 
                                                '<div id="cel-legende">'+
                                                '<p id="cel-legende-vei">'+'Image n°' + (currentIndex + 1) + ' sur ' + currentArray.length +'<\/p>'+   
                                                (titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
                                                '<\/div>';
                                        return tpl;
                                }
                                        
                                $(document).ready(function() {
                                        $('a.cel-img').attr('rel', 'galerie-princ').fancybox({
                                                transitionIn:'elastic',
                                                transitionOut:'elastic',
                                                speedIn :600, 
                                                speedOut:200,
                                                overlayShow:true,
                                                titleShow:true,
                                                titlePosition:'inside',
                                                titleFormat:formaterTitre
                                        });
                                });
                                //]]>
                        </script>
                <?php endif; ?>
                </div>
                <!-- WIDGET:CEL:PHOTO - FIN -->
        </body>
</html>