admin.php 1.18 KB
Newer Older
root's avatar
root committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
/**
 * Start admin customization
 *
 * @package WordPress
 * @subpackage Constructor
 */
// only for administrator
if (CONSTRUCTOR_DEBUG || isset($_REQUEST['debug'])) {
    require_once CONSTRUCTOR_DIRECTORY .'/libs/debug.php';
}

// init modules for admin pages
// you can disable any
$constructor_modules = array(
    __('Themes',  'constructor') => 'themes',
    __('Layout',  'constructor') => 'layout',
root's avatar
root committed
18
    __('Templates', 'constructor') => 'templates',
root's avatar
root committed
19
20
21
22
23
24
25
26
27
28
    __('Header',  'constructor') => 'header',
    __('Content', 'constructor') => 'content',
    __('Comments','constructor') => 'comments',
    __('Footer',  'constructor') => 'footer',
    __('Fonts',   'constructor') => 'fonts',
    __('Colors',  'constructor') => 'colors',
    __('Design',  'constructor') => 'design',
    __('CSS',     'constructor') => 'css',
    __('Images',  'constructor') => 'images',
    __('Slideshow', 'constructor') => 'slideshow',
root's avatar
root committed
29
//    __('Save',    'constructor') => 'save',
root's avatar
root committed
30
    __('Clean',   'constructor') => 'clean',
root's avatar
root committed
31
32
33
34
35
36
37
38
    __('Help',    'constructor') => 'help'
);

require_once CONSTRUCTOR_DIRECTORY .'/libs/Constructor/Admin.php';

$admin = new Constructor_Admin();
$admin -> init($constructor_modules);