OSDN Git Service

org:WebTrack/21: RSS auto-discovery
authorhenoheno <henoheno>
Tue, 2 Nov 2004 13:45:37 +0000 (22:45 +0900)
committerhenoheno <henoheno>
Tue, 2 Nov 2004 13:45:37 +0000 (22:45 +0900)
lib/html.php
skin/pukiwiki.skin.php

index 3c04b6e..42856c0 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: html.php,v 1.10 2004/10/30 07:02:46 henoheno Exp $
+// $Id: html.php,v 1.11 2004/11/02 13:45:37 henoheno Exp $
 //
 
 // ËÜʸ¤ò½ÐÎÏ
@@ -43,11 +43,12 @@ function catbody($title,$page,$body)
        $_LINK['help']     = "$script?" . rawurlencode($help_page);
        $_LINK['list']     = "$script?cmd=list";
        $_LINK['new']      = "$script?plugin=newpage&amp;refer=$r_page";
+       $_LINK['rdf']      = "$script?cmd=rss10";
        $_LINK['recent']   = "$script?" . rawurlencode($whatsnew);
        $_LINK['refer']    = "$script?plugin=referer&amp;page=$r_page";
        $_LINK['reload']   = "$script?$r_page";
        $_LINK['rename']   = "$script?plugin=rename&amp;refer=$r_page";
-       $_LINK['rss']      = "$script?cmd=rss10";
+       $_LINK['rss']      = "$script?cmd=rss";
        $_LINK['search']   = "$script?cmd=search";
        $_LINK['top']      = "$script?" . rawurlencode($defaultpage);
        if ($trackback) {
@@ -70,6 +71,7 @@ function catbody($title,$page,$body)
        $link_backup    = & $_LINK['backup'];
        $link_help      = & $_LINK['help'];
        $link_trackback = & $_LINK['trackback'];        // New!
+       $link_rdf       = & $_LINK['rdf'];              // New!
        $link_rss       = & $_LINK['rss'];
        $link_freeze    = & $_LINK['freeze'];
        $link_unfreeze  = & $_LINK['unfreeze'];
index 863cf41..b11ab90 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: pukiwiki.skin.php,v 1.16 2004/11/01 12:56:50 henoheno Exp $
+// $Id: pukiwiki.skin.php,v 1.17 2004/11/02 13:45:37 henoheno Exp $
 //
 
 // Prohibit direct access
@@ -64,6 +64,7 @@ if ($html_transitional) { ?>
  <title><?php echo "$title - $page_title" ?></title>
  <link rel="stylesheet" href="skin/pukiwiki.css.php?charset=<?php echo $css_charset ?>" type="text/css" media="screen" charset="<?php echo $css_charset ?>" />
  <link rel="stylesheet" href="skin/pukiwiki.css.php?charset=<?php echo $css_charset ?>&amp;media=print" type="text/css" media="print" charset="<?php echo $css_charset ?>" />
+  <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $link['rss']$ ?>" /><?php // RSS auto-discovery ?>
 
 <?php if (PKWK_JAVASCRIPT && $trackback_javascript) { ?> <script type="text/javascript" src="skin/trackback.js"></script><?php } ?>