/** * load all template-specific stylesheets, named like "style*.css", alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css'); while(list ($key, $value) = each($directory_array)) { echo ''."\n"; } /** * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza. */ $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : ''; $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : ''; $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base; if ($current_page_base == 'page' && isset($ezpage_id)) $tmp_pagename = $current_page_base . (int)$ezpage_id; $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet', '/' . $tmp_pagename, '/' . $_SESSION['language'] . '_' . $tmp_pagename, '/c_' . $cPath, '/' . $_SESSION['language'] . '_c_' . $cPath, '/m_' . $manufacturers_id, '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id, '/p_' . $tmp_products_id, '/' . $_SESSION['language'] . '_p_' . $tmp_products_id ); while(list ($key, $value) = each($sheets_array)) { //echo " \n"; $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css'; if (file_exists($perpagefile)) echo ''."\n"; } /** * load printer-friendly stylesheets -- named like "print*.css", alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css'); sort($directory_array); while(list ($key, $value) = each($directory_array)) { echo ''."\n"; } /** * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js'); while(list ($key, $value) = each($directory_array)) { echo ''."\n"; } /** * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically */ $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js'); while(list ($key, $value) = each($directory_array)) { echo '' . "\n"; } /** * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically */ $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php'); while(list ($key, $value) = each($directory_array)) { /** * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically. * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page */ require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n"; } /** * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. */ $directory_array = $template->get_template_part($page_directory, '/^jscript_/'); while(list ($key, $value) = each($directory_array)) { /** * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page */ require($page_directory . '/' . $value); echo "\n"; } //DEBUG: echo ' '; ?> /** * load the loader files */ if($RI_CJLoader->get('status') && (!isset($Ajax) || !$Ajax->status())){ $RI_CJLoader->autoloadLoaders(); $RI_CJLoader->loadCssJsFiles(); $files = $RI_CJLoader->header(); foreach($files['css'] as $file) if($file['include']) { include($file['src']); } else if (!$RI_CJLoader->get('minify_css') || $file['external']) { echo "\n"; } else { echo "get('minify_time')."\" />\n"; } foreach($files['jscript'] as $file) if($file['include']) { include($file['src']); } else if(!$RI_CJLoader->get('minify_js') || $file['external']) { echo "\n"; } else { echo "\n"; } } //DEBUG: echo ''; ?>
/* prepares and displays header output */ if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_HEADER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) { $flag_disable_header = true; } require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php'); ?> if($this_is_home_page){ ?>
$new_banner_search = zen_build_banners_group(SHOW_BANNERS_GROUP_SET1); // secure pages switch ($request_type) { case ('SSL'): $my_banner_filter=" and banners_on_ssl= " . "1"; break; case ('NONSSL'): $my_banner_filter=''; break; } $sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order"; $banners_all = $db->Execute($sql); // if no active banner in the specified banner group then the box will not show $banner_cnt = 0; while (!$banners_all->EOF) { $banner_cnt++; $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1); echo '
'.zen_display_banner('static', $banners_all->fields['banners_id']).'
'; // add spacing between banners if ($banner_cnt < $banners_all->RecordCount()) { } $banners_all->MoveNext(); } ?>
// secure pages switch ($request_type) { case ('SSL'): $my_banner_filter=" and banners_on_ssl= " . "1"; break; case ('NONSSL'): $my_banner_filter=''; break; } $sql = "select banners_id from " . TABLE_BANNERS . " where status = 1 " . $new_banner_search . $my_banner_filter . " order by banners_sort_order"; $banners_all = $db->Execute($sql); // if no active banner in the specified banner group then the box will not show $banner_cnt = 0; while (!$banners_all->EOF) { $banner_cnt++; $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2); echo '
'.zen_display_banner('static', $banners_all->fields['banners_id']).'
'; // add spacing between banners if ($banner_cnt < $banners_all->RecordCount()) { } $banners_all->MoveNext(); } ?>
} ?> if(!$this_is_home_page){ ?> if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_left $flag_disable_left = true; } if (!isset($flag_disable_left) || !$flag_disable_left) { ?> /* ----- prepares and displays left column sideboxes ----- */ ?> } ?> if (COLUMN_RIGHT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) { // global disable of column_right $flag_disable_right = true; } if (!isset($flag_disable_right) || !$flag_disable_right) { ?> /* ----- prepares and displays right column sideboxes ----- */ ?> } ?>
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) { if ($banner->RecordCount() > 0) { ?> } } ?>
/* ----- prepares and displays center column ----- */ require($body_code); ?>
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) { if ($banner->RecordCount() > 0) { ?> } } ?>
} ?> /* prepares and displays footer output */ if (CUSTOMERS_APPROVAL_AUTHORIZATION == 1 && CUSTOMERS_AUTHORIZATION_FOOTER_OFF == 'true' and ($_SESSION['customers_authorization'] != 0 or $_SESSION['customer_id'] == '')) { $flag_disable_footer = true; } require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php'); ?> if (DISPLAY_PAGE_PARSE_TIME == 'true') { ?> } ?> if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) { if ($banner->RecordCount() > 0) { ?> } } ?>
/** * Load general code run before page closes */ ?>