Changeset 169

Show
Ignore:
Timestamp:
01/03/07 09:36:37 (14 years ago)
Author:
Mitchman
Message:

smarty rss_feed variable is set in the page class so it can be accessed in the header of the index.tpl template. This makes it possible to add a <link rel="alternative"...> header making it possible for browsers to autodetect when the rss feed is available.

Location:
dev
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.page.php

    r134 r169  
    5858        if (!$this->igb_) 
    5959        { 
     60            if (strpos($config->getConfig('mods_active'), 'rss_feed') !== false) 
     61            { 
     62                $smarty->assign('rss_feed', 1); 
     63            } 
    6064            if (MAIN_SITE) 
    6165            { 
  • dev/templates/index.tpl

    r154 r169  
    66<link rel="stylesheet" type="text/css" href="{$style_url}/common.css"> 
    77<link rel="stylesheet" type="text/css" href="{$style_url}/{$style}/style.css"> 
     8{if $rss_feed} 
     9<link rel="alternate" type="application/rss+xml" title="RSS feed for watched kills" href="?a=rss" /> 
     10{/if} 
    811<script language=javascript src="{$common_url}/generic.js"></script> 
    912