add a real homepage
This commit is contained in:
parent
5c587d56f7
commit
4f3e9334d1
|
@ -17,8 +17,47 @@
|
|||
|
||||
<div tal:replace="structure provider:plone.abovecontentbody" />
|
||||
|
||||
<img name="SLIDESIMG" width="510" height="355" tal:attributes="src view/firstpic_url" alt=""/>
|
||||
<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>
|
||||
|
@ -48,6 +87,65 @@ 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>
|
||||
|
|
Reference in New Issue