-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
51 lines (47 loc) · 2.26 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
<?php
/******************************************************
All base theme functions are "pluggable" which means
they can be overridden in a child theme. Just copy
and paste the function (without the condition) into
your child theme's functions.php file
*******************************************************/
// Required files
require_once 'functions/saml_auth.php';
require_once 'functions/post-types/general.php';
require_once 'functions/theme/setup.php';
require_once 'functions/theme/minify.php';
require_once 'functions/customizer/customize-register.php';
require_once 'functions/theme/layout.php';
require_once 'functions/theme/body-classes.php';
require_once 'functions/theme/pagination.php';
require_once 'functions/theme/widgets.php';
require_once 'functions/theme/metadata.php';
require_once 'functions/theme/dates.php';
require_once 'functions/theme/images.php';
require_once 'functions/theme/header-img.php';
require_once 'functions/theme/header-slider.php';
require_once 'functions/theme/options.php';
require_once 'functions/theme/gallery.php';
require_once 'functions/theme/styles-and-scripts.php';
require_once 'functions/theme/templating-functions.php';
require_once 'functions/navigation/menus.php';
require_once 'functions/navigation/breadcrumbs.php';
require_once 'functions/navigation/menu-classes.php';
require_once 'functions/navigation/section-nav/section-nav.php';
//require_once 'functions/theme/custom-fields/featured.php';
require_once 'functions/theme/custom-fields/featured-image.php';
require_once 'functions/theme/custom-fields/header-slider.php';
require_once 'functions/theme/custom-fields/image_id.php';
require_once 'functions/theme/custom-fields/page_links_to.php';
require_once 'functions/theme/custom-fields/remove-header-image.php';
require_once 'functions/theme/custom-fields/acf-search.php';
require_once 'functions/tinymce/editor.php';
require_once 'blocks/block_functions.php';
require_once 'blocks/custom_block_fields.php';
// Initialize post types if ACF plugin is present and activated
if ( class_exists('Acf') ) {
include_once locate_template('/functions/post-types/init.php');
}
add_action( 'enqueue_block_editor_assets', function() {
wp_enqueue_style( 'cornell-font-fa-css', get_template_directory_uri() . '/fonts/font-awesome.min.css' );
} );