-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
38 lines (33 loc) · 1.06 KB
/
Copy pathfunctions.php
File metadata and controls
38 lines (33 loc) · 1.06 KB
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
<?php
/**
* ProfilWP functions and definitions
*
* @package ProfilWP
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define theme constants.
if ( ! defined( 'PROFILWP_VERSION' ) ) {
define( 'PROFILWP_VERSION', '1.0.0' );
}
define( 'PROFILWP_DIR', get_template_directory() );
define( 'PROFILWP_URI', get_template_directory_uri() );
/**
* Include core theme files.
* Pendekatan modular: pisahkan logika ke file masing-masing.
*/
require_once PROFILWP_DIR . '/inc/setup.php';
require_once PROFILWP_DIR . '/inc/enqueue.php';
require_once PROFILWP_DIR . '/inc/cpt/portfolio.php';
// require_once PROFILWP_DIR . '/inc/cpt/resume.php';
if ( get_theme_mod('profilwp_enable_digital_products', false) ) {
require_once PROFILWP_DIR . '/inc/cpt/digital-product.php';
}
require_once PROFILWP_DIR . '/inc/customizer.php';
require_once PROFILWP_DIR . '/inc/ajax.php';
if ( is_admin() ) {
require_once PROFILWP_DIR . '/inc/admin-dashboard.php';
}
require_once PROFILWP_DIR . '/inc/theme-updater.php';
require_once PROFILWP_DIR . '/inc/demo-import.php';