-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfunctions.php
More file actions
83 lines (63 loc) · 3.51 KB
/
functions.php
File metadata and controls
83 lines (63 loc) · 3.51 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
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* Pitchfork functions and definitions
*
* @package pitchfork
*/
// TGMPA plugin activation script. Checks for required active plugins and nags the user to install.
require_once get_template_directory() . '/inc/tgmpa/class-tgm-plugin-activation.php';
require get_template_directory() . '/inc/tgmpa/recommended-plugins.php';
// Set up theme defaults and register support for various WordPress features.
require get_template_directory() . '/inc/after-setup-theme.php';
// Enqueue scripts and styles.
require get_template_directory() . '/inc/enqueue-scripts.php';
// Localize script and "walker" functions for component header.
require get_template_directory() . '/inc/wp-custom-menu.php';
require get_template_directory() . '/inc/header-localize-script.php';
// Add favicons, anti iFrame hijacking and other improvements.
require get_template_directory() . '/inc/header-additions.php';
// Add nav walker classes for main menu and social media icons.
// require get_template_directory() . '/inc/class-bootstrap-walker-nav-menu.php';
require get_template_directory() . '/inc/class-wp-social-media-walker.php';
require get_template_directory() . '/inc/class-unity-react-header-navtree-walker.php';
require get_template_directory() . '/inc/class-unity-react-header-ctabtn-walker.php';
// Theme options page includes controls for the theme's multisite behavior and analytics.
require get_template_directory() . '/inc/theme-options.php';
/**
* ACF field extensions. May be shared among Pitchfork supporting plugins.
*
* (acf-menu-select.php)
* Add field for selecting a menu object from existing menus in DB
* - Used in PF Blocks - acf/sidebar
*
*/
require get_template_directory() . '/inc/acf-menu-select/acf-menu-select.php';
// Customizer options.
require get_template_directory() . '/inc/customizer/customizer-sanitizers.php';
require get_template_directory() . '/inc/customizer/customizer-preview-js.php';
require get_template_directory() . '/inc/customizer/customizer-controls-js.php';
require get_template_directory() . '/inc/customizer/customizer-post-message-support.php';
require get_template_directory() . '/inc/customizer/customizer-endorsed-unit-logos.php';
require get_template_directory() . '/inc/customizer/customizer-settings.php';
// Render partials from customizer controls. Used for header.php and for selective refresh of the customizer.
require get_template_directory() . '/inc/render-partials.php';
// Add preload for CDN.
// require get_template_directory() . '/inc/resource-hints.php'; !
// Custom template functions for this theme.
require get_template_directory() . '/inc/template-functions.php';
// Custom template tags for this theme.
require get_template_directory() . '/inc/template-tags.php';
// Load ASU WordPres pagination function.
require get_template_directory() . '/inc/pagination.php';
// Remove support for a couple of the native WordPress blocks.
require get_template_directory() . '/inc/blocks.php';
// Block binding elements. Create bound value for 'current_permalink'
require get_template_directory() . '/inc/block-bindings.php';
// Filter HTML output to add data-layer attributes
require get_template_directory() . '/inc/data-layer-filters.php';
// Filter HTML output for other native blocks. (core/pagination)
require get_template_directory() . '/inc/html-block-filters.php';
// Define explicit load and save point for ACF JSON files.
get_template_directory_uri() . 'inc/acf-config.php';
// Might be temporary. Remove duotone SVG from <body>.
remove_action( 'wp_body_open', 'wp_global_styles_render_svg_filters' );