' . __( '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, Dusk To Dawn, provides the following Theme Options:', 'dusktodawn' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'dusktodawn' ) . '
' . '' . __( 'For more information:', 'dusktodawn' ) . '
' . '' . __( 'Documentation on Theme Options', 'dusktodawn' ) . '
' . '' . __( 'Support Forums', 'dusktodawn' ) . '
'; $screen = get_current_screen(); $screen->add_help_tab( array( 'title' => __( 'Overview', 'dusktodawn' ), 'id' => 'theme-options-help', 'content' => $help, ) ); } // Returns an array of layout options registered for Dusk To Down. function dusktodawn_theme_layouts() { $theme_layout_options = array( 'sidebar-content' => array( 'value' => 'sidebar-content', 'label' => __( 'Content on right', 'dusktodawn' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png', ), 'content-sidebar' => array( 'value' => 'content-sidebar', 'label' => __( 'Content on left', 'dusktodawn' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png', ) ); return apply_filters( 'dusktodawn_theme_layouts', $theme_layout_options ); } // Returns the default options for dusktodawn. function dusktodawn_get_default_theme_options() { $default_theme_options = array( 'link_color' => '#497ca7', 'theme_layout' => 'sidebar-content' ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'content-sidebar'; return apply_filters( 'dusktodawn_default_theme_options', $default_theme_options ); } // Returns the options array for dusktodawn. function dusktodawn_get_theme_options() { return get_option( 'dusktodawn_theme_options', dusktodawn_get_default_theme_options() ); } // Returns the options array for dusktodawn. function theme_options_render_page() { ?>