 |
Installation
- Upload all files from installation package to your server.
- Run install.php (type in your browser address like http://your-domain.com/path-to-script/install.php).
- Follow installation wizard instructions.
- Rename or remove install.php file.
- Script installed. Go to http://your-domain.com/path-to-script/admin.php to start!
Imaging settings
To setup widths and heights of images and thumbnails on your cafe or restaurant
site you'll need to change config.php. There are 12 parameters described there:
- $options['img_menu_width'] - width of menu image
- $options['img_menu_height'] - height of menu image
- $options['thumb_menu_width'] - width of menu thumbnail
- $options['thumb_menu_height'] - height of menu thumbnail
- $options['img_cat_width'] - width of category image
- $options['img_cat_height'] - height of category image
- $options['thumb_cat_width'] - width of category thumbnail
- $options['thumb_cat_height'] - height of category thumbnail
- $options['img_item_width'] - width of item image
- $options['img_item_height'] - height of item image
- $options['thumb_item_width'] - width of item thumbnail
- $options['thumb_item_height'] - height of item thumbnail
To disable any imaging you would replace 3rd line of config.php
(starts with return) to
return false;
Feel free to Contact us if you have any questions.
Usage
To use front-end functions of the script you will need to add
<? require_once("user_function.php"); ?> to your php file.
There are 5 functions provided:
- menu_links([menu_page[, direction[, thumb_location]]])
Output list of links to cafe/restaurant menues. Depends on direction
show links vertical (if direction is 'v') or horisontal
(direction is NOT 'v'). thumb_location parameter define how
menues thumbnails will be shown in the list. May have 6 values:
- 1 - thumbnail will be below menu name
- 2 - thumbnail will be on the right side of menu name
- 3 - thumbnail will be above menu name
- 4 - thumbnail will be on the right side of menu name
- 5 - name of menu will not be shown. Thumbnail only.
- any other - thumbnail will not be shown
Example 1:
in file example.php code
<? menu_links(); ?>
will show list of links like this:
<span class="menues_link"><a href="example.php?menuid=menu_id" class="menues_link">menu name</a></span>
Example 2:
in file example.php code
<? menu_links('index.php','v',5); ?>
will show list of links like this:
<div class="menues_link"><a href="index.php?menuid=menu_id" class="menues_link">menu name</a> <a href="index.php?menuid=menu_id" class="menues_link"><img src="images/custom/tmmenu_id.thumb_ext" border="0" alt="menu name" class="menu_thumb" vspace="0" hspace="0"></a></div>
- cat_links(menuid [, menu_page[, direction[, thumb_location]]])
Output list of links to cafe/restaurant category pages of pointed by
menuid cafe/restaurant menue. Depends on direction
show links vertical (if direction is 'v') or horisontal
(direction is NOT 'v'). thumb_location parameter define how
category thumbnails will be shown in the list. May have 6 values:
- 1 - thumbnail will be below category name
- 2 - thumbnail will be on the right side of category name
- 3 - thumbnail will be above category name
- 4 - thumbnail will be on the right side of category name
- 5 - name of category will not be shown. Thumbnail only.
- any other - thumbnail will not be shown
Example 1:
in file example.php code
<? cat_links(); ?>
will show list of links like this:
<span class="cat_link"><a href="example.php?catid=cat_id" class="cat_link">category name</a></span>
Example 2:
in file example.php code
<? menu_links('index.php','v',5); ?>
will show list of links like this:
<div class="cat_link"><a href="index.php?catid=cat_id" class="cat_link"><img src="images/custom/tccat_id.cat_ext" border="0" alt="category name" class="cat_thumb" vspace="0" hspace="0"></a></div>
- menu_list(menu_id[,cols[,category_page[,item_page[,menu_images[,cat_images[,item_images]]]]]])
Show specified menu in cols number of columns.
If "Full description" field specified item link will point to item page. If
item has no "Full description" but has image link will point to popup with big
image.
Optional parameters are pages where category and item would be shown. If you
will not use additional parameters no links to category or item pages will be
shown. Last 3 parameters allow to suppress images. By default they all are true,
and corresponding images will be shown.
Example 1:
<? menu_list(10); ?>
will show menu with id 10 in 1 column without links to item and category
pages. Menu, category and item existing images will be shown.
Example 2:
<? menu_list(100,2,'','index.php',true,false); ?>
will show menu with id 100 in 2 columns with links to items pages and
without links to category pages. Menu and item images will be shown but no
category images.
Links to item pages will look like
<a href="index.php?itemid=item_id" class="item_link">item name</a>
Example 3:
<? menu_list(25,3,'index.php?','index.php',flase,true,false); ?>
will show menu with id 25 in 3 columns with links to categories
pages and items pages. Links to categories pages will look like. Menu and item
images will not be shown. Category images only.
<a href="index.php?catid=category_id" class="category_link">category name</a>
Links to item pages will look like
<a href="index.php?itemid=item_id" class="item_link">item name</a>
- cat_list(category_id[,cols [, item_page[, use_cat_images[, use_item_images]]]])
Show specified category in cols columns.
If "Full description" field specified item link will point to item page. If
item has no "Full description" but has image link will point to popup with big
image.
Last 2 parameters allow to
suppress images. By default they all are true, and corresponding images will be
shown.
Example 1:
<? cat_list(17); ?>
will show category with id 17 in 1 column without links to item pages.
All existing item thumbnails and image of category will be shown.
Example 2:
<? cat_list(11,2,'index.php', true, false); ?>
will show category with id 11 in 2 columns with links to items
pages. Category image will be shown, item images - no.
Links to item pages will look like
<a href="index.php?itemid=item_id" class="item_link">item name</a>
- item_list(item_id)
Show specified item.
Example 1:
<? item_list(1); ?>
will show item page.
EasyCafeEngine provide intuitive installation wizard and admin area interface. Admin area can be easily used by cafe / restaurant administration. Any word script will show to web site visitor can be changed in admin area.
Script can show cafe or restaurant menu as detailed as you need. 3 kind of pages: menu, section and item. No limitations for number of cafe or restaurant menus, number of sections in each cafe / restaurant menu and number of items in section. Cafe or restaurant online menu can have up to 3 prices for each item.
Depends on area where cafe or restaurant is located you may need to show price in different form: any currency sign may be shown before or after price digits depends on settings in admin area. EasyCafeEngine can be easily integrated with any cafe / restaurant web site design. Full documentation provided with download package.
Here is some live examples:
toscanarestaurant.ie
mockingbirdrestaurant.com
toptomatosuperstore.com
caferosarita.de
yinswok.com
|
 |