From c35f387572e617635e061b9b5fd335e88442f319 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 19 Jun 2008 23:42:33 +0200 Subject: Support for the Universal Edit Button autodetection See http://universaleditbutton.org for details darcs-hash:20080619214233-7ad00-89dd00369551379f7102a4e78cb3625227ba9cf9.gz --- inc/template.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inc/template.php b/inc/template.php index 4ef3c0fab..b86f62a62 100644 --- a/inc/template.php +++ b/inc/template.php @@ -258,6 +258,12 @@ function tpl_metaheaders($alt=true){ $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/rss+xml', 'title'=>'Current Namespace', 'href'=>DOKU_BASE.'feed.php?mode=list&ns='.$INFO['namespace']); + if(($ACT == 'show' || $ACT == 'search') && $INFO['writable']){ + $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/wiki', + 'title'=>$lang['btn_index'], + 'href'=> wl($ID,'do=edit',false,'&')); + } + if($ACT == 'search'){ $head['link'][] = array( 'rel'=>'alternate', 'type'=>'application/rss+xml', 'title'=>'Search Result', -- cgit v1.2.3