-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuctions
187 lines (164 loc) · 4.82 KB
/
fuctions
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
/*
* Custom Child Theme Functions
*
* This file's parent directory can be moved to the wp-content/themes directory
* to allow this Child theme to be activated in the Appearance - Themes section of the WP-Admin.
*
* Included are a set of constants that can be defined to customize aspects of Thematic's
* functionality, as well as a sample function that will add a home link to your menu.
* "Uncomment" or add more to cusomize the functionality of your Child Theme.
*
* More ideas can be found in the community documentation for Thematic
* @link http://docs.thematictheme.com
*
* @package ThematicSampleChildTheme
* @subpackage ThemeInit
*/
// Unleash the power of Thematic's dynamic classes
//
// define('THEMATIC_COMPATIBLE_BODY_CLASS', true);
// define('THEMATIC_COMPATIBLE_POST_CLASS', true);
// Unleash the power of Thematic's comment form
//
// define('THEMATIC_COMPATIBLE_COMMENT_FORM', true);
// Unleash the power of Thematic's feed link functions
//
// define('THEMATIC_COMPATIBLE_FEEDLINKS', true);
// Adds a home link to your menu
// http://codex.wordpress.org/Template_Tags/wp_page_menu
//function childtheme_menu_args($args) {
// $args = array(
// 'show_home' => 'Home',
// 'sort_column' => 'menu_order',
// 'menu_class' => 'menu',
// 'echo' => false
// );
// return $args;
//}
//add_filter('wp_page_menu_args','childtheme_menu_args');
function new_excerpt_length($length) {
return 35;
}
add_filter('excerpt_length', 'new_excerpt_length');
//Adiciona Favicon
function childtheme_favicon() { ?>
<link rel="shortcut icon" href="<?php echo bloginfo('stylesheet_directory') ?>/images/favicon.ico" />
<?php }
add_action('wp_head', 'childtheme_favicon');
// remover sidebars originais
function remove_widget_areas($content) {
unset($content['1st Subsidiary Aside']);
unset($content['2nd Subsidiary Aside']);
unset($content['3rd Subsidiary Aside']);
unset($content['Index Top']);
unset($content['Index Insert']);
unset($content['Index Bottom']);
unset($content['Single Top']);
unset($content['Single Insert']);
unset($content['Single Bottom']);
unset($content['Page Top']);
unset($content['Page Bottom']);
unset($content['Secondary Aside']);
return $content;
}
add_filter('thematic_widgetized_areas', 'remove_widget_areas');
//Sidebars
register_sidebar(array(
'name' => __( 'Sidebar Ensino' ),
'id' => 'sidebar-ensino',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Escola' ),
'id' => 'sidebar-escola',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Projeto Integracao' ),
'id' => 'sidebar-projeto-integracao',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Vestibulares' ),
'id' => 'sidebar-vestibulares',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Instalacoes' ),
'id' => 'sidebar-instalacoes',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Blog' ),
'id' => 'sidebar-blog',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Divina Esportes' ),
'id' => 'sidebar-divina-esportes',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Divina Cultural' ),
'id' => 'sidebar-divina-cultural',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Imprensa' ),
'id' => 'sidebar-imprensa',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Contato' ),
'id' => 'sidebar-contato',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Ex-Alunos' ),
'id' => 'sidebar-ex-alunos',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Dialogos com a Familia' ),
'id' => 'sidebar-dialogos-familia',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Aos Pais' ),
'id' => 'sidebar-aos-pais',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));
register_sidebar(array(
'name' => __( 'Sidebar Divina Acontece' ),
'id' => 'sidebar-divina-acontece',
'description' => __( '' ),
'before_title' => '<h3>',
'after_title' => '</h3>'
));