[Products.SilvaExternalSources][Emiliano D'Alterio] Added option...
[email protected] Tue, 01 Oct 2013 17:37:49 +0200
| Newsgroups | gmane.comp.web.zope.silva.cvs |
|---|---|
| Message-ID | <[email protected]> |
author: Emiliano D'Alterio
date: Tue Oct 01 17:37:39 2013 +0200
revision: 1119:2cb199d6d811 in Products.SilvaExternalSources
branch: 2.4
details: https://hg.infrae.com/Products.SilvaExternalSources?cmd=changeset;node=2cb199d6d811
modified: Products/SilvaExternalSources/codesources/cs_twitter_timeline/parameters.xml Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt
added:
removed:
log: Added optional H3 title and CSS classes. Changed default profile to
silvacmsorg.
diffstat:
Products/SilvaExternalSources/codesources/cs_twitter_timeline/parameters.xml | 68 ++++++++-
Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt | 2 +
2 files changed, 63 insertions(+), 7 deletions(-)
diffs (115 lines):
diff -r 352a1fa9dd75 -r 2cb199d6d811 Products/SilvaExternalSources/codesources/cs_twitter_timeline/parameters.xml
--- a/Products/SilvaExternalSources/codesources/cs_twitter_timeline/parameters.xml Tue Oct 01 07:35:07 2013 +0200
+++ b/Products/SilvaExternalSources/codesources/cs_twitter_timeline/parameters.xml Tue Oct 01 17:37:39 2013 +0200
@@ -20,7 +20,7 @@
<values>
<alternate_name></alternate_name>
<css_class></css_class>
- <default>infrae</default>
+ <default>silvacmsorg</default>
<description>Your Twitter username</description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
@@ -47,7 +47,7 @@
<values>
<alternate_name></alternate_name>
<css_class></css_class>
- <default>345115773511016448</default>
+ <default>347980789734055936</default>
<description>In order to use this CS you have to create a Twitter user widget in your profile and then input the widget ID in this field (https://twitter.com/settings/widgets/new).
This widget ID is the value of the "data-widget-id" attribute in the HTML code Twitter provides you after saving the widget in your profile.</description>
<display_maxwidth></display_maxwidth>
@@ -130,11 +130,11 @@
<alternate_name></alternate_name>
<css_class></css_class>
<default>noheader nofooter noborders noscrollbar transparent</default>
- <description>Control the widget layout, you can use a space-separated set of the following options:
-1. noheader: hides the timeline header.
-2. nofooter: hides the timeline footer and Tweet box, if included.
-3. noborders: removes all borders within the widget.
-4. noscrollbar: crops and hides the main timeline scrollbar, if visible.
+ <description>Control the widget layout, you can use a space-separated set of the following options:
+1. noheader: hides the timeline header.
+2. nofooter: hides the timeline footer and Tweet box, if included.
+3. noborders: removes all borders within the widget.
+4. noscrollbar: crops and hides the main timeline scrollbar, if visible.
5. transparent: removes the background color.</description>
<display_maxwidth></display_maxwidth>
<display_width type="int">20</display_width>
@@ -238,6 +238,60 @@
<message name="too_long">Too much input was given.</message>
</messages>
</field>
+ <field><id>widget_title</id> <type>StringField</type>
+ <values>
+ <alternate_name></alternate_name>
+ <css_class></css_class>
+ <default></default>
+ <description>Optional title for the widget.</description>
+ <display_maxwidth></display_maxwidth>
+ <display_width type="int">20</display_width>
+ <enabled type="int">1</enabled>
+ <external_validator></external_validator>
+ <extra></extra>
+ <hidden type="int">0</hidden>
+ <max_length></max_length>
+ <required type="int">0</required>
+ <title>Widget title</title>
+ <truncate type="int">0</truncate>
+ <unicode type="int">0</unicode>
+ <whitespace_preserve type="int">0</whitespace_preserve>
+ </values>
+ <tales>
+ </tales>
+ <messages>
+ <message name="external_validator_failed">The input failed the external validator.</message>
+ <message name="required_not_found">Input is required but no input given.</message>
+ <message name="too_long">Too much input was given.</message>
+ </messages>
+ </field>
+ <field><id>css-class</id> <type>StringField</type>
+ <values>
+ <alternate_name></alternate_name>
+ <css_class></css_class>
+ <default></default>
+ <description>Optional CSS (space-separated) class selectors for the widget <div> wrapper.</description>
+ <display_maxwidth></display_maxwidth>
+ <display_width type="int">20</display_width>
+ <enabled type="int">1</enabled>
+ <external_validator></external_validator>
+ <extra></extra>
+ <hidden type="int">0</hidden>
+ <max_length></max_length>
+ <required type="int">0</required>
+ <title>CSS classes</title>
+ <truncate type="int">0</truncate>
+ <unicode type="int">0</unicode>
+ <whitespace_preserve type="int">0</whitespace_preserve>
+ </values>
+ <tales>
+ </tales>
+ <messages>
+ <message name="external_validator_failed">The input failed the external validator.</message>
+ <message name="required_not_found">Input is required but no input given.</message>
+ <message name="too_long">Too much input was given.</message>
+ </messages>
+ </field>
</fields>
</group>
</groups>
diff -r 352a1fa9dd75 -r 2cb199d6d811 Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt
--- a/Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt Tue Oct 01 07:35:07 2013 +0200
+++ b/Products/SilvaExternalSources/codesources/cs_twitter_timeline/twitter_timeline.pt Tue Oct 01 17:37:39 2013 +0200
@@ -7,10 +7,12 @@
chrome options/data-chrome | nothing;
bordercolor options/data-border-color | nothing;
tweetlimit options/data-tweet-limit | nothing;
+ wtitle options/widget_title;
cssclass options/css-class | nothing;">
<!-- Twitter Timeline code source (cs_twittertimeline) -->
<div tal:attributes="class cssclass"
tal:omit-tag="not:cssclass">
+ <h3 tal:condition="wtitle" tal:content="wtitle"></h3>
<a tal:attributes="
href string:https://twitter.com/$username;
class string:twitter-timeline;