-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
120 lines (83 loc) · 3.4 KB
/
functions.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<?php
/**
* @package WordPress
* @subpackage Oakland
* @since Oakland 1.0
*
* Main Theme Functions File
* Created by CMSMasters
*
*/
// CMSMasters Directories
define('CMSMASTERS_THEME', TEMPLATEPATH . '/theme');
define('CMSMASTERS_PAGES', CMSMASTERS_THEME . '/pages');
define('CMSMASTERS_CLASSES', CMSMASTERS_THEME . '/classes');
define('CMSMASTERS_FUNCTIONS', CMSMASTERS_THEME . '/functions');
define('CMSMASTERS_ADMIN', CMSMASTERS_THEME . '/administrator');
define('CMSMASTERS_ADMIN_TMCE', CMSMASTERS_ADMIN . '/tinymce');
define('CMSMASTERS_ADMIN_CSS', get_template_directory_uri() . '/theme/administrator/css');
define('CMSMASTERS_ADMIN_JS', get_template_directory_uri() . '/theme/administrator/js');
define('CMSMASTERS_ADMIN_TINYMCE', get_template_directory_uri() . '/theme/administrator/tinymce');
// Load Theme Local File
$locale = get_locale();
if (is_admin()) {
load_theme_textdomain('cmsmasters', CMSMASTERS_ADMIN . '/languages');
$locale_file = CMSMASTERS_ADMIN . '/languages/' . $locale . '.php';
} else {
load_theme_textdomain('cmsmasters', CMSMASTERS_THEME . '/languages');
$locale_file = CMSMASTERS_THEME . '/languages/' . $locale . '.php';
}
if (is_readable($locale_file)) {
require_once($locale_file);
}
// Load Theme Options
require_once(CMSMASTERS_ADMIN . '/admin-options.php');
// Load Admin Interface
require_once(CMSMASTERS_ADMIN . '/admin-interface.php');
// Load Admin Meta Boxes
require_once(CMSMASTERS_ADMIN . '/post-options.php');
// Load Slider Manager
require_once(CMSMASTERS_ADMIN . '/slider-manager.php');
// Load Form Builder
require_once(CMSMASTERS_ADMIN . '/form-builder.php');
// Load Admin Scripts and Styles
require_once(CMSMASTERS_ADMIN . '/admin-scripts.php');
// Load TinyMCE and QuickTag Plugins
require_once(CMSMASTERS_ADMIN_TMCE . '/tinymce-buttons.php');
// Load Theme Functions
require_once(CMSMASTERS_FUNCTIONS . '/theme-functions.php');
// Load Likes
require_once(CMSMASTERS_FUNCTIONS . '/likes.php');
// Load Navigation Select
require_once(CMSMASTERS_CLASSES . '/nav-select.php');
// Load Options from the Database
require_once(CMSMASTERS_CLASSES . '/var.php');
// Load Pagination
require_once(CMSMASTERS_CLASSES . '/wp-pagenavi.php');
// Load Breadcrumbs
require_once(CMSMASTERS_CLASSES . '/breadcrumb.php');
// Load Sidebar Generator Class
require_once(CMSMASTERS_CLASSES . '/sidebar-generator.php');
// Load CMSMasters Portfolio Post Type
require_once(CMSMASTERS_CLASSES . '/portfolio-posttype.php');
// Load Custom CMSMasters Widgets Classes
require_once(CMSMASTERS_CLASSES . '/widgets.php');
// Load Custom Default Widgets Classes
require_once(CMSMASTERS_CLASSES . '/widgets-default.php');
// Load Slider Manager Data Access
require_once(CMSMASTERS_CLASSES . '/slider-manager.php');
// Load Slider Manager Controller
require_once(CMSMASTERS_CLASSES . '/slider-controller.php');
// Load Theme Update Notifire
require_once(CMSMASTERS_FUNCTIONS . '/update-notifier.php');
// Load Template Functions
require_once(CMSMASTERS_FUNCTIONS . '/template-functions.php');
// Load Custom Shortcodes
require_once(CMSMASTERS_FUNCTIONS . '/shortcodes.php');
// Load Custom Comments Template
require_once(CMSMASTERS_FUNCTIONS . '/comments.php');
// Create Database Tables Backggounds, Fonts, Icons, Forms, Sliders, Likes & Redirect to Theme Options Page on Theme Activation
if (isset($_GET['activated'])) {
require_once(CMSMASTERS_FUNCTIONS . '/database-import.php');
}
?>