'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 ''; } // 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( '##' => '', '#Password:#' => 'Password:', '##' => '', '##' => '' ); echo preg_replace(array_keys($subs), array_values($subs), $form); } add_filter('the_password_form', 'the_password_form_with_class'); // Kusarigama Custom Options Array $themename = "Kusarigama"; $shortname = "kusarigama"; $options = array ( array( "name" => "ADV", "desc" => "Paste here the code to generate a banner at the top of the sidebar.", "id" => $shortname."_adv_code", "std" => "", "type" => "textarea" ), array( "name" => "Secondary ADV", "desc" => "Paste here the code to generate a banner at the bottom of the sidebar.", "id" => $shortname."_2nd_adv_code", "std" => "", "type" => "textarea" ), array( "name" => "Google Analytics", "desc" => "Paste here the tracking code to have Google Analytics added in the head section.", "id" => $shortname."_google_analytics", "std" => "", "type" => "textarea" ), array( "name" => "Default colour scheme", "desc" => "Select the colour scheme for $themename. This will be the default skin for all users.", "id" => $shortname."_color_scheme", "type" => "radio", "options" => array("Angry Ninja", "Bright Angel"), "std" => "Angry Ninja" ), array( "name" => "User selectable skin", "desc" => "$themename includes a stylesheet selector that gives users the ability to choose their preferred skin, overriding the Colour Scheme setting above. Of course this is a client side feature: each user can choose his personal skin, without affecting others. If turned on, a special panel appears on top of the sidebar.", "id" => $shortname."_selectable_skin", "type" => "checkbox", "optext" => "Turn on user selectable skin panel", "std" => "1" ) ); function add_custom_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], stripslashes($_REQUEST[ $value['id'] ]) ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], stripslashes($_REQUEST[ $value['id'] ]) ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if ( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'custom_admin'); } function custom_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?>

settings


Reset To Factory Settings

You can use the button below to reset all saved options for to their default value.