zencart 如何调用边框等

 近�硎冀K在�{度zen-cart,找到了下面�@篇文章,是�τ谝�是批改zen cart模版的,�H有效,,跟大家分享一下。

DIR_WS_CATALOG // zent cat目次 �@些在includes/configure.php定�x

meta_tags.php //界�f站�c的meta信息。�@些是�����熘腥∵M去的。在includes/modules/上面

HTML_PARAMS //模��Z言常量文件定�x的。

$current_page_base 在includes/init_inicludes/init_sanitize.php $_GET['main_page']

manufacturers_id 生制作�S商ID

product_id 打造品ID

$tmp_pagename index_home
有加�dmodules/pages

======================
首�加�d的文件
html_header.php

tpl_index_default.php {indeXDefaultMainContent 首�可以��}

tpl_modules_featured_products.php -> tpl_columnar_display.php
bannerOne banners [後台bannner控制]

logo 修正 tpl_header.php �面 在模�的images/logo.gif

id=”mainwrapper”

common/tpl_header.php 死守:全部�面的�眉 基�A��底�可以毋庸可以或�S�V而告之用

id=”headerwrapper”

navColumnOnewrapper

navEZpagesTOp �易�面的毗�B

左�分�在 templates/模�/sideboxes/上面 sql��翟�categories.php
=============================

1. 在首��部增�M�接的方式。
找到模�文件�A上面的zcen/tpl_header.php
在#topbarwrap�c#topbar 增�L一��<div>�接</div> 内�Y��上你要的�B�

2. Logo的替�Q。�@��在後台是不有的。在�Z包的文件�Y定�x。
找到languages/english/zcen/header.php 找到Header_logo_image 常量 批改
或�S 替�Q 模�下面的 logo.gif文件/includes/templates/zcen/images/logo.gif

3. �Ш�诘钠餍怠策@��後台的�I��的)
款式�{�#navEZPagesTop
後台的 ��嫡{解:0 1 2
後台的 ezpage配置

4. 首�分��Q呼的批改
掀�_ /templates/languages/english.php
找到:define(“BOX_HEADING_CATEGORIES”,”CATEGORIES”)
改��:define(“BOX_HEADING_CATEGORIES”,”Select you game”);
主`
D:\WEB\zen-cart\includes\templates\classic\css\stylesheet.css
整���面�C�P
D:\WEB\zen-cart\includes\templates\template_default\common\tpl_main_page.php
�W��[布��width源代�a:<td id=”navColumnOne” class=”columnLeft” style=”width: 150px;”>
�犹��{用width: <?php echo COLUMN_WIDTH_LEFT; ?>”>,
在後台-configuration-layout�Y可以更��Column Width/

Column Width – Left Boxes
商品分�名�QCategories�更:BOX_HEADING_CATEGORIES,
“D:\WEB\zen-cart\includes\languages\english.php”(78,11): define(‘BOX_HEADING_CATEGORIES’, ‘Categories’);

spooer�Q�f�D�:define(‘BOX_HEADING_BANNER_BOX’,’Sponsors’)
默�J模�,左spooner���’BOX_HEADING_BANNER_BOX’ 右上spooer��’BOX_HEADING_BANNER_BOX_ALL’
右下spooer���BOX_HEADING_BANNER_BOX2

左��诖胫茫弘b生活includes\templates\template_default\sideboxes\tpl_categories.php,在内中增多
�D片�接

右��诘奶�置:
1.後台�O置��保管who’s onlie(sideboxes/whos_online.php),
�c之���的 tpl_box_default_right.php,查找<?php echo $title; ?>�M行��w

2.添加左��谀磕J剑���tpl_box_default_right.php�D�:

中部批改:
===========
\includes\templates\template_default\templates\tpl_index_default.php

去掉�部注明:<?php if (SHOW_CUSTOMER_GREETING == 1) { ?>
<h2 class=”greeting”><?php echo zen_customer_greeting(); ?></h2>
<?php } ?>

去掉�g迎信息:
<h1 id=”indexDefaultHeading”><?php echo HEADING_TITLE; ?></h1>

去掉�部�Ш剑�
\includes\templates\template_default\co妹妹on\tpl_main_page.php
<div id=”navBreadCrumb”><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
模��部批改:
==========
\zen-cart\includes\templates\template_default\common

\tpl_header.php
<div id=”navMain”></div>内可增�M�接
<?php
/**
* 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’);?>

上段��<div id=”mainWrapper”>拔出,放在它後背做全屏�Ш桨�K
�部搜�ぐ粹o批改:
\includes\templates\template_default\co妹妹on\tpl_header.php :
<div id=”navMainSearch”><?php require(DIR_WS_MODULES . ‘sideboxes/search_header.php’); ?></div>
�x�S生成�Ш��:
\includes\templates\template_default\templates\
tpl_modules_categories_tabs.php
将其代�a掏空,重新添加�Ш酱��a:
~~~~~~~~~~~~~~~~~~~~~~~~~
<?php
/**
* Module Template – categories_tabs
*
* Template stub used to display categories-tabs output
*
* @package templateSystem
* @copyright Copyright 2003-2005 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_modules_categories_tabs.php 3395 2006-04-08 21:13:00Z ajeh $
*/

include(DIR_WS_MODULES . zen_get_module_dire首席技�g官ry(FILENAME_CATEGORIES_TABS));
?>
<?php if (CATEGORIES_TABS_STATUS ==

’1′ && sizeof($links_list) >= 1) { ?>
<div id=”navCatTabsWrapper”>
<div id=”navCatTabs”>
<ul>
<?php for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
<li><?php echo $links_list[$i];?></li>
<?php } ?>
</ul>
</div>
</div>
<?php } ?>
~~~~~~~~~~~~~~~~~~~~~~

的log布景:
\zen-cart\includes\templates\template_default\common

\tpl_header.php
<div id=”tagline”><?php echo HEADER_SALES_TEXT;?></div>
底部�Ш叫拚�:
\includes\templates\template_default\co妹妹on\tpl_main_page.php
<div id=”bannerSix” class=”banners”><?php echo zen_display_banner(‘static’, $banner); ?></div>

你可能感兴趣的:(zencart)