Changeset 455 for trunk/plog-rss.php


Ignore:
Timestamp:
03/25/07 23:01:23 (3 years ago)
Author:
mike
Message:

+ Fix RSS feed functionality, add Plogger descriptions to feed and make sure to encode HTML entities (XML does not allow non-breaking space)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plog-rss.php

    r268 r455  
    33include_once("plog-functions.php"); 
    44include_once("plog-globals.php"); 
     5include_once("plog-load_config.php"); 
    56 
    67function generate_RSS_feed ($level, $id, $search = "") { 
     
    7576                $pagelink = plogger_get_picture_url(); 
    7677                 
     78                if ($caption == "" || $caption == " ") $caption = "New Photograph (no caption)"; 
     79                 
    7780                $discript = '<p><a href="'.$pagelink.'"   
    7881                title="'.$caption.'"> 
    7982                <img src="'.$thumbpath.'" alt="'.$caption.'" style="border: 1px solid #000000;" /> 
    8083                </a></p><p>'.$caption.'</p>'; 
     84                 
     85                $discript .= '<p>'.htmlspecialchars(plogger_get_picture_description()).'</p>'; 
    8186                         
    82                 if ($caption == "") $caption = "New Photograph (no caption)"; 
    8387                $rssFeed .= "<pubDate>" . $date . "</pubDate>\n"; 
    8488                $rssFeed .= "<title>" .$caption .  "</title>\n"; 
Note: See TracChangeset for help on using the changeset viewer.