' . __( 'The Adventure Bound Bound 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 Bound, provides the following Theme Options:', 'adventurebound' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'adventurebound' ) . '
' . '' . __( 'For more information:', 'adventurebound' ) . '
' . '' . __( 'Adventure Bound Home Page', 'adventurebound' ) . '
' . '' . __( 'Contact Eric Schwarz', 'adventurebound' ) . '
'; add_contextual_help( $theme_page, $help ); } add_action( 'admin_menu', 'adventurebound_theme_options_add_page' ); /** * Returns an array of layout options registered for Advebture Bound. * */ function adventurebound_layouts() { $layout_options = array( 'dates' => array( 'value' => 'dates', 'label' => __( 'Dates in Upper Right Corner', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/date.jpg',), 'no-dates' => array( 'value' => 'no-dates', 'label' => __( 'No Dates are Displayed', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/no-date.jpg',), ); return apply_filters( 'adventurebound_layouts', $layout_options ); } /** * Returns an array of color schemes registered for Adventure Bound. * */ function adventurebound_color_schemes() { $color_scheme_options = array( 'red' => array('value' => 'red','label' => __( 'Red', 'adventurebound' ),'thumbnail' => get_template_directory_uri() . '/images/red.png','default_link_color' => '#d71015',),); return apply_filters( 'adventurebound_color_schemes', $color_scheme_options );} /** * Returns the default options for Twenty Eleven. * */ function adventurebound_get_default_theme_options() { $default_theme_options = array( 'link_color' => adventurebound_get_default_link_color( 'red' ), 'theme_layout' => 'dates',); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'dates'; return apply_filters( 'adventurebound_default_theme_options', $default_theme_options ); } /** * Returns the default link color for Adventure Bound, based on color scheme. * * @param $string $color_scheme Color scheme. Defaults to the active color scheme. * @return $string Color. */ function adventurebound_get_default_link_color( $color_scheme = null ) { if ( null === $color_scheme ) { $options = adventurebound_get_theme_options(); $color_scheme = $options['color_scheme']; } $color_schemes = adventurebound_color_schemes(); if ( ! isset( $color_schemes[ $color_scheme ] ) ) return false; return $color_schemes[ $color_scheme ]['default_link_color']; } /** * Returns the options array for Adventure Bound. * */ function adventurebound_get_theme_options() { return get_option( 'adventurebound_theme_options', adventurebound_get_default_theme_options() ); } /** * Returns the options array for Adventure Bound. * */ function adventurebound_theme_options_render_page() { ?>