' . __( '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, Runo Lite, provides the following Theme Options:', 'runo' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'runo' ) . '
'; $sidebar = '' . __( 'For more information:', 'runo' ) . '
' . '' . __( 'Documentation on Theme Options', 'runo' ) . '
' . '' . __( 'Support Forums', 'runo' ) . '
'; $screen = get_current_screen(); if ( method_exists( $screen, 'add_help_tab' ) ) { // WordPress 3.3 $screen->add_help_tab( array( 'title' => __( 'Overview', 'runo' ), 'id' => 'theme-options-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); } } /** * Returns an array of layout options registered for Runo. * */ function runo_layouts() { $layout_options = array( 'content' => array( 'value' => 'content', 'label' => __( 'One-column, no sidebar', 'runo' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content.png', ), 'content-sidebar' => array( 'value' => 'content-sidebar', 'label' => __( 'Content on left', 'runo' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/content-sidebar.png', ), 'sidebar-content' => array( 'value' => 'sidebar-content', 'label' => __( 'Content on right', 'runo' ), 'thumbnail' => get_template_directory_uri() . '/inc/images/sidebar-content.png', ), ); return apply_filters( 'runo_layouts', $layout_options ); } /** * Returns the default options for Runo. * */ function runo_get_default_theme_options() { $default_theme_options = array( 'theme_layout' => 'content', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'content'; return apply_filters( 'runo_default_theme_options', $default_theme_options ); } /** * Returns the options array for Runo. * */ function runo_get_theme_options() { return get_option( 'runo_theme_options', runo_get_default_theme_options() ); } /** * Renders the Layout setting field. * */ function runo_settings_field_layout() { $options = runo_get_theme_options(); foreach ( runo_layouts() as $layout ) { ?>Only in Premium version: select your own background image or color; font options. Some examples:
', 'runo' ) ?>