From f96fa4150f2a8cda508b91dace3a81d166b54692 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 25 Nov 2005 13:37:35 +0100 Subject: Automatic adding of feeds and alternative versions can be disabled in template darcs-hash:20051125123735-7ad00-78780796c46463692d5ae9310ddc7f136349380f.gz --- inc/template.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/inc/template.php b/inc/template.php index cd2531597..4993de19c 100644 --- a/inc/template.php +++ b/inc/template.php @@ -158,9 +158,10 @@ function tpl_admin(){ * * This has to go into the head section of your template. * + * @param boolean $alt Should feeds and alternative format links be added? * @author Andreas Gohr */ -function tpl_metaheaders(){ +function tpl_metaheaders($alt=true){ global $ID; global $INFO; global $ACT; @@ -172,10 +173,13 @@ function tpl_metaheaders(){ ptln('',$it); ptln('',$it); ptln('',$it); - ptln('',$it); - ptln('',$it); - ptln('',$it); - ptln('',$it); + + if($alt){ + ptln('',$it); + ptln('',$it); + ptln('',$it); + ptln('',$it); + } // setup robot tags apropriate for different modes if( ($ACT=='show' || $ACT=='export_html') && !$REV){ -- cgit v1.2.3