-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfunctions.php
69 lines (47 loc) · 1.92 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
<?php
/**
* Receptar WordPress Theme
*
* @package Receptar
* @author WebMan
* @license GPL-2.0+
* @link https://www.webmandesign.eu
* @copyright 2015 WebMan - Oliver Juhas
*
* @since 1.0
* @version 2.0.0
*
* CONTENT:
* - 0) Constants
* - 1) Required files
*/
/**
* 0) Constants
*/
if ( ! defined( 'WM_THEME_SHORTNAME' ) ) define( 'WM_THEME_SHORTNAME', str_replace( array( '-lite', '-plus' ), '', get_template() ) );
if ( ! defined( 'WM_INC_DIR' ) ) define( 'WM_INC_DIR', trailingslashit( 'inc' ) );
define( 'RECEPTAR_THEME_VERSION', wp_get_theme( 'receptar' )->get( 'Version' ) );
/**
* 1) Required files
*/
// Welcome page.
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'welcome/class-welcome.php' );
// Sanitizing methods
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'class-sanitize.php' );
// Main theme action hooks
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'lib/hooks.php' );
// Global functions
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'lib/core.php' );
// SVG icons
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'class-svg.php' );
// Theme setup
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'setup.php' );
// Custom header
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'custom-header/custom-header.php' );
// Customizer
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'setup-theme-options.php' );
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'customizer/customizer.php' );
// Jetpack setup
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'jetpack/jetpack.php' );
// Beaver Builder setup
require_once( trailingslashit( get_template_directory() ) . WM_INC_DIR . 'beaver-builder/beaver-builder.php' );