' . __( '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' ) . '

' . '
    ' . '
  1. ' . __( '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.', 'runo' ) . '
  2. ' . '
' . '

' . __( '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 ) { ?>

Missing some options?

Only in Premium version: select your own background image or color; font options. Some examples:

', 'runo' ) ?>

Premium theme

»

get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $options = runo_get_theme_options(); $defaults = runo_get_default_theme_options(); // Default Layout $wp_customize->add_section( 'runo_layout', array( 'title' => __( 'Layout', 'runo' ), 'priority' => 80, ) ); $wp_customize->add_setting( 'runo_theme_options[theme_layout]', array( 'type' => 'option', 'default' => $defaults['theme_layout'], 'sanitize_callback' => 'sanitize_key', ) ); $layouts = runo_layouts(); $choices = array(); foreach ( $layouts as $layout ) { $choices[$layout['value']] = $layout['label']; } $wp_customize->add_control( 'runo_theme_options[theme_layout]', array( 'section' => 'runo_layout', 'type' => 'radio', 'choices' => $choices, ) ); } add_action( 'customize_register', 'runo_customize_register' ); /** * Bind JS handlers to make Theme Customizer preview reload changes asynchronously. * Used with blogname and blogdescription. * */ function runo_customize_preview_js() { wp_enqueue_script( 'runo-customizer', get_template_directory_uri() . '/inc/theme-customizer.js', array( 'customize-preview' ), '20120906', true ); } add_action( 'customize_preview_init', 'runo_customize_preview_js' );