* change hide footer and header not use hook.

This commit is contained in:
wangyidong
2012-08-28 09:29:32 +00:00
parent 3891ce2ac3
commit b060a6bb41
8 changed files with 42 additions and 16 deletions

View File

@@ -106,6 +106,13 @@ class helper
if($viewType != 'html') $link .= "&{$config->viewVar}=" . $viewType;
foreach($vars as $key => $value) $link .= "&$key=$value";
}
//if page has onlybody param then add this param in all link. the param hide header and footer.
if(isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes')
{
$onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes";
$link .= $onlybody;
}
return $link;
}