forked from soska/dte
-
Notifications
You must be signed in to change notification settings - Fork 1
/
engine.php
83 lines (66 loc) · 2.08 KB
/
engine.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* Duperrific Theme Engine
*
* (c) Armando Sosa
*
* Dual licensed under MIT license
*
* @author Armando Sosa
*/
if (!defined('DUP_APP_PATH')) {
define('DUP_APP_PATH',TEMPLATEPATH."/app");
define('DUP_L10N_PATH',DUP_APP_PATH."/l10n");
define('DUP_CONFIG_PATH',DUP_APP_PATH."/config");
}
/**
* Define the url for the core stylesheets
*/
if (!defined('DUP_CORE_STYLES_URL')) {
define('DUP_CORE_STYLES_URL',get_bloginfo('template_directory')."/".basename(dirname(__FILE__))."/styles/");
}
/**
* Define the url for the core javascript
*/
if (!defined('DUP_CORE_JS_URL')) {
define('DUP_CORE_JS_URL',get_bloginfo('template_directory')."/".basename(dirname(__FILE__))."/js/");
}
// if (!defined('DUP_CORE_STYLES_URL')) {
// define('DUP_CORE_STYLES_URL',get_bloginfo('template_directory')."/".basename(dirname(__FILE__))."/js/");
// }
/**
* Path where the framework is located
*/
define('DUP_PATH',dirname(__FILE__));
/**
* Path to the core libraries directory
*/
define('DUP_CORE_PATH',DUP_PATH.'/core');
/**
* Path to the default base classes. Duperrific will seek in DUP_APP_PATH first, thene here
*/
define('DUP_DEFAULTS_PATH',DUP_CORE_PATH.'/defaults');
define('DUP_STYLES_PATH',TEMPLATEPATH.'/styles');
define('DUP_SKINS_PATH',DUP_STYLES_PATH.'/skins');
define('DUP_VIEWS_PATH',TEMPLATEPATH.'/views');
define('DUP_ELEMENTS_PATH',DUP_VIEWS_PATH.'/elements');
define('DUP_LAYOUTS_PATH',DUP_VIEWS_PATH.'/layouts');
require_once(DUP_CORE_PATH.'/functions.php');
require_once(DUP_CORE_PATH.'/duperrific.class.php');
require_once(DUP_CORE_PATH.'/controller.class.php');
require_once(DUP_CORE_PATH.'/view.class.php');
require_once(DUP_CORE_PATH.'/theme.class.php');
require_once(DUP_CORE_PATH.'/behavior.class.php');
require_once(DUP_CORE_PATH.'/widget.class.php');
require_once(DUP_CORE_PATH.'/component.class.php');
require_once(DUP_CORE_PATH.'/csml/csml.php');
/**
* Define the url for the core stylesheets
*/
if (!defined('DUP_STYLES_URL')) {
define('DUP_STYLES_URL',get_bloginfo('template_directory')."/styles/");
}
dupLoad('controller');
dupLoad('theme');
dupLoad('widgets');
?>