Thank You', 'adventure' ), // Setting field label 'adventure_thank_you', // Function that renders the settings field 'theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'general' // Settings section. Same as the first argument in the add_settings_section() above ); add_settings_field( 'premium_options', __( 'Activate Adenture+
Features
', 'adventure' ), 'adventure_active_premium_options', 'theme_options', 'general' ); add_settings_field( 'color_scheme', // Unique identifier for the field for this section __( 'Menu Color', 'adventure' ), // Setting field label 'adventure_settings_field_color_scheme', // Function that renders the settings field 'theme_options', // Menu slug, used to uniquely identify the page; see twentyeleven_theme_options_add_page() 'general' // Settings section. Same as the first argument in the add_settings_section() above ); add_settings_field( 'active', __( '', 'adventure' ), 'adventure_is_active', 'theme_options', 'general' ); add_settings_field( 'link_color', __( 'Menu Location', 'adventure' ), 'adventure_settings_field_link_color', 'theme_options', 'general' ); add_settings_field( 'sidebar_options', __( 'Sidebar Options
(Only Avaliable
with Activation)', 'adventure' ), 'adventure_settings_sidebar_options', 'theme_options', 'general' ); add_settings_field( 'menu_layout', __( 'Menu Layout
(Only Avaliable
with Activation)', 'adventure' ), 'adventure_settings_menu', 'theme_options', 'general' ); add_settings_field( 'contrast_options', __( 'Contrast
(Only Avaliable
with Activation)', 'adventure' ), 'adventure_settings_contrast', 'theme_options', 'general' ); } add_action( 'admin_init', 'adventure_theme_options_init' ); /** * Change the capability required to save the 'twentyeleven_options' options group. * * @see twentyeleven_theme_options_init() First parameter to register_setting() is the name of the options group. * @see twentyeleven_theme_options_add_page() The edit_theme_options capability is used for viewing the page. * * By default, the options groups for all registered settings require the manage_options capability. * This filter is required to change our theme options page to edit_theme_options instead. * By default, only administrators have either of these capabilities, but the desire here is * to allow for finer-grained control for roles and users. * * @param string $capability The capability used for the page, which is manage_options by default. * @return string The capability to actually use. */ function adventure_option_page_capability( $capability ) { return 'edit_theme_options'; } add_filter( 'option_page_capability_adventure_options', 'adventure_option_page_capability' ); /** * Add our theme options page to the admin menu, including some help documentation. * * This function is attached to the admin_menu action hook. * * @since Twenty Eleven 1.0 */ function adventure_theme_options_add_page() { $theme_page = add_theme_page( __( 'Theme Options', 'adventure' ), // Name of page __( 'Theme Options', 'adventure' ), // Label in menu 'edit_theme_options', // Capability required 'theme_options', // Menu slug, used to uniquely identify the page 'adventure_theme_options_render_page' // Function that renders the options page ); if ( ! $theme_page ) return; add_action( "load-$theme_page", 'adventure_theme_options_help' ); } add_action( 'admin_menu', 'adventure_theme_options_add_page' ); function adventure_theme_options_help() { $help = '

' . __( 'The Adventure Bound Basic 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 Basic, does not provides the following Theme Options, they are only available with the with the premium version Adventure Bound:', 'adventure' ) . '

' . '
    ' . '
  1. ' . __( 'Website Color: You can choose from a bunch of different images to customize the look and feel for your entire site.', 'adventure' ) . '
  2. ' . '
  3. ' . __( 'Hide Date: You can choose the opption of not display the date on the home.', 'adventure' ) . '
  4. ' . '
' . '

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

' . '

' . __( 'The Adventure PlusHome Page', 'adventure' ) . '

' . '

' . __( 'Contact Eric Schwarz', 'adventure' ) . '

'; $sidebar = '

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

' . '

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

' . '

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

'; $screen = get_current_screen(); if ( method_exists( $screen, 'add_help_tab' ) ) { // WordPress 3.3 $screen->add_help_tab( array( 'title' => __( 'Overview', 'adventure' ), 'id' => 'theme-options-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); } else { // WordPress 3.2 add_contextual_help( $screen, $help . $sidebar ); } } /** * Returns an array of color schemes registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ 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' => '#b30010', ), 'green' => array( 'value' => 'green', 'label' => __( 'Green', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/green.png', 'default_link_color' => '#1e8e21', ), 'blue' => array( 'value' => 'blue', 'label' => __( 'Blue', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/blue.png', 'default_link_color' => '#1041b4', ), 'teal' => array( 'value' => 'teal', 'label' => __( 'Teal', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/teal.png', 'default_link_color' => '#32b5a0', ), 'pink' => array( 'value' => 'pink', 'label' => __( 'Pink', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/pink.png', 'default_link_color' => '#ff0091', ), 'christmas' => array( 'value' => 'christmas', 'label' => __( 'Christmas', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/christmas.png', 'default_link_color' => '#176001', ), ); return apply_filters( 'adventure_color_schemes', $color_scheme_options ); } /** * Returns an array of layout options registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function adventure_layouts() { $layout_options = array( 'left' => array( 'value' => 'left', 'label' => __( 'Content on Left', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/content-sidebar.png', ), 'right' => array( 'value' => 'right', '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 ); } /** * Returns an array of layout options registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function adventure_menu() { $layout_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', $layout_options ); } /** * Returns an array of layout options registered for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function adventure_contrast() { $layout_options = array( 'seventyfive' => array( 'value' => 'seventyfive', 'label' => __( 'Contrast 75%', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/75.png', ), 'eighty' => array( 'value' => 'eighty', 'label' => __( 'Contrast 80%', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/80.png', ), 'eightyfive' => array( 'value' => 'eightyfive', 'label' => __( 'Contrast 85%', 'adventure' ), 'thumbnail' => get_template_directory_uri() . '/images/85.png', ), ); return apply_filters( 'adventure_contrast', $layout_options ); } /** * Returns the default options for Twenty Eleven. * * @since Twenty Eleven 1.0 */ function adventure_get_default_theme_options() { $default_theme_options = array( 'menu_color' => 'purple', 'link_color' => adventure_get_default_link_color( 'purple' ), 'premium_options' => 'Paste Transaction Code', 'active' => 'deactive', 'sidebar_options' => 'content-sidebar', 'menu_layout' => 'bottom', 'contrast_options' => '75', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'purple'; return apply_filters( 'adventure_default_theme_options', $default_theme_options ); } /** * Returns the default link color for Twenty Eleven, based on color scheme. * * @since Twenty Eleven 1.0 * * @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. * * @since Twenty Eleven 1.0 */ function adventure_get_theme_options() { return get_option( 'adventure_theme_options', adventure_get_default_theme_options() ); } /** * Renders the Thank You setting field. * * @since Eric Schwarz edited this huge pain in my */ function adventure_thank_you() { ?>

Thank you for supporting my WordPress Theme "Adventure."

I would like to encourage you to regularly check for updates because I spend a lot of time improving and fixing the code so that it just simply keeps working better. You'll find the blead-edge downloads Here.

If you would really like to show me your support of the Adventure theme or would like to be able to use the additional features below, just quick pick up your own Activation Code by visiting the Adventure+ Page.

  1. Menu at top or bottom.
  2. A Drop down-menu is built in
  3. The ability to upload header images
  4. Move the content to the left, the right, or just remove the sidebar
  5. An additional widget area below content can be used
  6. Choose from 3 different contrast ratios for readability
  7. Custom Google Font's in the next release

With the addition of all the features from purchasing Adventure+, I also help out with small customizations of the theme and I lend my knowledge of WordPress to you for any question or support you may need.

If you have any questions, comments, problems, or suggestions please feel free to Contact Me Here.

Thank you again for your Support,

Eric J. Schwarz


' . adventure_get_default_link_color( $options['color_scheme'] ) . '' ); ?>
Click Here to see a sample.

'widget%d', 'id' => 'widget', 'description' => 'Widgets in this area will be shown below the the content of every page.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); define('HEADER_TEXTCOLOR', ''); define('HEADER_IMAGE_WIDTH', 994); define('HEADER_IMAGE_HEIGHT', 175); define('NO_HEADER_TEXT', true ); add_custom_image_header( 'adventure_header_style', 'adventure_admin_header_style', 'adventure_admin_header_image'); if ( ! function_exists( 'adventure_header_style' ) ) : function adventure_header_style() {}endif; if ( ! function_exists( 'adventure_admin_header_style' ) ) : function adventure_admin_header_style() {}endif; if ( ! function_exists( 'adventure_admin_header_image' ) ) : function adventure_admin_header_image() {?><?php bloginfo('description');?> 'SideBar', 'id' => 'sidebar', 'description' => 'Widgets in this area will be shown in the sidebar.', 'before_widget' => '', 'after_widget' => '', 'before_title' => '

', 'after_title' => '

', )); add_custom_background(); add_theme_support( 'post-thumbnails', array( 'post', 'page' ) ); add_image_size( 'page-thumbnail', 740, 9999, true ); function print_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
>
commented
comment_approved == '0') : ?>
$depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
at