[754] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
| 3 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
| 4 | xmlns:i18n="http://xml.zope.org/namespaces/i18n" |
---|
| 5 | lang="en" |
---|
| 6 | metal:use-macro="here/main_template/macros/master" |
---|
| 7 | i18n:domain="plone"> |
---|
| 8 | |
---|
| 9 | <body><metal:main fill-slot="main"><tal:main-macro metal:define-macro="main" |
---|
| 10 | tal:define="mobile_text here/mobile_content | string:;"> |
---|
| 11 | |
---|
| 12 | <div tal:condition="mobile_text" |
---|
| 13 | tal:replace="structure mobile_text" /> |
---|
| 14 | |
---|
| 15 | <tal:block condition="not:mobile_text"> |
---|
| 16 | <h1 class="documentFirstHeading summary"> |
---|
| 17 | <metal:field use-macro="python:here.widget('title', mode='view')"> |
---|
| 18 | Title |
---|
| 19 | </metal:field> |
---|
| 20 | </h1> |
---|
| 21 | <p class="documentDescription" |
---|
| 22 | tal:content="here/Description" |
---|
| 23 | tal:condition="here/Description"> |
---|
| 24 | Description |
---|
| 25 | </p> |
---|
| 26 | <div class="eventDetails vcard"> |
---|
| 27 | <dl> |
---|
| 28 | <tal:what define="subj here/getSubject|string:" |
---|
| 29 | condition="subj"> |
---|
| 30 | <dt i18n:translate="event_what">What</dt> |
---|
| 31 | <dd tal:content="subj"></dd> |
---|
| 32 | </tal:what> |
---|
| 33 | <dt>When:</dt> |
---|
| 34 | <dd> |
---|
| 35 | <tal:differentday tal:condition="python:not here.start().Date() == here.end().Date()"> |
---|
| 36 | <abbr id="parent-fieldname-startDate" class="dtstart" |
---|
| 37 | tal:attributes="title python:here.end().ISO8601()"><span class="explain" |
---|
| 38 | tal:content="python:here.toLocalizedTime(here.start(), long_format=1)">Start Date Time</span> |
---|
| 39 | </abbr> |
---|
| 40 | <span i18n:translate="event_to">to</span><br /> |
---|
| 41 | <abbr id="parent-fieldname-endDate" class="dtend" |
---|
| 42 | tal:attributes="title python:here.end().ISO8601()"><span class="explain" |
---|
| 43 | tal:content="python:here.toLocalizedTime(here.end(), long_format=1)">End Date Time</span> |
---|
| 44 | </abbr> |
---|
| 45 | </tal:differentday> |
---|
| 46 | <tal:sameday tal:condition="python:here.start().Date() == here.end().Date()" |
---|
| 47 | tal:define="ampm python:site_properties.getProperty('localLongTimeFormat').find('%p') >= 0"> |
---|
| 48 | <span tal:replace="python:toLocalizedTime(here.start())">Start Date Time</span><br /> |
---|
| 49 | <span i18n:translate="event_from">from</span> |
---|
| 50 | <abbr class="dtstart" id="parent-fieldname-startDate" |
---|
| 51 | tal:define="ampm python:site_properties.getProperty('localLongTimeFormat').find('%p') >= 0;" |
---|
| 52 | tal:attributes="title python:here.start().ISO8601()"><span |
---|
| 53 | tal:replace="python:test(ampm, here.start().AMPMMinutes(), here.start().TimeMinutes())">Start Time</span> |
---|
| 54 | </abbr> |
---|
| 55 | <span i18n:translate="event_to">to</span> |
---|
| 56 | <abbr id="parent-fieldname-endDate" class="dtend" |
---|
| 57 | tal:define="ampm python:site_properties.getProperty('localLongTimeFormat').find('%p') >= 0;" |
---|
| 58 | tal:attributes="title python:here.end().ISO8601()"><span |
---|
| 59 | tal:replace="python:test(ampm, here.end().AMPMMinutes(), here.end().TimeMinutes())">End Time</span> |
---|
| 60 | </abbr> |
---|
| 61 | </tal:sameday> |
---|
| 62 | </dd> |
---|
| 63 | <tal:where define="locat here/location|nothing" |
---|
| 64 | condition="locat"> |
---|
| 65 | <dt i18n:translate="event_where">Where</dt> |
---|
| 66 | <dd tal:content="locat">Location</dd> |
---|
| 67 | </tal:where> |
---|
| 68 | |
---|
| 69 | <tal:contact |
---|
| 70 | define="contact_email here/contact_email|nothing; |
---|
| 71 | contact_name python:context.contact_name() or None; |
---|
| 72 | contact_phone here/contact_phone|nothing" |
---|
| 73 | tal:condition="python:contact_name or contact_email or contact_phone"> |
---|
| 74 | <dt i18n:translate="contact">Contact</dt> |
---|
| 75 | <dd tal:condition="python:contact_name and contact_email" tal:content="structure python: here.spamProtect(mailaddress=contact_email, mailname=contact_name)">someone@somewhere.com</dd> |
---|
| 76 | <dd tal:condition="python:contact_name and not contact_email" tal:content="contact_name">someone</dd> |
---|
| 77 | <dd tal:condition="python:contact_email and not contact_name" tal:content="structure python: here.spamProtect(mailaddress=contact_email)">someone@somewhere.com</dd> |
---|
| 78 | <dd tal:condition="contact_phone" tal:content="contact_phone">33333333</dd> |
---|
| 79 | </tal:contact> |
---|
| 80 | </dl> |
---|
| 81 | |
---|
| 82 | </div> |
---|
| 83 | <div class="stx" |
---|
| 84 | tal:define="text here/getText|nothing" |
---|
| 85 | tal:condition="text" |
---|
| 86 | tal:attributes="class python:test(here.Format() in ('text/structured', |
---|
| 87 | 'text/x-rst', ), 'stx', 'plain')"> |
---|
| 88 | <div tal:replace="structure text" /> |
---|
| 89 | </div> |
---|
| 90 | <p tal:condition="here/event_url|nothing"><a class="url" id="parent-fieldname-eventUrl" href="event_url" |
---|
| 91 | i18n:translate="event_more_information" |
---|
| 92 | tal:define="field python:context.getField('eventUrl');" |
---|
| 93 | tal:attributes="href here/event_url">More information about this event…</a> |
---|
| 94 | </p> |
---|
| 95 | |
---|
| 96 | </tal:block> |
---|
| 97 | |
---|
| 98 | </tal:main-macro></metal:main> |
---|
| 99 | </body> |
---|
| 100 | </html> |
---|