' . __( '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, Matala, provides the following Theme Options:', 'matala' ) . '

' . '
    ' . '
  1. ' . __( 'Random Photos Gallery: You can choose to display a gallery of three random images at the bottom of your single-image pages.', 'matala' ) . '
  2. ' . '
  3. ' . __( 'Random Photos Gallery Header: You can enter a custom title for your Random Photos Gallery. This title appears above the gallery and only shows if you are displaying the Random Photos Gallery.', 'matala' ) . '
  4. ' . '
' . '

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

' . '

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

' . '

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

' . '

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

'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'matala_theme_options_add_page' ); /** * Returns the default options for Matala. * */ function matala_get_default_theme_options() { $default_theme_options = array( 'show_random_photos' => false, 'random_photos_header' => 'Random Photos' ); return apply_filters( 'matala_default_theme_options', $default_theme_options ); } /** * Returns the options array for Matala. * */ function matala_get_theme_options() { return get_option( 'matala_theme_options', matala_get_default_theme_options() ); } /** * Returns the options array for Matala. * */ function theme_options_render_page() { ?>

/>

$value ) { if ( isset( $defaults[$field] ) ) $output[$field] = $defaults[$field]; else unset( $output[$field] ); } } return apply_filters( 'matala_theme_options_validate', $output, $input, $defaults ); }