|
Revision 5, 0.9 kB
(checked in by DanWilson, 17 years ago)
|
|
Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)
|
| Line | |
|---|
| 1 | <cfparam name="url.id" default=""> |
|---|
| 2 | <cfif not len(url.id)> |
|---|
| 3 | <cfabort> |
|---|
| 4 | </cfif> |
|---|
| 5 | |
|---|
| 6 | <cfset tweetbacks = application.sweetTweets.getTweetbacks(application.blog.makeLink(id), 10)/> |
|---|
| 7 | |
|---|
| 8 | <cfif arrayLen(tweetbacks)> |
|---|
| 9 | |
|---|
| 10 | <cfloop index="x" from="1" to="#arrayLen(tweetbacks)#"> |
|---|
| 11 | <cfset tb = tweetbacks[x]> |
|---|
| 12 | <cfoutput> |
|---|
| 13 | <div class="tweetback<cfif x mod 2>Alt</cfif>"> |
|---|
| 14 | <div class="tweetbackBody"> |
|---|
| 15 | <img src="#tb.profile_image_url#" alt="#tb.from_user#'s Profile" border="0"> |
|---|
| 16 | #paragraphFormat2(tb.text)# |
|---|
| 17 | </div> |
|---|
| 18 | <div class="tweetbackByLine"> |
|---|
| 19 | #rb("postedby")# <a href="http://www.twitter.com/#tb.from_user#">#tb.from_user#</a> |
|---|
| 20 | | #application.localeUtils.dateLocaleFormat(tb.created_at,"short")# #application.localeUtils.timeLocaleFormat(tb.created_at)# |
|---|
| 21 | </div> |
|---|
| 22 | </div> |
|---|
| 23 | </cfoutput> |
|---|
| 24 | </cfloop> |
|---|
| 25 | |
|---|
| 26 | <cfelse> |
|---|
| 27 | <cfoutput><div class="tweetbackBody">#application.resourceBundle.getResource("notweetbacks")#</div></cfoutput> |
|---|
| 28 | </cfif> |
|---|