diff options
author | pberry <pberry> | 2002-11-27 20:13:57 +0000 |
---|---|---|
committer | pberry <pberry> | 2002-11-27 20:13:57 +0000 |
commit | 54f310e8e067fca869b66e9faf9121125ce773bd (patch) | |
tree | a5bb17bcecfe2fefd61b468a260933a1a0a17f24 /month.php | |
parent | 06a3d37766f991bac0e9f9a2e882ede2b9ca8c74 (diff) | |
download | phpicalendar-54f310e8e067fca869b66e9faf9121125ce773bd.tar.gz phpicalendar-54f310e8e067fca869b66e9faf9121125ce773bd.tar.bz2 phpicalendar-54f310e8e067fca869b66e9faf9121125ce773bd.zip |
RSS auto-discovery link now honors $enable_rss. In other words, if we
don't do RSS, don't both printing the link tag
Diffstat (limited to 'month.php')
-rw-r--r-- | month.php | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -50,7 +50,13 @@ $num_of_events = 0; <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 + // if RSS is enabled, set the RSS auto-discovery link + if ($enable_rss == 'yes') + { + echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"RSS\" href=\"".$default_path."/rss/rss.php?cal=".$cal."&rssview=month\">"; + } + ?> <?php include (BASE.'functions/event.js'); ?> </head> <body> |