' . __( 'The Adventure+ Theme by Eric Schwarz provides customization options that are grouped together on the Theme Options screen. If you change themes, options may change or disappear, as they are theme-specific. Your current theme, Adventure+, provides the following Theme Options:', 'adventure' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'adventure' ) . '
' . '' . __( 'For more information:', 'adventure' ) . '
' . '' . __( 'Adventure+ Home Page', 'adventure' ) . '
' . '' . __( 'Contact Eric Schwarz', 'adventure' ) . '
'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'adventure_theme_options_add_page' ); /** * Returns an array of color schemes registered for Adventure+. * */ function adventure_color_schemes() { $color_scheme_options = array( 'purple' => array('value' => 'purple','label' => __( 'Purple', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/purp.png','default_link_color' => '#0b6492',), 'red' => array('value' => 'red','label' => __( 'Red', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/red.png','default_link_color' => '#b20c1a',), 'green' => array('value' => 'green','label' => __( 'Green', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/green.png','default_link_color' => '#542912',), 'blue' => array('value' => 'blue','label' => __( 'Blue', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/blue.png','default_link_color' => '#c63b00',), 'teal' => array('value' => 'teal','label' => __( 'Teal', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/teal.png','default_link_color' => '#e6e600',), 'pink' => array('value' => 'pink','label' => __( 'Pink', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/pink.png','default_link_color' => '#650898',), 'christmas' => array('value' => 'christmas','label' => __( 'Christmas', 'adventure' ),'thumbnail' => get_template_directory_uri() . '/images/christmas.png','default_link_color' => '#FFF',),); return apply_filters( 'adventure_color_schemes', $color_scheme_options );} /** * Returns an array of layout options registered for Twenty Eleven. * */ function adventure_layouts() { $layout_options = array( 'content-sidebar' => array( 'value' => 'content-sidebar', 'label' => __( 'Content on left', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/content-sidebar.png',), 'sidebar-content' => array( 'value' => 'sidebar-content', 'label' => __( 'Content on right', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/sidebar-content.png',), 'content' => array( 'value' => 'content', 'label' => __( 'One-column, no sidebar', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/content.png',), ); return apply_filters( 'adventure_layouts', $layout_options ); } function adventure_menu() { $menu_options = array( 'bottom' => array( 'value' => 'bottom', 'label' => __( 'Menu on Bottom', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/bottom.png',), 'top' => array( 'value' => 'top', 'label' => __( 'Menu on Top', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/content-sidebar.png',), ); return apply_filters( 'adventure_menu', $menu_options ); } function adventure_contrast() { $contrast_options = array( 'seventyfive' => array( 'value' => 'seventyfive', 'label' => __( 'Contrast #B4B09D', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/75.png', ), 'eighty' => array( 'value' => 'eighty', 'label' => __( 'Contrast #343131', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/80.png', ), 'eightyfive' => array( 'value' => 'eightyfive', 'label' => __( 'Contrast #5E5C53', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/85.png',), ); return apply_filters( 'adventure_contrast', $contrast_options ); } /** * Returns the default options for Twenty Eleven. * */ function adventure_get_default_theme_options() { $default_theme_options = array( 'color_scheme' => 'purple', 'link_color' => adventure_get_default_link_color( 'purple' ), 'theme_layout' => 'content-sidebar', 'menu_layout' => 'bottom', 'contrast_layout' => 'seventyfive',); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'sidebar-content'; if ( is_rtl() ) $default_theme_options['menu_layout'] = 'bottom'; if ( is_rtl() ) $default_theme_options['contrast_layout'] = 'seventyfive'; return apply_filters( 'adventure_default_theme_options', $default_theme_options ); } /** * Returns the default link color for Twenty Eleven, based on color scheme. * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function adventure_get_default_link_color( $color_scheme = null ) { if ( null === $color_scheme ) { $options = adventure_get_theme_options(); $color_scheme = $options['color_scheme']; } $color_schemes = adventure_color_schemes(); if ( ! isset( $color_schemes[ $color_scheme ] ) ) return false; return $color_schemes[ $color_scheme ]['default_link_color']; } /** * Returns the options array for Twenty Eleven. * */ function adventure_get_theme_options() { return get_option( 'adventure_theme_options', adventure_get_default_theme_options() ); } /** * Returns the options array for Twenty Eleven. * */ function adventure_theme_options_render_page() { ?>
$depth, 'max_depth' => $args['max_depth'] ) ) ); ?>