* adjust comments for only body feature.
This commit is contained in:
@@ -107,7 +107,7 @@ class helper
|
||||
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 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";
|
||||
|
||||
@@ -86,7 +86,7 @@ class html
|
||||
if(empty($title)) $title = $href;
|
||||
$newline = $newline ? "\n" : '';
|
||||
|
||||
//if page has onlybody param then add this param in all link. the param hide header and footer.
|
||||
/* if page has onlybody param then add this param in all link. the param hide header and footer. */
|
||||
if(strpos($href, 'onlybody=yes') === false and isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes')
|
||||
{
|
||||
$onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes";
|
||||
|
||||
Reference in New Issue
Block a user