- Веб-Шаблоны
- Шаблон интернет-магазина
- Шаблоны для CMS
- Facebook шаблоны
- Конструктор сайтов
The Infoboxes
Ноябрь 15, 2010
Информационные блоки — это элементы интерфейса, которые содержат только один вид информации. Любой мнфоблок включает в себя заголовок и содержание. Ниже приведен пример такого заголовка и часть информационного блока.
Файл Boxes.tpl.php содержит классы для вывода информации. Комплект какого-либо класса содержит таблицу с параметрами и контентом, которая далее передается на класс набора. Как и все остальное состоит из заголовка и содержания, так и для инфоблока используется два класса — «infoBoxHeading» и » infobox «.Учитывая, что инфоблоки могут быть различной конструкции, то необходимо использовать различные типы классов для вывода. Для этого есть механизм наследования, то есть стандартный класс наследуется несколько раз под разными именами.
Инфобоксы делятся на несколько типов:
- Строка данных (Категории, бестселлеры, информация, FAQ, партнерство, информационные страницы, статьи, корзина, ссылки, сейчас на сайте);
- Продукты (Лучшее, Специальные предложения, Обзоры, Новинки);
- Блоки ввода (Выбор шаблона, быстрый поиск, производители, валюта, расширенный поиск, Рассказать другу, язык, моя учетная запись).
Infobox Name |
Image
|
Data Type |
Description
|
Categories (the category box) |
|
String |
Outputs the list of links for the category products. |
Bestsellers (the box of the most popular products) |
|
String |
Outputs the list of links for the best selling products.
|
Information (the links to sub-pages box) |
|
String |
Outlines the list of links for the sub-pages. |
FAQ (Frequently Asked Questions) |
|
String |
Outlines the list of links to the frequently asked questions |
Affiliate Info (the Affiliate info box) |
|
String |
Has a list of two links to the affiliate links pages. |
Info Pages (the box of links to the non-standard sub-pages) |
|
String |
Contains the list of links to the pages added by user. |
Articles (the box of links added by user) |
|
String |
By default contains two links: “New Articles” and “All Articles»
|
Shopping cart |
|
String
|
On default (when the cart is empty) contains text 0 items.
|
|
If the shopping cart has any kind of products it gets to the following view. |
||
Links (the box of links to the external resources) |
|
String |
The Box consists of the number of links to the external resources. |
Who is online (the box reflects to the number of visitors) |
|
String |
The box contains the text «currently there is 1 guest online»
|
Featured Products (The box of presented products) |
|
Product |
The box shows the product image, its name and price.
|
Specials (The box contains one of the products from the «special offer» list) |
|
Product |
The box shows the product image, its name and price.
|
Product Reviews (The box contains the product with the visitors’ opinion for it) |
|
Product |
The box has the product image, part of the text description, and the rating to the rank of 5.
|
Latest Product (The box contains the product from the list of «latest arrivals») |
|
Product |
The box shows the product image, its name and price.
|
Quick Find (Box search by product) |
|
Input box |
The box has an input field, search button, the text: «Use keywords to find the product you are looking for» and the text Advanced Search link. The text and the link «Use keywords to find the product you are looking for» and an Advanced Search link which are optional. |
Manufacturers (the list of manufacturers) |
|
Input box |
The list contains a drop down box.
|
Currencies (the list of currency) |
|
Input box |
The list contains a drop down box.
|
Advanced Search (the box of site and product search) |
|
Input box |
The box has an input field, search button, the text: “Use keywords to find the product you are looking for” and the text Advanced Search link. The text and the link “ Use keywords to find the product you are looking for” and an Advanced Search link which are optional. |
Languages (Localization Box) |
|
Input box |
Contains the icons that represent the flags of the countries localisations. |