"Intro Text", "type" => "title"), array( "type" => "open"), array( "name" => "Intro Text", "desc" => "Enter a short paragraph of introductory text, ad text or banner.", "id" => $shortname."_intro_text", "type" => "textarea"), array( "name" => "Disable Intro Text?", "desc" => "Check this box if you would like to DISABLE the Intro text div.", "id" => $shortname."_intro_disable", "type" => "checkbox", "std" => "false"), array( "type" => "close"), array( "name" => "Picture", "type" => "title"), array( "type" => "open"), array( "name" => "Disable Picture?", "desc" => "Check this box if you would like to DISABLE the picture.", "id" => $shortname."_picture_disable", "type" => "checkbox", "std" => "false"), array( "type" => "close"), array( "name" => "Module Tabs", "type" => "title"), array( "type" => "open"), array( "name" => "Tab One", "desc" => "Text to display on first tab in tabbed module.", "id" => $shortname."_first_tab", "type" => "text"), array( "name" => "Tab Two", "desc" => "Text to display on second tab in tabbed module.", "id" => $shortname."_second_tab", "type" => "text"), array( "name" => "Tab Three", "desc" => "Text to display on third tab in tabbed module.", "id" => $shortname."_third_tab", "type" => "text"), array( "type" => "close"), array( "name" => "Ad Boxes", "type" => "title"), array( "type" => "open"), array( "name" => "Box One", "desc" => "Paste your ad code here", "id" => $shortname."_box_one", "type" => "textarea"), array( "name" => "Box Two", "desc" => "Paste your ad code here", "id" => $shortname."_box_two", "type" => "textarea"), array( "name" => "Box Three", "desc" => "Paste your ad code here", "id" => $shortname."_box_three", "type" => "textarea"), array( "name" => "Box Four", "desc" => "Paste your ad code here", "id" => $shortname."_box_four", "type" => "textarea"), array( "name" => "Box Five", "desc" => "Paste your ad code here", "id" => $shortname."_box_five", "type" => "textarea"), array( "name" => "Box Six", "desc" => "Paste your ad code here", "id" => $shortname."_box_six", "type" => "textarea"), array( "name" => "Disable Ad Boxes?", "desc" => "Check this box if you would like to DISABLE the adboxes.", "id" => $shortname."_adbox_disable", "type" => "checkbox", "std" => "false"), array( "type" => "close") ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_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__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

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

'.$themename.' settings reset.

'; ?>

settings


'sidebar', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'sidebar2', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Tab1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Tab2', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ', )); if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Tab3', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '
    ', 'after_title' => '
    ', )); ?>

    " />
     
     
     
     
     
     
    />