Subversion Repositories eFlore/Applications.cel

Rev

Rev 3630 | Blame | 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>Publieke foto's 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="Tela Botanica" />
        <meta name="keywords" content="Tela Botanica, foto, CEL" />
        <meta name="description" content="Presentatiewidget van de meest recente foto’s die op de ‘Carnet en Ligne’ van Tela Botanica werden gepubliceerd" />

                <!-- OpenGraph pour Facebook, Pinterest, Google+ -->
                <meta property="og:type" content="website" />
                <meta property="og:title" content="Widgetfoto CeL" />
                <meta property="og:site_name" content="Tela Botanica" />
                <meta property="og:description" content="Minifotoreeks publieke waarnemingen van de ‘Carnet en Ligne’" />
                <?php
                        if (isset($items[0])) {
                                $iz = $items[0];
                                $izUrl = sprintf($iz['url_tpl'], 'CRS');
                                echo '<meta property="og:image" content="' . $izUrl . '" />';
                        } else {
                                echo '<meta property="og:image" content="https://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" />

                <!-- Spécial mobile -->
                <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />

                <!-- Favicones -->
                <link rel="icon" type="image/png" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.png" />
                <link rel="shortcut icon" type="image/x-icon" href="https://resources.tela-botanica.org/tb/img/16x16/favicon.ico" />

                <!-- Feuilles de styles -->
                <link rel="stylesheet" type="text/css" href="https://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:#DDDDDD;
                                color:black;
                        }
                        #cel-photo-contenu<?=$id?>, #cel-galerie-photo<?=$id?>{
                                width:<?=(($colonne * 69))?>px;
                        }
                        #cel-galerie-photo<?=$id?> #cel-photo-extra<?=$id?> img{
                                width:<?=(($colonne * 69)-6)?>px;
                        }
                </style>

                <!-- Javascript : bibliothèques -->
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/1.6/jquery-1.6.min.js"></script>
                <script type="text/javascript" src="https://www.tela-botanica.org/commun/jquery/fancybox/1.3.4/jquery.fancybox-1.3.4.js"></script>

                <!--  Google Analytics -->
                <?php if($prod): ?>
                        <?php include "analytics.html"; ?>
                <?php endif; ?>
        </head>
        <body>
                <!-- WIDGET:CEL:PHOTO - DEBUT -->
                <div id="cel-photo-contenu<?=$id?>" class="cel-photo-contenu">
                <?php if (isset($erreurs) || isset($informations)) : ?>
                        <h1>Fouten en informatie</h1>
                        <p>Kan flow niet weergeven</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>
                                <? if (!empty($titre)) : ?>
                                        <?=$titre?>
                                <? endif ; ?>
                                <? if($icone_rss) : ?>
                                <a href="<?=$flux_rss_url?>"
                                        class="cel-photo-flux"
                                        title="Afbeeldingen volgen"
                                        onclick="window.open(this.href);return false;">
                                        <img src="https://www.tela-botanica.org/sites/commun/generique/images/rss.png" alt="Afbeeldingen volgen" />
                                </a>
                                <? endif; ?>
                        </h1>
                        <div id="cel-galerie-photo<?=$id?>">
                        <?php foreach ($items as $item) : ?>
                                <div class="cel-photo">
                                        <a href="<?=sprintf($item['url_tpl'], 'XL')?>" class="cel-img" title="<?=$item['titre']?> - Gepubliceerd op <?=$item['date']?> - GUID : <?=$item['guid']?>" rel="galerie-princ<?=$id?>">
                                                <img src="<?=sprintf($item['url_tpl'], 'CRX2S')?>" alt="<?=$item['titre']?>"/>
                                        </a>
                                        <div id="cel-info-<?=$item['guid']?>" class="cel-infos">
                                                <strong>
                                                        <?php if ($item['eflore_url'] != '#' && $item['eflore_url'] != '') { ?>
                                                        <a class="cel-img-titre" href="<?=$item['eflore_url']?>"
                                                                onclick="window.open(this.href);return false;"
                                                                title="Klik hier om toegang te krijgen tot de eFlore fiche">
                                                                <?=$item['infos']['nom_sci']?>
                                                        </a> door
                                                        <a class="cel-img-contact"
                                                                href="?mode=contact&nn=<?= urlencode($item['infos']['nn']) ;?>&nom_sci=<?= urlencode($item['infos']['nom_sci']) ;?>&date=<?= urlencode($item['infos']['date']) ;?>&id_image=<?= $item['guid']; ?>&lang=nl"
                                                                title="Klik hier om contact op te nemen met de auteur van de foto">
                                                                <?=$item['infos']['auteur']?>
                                                        </a>
                                                        te <?= $item['infos']['localite'] ?>
                                                        op <?=$item['infos']['date']?>
                                                        <?php } else { ?>
                                                                <?=$item['titre']?>
                                                        <?php } ?>
                                                </strong><br />
                                                <span class="cel-img-date">Gepubliceerd op <?=$item['date']?></span>
                                        </div>
                                </div>
                        <?php endforeach; ?>
                        <?php if ($extra_actif) : ?>
                                <div id="cel-photo-extra<?=$id?>" class="cel-photo-extra cel-photo">
                                        <a href="<?=sprintf($extra['url_tpl'], 'XL')?>" class="cel-img" title="<?=$extra['titre']?> - Gepubliceerd op <?=$extra['date']?> - GUID : <?=$extra['guid']?>" rel="galerie-princ<?=$id?>">
                                                <img src="<?=sprintf($extra['url_tpl'], 'CRS')?>" alt="<?=$extra['titre']?>"/>
                                        </a>
                                </div>
                        </div>
                        <?php endif ?>
                        <p class="cel-photo-pieds discretion nettoyage">
                                <span class="cel-photo-source">
                                        Bron : 
                                        <a href="http://www.tela-botanica.org/page:cel" title="Carnet en Ligne" onclick="window.open(this.href);return false;">
                                                CEL
                                        </a>
                                </span>
                                <span class="cel-photo-date-generation">Au <?=strftime('%A %d %B %Y te %H:%M:%S')?></span>
                         </p>
                        <script type="text/Javascript">
                                //<![CDATA[
                                var utiliseFancybox = "<?= $utilise_fancybox; ?>";
                                if(utiliseFancybox) {
                                        $('a.cel-img').attr('rel', 'galerie-princ<?=$id?>').fancybox({
                                                transitionIn:'elastic',
                                                transitionOut:'elastic',
                                                speedIn :600,
                                                speedOut:200,
                                                overlayShow:true,
                                                titleShow:true,
                                                titlePosition:'inside',
                                                titleFormat:function (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 class="cel-legende">'+
                                                                '<p class="cel-legende-vei">'+'Beeld nr.' + (currentIndex + 1) + ' op ' + currentArray.length +'<\/p>'+ 
                                                                (titre && titre.length ? '<p>'+info+'<\/p>' : '' )+
                                                                '<\/div>';
                                                        return tpl;
                                                }
                                        });
                                } else {
                                        $('a.cel-img').click(function(event) {
                                                ouvrirFenetrePopup($(this));
                                                event.preventDefault();
                                        });
                                }

                                $(document).ready(function() {
                                        $('a.cel-img-contact').live('click', function(event) {
                                                event.preventDefault();
                                                ouvrirFenetreContact($(this));
                                        });
                                });

                                function ouvrirFenetrePopup(lienImage) {
                                        var url = "?mode=popup&url_image="+lienImage.attr('href')+'&galerie_id=<?= $galerie_id ?>';
                                        window.open(url, '', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(700)+', height='+(650));
                                }

                                function ouvrirFenetreContact(lienImage) {
                                        var url = lienImage.attr("href");
                                        window.open(url, '_blank', 'directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no, width='+(400)+', height='+(550));
                                }
                                //]]>
                        </script>
                <?php endif; ?>
                </div>
                <!-- WIDGET:CEL:PHOTO - FIN -->
        </body>
</html>