[1] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | lang="en" |
---|
| 3 | metal:use-macro="here/main_template/macros/master" |
---|
| 4 | i18n:domain="SimpleBlog"> |
---|
| 5 | |
---|
| 6 | <metal:head fill-slot="head_slot"> |
---|
| 7 | <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="RSS2" |
---|
| 8 | tal:attributes="href string:${here/absolute_url}/RSS2" /> |
---|
| 9 | <link rel="alternate" type="text/xml" title="RSS .92" |
---|
| 10 | tal:attributes="href string:${here/absolute_url}/RSS1"/> |
---|
| 11 | </metal:head> |
---|
| 12 | |
---|
| 13 | |
---|
| 14 | <metal:css fill-slot="css_slot"> |
---|
| 15 | <link rel="stylesheet" type="text/css" media="screen" href="" tal:attributes="href string:$portal_url/SimpleBlogCSS.css" /> |
---|
| 16 | </metal:css> |
---|
| 17 | |
---|
| 18 | <body> |
---|
| 19 | <div metal:fill-slot="main"> |
---|
| 20 | <tal:main-macro metal:define-macro="main" |
---|
| 21 | tal:define="displayItems python:here.getDisplayItems(); |
---|
| 22 | standardButtons python:here.simpleblog_tool.getShowStandardButtons(); |
---|
| 23 | results python:here.simpleblog_tool.searchForEntries(here, maxResults=0); |
---|
| 24 | displayMode python:here.getDisplayMode(); |
---|
| 25 | b_size python:displayItems; |
---|
| 26 | b_start python:0; |
---|
| 27 | b_start request/b_start | b_start; |
---|
| 28 | Batch python:modules['Products.CMFPlone'].Batch;"> |
---|
| 29 | |
---|
| 30 | <h1 class="documentFirstHeading"> |
---|
| 31 | <img src="#" tal:attributes="src string:${here/portal_url}/${here/getIcon};alt here/title" /> |
---|
| 32 | <span tal:replace="here/title_or_id"/> |
---|
| 33 | </h1> |
---|
| 34 | |
---|
| 35 | <tal:icons tal:condition="here/document_actions/macros/document_actions"> |
---|
| 36 | <div metal:use-macro="here/document_actions/macros/document_actions"> |
---|
| 37 | Document actions (print, sendto etc) |
---|
| 38 | </div> |
---|
| 39 | </tal:icons> |
---|
| 40 | |
---|
| 41 | <div class="documentDescription" |
---|
| 42 | tal:content="structure here/Description"> |
---|
| 43 | description |
---|
| 44 | </div> |
---|
| 45 | <div tal:condition="results" tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1);"> |
---|
| 46 | <tal:block tal:repeat="entry batch"> |
---|
| 47 | <tal:list tal:define="obj entry/getObject;headerSize python:3"> |
---|
| 48 | <div metal:use-macro="here/SimpleBlog_macros/macros/?displayMode"/> |
---|
| 49 | </tal:list> |
---|
| 50 | </tal:block> |
---|
| 51 | <div metal:use-macro="here/batch_macros/macros/navigation" /> |
---|
| 52 | </div> |
---|
| 53 | |
---|
| 54 | <tal:info tal:condition="not: results"> |
---|
| 55 | <tal:block tal:define="hasEntries python:here.simpleblog_tool.blogHasEntries(here); |
---|
| 56 | editPermission python:mtool.checkPermission('Modify portal content', here) "> |
---|
| 57 | <p tal:condition="hasEntries"> |
---|
| 58 | There are currently no published blog entries. |
---|
| 59 | </p> |
---|
| 60 | <p tal:condition="python: editPermission and hasEntries"> |
---|
| 61 | To get a list of the already present (unpublished) entries, click on the contents |
---|
| 62 | tab or click <a href="folder_contents">here</a>. |
---|
| 63 | </p> |
---|
| 64 | <p tal:condition="not: hasEntries"> |
---|
| 65 | There are currently no blog entries. |
---|
| 66 | </p> |
---|
| 67 | </tal:block> |
---|
| 68 | </tal:info> |
---|
| 69 | </tal:main-macro> |
---|
| 70 | </div> |
---|
| 71 | |
---|
| 72 | </body> |
---|
| 73 | |
---|
| 74 | </html> |
---|