appearance -> header and remove default header image. Would you like make your site different? Just choose the Home page. Enjoy...', 'amdhas'); ?>

$name ) : if ( $tab == $current ) : $links[] = "$name"; else : $links[] = "$name"; endif; endforeach; echo ''; } function amdhas_display_setting( $setting = array() ) { $options = get_option('amdhas_options'); if ( ! isset( $options[$setting['id']] ) ) $options[$setting['id']] = $setting['std']; switch ( $setting['type'] ) { case 'text': echo ""; echo '
'; break; case 'textarea': echo ""; echo '
'; break; case 'checkbox': echo "'; break; case "color": echo '
'; echo ""; echo '
'; break; case 'ched': echo "'; break; case 'select': echo ""; echo '
'; break; case 'radio': foreach ( $setting['choices'] as $value => $label ) { echo " " . $label . "
"; } break; case 'image': echo "

"; echo ''; echo ''; echo ' '; break; default: echo ""; echo '
'; break; } } function amdhas_register_settings() { if ( isset ( $_GET['tab'] ) ) : $tab = $_GET['tab']; else: $tab = 'general'; endif; $amdhas_sections = amdhas_get_sections($tab); $amdhas_settings = amdhas_get_settings($tab); register_setting( 'amdhas_options', 'amdhas_options', 'amdhas_options_validate' ); foreach ($amdhas_sections as $section) { add_settings_section($section['id'], $section['name'], 'amdhas_section_text', 'amdhas'); } foreach ($amdhas_settings as $setting) { add_settings_field($setting['id'], $setting['name'], 'amdhas_display_setting', 'amdhas', $setting['section'], $setting); } } function amdhas_sanitize_hex( $hex, $default = '' ) { if ( of_validate_hex( $hex ) ) { return $hex; } return $default; } function amdhas_validate_hex( $hex ) { $hex = trim( $hex ); if ( 0 === strpos( $hex, '#' ) ) { $hex = substr( $hex, 1 ); } elseif ( 0 === strpos( $hex, '%23' ) ) { $hex = substr( $hex, 3 ); } if ( 0 === preg_match( '/^[0-9a-fA-F]{6}$/', $hex ) ) { return false; } else { return true; } } function amdhas_sanitize_color( $input ) { $output = wp_parse_args( $input, array('color' => '') ); $output['color'] = apply_filters( 'amdhas_sanitize_hex', $input['color'] ); return $output; } add_filter( 'amdhas_sanitize_color', 'amdhas_sanitize_color' ); function amdhas_options_validate($input) { $options = get_option('amdhas_options'); if ( isset ( $input['validation-submit'] ) ) : $tab = $input['validation-submit']; else: $tab = 'general'; endif; $validate_settings = amdhas_get_settings($tab); foreach ($validate_settings as $setting) { if ($setting['type'] == 'checkbox' and !isset($input[$setting['id']]) ) { $options[$setting['id']] = 'false'; } elseif ($setting['type'] == 'radio' and !isset($input[$setting['id']]) ) { $options[$setting['id']] = 1; } elseif ($setting['type'] == 'textarea') { $options[$setting['id']] = wp_kses_post(trim($input[$setting['id']])); } else { $options[$setting['id']] = esc_attr(trim($input[$setting['id']])); } } return $options; } function amdhas_section_text() {} ?>