1 | <html xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | i18n:domain="SimpleBlog"> |
---|
4 | <body> |
---|
5 | |
---|
6 | <div metal:define-macro="blogGlobals" |
---|
7 | tal:define="global blog python:here.simpleblog_tool.getFrontPage(here); |
---|
8 | global isDeliciousEnaled blog/isDeliciousEnabled; |
---|
9 | global isDiggEnabled blog/isDiggEnabled; |
---|
10 | global isYahooEnabled blog/isYahooEnabled; |
---|
11 | global isGoogleEnabled blog/isGoogleEnabled; |
---|
12 | global isSpurlEnabled blog/isSpurlEnabled; |
---|
13 | global isTagsEnabled blog/isTagsEnabled; |
---|
14 | global isAllowTrackback blog/getAllowTrackback; |
---|
15 | global showIcons blog/getShowIcons; |
---|
16 | global showByline blog/getShowByline; |
---|
17 | global isTopAdsenceEnabled blog/isTopAdsenceEnabled; |
---|
18 | global isBottomAdsenceEnabled blog/isBottomAdsenceEnabled; |
---|
19 | global bottomAdsence blog/getBottomAdsence; |
---|
20 | global topAdsence blog/getTopAdsence;" |
---|
21 | tal:omit-tag=""> |
---|
22 | </div> |
---|
23 | |
---|
24 | <div metal:define-macro="full" class="simpleBlogFull"> |
---|
25 | <h2 class="noMargin" |
---|
26 | tal:condition="showIcons"> |
---|
27 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;"> |
---|
28 | <span tal:define="item_type obj/portal_type; |
---|
29 | item_type_class python:'contenttype-' + normalizeString(item_type);" |
---|
30 | tal:attributes="class string:simpleBlogIcons ${item_type_class}" tal:content="obj/title"/></a> |
---|
31 | </h2> |
---|
32 | <h2 class="noMargin" tal:condition="not:showIcons"> |
---|
33 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;" |
---|
34 | tal:content="obj/title"></a> |
---|
35 | </h2> |
---|
36 | <p class="simpleBlogDescription" |
---|
37 | tal:content="structure python:obj.Description()" |
---|
38 | tal:condition="obj/Description">Description</p> |
---|
39 | <div tal:replace="structure python:obj.getBody()" class="simpleBlogBody"/> |
---|
40 | <tal:tags metal:use-macro="obj/simpleblog_byline/macros/technoratiTags"/> |
---|
41 | <tal:byline tal:condition="showByline"> |
---|
42 | <tal:x metal:use-macro="obj/simpleblog_byline/macros/byline-foot"/> |
---|
43 | </tal:byline> |
---|
44 | </div> |
---|
45 | |
---|
46 | <div metal:define-macro="descriptionOnly" class="simpleBlogDescriptionOnly"> |
---|
47 | <h2 class="noMargin" |
---|
48 | tal:condition="showIcons"> |
---|
49 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;"> |
---|
50 | <span tal:define="item_type obj/portal_type; |
---|
51 | item_type_class python:'contenttype-' + normalizeString(item_type);" |
---|
52 | tal:attributes="class string:simpleBlogIcons ${item_type_class}" tal:content="obj/title"/></a> |
---|
53 | </h2> |
---|
54 | <h2 class="noMargin" tal:condition="not:showIcons"> |
---|
55 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;" |
---|
56 | tal:content="obj/title"></a> |
---|
57 | </h2> |
---|
58 | <p class="simpleBlogDescription" |
---|
59 | tal:content="structure python:obj.Description()" |
---|
60 | tal:condition="obj/Description">Description</p> |
---|
61 | <tal:tags metal:use-macro="obj/simpleblog_byline/macros/technoratiTags"/> |
---|
62 | <tal:byline tal:condition="showByline"> |
---|
63 | <tal:x metal:use-macro="obj/simpleblog_byline/macros/byline-foot"/> |
---|
64 | </tal:byline> |
---|
65 | </div> |
---|
66 | |
---|
67 | <div metal:define-macro="titleOnly" class="simpleBlogTitleOnly"> |
---|
68 | <h2 class="noMargin" |
---|
69 | tal:condition="showIcons"> |
---|
70 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;"> |
---|
71 | <span tal:define="item_type obj/portal_type; |
---|
72 | item_type_class python:'contenttype-' + normalizeString(item_type);" |
---|
73 | tal:attributes="class string:simpleBlogIcons ${item_type_class}" tal:content="obj/title"/></a> |
---|
74 | </h2> |
---|
75 | <h2 class="noMargin" tal:condition="not:showIcons"> |
---|
76 | <a href="" tal:attributes="href obj/absolute_url" style="cursor:pointer;" |
---|
77 | tal:content="obj/title"></a> |
---|
78 | </h2> |
---|
79 | <tal:tags metal:use-macro="obj/simpleblog_byline/macros/technoratiTags"/> |
---|
80 | <tal:byline tal:condition="showByline"> |
---|
81 | <tal:x metal:use-macro="obj/simpleblog_byline/macros/byline-foot"/> |
---|
82 | </tal:byline> |
---|
83 | </div> |
---|
84 | |
---|
85 | </body> |
---|
86 | </html> |
---|