' . __( 'Some themes provide customization options that are grouped together on a Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, blog template , provides the following Theme Options:', 'blogtemplate' ) . '

' . '
    ' . '
  1. ' . __( 'Default Themes: You can choose a color palette of "Highway" (Highway background with Flower text) or "Flower" (Flower background with Highway text) for your site.', 'blogtemplate' ) . '
  2. ' . '
  3. ' . __( 'Link Color: You can choose the color used for text links on your site. You can enter the HTML color or hex code, or you can choose visually by clicking the "Select a Color" button to pick from a color wheel.', 'blogtemplate' ) . '
  4. ' . '
  5. ' . __( 'Default Layout: You can choose if you want your site’s default layout to have a sidebar on the left, the right, or not at all.', 'blogtemplate' ) . '
  6. ' . '
' . '

' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'blogtemplate' ) . '

' . '

' . __( 'For more information:', 'blogtemplate' ) . '

' . '

' . __( 'Documentation on Theme Options', 'blogtemplate' ) . '

' . '

' . __( 'Support Forums', 'blogtemplate' ) . '

'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'blogtemplate_theme_options_add_page' ); /** * Returns the default options for blog template . * * @since blog template 1.0 */ function blogtemplate_get_default_theme_options() { $default_theme_options = array( 'color_scheme' => 'bvp', ); return apply_filters( 'blogtemplate_default_theme_options', $default_theme_options ); } /** * Returns the options array for blog template . * * @since blog template 1.0 */ function blogtemplate_get_theme_options() { return get_option( 'blogtemplate_theme_options', blogtemplate_get_default_theme_options() ); } /** * Returns the options array for blog template . * * @since blog template 1.2 */ function blogtemplate_theme_options_render_page() { ?>


Upload your file here:

'; if ($file = $options['file']) { // var_dump($file); global $logo_path; if(isset($file['url'])){ $logo_path = $file['url']; }else{ $logo_path =''; } //echo $logo_path; // echo ""; ?> "; } function ud_options_validate($input) { $newinput = array(); if ($_FILES['ud_filename']) { $overrides = array('test_form' => false); $file = wp_handle_upload($_FILES['ud_filename'], $overrides); $newinput['file'] = $file; } return $newinput; // add the admin page and such } add_action('admin_init', 'fd_admin_init'); function fd_admin_init() { register_setting( 'fd_options', 'fd_options', 'fd_options_validate' ); add_settings_section('fd_main', 'Custom Theme Section', 'fd_section_text', 'fd'); add_settings_field('fd_filename', 'Footer Logo File:', 'fd_setting_filename', 'fd', 'fd_main'); } function fd_section_text() { $options = get_option('fd_options'); if ($file = $options['file']) { // var_dump($file); $foot_logo_path = $file['url']; //echo $foot_logo_path; // echo ""; ?> "; } function fd_options_validate($input) { $newfootinput = array(); if ($_FILES['fd_filename']) { $footoverrides = array('test_form' => false); $footfile = wp_handle_upload($_FILES['fd_filename'], $footoverrides); $newfootinput['file'] = $footfile; } return $newfootinput; }