patch by onli to support plugin channel data
This commit is contained in:
parent
90259f5770
commit
a490fd53ec
@ -3,6 +3,10 @@
|
||||
Version 1.6 ()
|
||||
------------------------------------------------------------------------
|
||||
|
||||
* Add new template variable to feed*.tpl files to support new
|
||||
plugins like pubsubhubbub, so that plugins can embed data to the
|
||||
main XML element (onli)
|
||||
|
||||
* To support custom PHP sessions, s9y will only issue session_start,
|
||||
if no session exists yet (garvinhicking)
|
||||
|
||||
|
2
rss.php
2
rss.php
@ -247,11 +247,13 @@ switch($version) {
|
||||
|
||||
serendipity_plugin_api::hook_event($namespace_hook, $entries);
|
||||
$namespace_display_dat = $entries['display_dat'];
|
||||
$channel_display_dat = $entries['channel_dat'];
|
||||
unset($entries['display_dat']);
|
||||
|
||||
$serendipity['smarty']->assign_by_ref('metadata', $metadata);
|
||||
$serendipity['smarty']->assign_by_ref('entries', $entries);
|
||||
$serendipity['smarty']->assign_by_ref('namespace_display_dat', $namespace_display_dat);
|
||||
$serendipity['smarty']->assign_by_ref('channel_display_dat', $channel_display_dat);
|
||||
$serendipity['smarty']->assign_by_ref('once_display_dat', $once_display_dat);
|
||||
|
||||
$serendipity['smarty']->assign(
|
||||
|
@ -9,6 +9,7 @@
|
||||
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
||||
{$namespace_display_dat}>
|
||||
<channel>
|
||||
{$channel_display_dat}
|
||||
<title>{$metadata.title}</title>
|
||||
<link>{$metadata.link}</link>
|
||||
<description>{$metadata.description}</description>
|
||||
|
@ -8,6 +8,7 @@
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
||||
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
|
||||
{$channel_display_dat}
|
||||
<link href="{$serendipityBaseURL}rss.php?version=atom0.3" rel="service.feed" title="{$metadata.title}" type="application/x.atom+xml" />
|
||||
<link href="{$serendipityBaseURL}" rel="alternate" title="{$metadata.title}" type="text/html" />
|
||||
<link href="{$serendipityBaseURL}rss.php?version=2.0" rel="alternate" title="{$metadata.title}" type="application/rss+xml" />
|
||||
|
@ -8,6 +8,7 @@
|
||||
xmlns:admin="http://webns.net/mvcb/"
|
||||
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
|
||||
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
|
||||
{$channel_display_dat}
|
||||
<link href="{$self_url}" rel="self" title="{$metadata.title}" type="application/atom+xml" />
|
||||
<link href="{$serendipityBaseURL}" rel="alternate" title="{$metadata.title}" type="text/html" />
|
||||
<link href="{$serendipityBaseURL}rss.php?version=2.0" rel="alternate" title="{$metadata.title}" type="application/rss+xml" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user