-
Notifications
You must be signed in to change notification settings - Fork 6
/
functions.php
46 lines (41 loc) · 1.86 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
<?php
/**
*
* podium functions and definitions
*
* @package podium
*/
// require array list
$reqire_files = [
'/inc/environment.class.php', // Set Eniroment.
'/inc/enqueue-scripts.php', // Enqueue scripts and styles.
'/inc/cleanup.php', // cleanup & setup theme.
'/inc/widgets.php', // Implement Custom widgets.
'/inc/template-tags.php', // Custom template tags for this theme.
'/inc/extras.php', // Custom functions that act independently of the theme templates.
'/inc/customizer.php', // Customizer additions.
'/inc/menu-walkers.php', // TODO -> make comment describing the functionality of the page
'/inc/menu.php', // TODO -> make comment describing the functionality of the page
'/inc/admin.php', // Code for better handaling the admin area
'/inc/custom-fields.php', // Inintialize custom fields (if you prefer to do this without ACF)
'/inc/custom-post-type.php', // Inintialize unique CPT's and taxonomies for this project
'/inc/pagination.php', // More flexible pagination function
'/inc/clean-filenames.php', // Custom functions to clean filenames from Unicode to ASCII
'/inc/config.php', // get the settings for the wordpress theme.
'/inc/media.php', // Media functions.
'/inc/vendor/autoload.php', // Load Composer packages
'/inc/editor-caps.php' // Configure editor role capabilities
// '/inc/disable-feeds.php' // Remove fedds content and links
];
// require all the files in the $reqire_files array
foreach ($reqire_files as $file) {
require get_template_directory() . $file;
}
// Include array list
$include_files = [
//'inc/xxxxxxxxxxxxxxxxxxxxxx.php',
];
// Include all the files in the $include_files array
foreach ($include_files as $file) {
include get_template_directory() . $file;
}