[1] | 1 | <metal:bookmarklets metal:define-macro="bookmarklets" |
---|
| 2 | tal:condition="isDeliciousEnaled|isDiggEnabled|isYahooEnabled|isGoogleEnabled|isSpurlEnabled"><div |
---|
| 3 | tal:define="entryURL obj/absolute_url; |
---|
| 4 | entryTitle obj/Title; |
---|
| 5 | entryDescription obj/Description; |
---|
| 6 | entryDiggTopic obj/getDiggTopic; |
---|
| 7 | encodeURLData python:modules['Products.SimpleBlog.util'].encodeURLData;"> |
---|
| 8 | <span tal:condition="isDeliciousEnaled"> |
---|
| 9 | <a href="" |
---|
| 10 | title="" |
---|
| 11 | tal:define="url_data python:encodeURLData({'url':entryURL,'title':entryTitle});" |
---|
| 12 | tal:attributes="href string:http://del.icio.us/post?${url_data}; |
---|
| 13 | title string:del.icio.us: ${entryTitle}"> |
---|
| 14 | <img src="" |
---|
| 15 | alt="del.icio.us" |
---|
| 16 | tal:attributes="src string:$portal_url/delicious.gif;" /></a> |
---|
| 17 | </span> <span tal:condition="isDiggEnabled"> |
---|
| 18 | <a href="" |
---|
| 19 | title="" |
---|
| 20 | tal:define="url_data python:encodeURLData({'phase':'2','url':entryURL,'title':entryTitle,'bodytext':entryDescription,'topic':entryDiggTopic});" |
---|
| 21 | tal:attributes="href string:http://digg.com/submit?${url_data}; |
---|
| 22 | title string:Digg: ${entryTitle}"> |
---|
| 23 | <img src="" |
---|
| 24 | alt="Digg" |
---|
| 25 | tal:attributes="src string:$portal_url/digg.gif;" /></a> |
---|
| 26 | </span> <span tal:condition="isYahooEnabled"> |
---|
| 27 | <a href="" |
---|
| 28 | title="" |
---|
| 29 | tal:define="url_data python:encodeURLData({'u':entryURL,'t':entryTitle});" |
---|
| 30 | tal:attributes="href string:http://myweb2.search.yahoo.com/myresults/bookmarklet?${url_data}; |
---|
| 31 | title string:Yahoo: ${entryTitle}"> |
---|
| 32 | <img src="" |
---|
| 33 | alt="Yahoo" |
---|
| 34 | tal:attributes="src string:$portal_url/yahoo.gif;" /></a> |
---|
| 35 | </span> <span tal:condition="isGoogleEnabled"> |
---|
| 36 | <a href="" |
---|
| 37 | title="" |
---|
| 38 | tal:define="url_data python:encodeURLData({'op':'edit','output':'popup','bkmk':entryURL,'title':entryTitle});" |
---|
| 39 | tal:attributes="href string:http://www.google.com/bookmarks/mark?${url_data}; |
---|
| 40 | title string:Google: ${entryTitle}"> |
---|
| 41 | <img src="" |
---|
| 42 | alt="Google" |
---|
| 43 | tal:attributes="src string:$portal_url/google.gif;" /></a> |
---|
| 44 | </span> <span tal:condition="isSpurlEnabled"> |
---|
| 45 | <a href="" |
---|
| 46 | title="" |
---|
| 47 | tal:define="url_data python:encodeURLData({'url':entryURL,'title':entryTitle});" |
---|
| 48 | tal:attributes="href string:http://www.spurl.net/spurl.php?${url_data}; |
---|
| 49 | title string:Spurl: ${entryTitle}"> |
---|
| 50 | <img src="" |
---|
| 51 | alt="Spurl" |
---|
| 52 | tal:attributes="src string:$portal_url/spurl.gif;" /></a> |
---|
| 53 | </span> |
---|
| 54 | </div></metal:bookmarklets> |
---|
| 55 | |
---|
| 56 | <div metal:define-macro="byline-foot" class="BlogByLine"> |
---|
| 57 | <tal:x define="allowed python:obj.portal_discussion.isDiscussionAllowedFor(obj); |
---|
| 58 | ccount python:allowed and obj.portal_discussion.getDiscussionFor(obj).replyCount(obj); |
---|
| 59 | tballowed isAllowTrackback | here/getAllowTrackback; |
---|
| 60 | tbcount python:tballowed and len(obj.getTrackbacks()) or 0; |
---|
| 61 | blog_url blog/absolute_url"> |
---|
| 62 | <span i18n:translate="blog_by_line"> |
---|
| 63 | <span tal:define="edate python:obj.simpleblog_tool.getEntryDate(obj)" |
---|
| 64 | i18n:name="date" tal:replace="python:DateTime(edate).strftime('%A, %B %d, %Y')">Jun 2, 2002 2:42 pm</span> |
---|
| 65 | </span><span tal:define="cats python:obj.EntryCategory(); |
---|
| 66 | pss modules/Products.PythonScripts.standard;" |
---|
| 67 | tal:omit-tag=""><tal:x tal:condition="cats"> in </tal:x><tal:categories |
---|
| 68 | tal:repeat="cat cats" tal:condition="cats"> |
---|
| 69 | <span tal:omit-tag="" tal:condition="not: repeat/cat/start">| </span><strong><a href="#" |
---|
| 70 | tal:define="quotedCat python:pss.url_quote(cat)" |
---|
| 71 | tal:attributes="href string:${blog/absolute_url}/SimpleBlogCatSearch?category=${quotedCat}" |
---|
| 72 | title="category"><span tal:omit-tag="" tal:content="cat"/></a></strong></tal:categories> |
---|
| 73 | </span> | <strong><a href="" |
---|
| 74 | tal:attributes="href obj/absolute_url" |
---|
| 75 | i18n:translate="permalink">Permalink</a></strong> | <tal:block condition="allowed"> |
---|
| 76 | <strong> |
---|
| 77 | <a href="" |
---|
| 78 | tal:attributes="href string:${obj/absolute_url}#comments" |
---|
| 79 | tal:content="string:Comments (${ccount})">Comments</a></strong><tal:x condition="tbcount"> | </tal:x></tal:block> |
---|
| 80 | <strong tal:condition="python:tballowed and tbcount"> |
---|
| 81 | <tal:x tal:replace="string:TrackBack (${tbcount})">TrackBack</tal:x> |
---|
| 82 | </strong><div tal:condition="tballowed"> trackback URL: <tal:x replace="string:${obj/absolute_url}/sbtrackback"/> |
---|
| 83 | </div><div metal:use-macro="here/simpleblog_byline/macros/bookmarklets"></div></tal:x> |
---|
| 84 | </div> |
---|
| 85 | |
---|
| 86 | <div metal:define-macro="technoratiTags" |
---|
| 87 | tal:define="cats python:obj.EntryTag(); |
---|
| 88 | isTagsEnabled isTagsEnabled | here/isTagsEnabled" |
---|
| 89 | tal:condition="python:isTagsEnabled and cats" |
---|
| 90 | tal:omit-tag=""> |
---|
| 91 | _____<br/> |
---|
| 92 | tags: |
---|
| 93 | <span class="simpleBlogBylineCats"><tal:categories |
---|
| 94 | tal:repeat="cat cats" tal:condition="cats"><span tal:omit-tag="" tal:condition="not: repeat/cat/start">| |
---|
| 95 | </span><strong><a href="#" |
---|
| 96 | rel="tag" |
---|
| 97 | tal:define="quotedCat python:cat.lower().replace(' ', '+')" |
---|
| 98 | tal:attributes="href string:http://www.technorati.com/tag/${quotedCat}"><span tal:omit-tag="" |
---|
| 99 | tal:content="cat"/></a></strong></tal:categories></span> |
---|
| 100 | </div> |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | <div metal:define-macro="byline" class="documentByLine BlogByLine" |
---|
| 104 | tal:condition="python: site_properties.allowAnonymousViewAbout or not isAnon" |
---|
| 105 | tal:define="creator obj/Creator;"> |
---|
| 106 | <tal:name tal:condition="creator" |
---|
| 107 | tal:define="author python:mtool.getMemberInfo(creator)"> |
---|
| 108 | <span i18n:translate="blog_by_line"> |
---|
| 109 | Submitted by |
---|
| 110 | <a href="#" |
---|
| 111 | tal:attributes="href string:${portal_url}/author/${creator}" |
---|
| 112 | tal:content="python:author and author['fullname'] or creator" |
---|
| 113 | tal:omit-tag="not:author" |
---|
| 114 | i18n:name="author"> |
---|
| 115 | Bob Dobalina |
---|
| 116 | </a> |
---|
| 117 | </span> |
---|
| 118 | </tal:name> |
---|
| 119 | <span i18n:translate="box_last_modified"> |
---|
| 120 | on |
---|
| 121 | <span i18n:name="date" tal:replace="python:obj.toLocalizedTime(obj.simpleblog_tool.getEntryDate(obj), long_format=1)">Jun 2, 2002 2:42 pm</span> |
---|
| 122 | </span> |
---|
| 123 | — |
---|
| 124 | <tal:block tal:define="comments python:obj.portal_discussion.getDiscussionFor(obj)"> |
---|
| 125 | <span tal:content="python:comments.replyCount(obj)" /> comment(s) |
---|
| 126 | </tal:block> |
---|
| 127 | — |
---|
| 128 | <span tal:define="cats python:obj.EntryCategory(); |
---|
| 129 | pss modules/Products.PythonScripts.standard;" |
---|
| 130 | class="simpleBlogBylineCats"> |
---|
| 131 | <tal:categories tal:repeat="cat cats" tal:condition="cats"> |
---|
| 132 | <span tal:omit-tag="" tal:condition="not: repeat/cat/start">| </span> |
---|
| 133 | <strong><a href="#" |
---|
| 134 | tal:define="quotedCat python:pss.url_quote(cat)" |
---|
| 135 | tal:attributes="href string:${obj/absolute_url}/SimpleBlogCatSearch?category=${quotedCat}" |
---|
| 136 | title="category"><span tal:omit-tag="" tal:content="cat"/></a></strong> |
---|
| 137 | </tal:categories> |
---|
| 138 | </span> |
---|
| 139 | </div> |
---|
| 140 | |
---|
| 141 | <div metal:define-macro="byline-long" class="documentByLine BlogByLine" |
---|
| 142 | tal:condition="python: site_properties.allowAnonymousViewAbout or not isAnon" |
---|
| 143 | tal:define="creator obj/Creator;"> |
---|
| 144 | <img src="" alt="" |
---|
| 145 | title="This entry is locked." |
---|
| 146 | tal:define="locked portal_object/lock_icon.gif; |
---|
| 147 | lockable python:hasattr(obj, 'wl_isLocked');" |
---|
| 148 | tal:condition="python:lockable and obj.wl_isLocked()" |
---|
| 149 | tal:replace="structure python:locked.tag(title='Locked')" |
---|
| 150 | i18n:attributes="title label_document_locked;" |
---|
| 151 | /> |
---|
| 152 | <tal:crosspost tal:define="isCrossPost isCrossPost|python:0" tal:condition="isCrossPost"> |
---|
| 153 | <img class="simpleBlogCrosspost" src="cross-post.gif" title="Cross-post"/> |
---|
| 154 | </tal:crosspost> |
---|
| 155 | <tal:name tal:condition="creator" |
---|
| 156 | tal:define="author python:mtool.getMemberInfo(creator)"> |
---|
| 157 | <span i18n:translate="blog_by_line"> |
---|
| 158 | Submitted by |
---|
| 159 | <a href="#" |
---|
| 160 | tal:attributes="href string:${portal_url}/author/${creator}" |
---|
| 161 | tal:content="python:author and author['fullname'] or creator" |
---|
| 162 | tal:omit-tag="not:author" |
---|
| 163 | i18n:name="author"> |
---|
| 164 | Bob Dobalina |
---|
| 165 | </a> |
---|
| 166 | </span> |
---|
| 167 | </tal:name> |
---|
| 168 | <span i18n:translate="box_last_modified"> |
---|
| 169 | on |
---|
| 170 | <span i18n:name="date" tal:replace="python:obj.toLocalizedTime(obj.simpleblog_tool.getEntryDate(obj), long_format=1)">Jun 2, 2002 2:42 pm</span> |
---|
| 171 | </span> |
---|
| 172 | — |
---|
| 173 | <span i18n:translate="box_last_modified"> |
---|
| 174 | last modified |
---|
| 175 | </span> |
---|
| 176 | <span tal:replace="python:obj.toLocalizedTime(obj.ModificationDate(),long_format=1)"> |
---|
| 177 | August 16, 2001 at 23:35:59 |
---|
| 178 | </span> |
---|
| 179 | — |
---|
| 180 | <span class="state-expired" |
---|
| 181 | tal:condition="python:portal.isExpired(obj)" |
---|
| 182 | i18n:translate="time_expired"> |
---|
| 183 | expired |
---|
| 184 | — |
---|
| 185 | </span> |
---|
| 186 | <span tal:define="cats python:obj.EntryCategory(); |
---|
| 187 | pss modules/Products.PythonScripts.standard;" |
---|
| 188 | class="simpleBlogBylineCats"> |
---|
| 189 | <tal:categories tal:repeat="cat cats" tal:condition="cats"> |
---|
| 190 | <span tal:omit-tag="" tal:condition="not: repeat/cat/start">| </span> |
---|
| 191 | <strong><a href="#" |
---|
| 192 | tal:define="quotedCat python:pss.url_quote(cat)" |
---|
| 193 | tal:attributes="href string:${obj/absolute_url}/SimpleBlogCatSearch?category=${quotedCat}" |
---|
| 194 | title="category"><span tal:omit-tag="" tal:content="cat"/></a></strong> |
---|
| 195 | </tal:categories> |
---|
| 196 | </span> |
---|
| 197 | <div tal:condition="obj/Contributors" |
---|
| 198 | i18n:translate="text_contributors"> |
---|
| 199 | Contributors: |
---|
| 200 | <span i18n:name="name" |
---|
| 201 | tal:omit-tag="" |
---|
| 202 | tal:content="python: ', '.join(obj.Contributors())"> |
---|
| 203 | Mary |
---|
| 204 | </span> |
---|
| 205 | </div> |
---|
| 206 | |
---|
| 207 | <tal:rights condition="obj/Rights"> |
---|
| 208 | <div tal:replace="obj/Rights"> |
---|
| 209 | Copyleft NiceCorp Inc. |
---|
| 210 | </div> |
---|
| 211 | </tal:rights> |
---|
| 212 | |
---|
| 213 | </div> |
---|