Revision c6fdba44 cloudcms/templates/content/twitter_feed.html
b/cloudcms/templates/content/twitter_feed.html | ||
---|---|---|
7 | 7 |
var el = $("#twitter_feeds_section_{{ content.pk }}"); |
8 | 8 |
$.twitter({{ content.js_conf|safe}}, function(tweets){ |
9 | 9 |
$.each(tweets.results, function(i,t){ |
10 |
var tweet = $('<div class="tweet">');
|
|
11 |
var date = $('<span class="date">');
|
|
12 |
var text = $('<span class="text">');
|
|
10 |
var tweet = $('<li>');
|
|
11 |
var date = $('<p class="date">');
|
|
12 |
var text = $('<p class="text">');
|
|
13 | 13 |
|
14 | 14 |
text.html(linkify(t.text)); |
15 | 15 |
date.html('<a href="https://twitter.com/#!/' + t.from_user + |
... | ... | |
24 | 24 |
|
25 | 25 |
}) |
26 | 26 |
</script> |
27 |
<div class="section twitter-feed">
|
|
27 |
<div class="follow">
|
|
28 | 28 |
{% if content.title %} |
29 |
<h2>{{ content.title|safe }}</h2>
|
|
29 |
<h3>{{ content.title|safe }}</h3>
|
|
30 | 30 |
{% endif %} |
31 |
<div id="twitter_feeds_section_{{ content.pk }}">
|
|
32 |
</div>
|
|
31 |
<ul id="twitter_feeds_section_{{ content.pk }}">
|
|
32 |
</ul>
|
|
33 | 33 |
</div> |
Also available in: Unified diff