-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfunctions.php
More file actions
152 lines (131 loc) · 4.21 KB
/
functions.php
File metadata and controls
152 lines (131 loc) · 4.21 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
/**
* Theme Functions Engine.
*
* This file is simply used as a wrapper to load other files that do all the
* work.
*
* @link https://codex.wordpress.org/Theme_Development
* @link https://codex.wordpress.org/Child_Themes
*
* @package Jarvis
* @subpackage Template
* @author Ben Gillbanks <ben@prothemedesign.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
*/
/**
* TODO BEFORE SUBMISSION
* ---
* ensure margins and paddings are consistent
* test in incognito mode. Maybe consider defining columns for the different content?
* test theme with and without jetpack
* theme description
* screenshot.png (880 x 660)
* check gallery post format on posts that don't use the block editor
* check sticky styles
* style quotes properly, in particular the # permalink glyph
* Add some subtle animations for added delight.
* responsive styles
* set content_width (in jarvis_content_width and jarvis_after_setup_theme)
* theme_colors
* Remove "Dev: 1" from style.scss so that packages get build properly.
* check custom page template styles
* check custom logo properties are appropriate
* rtl.css - "gulp rtl --theme jarvis"
* theme scan
* test site logo
* test block colours
* readme.txt
* test hiding header and description through customizer works
* test logo is still visible when you hide the header text
* test custom header
* test custom backgrounds
* remove jarvis_widgets_overlay_body_class function there are no widgets in an overlay
* check all registered menus are being used
* check sidebar names and that sidebar display conditions match the sidebars they display
* test print styles
* go through required accessibility items - https://make.wordpress.org/themes/handbook/review/accessibility/required/
* Test css on http://cssstats.com/ and make sure things look sensible.
*/
/**
* Alternate styles
* ---
* paragraph - intro
*/
// WordPress specific functionality (actions and filters).
require get_parent_theme_file_path( 'inc/wordpress.php' );
// Filters that modify/ add to WordPress html classes to make them more useful.
require get_parent_theme_file_path( 'inc/wordpress-html-classes.php' );
// Generate styles based upon theme mods.
require get_parent_theme_file_path( 'inc/styles.php' );
// Custom header.
require get_parent_theme_file_path( 'inc/custom-header.php' );
// Featured Images.
require get_parent_theme_file_path( 'inc/featured-images.php' );
// Reusable Template Functions.
require get_parent_theme_file_path( 'inc/template-tags.php' );
// Backwards Compatability functions to ensure there are no errors with older WordPress.
require get_parent_theme_file_path( 'inc/compat.php' );
/**
* Customizer Properties.
*/
// Load all of the customizer properties.
require get_parent_theme_file_path( 'inc/customizer/loader.php' );
/**
* Plugins.
*/
/**
* Jetpack specific functionality.
*
* @link https://jetpack.com/
*/
require get_parent_theme_file_path( 'inc/plugins/jetpack.php' );
/**
* EditorsKit specific functionality.
*
* @link https://editorskit.com/
*/
if ( class_exists( 'EditorsKit' ) ) {
require get_parent_theme_file_path( 'inc/plugins/editorskit.php' );
}
/**
* Load WooCommerce compatibility file.
*
* @link https://woocommerce.com/
*/
if ( class_exists( 'WooCommerce' ) ) {
require get_parent_theme_file_path( 'inc/plugins/woocommerce.php' );
}
/**
* Load WP Toolbelt compatibility file.
*
* @link https://wordpress.com/plugins/wp-toolbelt
* @link https://github.com/BinaryMoon/wp-toolbelt/
*/
require get_parent_theme_file_path( 'inc/plugins/wp-toolbelt.php' );
/**
* Load Give compatibility file.
*/
if ( function_exists( 'Give' ) ) {
require get_parent_theme_file_path( 'inc/plugins/give.php' );
}
/**
* Load Akismet compatibility file.
*/
if ( defined( 'AKISMET_VERSION' ) ) {
require get_parent_theme_file_path( 'inc/plugins/akismet.php' );
}
/**
* Add support for WP-Post-Series plugin
*
* @link https://wordpress.org/plugins/wp-post-series/
*/
if ( class_exists( 'WP_Post_Series' ) ) {
require get_parent_theme_file_path( 'inc/plugins/wp-post-series.php' );
}
/**
* Include TGM Plugin Activation class.
*
* @link http://tgmpluginactivation.com
*/
require_once get_template_directory() . '/inc/lib/class-tgm-plugin-activation.php';