'
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', )); } // Theme Name: Website /*Start of Theme Options*/ add_action('admin_head', 'themeoptions_css'); // CSS For "Theme Options Settings" Page $themename = "Theme Options"; $shortname = "theme"; $options = array ( array( "name" => "Bombay Options", "type" => "title"), array( "type" => "open"), array( "name" => "Welcome text", "desc" => "Add/edit the welcome text on the homepage. Make sure you enclose <p>paragraph text</p> in brackets to make the text easier to read.", "id" => $shortname."_welcome_text", "type" => "textarea", "std" => "

    Howdy guest, thanks for visiting my site, I hope you enjoy your stay!

    Feel free to search my site and leave comments.

    "), array( "name" => "Footer text", "desc" => "Add/edit the welcome text on the homepage. Make sure you enclose <p>paragraph text</p> in brackets to make the text easier to read.", "id" => $shortname."_footer_text", "type" => "textarea", "std" => "

    Bombay is a free Wordpress theme from DesignNudge.com released under the GPL License.

    Want to change this text? - this text is editable from the Wordpress Dashboard, simple head over to theme options to start editing.

    "), array( "name" => "Google Analytics", "desc" => "Enter your Google Analytics code here and it will automatically appear immediately before the end body tag.", "id" => $shortname."_google_analytics", "type" => "textarea", "std" => ""), 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_menu_page($themename." Options", "".$themename." ", '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


    #theme_welcome_text, #theme_footer_text, #theme_google_analytics {height: 200px;} #theme_openingtimes_sun, #theme_openingtimes_mon, #theme_openingtimes_tue, #theme_openingtimes_wed, #theme_openingtimes_thu, #theme_openingtimes_fri, #theme_openingtimes_sat, #theme_telephone_number {height: 25px;} "; } ?>

    " />
     
     
     
     
     
     
    />