Thank You', 'adventurebound' ), 'adventurebound_thank_you', 'theme_options', 'general' ); add_settings_field( 'premium_options', __( 'Activate AdentureBound Features', 'adventurebound' ), 'adventurebound_active_premium_options', 'theme_options', 'general' ); add_settings_field( 'active', __( '', 'adventurebound' ), 'adventurebound_is_active', 'theme_options', 'general' ); add_settings_field( 'link_color', __( 'Link Color(Only Avaliable with Purchase)', 'adventurebound' ), 'adventurebound_settings_field_link_color', 'theme_options', 'general' ); add_settings_field( 'date_option', __( 'Blog Dates(Only Avaliable with Purchase)', 'adventurebound' ), 'adventurebound_settings_field_layout', 'theme_options', 'general' ); add_settings_field( 'featured_image', __( 'Featured Image(Only Avaliable with Purchase)', 'adventurebound' ), 'adventurebound_settings_featured_image', 'theme_options', 'general' ); add_settings_field( 'hide_tag', __( 'Hides Tags(Only Avaliable with Purchase)', 'adventurebound' ), 'adventurebound_settings_hide_tag', 'theme_options', 'general' ); } add_action( 'admin_init', 'adventurebound_theme_options_init' ); function adventurebound_option_page_capability( $capability ) { return 'edit_theme_options'; } add_filter( 'option_page_capability_adventurebound_options', 'adventurebound_option_page_capability' ); /* Adds in the options help menu (I know it needs work) */ function adventurebound_theme_options_add_page() { $theme_page = add_theme_page( __( 'Theme Options', 'adventurebound' ), // Name of page __( 'Theme Options', 'adventurebound' ), // Label in menu 'edit_theme_options', // Capability required 'theme_options', // Menu slug, used to uniquely identify the page 'adventurebound_theme_options_render_page' // Function that renders the options page ); if ( ! $theme_page ) return; add_action( "load-$theme_page", 'adventurebound_theme_options_help' ); } add_action( 'admin_menu', 'adventurebound_theme_options_add_page' ); function adventurebound_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:', 'adventurebound' ) . '
' . '' . __( 'Remember to click "Save Changes" to save any changes you have made to the theme options.', 'adventurebound' ) . '
' . '' . __( 'For more information:', 'adventurebound' ) . '
' . '' . __( 'Adventure Bound Basic Home Page', 'adventurebound' ) . '
' . '' . __( 'The Premium Adventure Bound Home Page', 'adventurebound' ) . '
' . '' . __( 'Contact Eric Schwarz', 'adventurebound' ) . '
'; $sidebar = '' . __( 'For more information:', 'adventurebound' ) . '
' . '' . __( 'Documentation on Theme Options', 'adventurebound' ) . '
' . '' . __( 'Support Forums', 'adventurebound' ) . '
'; $screen = get_current_screen(); if ( method_exists( $screen, 'add_help_tab' ) ) { $screen->add_help_tab( array( 'title' => __( 'Overview', 'adventurebound' ), 'id' => 'theme-options-help', 'content' => $help, ) ); $screen->set_help_sidebar( $sidebar ); } else { add_contextual_help( $screen, $help . $sidebar ); } } /* Returns an arry for the default color, I have plans for this down the road to much more. */ function adventurebound_link_color() { $link_color_options = array( 'red' => array( 'value' => 'red', 'default_link_color' => '#d71015', ), ); return apply_filters( 'adventurebound_link_color', $link_color_options ); } /* Returns an array of display options registered for Adventure Bound. */ function adventurebound_layouts() { $layout_options = array( 'dates' => array( 'value' => 'dates', 'label' => __( 'Dates', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/date.jpg', ), 'no-dates' => array( 'value' => 'no-dates', 'label' => __( 'No-Dates', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/no-date.jpg', ), 'no-hover' => array( 'value' => 'no-hover', 'label' => __( 'Information Allways Displayed', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/no-hover.jpg', ), ); return apply_filters( 'adventurebound_layouts', $layout_options ); } /* Returns an array of Featured Image options registered for Adventure Bound. */ function adventurebound_featured_image() { $feature_image_options = array( 'featured' => array( 'value' => 'featured', 'label' => __( 'Featured Images', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/featured.jpg', ), 'no-featured' => array( 'value' => 'no-featured', 'label' => __( 'No Featured Images', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/no-featured.jpg', ), 'postonly' => array( 'value' => 'postonly', 'label' => __( 'Only on Posts', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/featured.jpg', ), 'pageonly' => array( 'value' => 'pageonly', 'label' => __( 'Only on Pages', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/featured.jpg', ), ); return apply_filters( 'adventurebound_featured_image', $feature_image_options ); } /* Returns an array for hiding tags and categories Adventure Bound. */ function adventurebound_hide_tag() { $feature_image_options = array( 'tags' => array( 'value' => 'tags', 'label' => __( 'Tags are displayed.', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/tags.jpg', ), 'no-tags' => array( 'value' => 'no-tags', 'label' => __( 'Tags and Categories Will Not Display', 'adventurebound' ), 'thumbnail' => get_template_directory_uri() . '/images/no-tags.jpg', ), ); return apply_filters( 'adventurebound_hide_tag', $feature_image_options ); } /* Setup the default Theme Options in Adventure Bound */ function adventurebound_get_default_theme_options() { $default_theme_options = array( 'link_color' => 'red', 'premium_options' => 'Paste Transaction Code', 'active' => 'deactive', 'link_color' => adventurebound_get_default_link_color( 'red' ), 'theme_layout' => 'content-sidebar', 'featured_image' => 'featured', 'hide_tag' => 'tags', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'red'; return apply_filters( 'adventurebound_default_theme_options', $default_theme_options ); } /* Returns the default link color for Adventure Bound, based on color scheme. */ function adventurebound_get_default_link_color( $link_color = null ) { if ( null === $link_color ) { $options = adventurebound_get_theme_options(); $link_color = $options['link_color']; } $link_colors = adventurebound_link_color(); if ( ! isset( $link_colors[ $link_color ] ) ) return false; return $link_colors[ $link_color ]['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() ); } /* Renders the Thank You setting field. */ function adventurebound_thank_you() { ?>I 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. WordPress will alert you to updates but you can find the blead-edge downloads Here.
I'm trying to make a career out of building themes for WordPress just like this one. Which is why I offer the following premium features to further customize this theme for your enjoyment. If you would like to have the additional features or just want to support my work, you can do so here.
If you have any questions, comments, problems, or suggestions please feel free to Contact Me Here.
Thank you for using my Theme,
Eric J. Schwarz
Click Here to see a sample.
$depth, 'max_depth' => $args['max_depth'] ) ) ); ?>