?> <?php if (!$hasSousNiveau) { echo '<div class="level0"><a href="' . item_url($item) . '">' . $item->Hierarchy->type . ' - ' . cut_string(metadata($item, array("Dublin Core", "Title")), 200) . '</a></div>'; foreach ($this->planExtract as $pe) { $plan = get_record_by_id("Item", $pe['id']); $title = metadata($plan, array("Dublin Core", "Title")); echo '<div class="level1"><a href="' . item_url($plan) . '">' . $plan->Hierarchy->type . ' - ' . cut_string($title, 200) . '</a></div>'; } } else { foreach ($this->planExtract as $pe) { $decalage = (int) $pe['level'] - ($itemHierarchy->level + 1); $plan = get_record_by_id("Item", $pe['id']); $title = metadata($plan, array("Dublin Core", "Title")); echo '<div class="level' . $decalage . '"><a href="' . item_url($plan) . '">' . $plan->Hierarchy->type . ' - ' . cut_string($title, 200) . '</a></div>'; } } ?> <?php } ?> </div> <!-- Carte --> <?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item, 'lieu' => $lieu)); ?> <!-- Boite à outils --> <?php
?> <a style="outline:none;" href="<?php echo MASTER_URL; ?> /users/login" ><img src="<?php echo WEB_THEME; ?> /cg35/images/item-cart.png"></a> <?php } ?> <?php $url = item_url($item); ?> <?php $body = "Je vous invite à découvrir cette archive qui pourrait vous intéresser à l'adresse suivante : %0D%0A" . item_url($item->id) . "%0D%0A%0D%0AA très bientôt."; ?> <a style="outline:none;" title="Envoyer par mail" href="mailto:?subject=À découvrir sur http://histoirealasource.ille-et-vilaine.fr&body=<?php echo $body; ?> "><img src="<?php echo WEB_THEME; ?> /cg35/images/item-mail.png"></a> <a style="outline:none;" title="Partager sur Facebook" onclick="window.open('https://www.facebook.com/sharer/sharer.php?u=<?php echo $url; ?> ', 'Popup', 'scrollbars=1,resizable=1,height=250,width=400'); return false;" href="#"><img src="<?php echo WEB_THEME; ?> /cg35/images/item-facebook.png"></a>
} ?> <?php if ($this->items) { ?> <?php foreach ($this->items as $menuItem) { ?> <?php $id = $menuItem->id; $level = $menuItem->Hierarchy->level; $type = $menuItem->Hierarchy->type; ?> <?php $url = item_url($id); if ($id != 9164) { $url .= '#' . $id; } ?> <a id="<?php echo $id; ?> " href="<?php echo $url; ?> " class="hover level<?php echo $level;
?> ?result=2"><span class="fa fa-angle-left"></span>Notice précédente</a> <?php } else { ?> <a style="pointer-events: none;cursor: default;" href="#"></a> <?php } ?> <?php if (isset($this->next_notice)) { ?> <a class="next" href="<?php echo item_url($this->next_notice); ?> ?result=2">Notice suivante<span class="fa fa-angle-right"></span></a> <?php } else { ?> <a style="pointer-events: none;cursor: default;" href="#"></a> <?php } ?> <?php } ?> </div> </div>
<div> <a style="margin-left:-104px;" href="<?php echo getenv("INSTANCE_URL"); ?> " class="home"><span style="padding-right:20px;" class="fa fa-home"></span>Accueil du guide</a><br /> <?php if (isset($fil) && is_array($fil)) { ?> <?php foreach ($fil as $item) { ?> <a style="padding-left:<?php echo ($item->Hierarchy->level - 1) * 20; ?> px" href="<?php echo item_url($item); ?> " href=""><span class="fa fa-caret-right"></span><?php echo metadata($item, array('Dublin Core', 'Title')); ?> <?php if ($item->Hierarchy->type) { ?> [<?php echo $item->Hierarchy->type; ?> ]<?php } ?> </a> <br />
echo $child->id; ?> .jpg" title="<?php echo $child->id; ?> .jpg (230 x 425px)"/> </a> <?php foreach ($petitsEnfants as $petitEnfant) { ?> <?php $child = get_record_by_id('Item', $petitEnfant); ?> <div class="petit-enfant"> <a href="<?php echo item_url($child); ?> "> <div class="label"><i><?php echo metadata($child, array("Dublin Core", "Title")); ?> </i></div> <div class="zoom"><img src="<?php echo WEB_THEME; ?> /cg35/images/picture-zoom.png" border="0" /></div> <img src="<?php echo WEB_THEME; ?> /cg35/images/parents/14-18/p<?php echo $child->id;
$itemHierarchy = $item->Hierarchy; ?> <?php switch ($itemHierarchy->type) { case Item::VOLET: echo "<h1><a href='" . item_url($item) . "'>" . metadata($item, array("Dublin Core", "Title")) . "</a></h1>"; break; case Item::PARTIE: echo "<h2><a href='" . item_url($item) . "'>" . metadata($item, array("Dublin Core", "Title")) . "</a></h2>"; break; case Item::CHAPITRE: echo "<h3><a href='" . item_url($item) . "'>" . metadata($item, array("Dublin Core", "Title")) . "</a></h3>"; break; case Item::SOUS_CHAPITRE: echo "<h4><a href='" . item_url($item) . "'>[Sous-chapitre] " . metadata($item, array("Dublin Core", "Title")) . "</a></h4>"; break; case Item::ENSEMBLE: echo "<h4><a href='" . item_url($item) . "'>[Ensemble] " . metadata($item, array("Dublin Core", "Title")) . "</a></h4>"; break; default: break; } ?> <?php } ?> </div> <?php echo foot();