OK, here's one way of doing this.
In search_function.php, add the following code right after the function statement:
Code:
ob_start();
require("/path/to/header.inc.php");
$my_header_file = ob_get_contents();
ob_end_clean();
ob_start();
require("/path/to/menu.inc.php");
$my_menu_file = ob_get_contents();
ob_end_clean();
ob_start();
require("/path/to/nav.inc.php");
$my_nav_file = ob_get_contents();
ob_end_clean();
ob_start();
require("/path/to/naver.inc.php");
$my_naver_file = ob_get_contents();
ob_end_clean();
Also, find the following code in search_function.php:
Code:
$t_mstrings = compact('js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links');
Replace it with the following code:
Code:
$t_mstrings = compact('my_header_file ','my_menu_file ','my_nav_file ','my_naver_file ','js_for_clicks','rss_feed_link','powered_by_link','title_message','phpdig_version','result_message','nav_bar','ignore_message','ignore_commess','pages_bar','previous_link','next_link','templates_links');
In your template file, replace this:
Code:
<?include("inc/header.inc.php");?>
with this:
Code:
<phpdig:my_header_file/>
Replace this:
Code:
"<?include("inc/menu.inc.php");?>
with this:
Code:
<phpdig:my_menu_file/>
Replace this:
Code:
"<?include("inc/nav.inc.php");?>
with this:
Code:
<phpdig:my_nav_file/>
Replace this:
Code:
"<?include("inc/naver.inc.php");?>
with this:
Code:
<phpdig:my_naver_file/>
This should get you what you want. Let us know how it goes.