The Main Template is the outer wrapper of your website - it contains your header, navigation, footer, and anything that appears on every page.
You can use the snippets below to insert predefined website elements such as navigation menus, login links, cart links, category lists, contact details, opening hours, and dynamic widgets.
Use this code in the Main Template where you want the section template content to appear on live pages:
<maincontent>
| Element | Code Snippet |
|---|---|
| Client Login | $login |
| Shopping Cart | /cgi-bin/cart/cart.cgi |
| Flower List | $flowerlist |
| Addon List | $addonlist |
| Occasion List | $occasionlist |
| Main Menu | ~; &automainmenu; print qq~ |
| Footer Menu | ~; &autofootermenu; print qq~ |
Example for a Colour master category:
~; $colourmenu = &mastercatmenu(`Colour`); print qq~
Use the variable where needed:
$colourmenu
~; $copyyear = (localtime)[5] 1900; print qq~
Use the variable where needed:
$copyyear
~; $showcountdown = &showcountdown; print qq~
Use the variable where needed:
$showcountdown
<ul> <li><a href="/under-70/">Under $70</a></li> <li><a href="/70-100/">$70 - $100</a></li> <li><a href="/over-100/">Over $100</a></li> </ul>
These are dynamic pages, so the price ranges may need to be created in the .htaccess settings.
These variables display the business contact details saved in Main Settings.
| Variable | Displays |
|---|---|
$sitename |
Business or store name |
$sitelogo |
Website logo |
$web_address_one |
First line of the business address |
$web_suburb |
Business suburb |
$web_state |
Business state |
$web_postcode |
Business postcode |
$adminemail |
Main store email address |
$webphone |
Business phone number |
| Instagram link | |
| Facebook link |
| Variable | Displays |
|---|---|
$mon_open - $mon_close |
Monday opening and closing hours |
$tue_open - $tue_close |
Tuesday opening and closing hours |
$wed_open - $wed_close |
Wednesday opening and closing hours |
$thu_open - $thu_close |
Thursday opening and closing hours |
$fri_open - $fri_close |
Friday opening and closing hours |
$sat_open - $sat_close |
Saturday opening and closing hours |
$sun_open - $sun_close |
Sunday opening and closing hours |
| Widget | Code Snippet |
|---|---|
| Floating Google Star Rating Badge | < script src="/files/googlebadgefloat.js"></ script > |
| Floating Google Reviews Carousel | < script src="/files/googlecarouselfloat.js"></ script > |
| Recent Orders Widget | < script src="/files/recent.js"></ script > |