Zencart css rules
Zen Cart the stylesheet is placed in this folder inside :/ includes / templates / YOUR_TEMPLATE / css
Next we look at how to use the built-in functions to achieve Zen Cart page introduction for some specific stylesheets.
CSS files will be sent to the browser the following order : ( if there are multiple cases belonging to the same css, they will be in alphabetical order sent to the browser , for example, if both exist stylea.css and styleb.css, then Zen Cart will stylea.css, styleb.css css file in the order sent to the browser ) :
style *. css / / css file that is loaded on all pages , the majority of the site is generally written in the stylesheet.css inside css
language_stylesheet.css / / When your language is the language specified for this css file , the css file valid for all pages . For example english_stylesheet.css language used on the site is in English when the website will be valid for all pages .
page_name.css / / only the current page is page_name on the site , this css file to work. For example login.css only works on the login page . ( If you want your css only work in the home , then you use index_home.css)
language_page_name.css / / When your language is the language specified in the css file , and the site is page_name when the current page , the css file will be called.
c_??. css / / will be called in the catalog page
language_c_??. css / / When your language is the language specified in the css file , this css file will be called in the catalog page
m_??. css / / will be called the manufacturer list page
language_m_??. css / / When your language is the language specified in the css file , this css file will be called in the Manufacturers list
p_??. css / / will be in a particular product page is called. For example , p_1.css, this document only product_id as a function of the product page
language_p_??. css / / When your language is the language specified in the css file , this css file will be called on the product page
print *. css / / Only use the printer to print the page, the css file will work.
/ \ * tpa = http:// [^ \ s] *. * \ * / regular replacement
zen_get_new_date_range
index module
The main part of the load order
tpl_index_categories.php click product classification if there is this sub- classification ----------------- ( including sub- classification )
- Will use the file tpl_modules_category_row.php-->
- > Use category_row.php for data processing,
- > Use tpl_columnar_display.php for data output
tpl_index_product_list.php --------------- no sub- classification -
- Will use the product list tpl_modules_product_listing.php, its
- > Use product_listing.php for data processing,
- > Use tpl_tabular_display.php for data output
tpl_index_default.php just open the home when the
Home New Products - will be used documents tpl_modules_whats_new.php, its
- > Use new_products.php for data processing,
- > Use tpl_columnar_display.php for data output
Home Featured Products - will be used tpl_modules_featured_php
- > Use featured_products.php for data processing,
- > Use tpl_columnar_display.php for data output
Home Specials - will be used tpl_modules_specials_default.php
- > Use specials_index.php for data processing,
- > Use tpl_columnar_display.php for data output
New Products moudles / pages / products_new module
products_new -> header.php
html_header.php
main_template_vars.php-- Define the default main pages tpl_products_new_default.php
Main part tpl_products_new_default.php-- contains template page tpl_modules_products_new_listing.php
tpl_modules_listing_display_order.php
Use the output tpl_modules_products_new_listing.php
Recommended product moudles / pages / featured_products module
featured_products -> header.php
html_header.php
main_template_vars.php-- Define the default main pages tpl_featured_products_default.php
Main part tpl_products_new_default.php-- contains template page * tpl_modules_featured_products_listing.php
Use the output tpl_modules_featured_products_listing.php
Other product modules like: specials product_revies products_all
Specials moudles / pages / specials module
specials -> header.php
html_header.php
pages/specials/main_template_vars.php-- defines the default main pages tpl_specials_default.php
Main part tpl_products_new_default.php-- contains template page *
pl_modules_featured_products_listing.php
Use the output tpl_modules_featured_products_listing.php
Other product modules like: specials product_revies products_all
Specials moudles / pages / specials module
specials -> header.php
html_header.php
pages/specials/main_template_vars.php-- defines the default main pages tpl_specials_default.php
Main part tpl_products_new_default.php-- contains template page * tpl_columnar_display.php
Use the output tpl_columnar_display.php
Other product modules like: specials product_revies products_all
Specials moudles / pages / specials module
specials -> header.php
html_header.php
pages/specials/main_template_vars.php-- defines the default main pages tpl_specials_default.php
Main part tpl_products_new_default.php-- contains template page * tpl_columnar_display.php
2013年11月20日星期三
订阅:
博文评论 (Atom)



0 评论:
发表评论