-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
55 lines (40 loc) · 1.18 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
<?php
/**
* @package doc
* @author Marty Helmick <info@martyhelmick.com>
* @license http://www.gnu.org/licenses/gpl-2.0.html
*/
add_action( 'after_setup_theme', 'doc_forms_theme_setup' );
/**
* Setup function.
*/
function doc_forms_theme_setup() {
/*
* Add a custom background to overwrite the defaults.
*
* @link http://codex.wordpress.org/Custom_Backgrounds
*/
add_theme_support(
'custom-background',
array(
'default-color' => 'fbfbfb',
'default-image' => '',
)
);
add_filter( 'theme_mod_primary_color', 'doc_forms_primary_color' );
add_filter( 'theme_mod_secondary_color', 'doc_forms_secondary_color' );
add_filter( 'theme_mod_accent_color', 'doc_forms_accent_color' );
}
function doc_forms_primary_color( $hex ) {
return $hex ? $hex : '34495e';
}
function doc_forms_secondary_color( $hex ) {
return $hex ? $hex : '1abc9c';
}
function doc_forms_accent_color( $hex ) {
return $hex ? $hex : 'EEEEEE';
}
add_action( 'init', 'gravity_view_layouts_register_meta' );
function gravity_view_layouts_register_meta() {
add_post_type_support( 'gravityview', 'theme-layouts' );
}