-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
94 lines (84 loc) · 3.2 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
<?php
add_action( 'after_setup_theme', 'doc_setup' );
add_action( 'wp_enqueue_scripts', 'doc_scripts' );
function doc_setup() {
attr_trumps( array(
//'site_container' => 'mt2 mt3@md block mdl-layout__content',
// 'container' => '',
// 'container_header' => 'flex flex-column@sm flex-justify flex-center',
// 'container_wide' => 'container--wide',
// 'row' => '',
//'row_layout' => 'grid page-content',
// 'row_layout_sidebar_l' => 'grid grid--rev mxn3@md',
//'row_layout_sidebar_r' => 'grid mxn3@md page-content',
//
// // SITE HEADER
'header' => 'mdl-layout__header bg-1 flex',
'branding' => 'mdl-layout__header-row',
'site_title' => 'mdl-layout-title',
// 'site_description' => 'h3 bold m0 muted',
//
// // CONTENT
// 'content' => 'grid__item',
// 'content_with_sidebar' => 'grid__item px3@md u-2/3@md',
//
// // ENTRY
// 'post' => '',
'post_archive' => 'mdl-shadow--2dp',
//
//'page_header' => 'u-1/1 center',
//
// 'entry_title' => 'h2 mt0 color-inherit muted',
// 'page_title' => 'h1 m0',
// 'archive_description' => '',
//
// 'entry_header' => 'container mb2',
'entry_content' => 'mdl-shadow--4dp',
'entry_summary' => 'static',
// 'entry_footer' => 'container',
//
// 'nav_single' => '',
// 'nav_archive' => '',
//
// // ENTRY META
// 'entry_author' => 'inline-block px1',
// 'entry_published' => 'inline-block',
// 'entry_terms' => '',
//
// // NAVIGATION
'menu_primary' => 'flex-justify-end mdl-layout__header-row',
//
// // SIDEBAR
// 'sidebar_primary' => 'grid__item',
// 'sidebar_footer' => 'pt2 pt3@md',
// 'sidebar_horizontal' => 'flex flex-wrap flex-justify',
// 'sidebar_right' => 'u-1/3@md',
// 'sidebar_left' => 'u-1/3@md',
//
// 'widgets' => 'widget br mb2 mb3@md p2 ml1 mr1 list-reset flex-auto',
'primary_widgets' => 'bg-1 white color-inherit',
// 'footer_widgets' => 'bg-darken-1',
//
// // COMMENTS
'comments_area' => 'bg-white p3 p4@md mb2 mb3@md mdl-shadow--2dp',
//
// // FOOTER
// 'footer' => 'bg-2',
//
// 'menu_link' => 'btn'
));
}
/**
* Enqueue scripts and styles.
*/
function doc_scripts() {
wp_enqueue_style(
'mdl-style',
'//storage.googleapis.com/code.getmdl.io/1.0.0/material.blue-teal.min.css'
);
wp_enqueue_script(
'mdl-script',
'https://storage.googleapis.com/code.getmdl.io/1.0.0/material.min.js',
false, null, true
);
}