"; $gazpo_options = array( 'gazpo_logo_url' => $gazpo_logo_url, 'gazpo_favicon_url' => '', 'gazpo_rss_url' => get_bloginfo('rss2_url'), 'gazpo_show_latest_posts' => true, 'gazpo_read_more' => $gazpo_read_more, 'gazpo_show_slider' => true, 'gazpo_show_carousel' => true, 'gazpo_show_homecats' => true, 'gazpo_slider_category' => '', 'gazpo_carousel_category' => '', 'gazpo_feat_cat1' => '', 'gazpo_feat_cat2' => '', 'gazpo_feat_cat3' => '', 'gazpo_feat_cat4' => '', 'gazpo_feat_cat5' => '', 'gazpo_tracking_code' => '', 'gazpo_css_code' => '', 'gazpo_ad468_code' => $gazpo_ad468_code ); function gazpo_validate_options( $input ) { global $gazpo_options; $settings = get_option( 'gazpo_options', $gazpo_options ); if ( ! isset( $input['gazpo_logo_url'] ) ) $input['gazpo_logo_url'] = null; $input['gazpo_logo_url'] = esc_url_raw( $input['gazpo_logo_url'] ); if ( ! isset( $input['gazpo_favicon_url'] ) ) $input['gazpo_favicon_url'] = null; $input['gazpo_favicon_url'] = esc_url_raw( $input['gazpo_favicon_url'] ); if ( ! isset( $input['gazpo_rss_url'] ) ) $input['gazpo_rss_url'] = null; $input['gazpo_rss_url'] = esc_url_raw( $input['gazpo_rss_url'] ); if ( ! isset( $input['gazpo_show_slider'] ) ) $input['gazpo_show_slider'] = null; $input['gazpo_show_slider'] = ( $input['gazpo_show_slider'] == 1 ? 1 : 0 ); if ( ! isset( $input['gazpo_show_carousel'] ) ) $input['gazpo_show_carousel'] = null; $input['gazpo_show_carousel'] = ( $input['gazpo_show_carousel'] == 1 ? 1 : 0 ); if ( ! isset( $input['gazpo_show_latest_posts'] ) ) $input['gazpo_show_latest_posts'] = null; $input['gazpo_show_latest_posts'] = ( $input['gazpo_show_latest_posts'] == 1 ? 1 : 0 ); if ( ! isset( $input['gazpo_read_more'] ) ) $input['gazpo_read_more'] = null; $input['gazpo_read_more'] = wp_kses_stripslashes($input['gazpo_read_more']); if ( ! isset( $input['gazpo_tracking_code'] ) ) $input['gazpo_tracking_code'] = null; $input['gazpo_tracking_code'] = wp_kses_stripslashes($input['gazpo_tracking_code']); if ( ! isset( $input['gazpo_css_code'] ) ) $input['gazpo_css_code'] = null; $input['gazpo_css_code'] = wp_kses_stripslashes($input['gazpo_css_code']); if ( ! isset( $input['gazpo_ad468_code'] ) ) $input['gazpo_ad468_code'] = null; $input['gazpo_ad468_code'] = wp_kses_stripslashes($input['gazpo_ad468_code']); return $input; } if ( is_admin() ) : //register settings and call sanitation functions function gazpo_register_settings() { register_setting( 'gazpo_theme_options', 'gazpo_options', 'gazpo_validate_options' ); } add_action( 'admin_init', 'gazpo_register_settings' ); function gazpo_theme_options() { add_theme_page('gazpo'.__('Theme Options','gazpo'), 'gazpo '.__('Theme Options','gazpo'), 'edit_theme_options', 'theme-options', 'gazpo_theme_options_page' ); } add_action( 'admin_menu', 'gazpo_theme_options' ); //default opttions function gazpo_default_options() { global $gazpo_options; $gazpo_options_temp = $gazpo_options; $options = get_option( 'gazpo_options', $gazpo_options ); foreach ( $gazpo_options as $gazpo_option_key => $gazpo_option_value ) { if ( isset($options[$gazpo_option_key])) { $gazpo_options[$gazpo_option_key] = $options[$gazpo_option_key]; } } update_option( 'gazpo_options', $gazpo_options ); } add_action( 'init', 'gazpo_default_options' ); //generate options page function gazpo_theme_options_page() { global $gazpo_options; if ( ! isset( $_REQUEST['settings-updated'] ) ) $_REQUEST['settings-updated'] = false; if( isset( $_REQUEST['action'])&&('reset' == $_REQUEST['action']) ) delete_option( 'gazpo_options' ); ?>

silverOrchid

" . get_current_theme() .' '.__( 'Theme Options' ,'gazpo' ) . ""; ?>

Homepage Settings

http:// .','gazpo' ); ?>
http:// .','gazpo' ); ?>
http:// . Leave blank to use default RSS Feed URL.','gazpo' ); ?>
/>
0, 'hierarchical' => 0 ) ); ?> none to show latest posts.','gazpo' ); ?>
/>
0, 'hierarchical' => 0 ) ); ?> none to show latest posts.','gazpo' ); ?>
0, 'hierarchical' => 0 ) ); ?> none if you don\'t want to display.','gazpo' ); ?>
0, 'hierarchical' => 0 ) ); ?> none if you don\'t want to display.','gazpo' ); ?>
0, 'hierarchical' => 0 ) ); ?> none if you don\'t want to display.','gazpo' ); ?>
0, 'hierarchical' => 0 ) ); ?> none if you don\'t want to display.','gazpo' ); ?>
0, 'hierarchical' => 0 ) ); ?> none if you don\'t want to display.','gazpo' ); ?>
/>

Miscellaneous

html code for the 468x60 px header ad. ', 'gazpo' ); ?>