2010-01-19, 10:32 AM
Very nice plugin!
How can I put php code between header and footer?
For example I am using below code but does not work:
How can I put php code between header and footer?
For example I am using below code but does not work:
<?php
global $headerinclude, $header, $theme, $footer;
$template='<html>
<head>
<title>'.$pages['name'].'</title>
{$headerinclude}
</head>
<body>
{$header}
<?php
echo "PHP CODE";
?>
{$footer}
</body>
</html>';
$template=str_replace("\'", "'", addslashes($template));
add_breadcrumb($pages['name']);
eval("\$page=\"".$template."\";");
output_page($page);
?>