forked from jayism/WP-Theme-Customizer-Framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
67 lines (50 loc) · 2.01 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
<?php
/**
* @package CloudWork
* @subpackage functions.php
* @author Chris Kelley <chris@organicbeemedia.com)
* @copyright Copyright © 2013 Cloudwork Themes
* @link http://themeforest.net/user/chrisakelley/portfolio
* @since 0.1
*
* Table Of Contents
*
* Define Environment
* Load Options Framework
* Load Theme Files
*/
//Sets the Content Width
if ( ! isset( $content_width ) ) $content_width = 960;
/*-----------------------------------------------------------------------------------*/
/* Define Environment
/*-----------------------------------------------------------------------------------*/
/* Sets the path to the parent theme directory. */
define( 'THEME_DIR', get_template_directory() );
/* Sets the path to the includes directory. */
define( 'CW_CORE', trailingslashit( THEME_DIR ) . 'functions' );
/* Sets the path to the includes directory. */
define( 'CW_INC', trailingslashit( THEME_DIR ) . 'includes' );
/* Sets the path to the Lang directory. */
define( 'CW_LANG', trailingslashit( THEME_DIR ) . 'language' );
add_filter('cw_cf_core_dir', 'cw_cf_core_path' );
/**
* Filtering the path for the Customizer Framework.
*
* @access public
* @return void
*/
function cw_cf_core_path(){
return CW_CORE;
}
/*-----------------------------------------------------------------------------------*/
/* Loads Framework stuff
/*-----------------------------------------------------------------------------------*/
require_once trailingslashit( CW_CORE ) . 'class-customizer-framework.php';
/*-----------------------------------------------------------------------------------*/
/* Loads Framework stuff
/*-----------------------------------------------------------------------------------*/
require_once trailingslashit( CW_INC ) . 'theme-options.php';
/*-----------------------------------------------------------------------------------*/
/* All Custom Code goes below this line, but you should be using a child theme!
/*-----------------------------------------------------------------------------------*/
?>