Thread Rating:
  • 24 Vote(s) - 3.83 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page Manager - Create and manage additional pages!
#54
Very nice plugin!

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);

?>
Reply


Messages In This Thread
RE: Page Manager - Create and manage additional pages! - by ansar_m - 2010-01-19, 10:32 AM

Forum Jump:


Users browsing this thread: 18 Guest(s)