'Main Menu',
'footer_nav' => 'Footer Menu',
'specialWidget' => 'Special Footer Widget',
));
// Custom fallback function to be call when the Main Menu and the Footer Menu are empty...
function defaultNavigation() {
echo '
';
if (is_home()) {$homeLI = '- ';}
else {$homeLI = '
- ';}
echo $homeLI . 'Home
';
wp_list_pages('title_li=&sort_column=menu_order&depth=1');
echo '
';
}
// Custom fallback function to be call when the Special Footer Widget custom menu is empty...
function specialWidget_fallback() {
echo '';
}
// The main sidebar is of course registered as widgetizable area...
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Sidebar',
'description' => 'This is the main sidebar on the right of the layout.',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
// And so is the footer...
if ( function_exists('register_sidebar') )
register_sidebar(array(
'name' => 'Footer',
'description' => 'You can add widgets to the footer! It is recommended to have 4 widgets here, no more and no less. Otherways, you can leave it empty and use the default footer.',
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
));
// Enables post and comment RSS feed links to head
add_theme_support( 'automatic-feed-links');
// Mandatory variable. This is generally used to assign a maximum width
if (!isset($content_width)) $content_width = 620;
// Custom password form for better styling
function the_password_form_with_class($form) {
$subs = array(
'#