-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
37 lines (31 loc) · 1.09 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
// Load the Savant3 class file and create an instance.
require_once 'Savant3.php';
// initialize template engine
$tpl = new Savant3();
// set search path for templates
$tpl->addPath('template', './template');
// Create a title.
$template_path = "template/";
$resource_path = "./";
$title = "CoinCod";
$meta_description = "Welcome to CoinCod - a unique auction system built to draw everyone closer to their dream products.";
$contentContainer = array(
array(
"title" => "",
"content" => "",
"bottom_image" =>""
)
);
// Assign values to the Savant instance.
$tpl->template_path = $template_path;
$tpl->resource_path = $resource_path;
$tpl->title = $title;
$tpl->meta_description = $meta_description;
$tpl->content_container = $contentContainer;
// Display a template using the assigned values.
$tpl->login = $tpl->fetch($template_path.'login.tpl.php');
$tpl->header = $tpl->fetch($template_path.'header.tpl.php');
$tpl->footer = $tpl->fetch($template_path.'footer.tpl.php');
$tpl->product = $tpl->fetch($template_path.'product.tpl.php');
$tpl->display($template_path.'main.tpl.php');