Get rid of the BEGIN/END tags in html output (head.tpl)

This commit is contained in:
Miles Lott 2004-01-01 22:57:07 +00:00
parent f66894895a
commit 545d949dfe
9 changed files with 13 additions and 8 deletions

View File

@ -19,7 +19,8 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl'));
$tpl->set_file(array('_head' => 'head.tpl'));
$tpl->set_block('_head','head');
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
$app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':'';

View File

@ -14,4 +14,4 @@
{java_script}
</HEAD>
<BODY {body_tags}>
<!-- END Head -->
<!-- END head -->

View File

@ -64,7 +64,8 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl'));
$tpl->set_file(array('_head' => 'head.tpl'));
$tpl->set_block('_head','head');
$app = $GLOBALS['phpgw_info']['flags']['currentapp'];
$app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':'';

View File

@ -22,4 +22,4 @@
</head>
<!-- we don't need body tags anymore, do we?) we do!!! onload!! LK -->
<body {body_tags}>
<!-- END Head -->
<!-- END head -->

View File

@ -32,5 +32,5 @@ function MM_preloadImages()
{java_script}
<TITLE>{website_title}</TITLE>
</HEAD>
<!-- idsociety body tags continue into navbar.tpl, so the closing bracket here is there END Head -->
<!-- idsociety body tags continue into navbar.tpl, so the closing bracket here is there END head -->
<BODY {body_tags}

View File

@ -31,7 +31,8 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl'));
$tpl->set_file(array('_head' => 'head.tpl'));
$tpl->set_block('_head','head');
$var = Array (
'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico',
'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico',

View File

@ -28,3 +28,4 @@ function pageInit()
<TITLE>{website_title} - {app_name}</TITLE>
</HEAD>
<BODY onLoad="pageInit()">
<!-- END head -->

View File

@ -20,7 +20,8 @@
$tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR);
$tpl->set_unknowns('remove');
$tpl->set_file(array('head' => 'head.tpl'));
$tpl->set_file(array('_head' => 'head.tpl'));
$tpl->set_block('_head','head');
$var = Array (
'img_icon' => PHPGW_IMAGES_DIR . '/favicon.ico',
'img_shortcut' => PHPGW_IMAGES_DIR . '/favicon.ico',

View File

@ -15,4 +15,4 @@
<TITLE>{website_title}</TITLE>
</HEAD>
<BODY {body_tags}>
<!-- END Head -->
<!-- END head -->