This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.pfbviews/tabellio/pfbviews/pfbhome_folder.pt

154 lines
5.9 KiB
XML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="context/main_template/macros/master"
i18n:domain="plone">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<tal:block tal:define="cache view/cache"/>
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 metal:use-macro="context/kss_generic_macros/macros/generic_title_view">Title</h1>
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure provider:plone.abovecontentbody" />
<div id="home-first-part" tal:condition="python: context.getId() == 'accueil-dev'">
<div id="slider">
<ul class="slider-list">
<tal:entry tal:repeat="slide view/slider_items">
<li class="slide">
<div class="slider_image">
<img width="718" height="310" alt="" class="image-inline" tal:attributes="src string:${slide/absolute_url}/pic"/>
</div>
<div class="slider_caption">
<p><span tal:content="slide/Title">Une jolie vue de l'hémicycle</span>
<a tal:attributes="href slide/absolute_url">plus d'info</a>
</p>
</div>
</li>
</tal:entry>
</ul>
</div>
<script type="text/javascript" src="/js/easySlider.js"></script>
<link rel="stylesheet" href="/css/easySlider.css" />
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery("#slider").easySlider({
speed : 500,
odd_speed : 0,
vertical: false,
auto : true,
pause : 8000,
odd_pause : 0,
continuous : true,
navigation_type: 'Small Arrows',
effect: 'Slide',
fadeNavigation: true,
hoverPause: true
});
});
</script>
</div> <!-- # home-first-part -->
<div tal:condition="python: context.getId() != 'accueil-dev'">
<img name="SLIDESIMG" width="510" height="355" tal:attributes="src view/firstpic_url" alt=""/>
<!-- JavaScript Slideshow by Patrick Fitzgerald http://slideshow.barelyfitz.com/ -->
<script src="/slide_portlet/slideshow.js" type="text/javascript"></script>
<script type="text/javascript" tal:content="view/slides_js"></script>
<script type="text/javascript">// <![CDATA[
if (document.images) {
SLIDES.image = document.images.SLIDESIMG;
// Create a function to ramp up the image opacity in Mozilla
var fadein_opacity = 0;
var fadein_img = SLIDES.image;
function fadein(opacity) {
if (typeof opacity != 'undefined') fadein_opacity = opacity;
if (fadein_opacity < 1 && fadein_img && fadein_img.style &&
typeof fadein_img.style.MozOpacity != 'undefined') {
fadein_opacity += .05;
fadein_img.style.MozOpacity = fadein_opacity;
setTimeout("fadein()", 50);
}
}
// Tell the slideshow to call our function whenever the slide is changed
SLIDES.post_update_hook = function() { fadein(0); }
}
SLIDES.loop();
// ]]></script>
</div>
<div id="pfbhome-2ndpart" tal:condition="python: context.getId() == 'accueil-dev'">
<dl class="enableFormTabbing" id="home-tabs">
<tal:block tal:define="homenews view/homenews" tal:condition="homenews">
<dt>L'actualité du Parlement</dt>
<dd id="hp-actu">
<img tal:attributes="src string: ${homenews/absolute_url}/pic" alt=""/>
<div tal:condition="homenews/homepage_text">
<h2 tal:content="homenews/Title">titre</h2>
<div tal:content="structure homenews/homepage_text/output">
plop
</div>
</div>
<a class="more-link" href="#" tal:attributes="href homenews/absolute_url">plus</a>
</dd>
</tal:block>
<tal:block tal:define="events view/get_coming_day_events" tal:condition="events">
<dt id="fieldset-legend-agenda">Agenda</dt>
<dd id="fieldset-agenda">
<div tal:define="event python: events[0]">
<div class="blocdate">
<a title="Ouvrir le calendrier" class="open-calendar" href="#" tal:attributes="href string:${event/agenda_url}#event-${event/id}"><div class="date">
<span class="day" tal:content="event/start/day">30</span><span class="month" tal:content="event/start_month">mars</span>
</div></a>
</div>
<div tal:repeat="event events" tal:attributes="class string:event-description ${event/klass}">
<h3 class="event-title">Prochain événement :<br/><span class="event-type-square"></span><span tal:replace="event/Title"/></h3>
<div class="event-hour" tal:condition="event/start/hour">À <span tal:content="event/start/hour">14</span> heures <span tal:condition="event/start/minute" tal:content="event/start/minute">00</span></div>
<div class="place" tal:content="event/place">Salle des séances - Hôtel de Ligne</div>
<div class="description">
<p tal:content="event/description">
L'heure des questions d'actualité est fixée à 14 heures.
</p>
<a class="event-link" href="#" tal:attributes="href event/absolute_url">plus d'info</a>
</div>
</div>
</div>
</dd>
</tal:block>
<dt>Derniers documents publiés</dt>
<dd id="hp-docs">
<ul>
<tal:entry tal:repeat="doc view/last_docs">
<li tal:define="oddrow repeat/doc/odd;" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href doc/getURL" tal:content="python: doc.getObject().reftitle">Proposition de décret - 123 (2010-2011) n° 1</a></h4>
<p tal:content="doc/Title">Proposition de décret visant à élargir la définition des primo-arrivants
dans l'enseignement de la Communauté française.</p>
</div></li>
</tal:entry>
</ul>
<a class="more-link" href="#" tal:attributes="href python: view.more_docs_link()">plus de documents</a>
</dd>
</dl>
<br style="clear: both;">
</div>
</tal:main-macro>
</metal:main>
</body>
</html>