aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpberry <pberry>2002-11-24 16:33:38 +0000
committerpberry <pberry>2002-11-24 16:33:38 +0000
commitac62b5bc2658e26dfa3f044fb682cc9d0c83e651 (patch)
treed9277f6afbaf03361147bbef39c7ecd8eeb57c97
parent620e88e724abdb2e922d2803523434c1be417881 (diff)
downloadphpicalendar-ac62b5bc2658e26dfa3f044fb682cc9d0c83e651.tar.gz
phpicalendar-ac62b5bc2658e26dfa3f044fb682cc9d0c83e651.tar.bz2
phpicalendar-ac62b5bc2658e26dfa3f044fb682cc9d0c83e651.zip
RSS auto-discovery link added to day,week, and month view.
$default_path must be set correctly for this feature to work.
-rw-r--r--day.php1
-rw-r--r--month.php1
-rw-r--r--week.php1
3 files changed, 3 insertions, 0 deletions
diff --git a/day.php b/day.php
index 266ba42..09877c6 100644
--- a/day.php
+++ b/day.php
@@ -51,6 +51,7 @@ if (is_array($master_array[($getdate)])) {
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_date"; ?></title>
<link rel="stylesheet" type="text/css" href="styles/<?php echo $style_sheet.'/default.css'; ?>">
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $default_path.'/rss/rss.php?cal='.$cal.'&rssview=day'; ?>">
<?php include (BASE.'functions/event.js'); ?>
</head>
<body bgcolor="#FFFFFF">
diff --git a/month.php b/month.php
index f7f1092..03475ed 100644
--- a/month.php
+++ b/month.php
@@ -49,6 +49,7 @@
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_month"; ?></title>
<link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $default_path.'/rss/rss.php?cal='.$cal.'&rssview=month'; ?>">
<?php include (BASE.'functions/event.js'); ?>
</head>
<body>
diff --git a/week.php b/week.php
index d4d65f1..558122d 100644
--- a/week.php
+++ b/week.php
@@ -57,6 +57,7 @@ for ($i=0;$i<7;$i++) {
<meta http-equiv="content-type" content="text/html;charset=UTF-8">
<title><?php echo "$calendar_name - $display_date"; ?></title>
<link rel="stylesheet" type="text/css" href="styles/<?php echo "$style_sheet/default.css"; ?>">
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="<?php echo $default_path.'/rss/rss.php?cal='.$cal.'&rssview=week'; ?>">
<?php include BASE.'functions/event.js'; ?>
</head>
<body bgcolor="#FFFFFF">

© 2014-2024 Faster IT GmbH | imprint | privacy policy