-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
executable file
·47 lines (41 loc) · 1.33 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
<?php
if ( function_exists('register_sidebar') ) {
register_sidebar(array(1,
'name' => __('Sidebar') . ' 1',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
register_sidebar(array(2,
'name' => __('Sidebar') . ' 2',
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '<h2 class="widgettitle">',
'after_title' => '</h2>',
));
}
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
'primary' => __( 'Primary Navigation', 'piraten' ),
'secondary' => __( 'Secondary Navigation', 'piraten' ),
) );
/**
/**
* Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link.
*
* To override this in a child theme, remove the filter and optionally add
* your own function tied to the wp_page_menu_args filter hook.
*
* @since Twenty Ten 1.0
*/
function piraten_page_menu_args( $args ) {
$args['container'] = false;
//$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'piraten_page_menu_args' );
include 'pirateWidgets.php';
include 'bannerwidget.php';
load_theme_textdomain('piraten');
?>