[Products.SilvaExternalSources][Kit Blake] Add comments

[email protected] Tue, 01 Oct 2013 07:35:16 +0200
Newsgroups gmane.comp.web.zope.silva.cvs
Message-ID <[email protected]>
author:    Kit Blake
date:      Sun Sep 29 20:25:34 2013 +0200
revision:  1117:97f5e457993b in Products.SilvaExternalSources
branch:    2.4
details:   https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=97f5e457993b
modified:  Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt
added:     
removed:   
log:       Add comments

Subject: [Products.SilvaExternalSources][Kit Blake] Change to conditional div for portlet class


author:    Kit Blake
date:      Tue Oct 01 07:35:07 2013 +0200
revision:  1118:352a1fa9dd75 in Products.SilvaExternalSources
branch:    2.4
details:   https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=352a1fa9dd75
modified:  Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt
added:     
removed:   
log:       Change to conditional div for portlet class


diffstat:

 Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt |  25 ++++++----
 1 files changed, 15 insertions(+), 10 deletions(-)

diffs (37 lines):

diff -r 821150617708 -r 352a1fa9dd75 Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt
--- a/Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt	Sun Sep 29 12:15:25 2013 +0200
+++ b/Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt	Tue Oct 01 07:35:07 2013 +0200
@@ -1,13 +1,16 @@
-<tal:twitter_timeline
-  tal:define="
-    username options/username;
-    widgetid options/data-widget-id;
-    theme options/data-theme | nothing;
-    linkcolor options/data-link-color | nothing;
-    height options/height | nothing;
-    chrome options/data-chrome | nothing;
-    bordercolor options/data-border-color | nothing;
-    tweetlimit options/data-tweet-limit | nothing;">
+<tal:twitter_timeline tal:define="
+  username options/username;
+  widgetid options/data-widget-id;
+  theme options/data-theme | nothing;
+  linkcolor options/data-link-color | nothing;
+  height options/height | nothing;
+  chrome options/data-chrome | nothing;
+  bordercolor options/data-border-color | nothing;
+  tweetlimit options/data-tweet-limit | nothing;
+  cssclass options/css-class | nothing;">
+<!-- Twitter Timeline code source (cs_twittertimeline) -->
+<div tal:attributes="class cssclass"
+  tal:omit-tag="not:cssclass">
   <a tal:attributes="
     href string:https://twitter.com/$username;
     class string:twitter-timeline;
@@ -22,4 +25,6 @@
   </a>
   <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
   </script>
+</div>
+<!-- /End Twitter Timeline -->
 </tal:twitter_timeline>