"open"), array( "id" => "bombay_breadcrumb", "default" => "", "type" => "bombay_breadcrumb", "std" => ""), array( "id" => "bombay_logo", "default" => "no", "type" => "bombay_logo", "std" => ""), array( "id" => "bombay_sidebarpos", "default" => "", "type" => "bombay_sidebarpos", "std" => ""), array( "id" => "bombay_description", "default" => "yes", "type" => "bombay_description", "std" => ""), array( "id" => "bombay_feeds", "default" => "yes", "type" => "bombay_feeds", "std" => ""), array( "id" => "bombay_footer", "default" => "", "type" => "bombay_footer", "std" => ""), array("type" => "close") ); $uploadpath = wp_upload_dir(); if ($uploadpath['baseurl']=='') $uploadpath['baseurl'] = get_bloginfo('siteurl').'/wp-content/uploads'; function bombay_options() { global $options, $uploadpath; if ('bombay_save'== $_REQUEST['action'] ) { foreach ($options as $value) { if( !isset( $_REQUEST[ $value['id'] ] ) ) { } else { update_option( $value['id'], stripslashes($_REQUEST[ $value['id']])); } } if(stristr($_SERVER['REQUEST_URI'],'&saved=true')) { $location = $_SERVER['REQUEST_URI']; } else { $location = $_SERVER['REQUEST_URI'] . "&saved=true"; } if ($_FILES["file-logo"]["type"]){ $directory = $uploadpath['basedir'].'/'; move_uploaded_file($_FILES["file-logo"]["tmp_name"], $directory . $_FILES["file-logo"]["name"]); update_option('bombay_logoimage', $uploadpath['baseurl']. "/". $_FILES["file-logo"]["name"]); } header("Location: $location"); die; } // set default options foreach ($options as $default) { if(get_option($default['id'])=="") { update_option($default['id'],$default['default']); } } /* // delete all options foreach ($options as $default) { delete_option($default['id'],$default['default']); } */ // add_menu_page('bombay', __('bombay theme','bombay'), 10, 'bombay-settings', 'bombay_admin'); add_menu_page(__('Bombay settings','bombay'), __('Bombay','bombay'), 10, 'bombay-settings', 'bombay_admin'); } function bombay_admin() { global $options, $uploadpath; ?>

Bombay homepage

  
  
  
   '; } ?> Change write permissions with CHMOD 755 or 777','bombay'), $uploadpath['baseurl']); ?>

  


You can add widgets to the footer from the widgets menu
$value): if ( sanitize_title($value['name']) == $index): $index = $key; break; endif; endforeach; endif; $sidebars_widgets = wp_get_sidebars_widgets(); if (empty($wp_registered_sidebars[$index]) || !array_key_exists($index, $sidebars_widgets) || !is_array($sidebars_widgets[$index]) || empty($sidebars_widgets[$index])) return false; else return true; } if ( function_exists('register_sidebar') ) { register_sidebar(array( 'name' => 'Default sidebar', 'id' => 'sidebar-1', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); register_sidebar(array( 'name' => 'Footer', 'id' => 'sidebar-2', 'before_widget' => '
    ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ' )); } function themeoptions_css() { // Adds Dashboard Head Style echo " "; } ?>