-
Notifications
You must be signed in to change notification settings - Fork 0
/
functions.php
50 lines (41 loc) · 1.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
<?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.40618', get_template_directory_uri() . '/js/modernizr.custom.40618.js',array(),'1.0',false);
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' )
?>