Aller au contenu. | Aller à la navigation

Outils personnels

Navigation
Vous êtes ici : Accueil / Aide pour les responsables / Homepage pour non connectés / Code pour customiser portlet_events.pt dans portalview_customizations

Code pour customiser portlet_events.pt dans portalview_customizations

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
      tal:omit-tag="">
<dl class="portlet portletEvents"
    i18n:domain="plone.app.event">

<div class="rssimg">
<a href="agendas/evenements/ics_view"> <img height="15" src="portal_skins/custom/export_ical.png" width="15" /> Export iCal </a> -
<a href="agendas/evenements/RSS"> <img height="15" src="portal_skins/custom/rss2.png" width="15" /> </a>
</div>

    <dt class="portletHeader">
        <span class="portletTopLeft"></span>
        <a href=""
           class="tile"
           tal:define="next_link view/next_url"
           tal:omit-tag="not:next_link"
           tal:attributes="href next_link"
           >
            Agenda
        </a>
        <span class="portletTopRight"></span>
    </dt>

    <tal:events repeat="item view/events">
    <dd class="portletItem"
        tal:define="oddrow repeat/item/odd"
        tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">
        <a href="#" class="tile"
            tal:attributes="href item/url;
                            title item/description">
            <span tal:replace="item/title">
                Some Event
            </span>
        </a>
        <span class="portletItemDetails">
            <tal:date replace="structure python:view.formatted_date(item)" />
            <span tal:define="tz item/timezone" tal:condition="tz">(<tal:tzname replace="tz">TZ</tal:tzname>)</span>
            <span class="location"
                tal:define="location python:view.get_location(item)"
                tal:condition="location"> &mdash;
                <tal:location content="structure location">Location</tal:location>
            </span>
        </span>
    </dd>
    </tal:events>

    <dd class="portletFooter"
        tal:define="prev_link view/prev_url"
        tal:condition="prev_link">
        Evénements
        <a href=""
            tal:attributes="href prev_link"
            class="tile">
            <span>
                précédents
            </span>
        </a>
   -
        <a href=""
            class="tile"
            tal:define="next_link view/next_url"
            tal:attributes="href next_link"
           >
            à venir
        </a>
        <span class="portletBottomLeft"></span>
        <span class="portletBottomRight"></span>
    </dd>



</dl>
</html>