0, 'show_feed_link' => 0, 'show_full_home' => 0, 'show_full_archive' => 0, 'featured_heading' => __( 'Featured Posts', 'woothemes' ), 'featured_thumb' => 65, 'aside_heading' => '', 'home' => $home, 'about' => '', 'archives' => '', 'subscribe' => $feedlink, 'contact' => '', 'prefix_heading' => '//', 'homepage_heading' => __( 'home', 'woothemes' ), 'index_heading' => __( 'index', 'woothemes' ), 'single_post_heading' => __( "you're reading...", 'woothemes' ), 'archives_heading' => __( 'archives', 'woothemes' ), 'search_results_heading' => __( 'here you go', 'woothemes' ), 'author_archive_heading' => __( 'author archive', 'woothemes' ), 'four_o_four_heading' => __( 'uh oh!', 'woothemes' ), ); return $defaults; } /** * Returns the current morning after theme options */ function morningafter_get_theme_options() { $morningafter_options = get_option( 'theme_morningafter_options', morningafter_get_default_theme_options() ); return $morningafter_options; } /** * Setting Page Tabs */ function morningafter_get_settings_page_tabs() { $tabs = array( 'general' => __( 'General', 'woothemes' ), 'homepage' => __( 'Homepage', 'woothemes' ), 'header_links' => __( 'Header Links', 'woothemes' ), 'template_headings' => __( 'Template Headings', 'woothemes' ) ); return $tabs; } /** * Define Function to Hold HTML Output for Tabs */ function morningafter_admin_options_page_tabs( $current = 'general' ) { if ( isset ( $_GET['tab'] ) ) : $current = $_GET['tab']; else: $current = 'general'; endif; $tabs = morningafter_get_settings_page_tabs(); $links = array(); foreach( $tabs as $tab => $name ) : if ( $tab == $current ) : $links[] = "$name"; else : $links[] = "$name"; endif; endforeach; echo '
'; echo ''; } /** * Define Function to Hold HTML Output for Theme Options page */ function morningafter_admin_options_page() { if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; ?>

" .__( 'Theme settings updated successfully.', 'woothemes' )."

"; endif; ?>