Tuesday, August 18, 2009 at 7:29 PM.
myTwitterProfileSuite.getFeedLinksHtml
on getFeedLinksHtml (feedname, thisDate) { <<Changes <<5/28/09; 6:20:06 PM by DW <<Created. Return the HTML for the feed links that go in the right margin. local (adrdata = myTwitterProfileSuite.init ()); local (htmltext = "", indentlevel = 0); on add (s) { htmltext = htmltext + string.filledstring ("\t", indentlevel) + s + "\r"}; on visit (adritem) { if adritem^.feed == feedname { local (day, month, year, hour, minute, second); date.get (adritem^.pubdate, @day, @month, @year, @hour, @minute, @second); local (s = date.monthtostring (month) + " " + day); if adritem^.pubdate == thisdate { add ("<b>" + s + "</b><br /><br />")} else { add ("<a href=\"" + adritem^.permalink + "\">" + s + "</a><br /><br />")}}}; mainResponder.calendar.visitReverseChronologic (@adrdata^.calendar, @visit); return (htmltext)}; bundle { //test code webbrowser.displaytext (getFeedLinksHtml ("rebootNews", config.myTwitterProfile.calendar.["2009"].["05"].["19"].["000095"].pubDate))}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.