-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
executable file
·48 lines (39 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
<?php
$before_widget = '<div class="widget %2$s">';
$after_widget = '</div>';
$before_title = '<h3>';
$after_title = '</h3>';
if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Default Sidebar',
'before_widget' => $before_widget,
'after_widget' => $after_widget,
'before_title' => $before_title,
'after_title' => $after_title
));
register_sidebar(array(
'name' => 'Home Sidebar',
'before_widget' => $before_widget,
'after_widget' => $after_widget,
'before_title' => $before_title,
'after_title' => $after_title
));
}
if (function_exists( 'register_nav_menus' ) ) {
register_nav_menus(
array(
'header_menu' => 'Header menu'
)
);
}
add_filter( 'wpcf7_form_class_attr', 'your_custom_form_class_attr' );
function your_custom_form_class_attr( $class ) {
$class .= ' six columns offset-by-two';
return $class;
}
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'orbit-custom', 960, 300 );
}
wp_enqueue_script('modernizr.custom.46320', get_template_directory_uri() . '/js/modernizr.custom.46320.js',array(),'1.0',false);
wp_enqueue_script('ms', get_template_directory_uri() . '/js/ms.js',array('jquery'),'0.1',true);
?>