|
|
 |
 |
 |
manilaSuite.renderNewsPage
Fix invalid HTML in the link tage generated for RSS.
| on renderNewsPage (msgNum, flShowFlipButton=false, pta=nil) |
| |
try //12/13/02 JES: add <link> tag with the rsd.xml URL to pta^.meta |
| |
try //05/31/02 JES: add <link> tag with the RSS URL to pta^.meta |
| |
try //04/04/03 JES: add <link> tag with the URL of mySubscriptions.opml to pta^.meta |
| |
bundle //render news items if the pref is turned on |
| |
on untaint (adrText) //PBS 03/14/01: local routine; avoid string copy |
| |
local (adrRoot = mainResponder.discuss.openRoot (pta)) //PBS 06/20/00: use this in subsequent calls to get the address of a message table |
| |
local (msgTable = mainResponder.discuss.getMessageTable (msgNum, pta, adrRoot)) //PBS 06/20/00: send adrRoot parameter since it's available |
| |
local (htmlText = "", indentLevel = 0) |
| |
local (calendarHtml = "") |
| |
local (flPost = (pta^.method == "POST")) |
| |
local (now = clock.now ()) |
| |
local (newsHomeUrl = pta^.urls^.newsHome); untaint (@newsHomeUrl) |
| |
local (flStaticRendering = manilaSuite.staticRendering.isStaticRendering (pta)) //PBS 6/14/00: call once at top of script instead of once for each news day |
| |
local (flManagingEditor = pta^.flManagingEditor) //is this the managing editor? |
| |
local (adrNewsSite = pta^.newsSite) |
| |
on isDeleted (adrMsgTable) //PBS 03/14/01: optimization -- local routine |
| |
pta^.title = msgTable^.subject; untaint (@pta^.title) //the title comes from the dg message table |
| |
if isDeleted (msgTable) //PBS 12/13/99: no title if message has been deleted |
| |
bundle //the editor may not want a title to appear on the home page |
| |
bundle //get the postTime and lastUpdate time for this page |
| |
bundle //determine whether or not to display a byline |
| |
if flManagingEditor and flPost //update the home page text, build the static page |
| |
bundle //display the current news and calendar if turned on |
| |
pta^.calendar = calendarHtml //PBS 8/10/99 |
Relative to Frontier version 9.7b10
|