Changes for page Twitter User Feed Macro
Last modified by Ludovic Dubost on 2023/04/25 09:12
From version 13.1
edited by Ludovic Dubost
on 2016/05/26 19:02
on 2016/05/26 19:02
Change comment:
There is no comment for this version
To version 18.1
edited by Ludovic Dubost
on 2018/11/30 15:23
on 2018/11/30 15:23
Change comment:
Migrated property [type] from class [XWiki.WikiMacroParameterClass]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -4,6 +4,8 @@ 4 4 {{twitter_user user="ldubost" id="735876381935054848" /}} 5 5 {{/code}} 6 6 7 +{{twitter_user user="ldubost" id="735880118606925824" /}} 8 + 7 7 {{twitter_user user="ldubost" id="735876381935054848" /}} 8 8 9 9
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -1,6 +1,7 @@ 1 1 {{velocity}} 2 2 {{html}} 3 3 #set($user = $xcontext.macro.params.user) 4 +#set($id = $xcontext.macro.params.id) 4 4 <a class="twitter-timeline" href="https://twitter.com/${user}" data-widget-id="${id}">Tweets de @${user}</a> 5 5 <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> 6 6 {{/html}}