-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfunctions.php
99 lines (86 loc) · 3.44 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
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
<?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 Granule
* @subpackage Template
* @author Ben Gillbanks <[email protected]>
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License
*/
/**
* DESIGN CHECKLIST
* ---
* test for possible text widows (titles, descriptions etc)
* check letter-spacing - especially on large and small text
*/
/**
* TODO BEFORE SUBMISSION
* ---
* test theme with and without jetpack
* test theme with and without infinite scroll
* delete unused scripts
* delete unused customizer controls
* delete unused svgs
* theme tags
* theme description
* screenshot.png (880 x 660)
* check custom header size
* check sticky styles
* Add some subtle animations for added delight.
* test custom header, with and without
* responsive styles
* set content_width (in granule_content_width and granule_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 granule"
* change google font slugs so they match the font names (in granule_fonts() inc/wordpress.php and inc/wpcom.php)
* 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 granule_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.
*/
// WordPress specific functionality (actions and filters).
require get_parent_theme_file_path( 'inc/wordpress.php' );
// Add backwards compatability functions.
// require get_parent_theme_file_path( 'inc/compat.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' );
// Custom header.
require get_parent_theme_file_path( 'inc/custom-header.php' );
// Reusable Template Functions.
require get_parent_theme_file_path( 'inc/template-tags.php' );
// Jetpack specific functionality (if Jetpack is enabled).
require get_parent_theme_file_path( 'inc/jetpack.php' );
// Custom Custmomizer control that adds a category dropdown select box.
require get_parent_theme_file_path( 'inc/class-granule-category-dropdown-custom-control.php' );
// Custom Customizer control that adds a drag and drop system for rearranging
// content.
require get_parent_theme_file_path( 'inc/class-granule-dragdrop-list-control.php' );
// Custom Custmomizer control that adds a custom dropdown select box.
require get_parent_theme_file_path( 'inc/class-granule-dropdown-custom-control.php' );
// Customizer controls for setting theme properties.
require get_parent_theme_file_path( 'inc/customizer.php' );
/**
* Load WooCommerce compatibility file.
*/
if ( class_exists( 'WooCommerce' ) ) {
require get_parent_theme_file_path( 'inc/woocommerce.php' );
}