-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.php
47 lines (40 loc) · 1.23 KB
/
lib.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
38
39
40
41
42
43
44
45
46
47
<?php
/**
* User: besirkurtulmus
* Date: 2/16/14
* Time: 11:27 PM
*/
require_once 'vendor/autoload.php';
include('./settings.php');
class Lib {
public function __construct(Settings $settings){
$this->settings = $settings;
$this->js = array(
'//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js',
'//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js',
'./res/js/jquery.ez-pinned-footer.js',
'./res/js/chardinjs.min.js',
'./res/js/Chart.js',
'./res/js/highlight.pack.js',
'./res/js/app.js'
);
$this->css = array(
'./res/css/app.css',
'./res/css/chardinjs.css',
'./res/css/highlight/railscasts.css',
'./res/css/bootstrap.css',
'./res/css/bootswatch.min.css',
'./res/css/animate.min.css',
'//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'
);
}
public function run(){
include('./layout/header.php');
include('./layout/body.php');
include('./layout/footer.php');
}
}
# Get the settings
$settings = new Settings();
# Start the new app with setting
$app = new Lib($settings);