/
functions.php
executable file
·116 lines (91 loc) · 2.64 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
/**
* understrap functions and definitions
*
* @package understrap
*/
/**
* Theme setup and custom theme supports.
*/
require get_template_directory() . '/inc/setup.php';
/**
* Register widget area.
*
* @link http://codex.wordpress.org/Function_Reference/register_sidebar
*/
require get_template_directory() . '/inc/widgets.php';
/**
* Load functions to secure your WP install.
*/
require get_template_directory() . '/inc/security.php';
/**
* Enqueue scripts and styles.
*/
require get_template_directory() . '/inc/enqueue.php';
/**
* Custom template tags for this theme.
*/
require get_template_directory() . '/inc/template-tags.php';
/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . '/inc/extras.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/customizer.php';
/**
* Customizer additions.
*/
require get_template_directory() . '/inc/custom-comments.php';
/**
* Load Jetpack compatibility file.
*/
require get_template_directory() . '/inc/jetpack.php';
/**
* Load custom WordPress nav walker.
*/
require get_template_directory() . '/inc/bootstrap-wp-navwalker.php';
/**
* Load custom WordPress gallery.
*/
require get_template_directory() . '/inc/bootstrap-wp-gallery.php';
register_nav_menus( array(
'header-btn' => 'Header Navigation Buttons',
'main' => 'Main Menu',
) );
add_image_size( 'tabbed-gallery-thumbnail-cropped', 220, 220, true );
add_image_size( 'tabbed-gallery-thumbnail', 220, 220 );
add_image_size( 'tablet-banner-cropped', 1024, 220, true ); // 1024 - 768
add_image_size( 'tablet-banner', 1024, 220 );
add_image_size( 'phablet-banner-cropped', 768, 220, true ); // 768 - 480
add_image_size( 'mobile-banner', 768, 220 );
add_image_size( 'mobile-banner-cropped', 480, 186, true ); // 480
add_image_size( 'mobile-banner', 480, 186 );
global $searchLabel;
/* ACF OPTIONS */
if( function_exists('acf_add_options_page') ) {
if( function_exists('acf_add_options_page') ) {
$option_page = acf_add_options_page(array(
'page_title' => 'Website Footer',
'menu_title' => 'Website Footer',
'menu_slug' => 'website-footer',
'capability' => 'edit_posts',
'redirect' => false
));
$option_page = acf_add_options_page(array(
'page_title' => 'Search and 404',
'menu_title' => 'Search and 404',
'menu_slug' => 'search-and-404',
'capability' => 'edit_posts',
'redirect' => false
));
$option_page = acf_add_options_page(array(
'page_title' => 'Configuration',
'menu_title' => 'Configuration',
'menu_slug' => 'configuration',
'capability' => 'edit_posts',
'redirect' => false
));
}
}