asdfds
This commit is contained in:
parent
4a5886df49
commit
1a598e6b27
@ -46,11 +46,7 @@ foreach($paths_to_check as $page_dir){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ob_start();
|
$page_data = include_ob($page_file);
|
||||||
include $page_file;
|
|
||||||
$page_data = ob_get_clean();
|
|
||||||
|
|
||||||
$page_data = preg_replace($page_regex, '', $page_data);
|
|
||||||
|
|
||||||
$output = file_get_contents("$template_dir/skeleton.html");
|
$output = file_get_contents("$template_dir/skeleton.html");
|
||||||
$output = str_replace('<template name="navigation">', $nav, $output);
|
$output = str_replace('<template name="navigation">', $nav, $output);
|
||||||
@ -69,6 +65,7 @@ $page_regex = '/<!--PAGENAME=(.*?)-->/s';
|
|||||||
|
|
||||||
if(preg_match($page_regex, $page_data, $matches)){
|
if(preg_match($page_regex, $page_data, $matches)){
|
||||||
$page_name = $matches[1];
|
$page_name = $matches[1];
|
||||||
|
$page_data = preg_replace($page_regex, '', $page_data);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$page_name = ucfirst($page);
|
$page_name = ucfirst($page);
|
||||||
|
Loading…
Reference in New Issue
Block a user