* Normally consisting of a header, left side column. center column. right side column and footer
* For customizing, 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;
*
* // example to not display right column on main page when Always Show Categories is OFF
*
* if ($current_page_base == 'index' and $cPath == '') {
* $flag_disable_right = true;
* }
*
* example to not display right column on main page when Always Show Categories is ON and set to categories_id 3
*
* if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {
* $flag_disable_right = true;
* }
*
* @package templateSystem
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php 7085 2007-09-22 04:56:31Z ajeh $
*/
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = ($this_is_home_page) ? 'indexHome' : str_replace('_', '', $_GET['main_page']);
?>
>
RecordCount() > 0) {
?>
get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
|
trail(BREAD_CRUMBS_SEPARATOR); ?>
RecordCount() > 0) {
?>
size('upload') > 0) echo $messageStack->output('upload'); ?>
RecordCount() > 0) {
?>
|
|
get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');
?>