Starting at line 23:
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = str_replace('_', '', $_GET['main_page']);
// this file can be copied to /templates/your_template_dir/pagename
// example: to override the privacy page
// make a directory /templates/my_template/privacy
// copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php
// to override the global settings and turn off columns un-comment the lines below for the correct column to turn off
// to turn off the header and/or footer uncomment the lines below
// Note: header can be disabled in the tpl_header.php
// Note: footer can be disabled in the tpl_footer.php
// $flag_disable_header = true;
// $flag_disable_left = true;
// $flag_disable_right = true;
// $flag_disable_footer = true;
?>
<body id="<?php echo $body_id; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<?php require(DIR_WS_MODULES . 'header.php'); ?>
<table border="0" cellspacing="0" cellpadding="0" class="main_page">
<?php
if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div></td>
</tr>
<?php
}
}
?>
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_left
$flag_disable_left = true;
}
if (!$flag_disable_left) {
?>
<td valign="top" class="column_left"><table border="0" width="<?php echo COLUMN_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0" class="column_left"><tr><td>
<?php require(DIR_WS_MODULES . 'column_left.php'); ?>
</td></tr></table></td>
<?php
}
?>
<td valign="top" class="center_column" width="100%"><?php require($body_code); ?></td>
<?php
if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_right
$flag_disable_right = true;
}
if (!$flag_disable_right) {
?>
<td valign="top" class="column_right"><table border="0" width="<?php echo COLUMN_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0" class="column_right"><tr><td>
<?php require(DIR_WS_MODULES . 'column_right.php'); ?>
</td></tr></table></td>
<?php
}
?>
</tr>
<?php
if ($banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<tr>
<td align="center" colspan="3"><div class="banners"><?php echo zen_display_banner('static', $banner); ?></div> </td>
</tr>
<?php
}
}
?>
</table>
<?php require(DIR_WS_MODULES . 'footer.php'); ?>
</body>
Bookmarks