2017-02-20, 07:06 PM
Hey there,
I'm wanting to pull a custom template into a php page made with page manager. I've tried the following:
The page loads but the
Does not load. The template is located in my global templates. I'm just not sure how to call it forth and show in the php page of the Page Manager plugin page.
Any help is appreciated!
I'm wanting to pull a custom template into a php page made with page manager. I've tried the following:
<?php
global $headerinclude, $header, $theme, $footer, $db;
add_breadcrumb($pages['name']);
$template='<html><head><title>'.$mybb->settings['bbname']." - ".$pages['name'].'</title>{$headerinclude}</head><body>{$header}
Testing beep? <br /><br />
{$guidebook}
{$footer}</body></html>';
$template=str_replace("\'", "'", addslashes($template));
eval("\$page=\"".$template."\";");
eval("\$guidebook=\"".$templates->get.("guidebook")."\";");
output_page($page);
?>
The page loads but the
{$guidebook}
Does not load. The template is located in my global templates. I'm just not sure how to call it forth and show in the php page of the Page Manager plugin page.
Any help is appreciated!