[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 | on-error="string:"> |
---|
| 17 | <h1 tal:content="object_title" class="documentFirstHeading"> |
---|
| 18 | Title or id |
---|
| 19 | </h1> |
---|
| 20 | <p class="documentDescription" |
---|
| 21 | tal:content="here/Description" |
---|
| 22 | tal:condition="here/Description"> |
---|
| 23 | Description |
---|
| 24 | </p> |
---|
| 25 | <div tal:condition="here/image_tile|nothing"> |
---|
| 26 | <a href="#" |
---|
| 27 | tal:define="href_thumb here/image_thumb|string:; |
---|
| 28 | href_mini here/image_mini|string:; |
---|
| 29 | thumb_pref python:test(href_thumb, 'thumb', ''); |
---|
| 30 | mini_pref python:test(href_mini, 'mini', ''); |
---|
| 31 | url_pref python:test(href_mini, mini_pref, thumb_pref);" |
---|
| 32 | tal:condition="url_pref" |
---|
| 33 | tal:attributes="href string:$here_url/image_${url_pref}" |
---|
| 34 | tal:omit-tag="not:url_pref"> |
---|
| 35 | <img tal:replace="structure python: here.tag(scale='tile')" src="" alt="" /> |
---|
| 36 | </a> |
---|
| 37 | <p class="discreet"> |
---|
| 38 | <metal:field use-macro="python:here.widget('imageCaption', mode='view')"> |
---|
| 39 | Image Caption |
---|
| 40 | </metal:field> |
---|
| 41 | </p> |
---|
| 42 | </div> |
---|
| 43 | <div class="stx" |
---|
| 44 | tal:define="text python: here.CookedBody(stx_level=2)" |
---|
| 45 | tal:condition="text" |
---|
| 46 | tal:attributes="class python:test(here.Format() in ('text/structured', |
---|
| 47 | 'text/x-rst', ), 'stx', 'plain')"> |
---|
| 48 | <div tal:replace="structure text" /> |
---|
| 49 | </div> |
---|
| 50 | </tal:block> |
---|
| 51 | |
---|
| 52 | </tal:main-macro></metal:main> |
---|
| 53 | </body> |
---|
| 54 | </html> |
---|
| 55 | |
---|