__('The Menu Bar', 'adventure' ) ) ); // WordPress 3.4+ if ( function_exists('get_custom_header')) { add_theme_support('custom-background'); } } endif; // Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link add_filter( 'wp_page_menu_args', 'adventure_page_menu_args' ); function adventure_page_menu_args( $args ) { $args['show_home'] = true; return $args; } /** * Filter 'get_comments_number' * * Filter 'get_comments_number' to display correct * number of comments (count only comments, not * trackbacks/pingbacks) * * Courtesy of Chip Bennett */ function adventure_comment_count( $count ) { if ( ! is_admin() ) { global $id; $comments_by_type = &separate_comments(get_comments('status=approve&post_id=' . $id)); return count($comments_by_type['comment']); } else { return $count; } } /** * wp_list_comments() Pings Callback * * wp_list_comments() Callback function for * Pings (Trackbacks/Pingbacks) */ add_filter('get_comments_number', 'adventure_comment_count', 0); function adventure_comment_list_pings( $comment ) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
  • Continue Reading →'; } add_filter( 'excerpt_more', 'new_excerpt_more' ); /* This function adds in code specifically for IE6 to IE9 (haven't gotten around to this since the redesign) add_action('wp_head', 'adventure_ie_css'); function adventure_ie_css() { echo "\n" . '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo "\n"; } */ // This function removes inline styles set by WordPress gallery add_filter('gallery_style', 'adventure_remove_gallery_css'); function adventure_remove_gallery_css($css) { return preg_replace("##s", '', $css); } // This function removes default styles set by WordPress recent comments widget add_action( 'widgets_init', 'adventure_remove_recent_comments_style' ); function adventure_remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } // A comment reply add_action( 'wp_enqueue_scripts', 'adventure_enqueue_comment_reply' ); function adventure_enqueue_comment_reply() { if ( is_singular() && comments_open() && get_option('thread_comments')) wp_enqueue_script('comment-reply'); } // Wrap Video in a DIV so that videos width and height become reponsive using CSS add_filter('embed_oembed_html', 'wrap_embed_with_div', 10, 3); function wrap_embed_with_div($html, $url, $attr) { if (preg_match("/youtu.be/", $html) || preg_match("/youtube.com/", $html) || preg_match("/vimeo/", $html) || preg_match("/wordpress.tv/", $html) || preg_match("/v.wordpress.com/", $html)) { // Don't see your video host in here? Just add it in, make sure you have the forward slash marks $html = '
    ' . $html . "
    "; } return $html;} // WordPress Widgets start right here. add_action('widgets_init', 'adventure_widgets_init'); function adventure_widgets_init() { register_sidebars(1, array( 'name' => __('sidebar', 'localize_adventure'), 'id' => 'adventure_widget', 'description' => __('Widgets in this area will appear to the right of the content, normally.', 'localize_adventure'), 'before_widget' => '', 'after_widget' => '', 'before_title' => '

    ', 'after_title' => '

    ', )); } // Checks if the Widgets are active function adventure_is_sidebar_active($index) { global $wp_registered_sidebars; $widgetcolums = wp_get_sidebars_widgets(); if ($widgetcolums[$index]) { return true; } return false; } // Add CSS to the body depending on the sidebar side option add_filter('body_class','adventure_sidebar_side'); function adventure_sidebar_side($classes) { if (adventure_is_sidebar_active('adventure_widget')) : if (get_theme_mod('sidebar_position_setting') == 'right') : $classes[] = 'right_sidebar'; return $classes; elseif (get_theme_mod('sidebar_position_setting') == 'left') : $classes[] = 'left_sidebar'; return $classes; else : $classes[] = 'right_sidebar'; return $classes; endif; else : $classes[] = 'no_sidebar'; return $classes; endif; } // Load up links in admin bar so theme is edit function adventure_theme_options_add_page() { add_theme_page(__('Theme Information', 'localize_adventure'), __('Theme Information', 'localize_adventure'), 'edit_theme_options', 'theme_options', 'adventure_theme_options_do_page');} // Load up the Localizer so that the theme can be translated add_action('after_setup_theme', 'my_theme_setup'); function my_theme_setup(){ load_theme_textdomain('adventure_localizer', get_template_directory() . '/languages');} // Adds a meta box to the post editing screen add_action( 'add_meta_boxes', 'prfx_custom_meta' ); function prfx_custom_meta() { add_meta_box( 'prfx_meta', __( 'Featured Background', 'localize_semperfi' ), 'prfx_meta_callback', 'post', 'side' ); add_meta_box( 'prfx_meta', __( 'Featured Background', 'localize_semperfi' ), 'prfx_meta_callback', 'page', 'side' ); } // Outputs the content of the meta box function prfx_meta_callback( $post ) { wp_nonce_field( basename( __FILE__ ), 'prfx_nonce' ); $prfx_stored_meta = get_post_meta( $post->ID ); if (!empty($prfx_stored_meta['featured-background'][0]) ) $featured_background = $prfx_stored_meta['featured-background'][0]; ?>

    ' style="box-shadow:0 0 .05em rgba(19,19,19,.5); height:auto; width:100%;"/>

    'Upload or choose an image for the Featured Background', 'button' => 'Use as Featured Background') ); wp_enqueue_script( 'featured-background' ); } } // Saves the custom meta input add_action( 'save_post', 'prfx_meta_save' ); function prfx_meta_save( $post_id ) { // Checks save status $is_autosave = wp_is_post_autosave( $post_id ); $is_revision = wp_is_post_revision( $post_id ); $is_valid_nonce = ( isset( $_POST[ 'prfx_nonce' ] ) && wp_verify_nonce( $_POST[ 'prfx_nonce' ], basename( __FILE__ ) ) ) ? 'true' : 'false'; // Exits script depending on save status if ( $is_autosave || $is_revision || !$is_valid_nonce ) { return; } // Checks for input and saves if needed if( isset( $_POST[ 'featured-background' ] ) ) { update_post_meta( $post_id, 'featured-background', $_POST[ 'featured-background' ] ); } } // Sets up the Customize.php for Adventure function adventure_customize($wp_customize) { // Before we begin let's create a textarea input class adventure_Customize_Textarea_Control extends WP_Customize_Control { public $type = 'textarea'; public function render_content() { ?> 'Default', 'Abel' => 'Abel', 'Abril+Fatface' => 'Abril+Fatface', 'Aclonica' => 'Aclonica', 'Actor' => 'Actor', 'Adamina' => 'Adamina', 'Aldrich' => 'Aldrich', 'Alice' => 'Alice', 'Alike' => 'Alike', 'Alike+Angular' => 'Alike+Angular', 'Allan:700' => 'Allan:700', 'Allerta' => 'Allerta', 'Allerta+Stencil' => 'Allerta+Stencil', 'Amaranth' => 'Amaranth', 'Amatic+SC' => 'Amatic+SC', 'Andada' => 'Andada', 'Andika' => 'Andika', 'Annie+Use+Your+Telescope' => 'Annie+Use+Your+Telescope', 'Anonymous+Pro' => 'Anonymous+Pro', 'Antic' => 'Antic', 'Anton' => 'Anton', 'Arapey' => 'Arapey', 'Architects+Daughter' => 'Architects+Daughter', 'Arimo' => 'Arimo', 'Artifika' => 'Artifika', 'Arvo' => 'Arvo', 'Asset' => 'Asset', 'Astloch' => 'Astloch', 'Atomic+Age' => 'Atomic+Age', 'Aubrey' => 'Aubrey', 'Bangers' => 'Bangers', 'Bentham' => 'Bentham', 'Bevan' => 'Bevan', 'Bigshot+One' => 'Bigshot+One', 'Bitter' => 'Bitter', 'Black+Ops+One' => 'Black+Ops+One', 'Bowlby+One' => 'Bowlby+One', 'Bowlby+One+SC' => 'Bowlby+One+SC', 'Brawler' => 'Brawler', 'Buda:300' => 'Buda:300', 'Butcherman+Caps' => 'Butcherman+Caps', 'Cabin' => 'Cabin', 'Cabin+Sketch' => 'Cabin+Sketch', 'Calligraffitti' => 'Calligraffitti', 'Candal' => 'Candal', 'Cantarell' => 'Cantarell', 'Cardo' => 'Cardo', 'Carme' => 'Carme', 'Carter+One' => 'Carter+One', 'Caudex' => 'Caudex', 'Cedarville+Cursive' => 'Cedarville+Cursive', 'Changa+One' => 'Changa+One', 'Cherry+Cream+Soda' => 'Cherry+Cream+Soda', 'Chewy' => 'Chewy', 'Chivo' => 'Chivo', 'Coda' => 'Coda', 'Coda+Caption:800' => 'Coda+Caption:800', 'Comfortaa' => 'Comfortaa', 'Coming+Soon' => 'Coming+Soon', 'Contrail+One' => 'Contrail+One', 'Convergence' => 'Convergence', 'Cookie' => 'Cookie', 'Copse' => 'Copse', 'Corben' => 'Corben', 'Cousine' => 'Cousine', 'Coustard' => 'Coustard', 'Covered+By+Your+Grace' => 'Covered+By+Your+Grace', 'Creepster+Caps' => 'Creepster+Caps', 'Crimson+Text' => 'Crimson+Text', 'Crushed' => 'Crushed', 'Crafty+Girls' => 'Crafty+Girls', 'Cuprum' => 'Cuprum', 'Damion' => 'Damion', 'Dancing+Script' => 'Dancing+Script', 'Dawning+of+a+New+Day' => 'Dawning+of+a+New+Day', 'Days+One' => 'Days+One', 'Delius' => 'Delius', 'Delius+Swash+Caps' => 'Delius+Swash+Caps', 'Delius+Unicase' => 'Delius+Unicase', 'Didact+Gothic' => 'Didact+Gothic', 'Dorsa' => 'Dorsa', 'Droid+Sans' => 'Droid+Sans', 'Droid+Sans+Mono' => 'Droid+Sans+Mono', 'Droid+Serif' => 'Droid+Serif', 'Eater+Caps' => 'Eater+Caps', 'EB+Garamond' => 'EB+Garamond', 'Expletus+Sans' => 'Expletus+Sans', 'Fanwood+Text' => 'Fanwood+Text', 'Federant' => 'Federant', 'Federo' => 'Federo', 'Fjord+One' => 'Fjord+One', 'Fontdiner+Swanky' => 'Fontdiner+Swanky', 'Forum' => 'Forum', 'Francois+One' => 'Francois+One', 'Gentium+Basic' => 'Gentium+Basic', 'Gentium+Book+Basic' => 'Gentium+Book+Basic', 'Geo' => 'Geo', 'Geostar' => 'Geostar', 'Geostar+Fill' => 'Geostar+Fill', 'Give+You+Glory' => 'Give+You+Glory', 'Gloria+Hallelujah' => 'Gloria+Hallelujah', 'Goblin+One' => 'Goblin+One', 'Gochi+Hand' => 'Gochi+Hand', 'Goudy+Bookletter+1911' => 'Goudy+Bookletter+1911', 'Gravitas+One' => 'Gravitas+One', 'Gruppo' => 'Gruppo', 'Hammersmith+One' => 'Hammersmith+One', 'Holtwood+One+SC' => 'Holtwood+One+SC', 'Homemade+Apple' => 'Homemade+Apple', 'IM+Fell+Double+Pica' => 'IM+Fell+Double+Pica', 'IM+Fell+Double+Pica+SC' => 'IM+Fell+Double+Pica+SC', 'IM+Fell+DW+Pica' => 'IM+Fell+DW+Pica', 'IM+Fell+DW+Pica+SC' => 'IM+Fell+DW+Pica+SC', 'IM+Fell+English' => 'IM+Fell+English', 'IM+Fell+English+SC' => 'IM+Fell+English+SC', 'IM+Fell+French+Canon' => 'IM+Fell+French+Canon', 'IM+Fell+French+Canon+SC' => 'IM+Fell+French+Canon+SC', 'IM+Fell+Great+Primer' => 'IM+Fell+Great+Primer', 'IM+Fell+Great+Primer+SC' => 'IM+Fell+Great+Primer+SC', 'Inconsolata' => 'Inconsolata', 'Indie+Flower' => 'Indie+Flower', 'Irish+Grover' => 'Irish+Grover', 'Istok+Web' => 'Istok+Web', 'Jockey+One' => 'Jockey+One', 'Josefin+Sans' => 'Josefin+Sans', 'Josefin+Slab' => 'Josefin+Slab', 'Judson' => 'Judson', 'Julee' => 'Julee', 'Jura' => 'Jura', 'Just+Another+Hand' => 'Just+Another+Hand', 'Just+Me+Again+Down+Here' => 'Just+Me+Again+Down+Here', 'Kameron' => 'Kameron', 'Kelly+Slab' => 'Kelly+Slab', 'Kenia' => 'Kenia', 'Kranky' => 'Kranky', 'Kreon' => 'Kreon', 'Kristi' => 'Kristi', 'La+Belle+Aurore' => 'La+Belle+Aurore', 'Lancelot' => 'Lancelot', 'Lato' => 'Lato', 'League+Script' => 'League+Script', 'Leckerli+One' => 'Leckerli+One', 'Lekton' => 'Lekton', 'Limelight' => 'Limelight', 'Linden+Hill' => 'Linden+Hill', 'Lobster' => 'Lobster', 'Lobster+Two' => 'Lobster+Two', 'Lora' => 'Lora', 'Love+Ya+Like+A+Sister' => 'Love+Ya+Like+A+Sister', 'Loved+by+the+King' => 'Loved+by+the+King', 'Luckiest+Guy' => 'Luckiest+Guy', 'Maiden+Orange' => 'Maiden+Orange', 'Mako' => 'Mako', 'Marck+Script' => 'Marck+Script', 'Marvel' => 'Marvel', 'Mate' => 'Mate', 'Mate+SC' => 'Mate+SC', 'Maven+Pro' => 'Maven+Pro', 'Meddon' => 'Meddon', 'MedievalSharp' => 'MedievalSharp', 'Megrim' => 'Megrim', 'Merienda+One' => 'Merienda+One', 'Merriweather' => 'Merriweather', 'Metrophobic' => 'Metrophobic', 'Michroma' => 'Michroma', 'Miltonian' => 'Miltonian', 'Miltonian+Tattoo' => 'Miltonian+Tattoo', 'Molengo' => 'Molengo', 'Monofett' => 'Monofett', 'Monoton' => 'Monoton', 'Montez' => 'Montez', 'Modern+Antiqua' => 'Modern+Antiqua', 'Mountains+of+Christmas' => 'Mountains+of+Christmas', 'Muli' => 'Muli', 'Neucha' => 'Neucha', 'Neuton' => 'Neuton', 'News+Cycle' => 'News+Cycle', 'Nixie+One' => 'Nixie+One', 'Nobile' => 'Nobile', 'Nosifer+Caps' => 'Nosifer+Caps', 'Nothing+You+Could+Do' => 'Nothing+You+Could+Do', 'Nova+Cut' => 'Nova+Cut', 'Nova+Flat' => 'Nova+Flat', 'Nova+Mono' => 'Nova+Mono', 'Nova+Oval' => 'Nova+Oval', 'Nova+Script' => 'Nova+Script', 'Nova+Slim' => 'Nova+Slim', 'Nova+Round' => 'Nova+Round', 'Nova+Square' => 'Nova+Square', 'Numans' => 'Numans', 'Nunito' => 'Nunito', 'Old+Standard+TT' => 'Old+Standard+TT', 'Open+Sans' => 'Open+Sans', 'Open+Sans+Condensed:300' => 'Open+Sans+Condensed:300', 'Orbitron' => 'Orbitron', 'Oswald' => 'Oswald', 'Over+the+Rainbow' => 'Over+the+Rainbow', 'Ovo' => 'Ovo', 'Pacifico' => 'Pacifico', 'Play' => 'Play', 'Passero+One' => 'Passero+One', 'Patrick+Hand' => 'Patrick+Hand', 'Paytone+One' => 'Paytone+One', 'Permanent+Marker' => 'Permanent+Marker', 'Petrona' => 'Petrona', 'Philosopher' => 'Philosopher', 'Pinyon+Script' => 'Pinyon+Script', 'Playfair+Display' => 'Playfair+Display', 'Podkova' => 'Podkova', 'Poller+One' => 'Poller+One', 'Poly' => 'Poly', 'Pompiere' => 'Pompiere', 'Prata' => 'Prata', 'Prociono' => 'Prociono', 'PT+Sans' => 'PT+Sans', 'PT+Sans+Caption' => 'PT+Sans+Caption', 'PT+Sans+Narrow' => 'PT+Sans+Narrow', 'PT+Serif' => 'PT+Serif', 'PT+Serif+Caption' => 'PT+Serif+Caption', 'Puritan' => 'Puritan', 'Quattrocento' => 'Quattrocento', 'Quattrocento+Sans' => 'Quattrocento+Sans', 'Questrial' => 'Questrial', 'Quicksand' => 'Quicksand', 'Radley' => 'Radley', 'Raleway:100' => 'Raleway:100', 'Rammetto+One' => 'Rammetto+One', 'Rancho' => 'Rancho', 'Rationale' => 'Rationale', 'Redressed' => 'Redressed', 'Reenie+Beanie' => 'Reenie+Beanie', 'Rock+Salt' => 'Rock+Salt', 'Rochester' => 'Rochester', 'Rokkitt' => 'Rokkitt', 'Rosario' => 'Rosario', 'Ruslan+Display' => 'Ruslan+Display', 'Salsa' => 'Salsa', 'Sancreek' => 'Sancreek', 'Sansita+One' => 'Sansita+One', 'Satisfy' => 'Satisfy', 'Schoolbell' => 'Schoolbell', 'Shadows+Into+Light' => 'Shadows+Into+Light', 'Shanti' => 'Shanti', 'Short+Stack' => 'Short+Stack', 'Sigmar+One' => 'Sigmar+One', 'Six+Caps' => 'Six+Caps', 'Slackey' => 'Slackey', 'Smokum' => 'Smokum', 'Smythe' => 'Smythe', 'Sniglet:800' => 'Sniglet:800', 'Snippet' => 'Snippet', 'Sorts+Mill+Goudy' => 'Sorts+Mill+Goudy', 'Special+Elite' => 'Special+Elite', 'Spinnaker' => 'Spinnaker', 'Stardos+Stencil' => 'Stardos+Stencil', 'Sue+Ellen+Francisco' => 'Sue+Ellen+Francisco', 'Supermercado+One' => 'Supermercado+One', 'Sunshiney' => 'Sunshiney', 'Swanky+and+Moo+Moo' => 'Swanky+and+Moo+Moo', 'Syncopate' => 'Syncopate', 'Tangerine' => 'Tangerine', 'Tenor+Sans' => 'Tenor+Sans', 'Terminal+Dosis' => 'Terminal+Dosis', 'The+Girl+Next+Door' => 'The+Girl+Next+Door', 'Tienne' => 'Tienne', 'Tinos' => 'Tinos', 'Tulpen+One' => 'Tulpen+One', 'Ubuntu' => 'Ubuntu', 'Ubuntu+Condensed' => 'Ubuntu+Condensed', 'Ubuntu+Mono' => 'Ubuntu+Mono', 'Ultra' => 'Ultra', 'UnifrakturCook:700' => 'UnifrakturCook:700', 'UnifrakturMaguntia' => 'UnifrakturMaguntia', 'Unkempt' => 'Unkempt', 'Unna' => 'Unna', 'Varela' => 'Varela', 'Varela+Round' => 'Varela+Round', 'Vast+Shadow' => 'Vast+Shadow', 'Vidaloka' => 'Vidaloka', 'Vibur' => 'Inconsolata', 'Volkhov' => 'Volkhov', 'Vollkorn' => 'Vollkorn', 'Voltaire' => 'Voltaire', 'VT323' => 'VT323', 'Waiting+for+the+Sunrise' => 'Waiting+for+the+Sunrise', 'Wallpoet' => 'Wallpoet', 'Walter+Turncoat' => 'Walter+Turncoat', 'Wire+One' => 'Wire+One', 'Yanone+Kaffeesatz' => 'Yanone+Kaffeesatz', 'Yellowtail' => 'Yellowtail', 'Yeseva+One' => 'Yeseva+One', 'Zeyada' => 'Zeyada'); // Add in all the settings with an array $set_adventures_theme_option_defaults = array( 'author_setting' => 'on', 'backgroundcolor_setting' => '#b4b09d', 'bodyfontstyle_setting' => 'Default', 'backgroundsize_setting' => 'Default', 'bannerimage_setting' => 'purple.png', 'border_setting' => '3px', 'bordercolor_setting' => '#4a4646', 'commentsclosed_setting' => 'on', 'comments_setting' => 'both', 'contentbackground_setting' => '.80', 'dateformat_setting' => '', 'display_date_setting' => 'on', 'display_excerpt_setting' => 'off', 'display_post_title_setting' => 'on', 'dropcolor_setting' => '#BBBBBB', 'dropcolorhover_setting' => '#0b6492', 'facebook_setting' => __('The url link goes in here.', 'localize_adventure'), 'fontcolor_setting' => '#000000', 'fontsizeadjust_setting' => '1', 'google_webmaster_tool_setting' => 'For example mine is "gN9drVvyyDUFQzMSBL8Y8-EttW1pUDtnUypP-331Kqh"', 'google_analytics_setting' => 'For example mine is "UA-9335180-X"', 'google_plus_setting' => __('The url link goes in here.', 'localize_adventure'), 'headerfontstyle_setting' => 'Default', 'headerspacing_setting' => '18', 'header_image_width_setting' => '20', 'linkcolor_setting' => '#0b6492', 'linkcolorhover_setting' => '#FFFFFF', 'menu_setting' => 'standard', 'navcolor_setting' => '#CCCCCC', 'navcolorhover_setting' => '#0b6492', 'navi_search_setting' => 'off', 'previousnext_setting' => 'both', 'removefooter_setting' => 'visible', 'sidebarbackground_setting' => '.50', 'sidebarcolor_setting' => '#000000', 'soundcloud_setting' => __('The url link goes in here.', 'localize_adventure'), 'taglinecolor_setting' => '#066ba0', 'taglinefontstyle_setting' => 'Default', 'tagline_rotation_setting' => '-1.00', 'title_size_setting' => '4.0', 'titlecolor_setting' => '#eee2d6', 'titlefontstyle_setting' => 'Default', 'twitter_setting' => __('The url link goes in here.', 'localize_adventure'), 'vimeo_setting' => __('The url link goes in here.', 'localize_adventure'), 'youtube_setting' => __('The url link goes in here.', 'localize_adventure')); // Create the Setting foreach($set_adventures_theme_option_defaults as $setting => $value) { $wp_customize->add_setting( $setting , array('default' => $value )); } // Set the setting if it is some how blank foreach($set_adventures_theme_option_defaults as $setting => $value) { if ( get_theme_mod($setting) == '' ) set_theme_mod($setting , $value); } // The Standard Sections for Theme Custimizer $wp_customize->add_section( 'meta_section', array( 'title' => __('Meta', 'localize_adventure'), 'priority' => 1, )); $wp_customize->add_section( 'header_section', array( 'title' => __('Header', 'localize_adventure'), 'description' => 'does this work? YouTube', 'priority' => 26, )); $wp_customize->add_section( 'nav', array( 'title' => __('Menu', 'localize_adventure'), 'priority' => 27, )); $wp_customize->add_section( 'background_image', array( 'title' => __('Background', 'localize_adventure'), 'priority' => 28, )); $wp_customize->add_section( 'content_section', array( 'title' => __('Content', 'localize_adventure'), 'priority' => 29, )); $wp_customize->add_section( 'sidebar_section', array( 'title' => __('Sidebar', 'localize_adventure'), 'priority' => 30, )); $wp_customize->add_section( 'links_section', array( 'title' => __('Links', 'localize_adventure'), 'priority' => 32, )); // Remove the Section Colors for the Sake of making Sense $wp_customize->remove_section( 'colors'); // Background needed to be moved to to the Background Section $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'background_color', array( 'label' => __('Background Color', 'localize_adventure'), 'section' => 'background_image', ))); // Change Site Title Color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'titlecolor_control', array( 'label' => __('Site Title Color', 'localize_adventure'), 'section' => 'title_tagline', 'settings' => 'titlecolor_setting', ))); // Control the Size of the site Title and Slogan size $wp_customize->add_control('title_size_control', array( 'label' => __('Title Font Size', 'localize_semperfi'), 'priority' => 1, 'section' => 'header_section', 'settings' => 'title_size_setting', 'type' => 'select', 'choices' => array( '6.0' => '6.0em', '5.8' => '5.8em', '5.6' => '5.6em', '5.4' => '5.4em', '5.2' => '5.2em', '5.0' => '5.0em', '4.8' => '4.8em', '4.6' => '4.6em', '4.4' => '4.4em', '4.2' => '4.2em', '4.0' => '4.0em', '3.8' => '3.8em', '3.6' => '3.6em', '3.4' => '3.4em', '3.2' => '3.2em', '3.0' => '3.0em', '2.8' => '2.8em', ), )); // Change Tagline Color $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'taglinecolor_control', array( 'label' => __('Tagline Color', 'localize_adventure'), 'section' => 'title_tagline', 'settings' => 'taglinecolor_setting', ))); // Rotation of The Tagline $wp_customize->add_control('tagline_rotation_control', array( 'label' => __('Tagline Rotation', 'localize_adventure'), 'priority' => 2, 'section' => 'header_section', 'settings' => 'tagline_rotation_setting', 'type' => 'select', 'choices' => array( '-2.00' => '-2.00°', '-1.75' => '-1.75°', '-1.50' => '-1.50°', '-1.25' => '-1.25°', '-1.00' => '-1.00°', '-0.75' => '-0.75°', '-0.50' => '-0.50°', '-0.25' => '-0.25°', '0.00' => '0.00°', '0.25' => '0.25°', '0.50' => '0.50°', '0.75' => '0.75°', '1.00' => '1.00°', ), )); // Choose the Different Images for the Banner $wp_customize->add_control('themename_color_scheme', array( 'label' => __('Banner Background', 'localize_adventure'), 'priority' => 1, 'section' => 'header_section', 'settings' => 'bannerimage_setting', 'type' => 'select', 'choices' => array( 'purple.png' => __('Purple (Default)', 'localize_adventure'), 'blue.png' => __('Blue', 'localize_adventure'), 'marble.png' => __('Marble', 'localize_adventure'), 'green.png' => __('Green', 'localize_adventure'), ), )); // Upload and Customization for the Banner and Header Options $wp_customize->add_control('menu_control', array( 'label' => __('Menu Display Options', 'localize_adventure'), 'priority' => 6, 'section' => 'header_section', 'settings' => 'menu_setting', 'type' => 'select', 'choices' => array( 'standard' => __('Standard (Default)', 'localize_adventure'), 'notitle' => __('No Title', 'localize_adventure'), 'bottom' => __('Moves Menu To Bottom', 'localize_adventure'), ), )); // Turn the Search bar in the navigation on or off $wp_customize->add_control( 'navi_search_control', array( 'label' => __('Search bar in navigaton', 'localize_adventure'), 'section' => 'nav', 'settings' => 'navi_search_setting', 'type' => 'select', 'choices' => array( 'off' => __('Do not display search', 'localize_adventure'), 'on' => __('Display the search', 'localize_adventure'),), )); // Turn the title of posts off $wp_customize->add_control( 'display_post_title_control', array( 'section' => 'content_section', 'label' => __('Display the Page Title', 'localize_adventure'), 'settings' => 'display_post_title_setting', 'type' => 'select', 'choices' => array( 'on' => __('Display the title', 'localize_adventure'), 'off' => __('Do not display title', 'localize_adventure'),), )); // Turn the date / time on post on or off $wp_customize->add_control( 'display_date_control', array( 'section' => 'content_section', 'label' => __('Display the date', 'localize_adventure'), 'settings' => 'display_date_setting', 'type' => 'select', 'choices' => array( 'on' => __('Display the dates', 'localize_adventure'), 'off' => __('Do not display dates', 'localize_adventure'),), )); // Display an excerpt on the landing page $wp_customize->add_control( 'display_excerpt_control', array( 'section' => 'content_section', 'label' => __('Display excerpt on paged content', 'localize_adventure'), 'settings' => 'display_excerpt_setting', 'type' => 'select', 'choices' => array( 'off' => __('Display the content', 'localize_adventure'), 'on' => __('Display the excerpt', 'localize_adventure'),), )); // Add Facebook Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'facebook_control', array( 'label' => __('Facebook icon in the Menu', 'localize_adventure'), 'priority' => 50, 'section' => 'nav', 'settings' => 'facebook_setting', ))); // Add Twitter Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'twitter_control', array( 'label' => __('Twitter icon in the Menu', 'localize_adventure'), 'priority' => 51, 'section' => 'nav', 'settings' => 'twitter_setting', ))); // Add Google+ Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'google_plus_control', array( 'label' => __('Google Plus icon in the Menu', 'localize_adventure'), 'priority' => 52, 'section' => 'nav', 'settings' => 'google_plus_setting', ))); // Add YouTube Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'youtube_control', array( 'label' => 'Youtube icon in the Menu', 'priority' => 54, 'section' => 'nav', 'settings' => 'youtube_setting', ))); // Add Vimeo Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'vimeo_control', array( 'label' => __('Vimeo icon in the Menu', 'localize_adventure'), 'priority' => 55, 'section' => 'nav', 'settings' => 'vimeo_setting', ))); // Add Soundcloud Icon to the navigation $wp_customize->add_control( new adventure_Customize_Textarea_Control( $wp_customize, 'soundcloud_control', array( 'label' => __('Soundcloud icon in the Menu', 'localize_adventure'), 'priority' => 56, 'section' => 'nav', 'settings' => 'soundcloud_setting', ))); // Change the font for the website title $wp_customize->add_setting( 'titlefontstyle_setting', array( 'Default' => 'Default', 'control' => 'select',)); $wp_customize->add_control( 'titlefontstyle_control', array( 'label' => __('Google Webfonts Site Title', 'localize_adventure'), 'priority' => 10, 'section' => 'title_tagline', 'settings' => 'titlefontstyle_setting', 'type' => 'select', 'choices' => $google_font_array, )); // Change the font for the tag line $wp_customize->add_setting( 'taglinefontstyle_setting', array( 'Default' => 'Default', 'control' => 'select',)); $wp_customize->add_control( 'taglinefontstyle_control', array( 'label' => __('Google Webfonts Tagline', 'localize_adventure'), 'priority' => 11, 'section' => 'title_tagline', 'settings' => 'taglinefontstyle_setting', 'type' => 'select', 'choices' => $google_font_array, )); // Adjust the Space Between the Top of the Page and Content $wp_customize->add_setting( 'headerspacing_setting', array( 'default' => '18', 'control' => 'select',)); $wp_customize->add_control( 'headerspacing_control', array( 'label' => __('Spacing Between Top and Content', 'localize_adventure'), 'priority' => 90, 'section' => 'header_section', 'settings' => 'headerspacing_setting', 'type' => 'select', 'choices' => array( '26' => '26em', '24' => '24em', '22' => '22em', '20' => '20em', '18' => '18em Default', '16' => '16em', '14' => '14em', '12' => '12em', '10' => '10em', '9' => '9em', '8' => '8em', '7' => '7em', '6' => '6em', '5' => '5em', '4' => '4em', '3' => '3em', '2' => '2em', '1' => '1em', '0' => '0em',), )); // Add the option to use the CSS3 property Background-size $wp_customize->add_setting( 'backgroundsize_setting', array( 'default' => 'auto', 'control' => 'select',)); $wp_customize->add_control( 'backgroundsize_control', array( 'label' => __('Background Size', 'localize_adventure'), 'section' => 'background_image', 'settings' => 'backgroundsize_setting', 'priority' => 10, 'type' => 'select', 'choices' => array( 'auto' => __('Auto (Default)', 'localize_adventure'), 'contain' => __('Contain', 'localize_adventure'), 'cover' => __('Cover', 'localize_adventure'),), )); // Change the color of the Content Background $wp_customize->add_setting( 'backgroundcolor_setting', array( 'default' => '#b4b09d', 'control' => 'select',)); $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'backgroundcolor_control', array( 'label' => __('Color of the Content Background', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'backgroundcolor_setting', ))); // Change the opacity of the Content Background $wp_customize->add_control( 'contentbackground_control', array( 'label' => __('Transparency of Content Background', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'contentbackground_setting', 'type' => 'select', 'choices' => array( '1' => '100', '.95' => '95', '.90' => '90', '.85' => '85', '.80' => '80 (Default)', '.75' => '75', '.70' => '70', '.65' => '65', '.60' => '60', '.55' => '55', '.50' => '50', '.45' => '45', '.40' => '40', '.35' => '35', '.30' => '30', '.25' => '25', '.20' => '20', '.15' => '15', '.10' => '10', '.05' => '5', '.00' => '0',), )); // Settings for the Date $wp_customize->add_control( 'dateformat_control', array( 'label' => __('Format for Date', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'dateformat_setting', 'type' => 'select', 'choices' => array( '' => __('May 14th (Default)', 'localize_adventure'), 'M j' => __('May 14', 'localize_adventure'), 'M jS, Y' => __('May 14th, 2014', 'localize_adventure'), 'M j, Y' => __('May 14, 2014', 'localize_adventure'), 'jS M, Y' => __('14th May, 2014', 'localize_adventure'), 'Y, M js' => __('2014, May 14th', 'localize_adventure'), 'Y/m/d' => __('2014/5/14', 'localize_adventure'), 'd/m/Y' => __('14/5/2014', 'localize_adventure'), ), )); // Settings for the Previous & Next Post Link $wp_customize->add_setting( 'previousnext_setting', array( 'default' => 'both', 'control' => 'select',)); $wp_customize->add_control( 'previousnext_control', array( 'label' => __('Previous & Next Links After Content', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'previousnext_setting', 'type' => 'select', 'choices' => array( 'both' => __('Both Pages & Posts', 'localize_adventure'), 'single' => __('Only Posts', 'localize_adventure'), 'page' => __('Only Pages', 'localize_adventure'), 'neither' => __('Neither', 'localize_adventure'), ), )); // Settings for the text about the Author $wp_customize->add_setting( 'author_setting', array( 'default' => 'on', 'control' => 'select',)); $wp_customize->add_control( 'author_control', array( 'label' => __('Author Information', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'author_setting', 'type' => 'select', 'choices' => array( 'on' => __('On', 'localize_adventure'), 'off' => __('Off', 'localize_adventure'), ), )); // Turn the information for the comments On or Off $wp_customize->add_setting( 'commentsclosed_setting', array( 'default' => 'on', 'control' => 'select',)); $wp_customize->add_control( 'commentsclosed_control', array( 'label' => __('Comment Information', 'localize_adventure'), 'section' => 'content_section', 'settings' => 'commentsclosed_setting', 'type' => 'select', 'choices' => array( 'on' => __('On', 'localize_adventure'), 'off' => __('Off', 'localize_adventure'), ), )); // Adjust the position of the sidebar to be on the left or the right $wp_customize->add_setting( 'sidebar_position_setting', array( 'default' => 'left', 'control' => 'select',)); $wp_customize->add_control( 'sidebar_position_control', array( 'label' => __('Sidebar Position', 'localize_adventure'), 'section' => 'sidebar_section', 'settings' => 'sidebar_position_setting', 'type' => 'select', 'choices' => array( 'right' => __('Right', 'localize_adventure'), 'left' => __('Left', 'localize_adventure'), 'no-sidebar' => __('No Sidebar (remove the widgets too)', 'localize_adventure'), ), )); // Comments Choice $wp_customize->add_setting( 'comments_setting', array( 'default' => 'both', 'control' => 'select',)); $wp_customize->add_control( 'comments_control', array( 'section' => 'content_section', 'label' => 'Options for Displaying Comments', 'settings' => 'comments_setting', 'type' => 'select', 'choices' => array( 'both' => __('Comments on both Pages & Posts', 'localize_adventure'), 'single' => __('Comments only on Posts', 'localize_adventure'), 'page' => __('Comments only on Pages', 'localize_adventure'), 'none' => __('Comments completely Off', 'localize_adventure'),), )); } add_action('customize_register', 'adventure_customize'); // Inject the Customizer Choices into the Theme function adventure_inline_css() { //Favicon if ( get_theme_mod('favicon_setting') != '' ) { echo '' . "\n"; echo '' . "\n\n";} // Convert Content from Hex to RGB if ( get_theme_mod('backgroundcolor_setting') != '#b4b09d' ) { $hex = str_replace("#", "", get_theme_mod('backgroundcolor_setting')); if(strlen($hex) == 3) { $r = hexdec(substr($hex,0,1).substr($hex,0,1)); $g = hexdec(substr($hex,1,1).substr($hex,1,1)); $b = hexdec(substr($hex,2,1).substr($hex,2,1)); } else { $r = hexdec(substr($hex,0,2)); $g = hexdec(substr($hex,2,2)); $b = hexdec(substr($hex,4,2)); } } // Convert Sidebar from Hex to RGB if ( ( get_theme_mod('sidebarcolor_setting') != '#000000' ) ) { $hexs = str_replace("#", "", get_theme_mod('sidebarcolor_setting')); if(strlen($hexs) == 3) { $rs = hexdec(substr($hexs,0,1).substr($hexs,0,1)); $gs = hexdec(substr($hexs,1,1).substr($hexs,1,1)); $bs = hexdec(substr($hexs,2,1).substr($hexs,2,1)); } else { $rs = hexdec(substr($hexs,0,2)); $gs = hexdec(substr($hexs,2,2)); $bs = hexdec(substr($hexs,4,2)); } } if ( ( get_theme_mod('titlefontstyle_setting') != 'Default') || (get_theme_mod('taglinefontstyle_setting') != 'Default') || (get_theme_mod('bodyfontstyle_setting') != 'Default') || (get_theme_mod('headerfontstyle_setting') != 'Default')) { echo '' . "\n"; if (get_theme_mod('titlefontstyle_setting') != 'Default') {echo "" . "\n"; } if (get_theme_mod('taglinefontstyle_setting') != 'Default') { echo "" . "\n"; } if (get_theme_mod('bodyfontstyle_setting') != 'Default') { echo "" . "\n"; } if (get_theme_mod('headerfontstyle_setting') != 'Default') { echo "" . "\n"; } echo '' . "\n\n";} echo '' . "\n"; echo '' . "\n"; echo '' . "\n"; echo "\n"; } add_action('wp_head', 'adventure_inline_css', 50); // A safe way of adding javascripts to a WordPress generated page if (!function_exists('adventure_js')) { function adventure_js() { // JS at the bottom for fast page loading wp_enqueue_script('adventure-menu-scrolling', get_template_directory_uri() . '/js/jquery.menu.scrolling.js', array('jquery'), '1.1', true); wp_enqueue_script('adventure-main', get_template_directory_uri() . '/js/main.js', array('jquery'), '1.0', true); wp_enqueue_script('adventure-doubletaptogo', get_template_directory_uri() . '/js/doubletaptogo.min.js', array('jquery'), '1.0', true); } } if (!is_admin()) add_action('wp_enqueue_scripts', 'adventure_js'); // Add some CSS so I can Style the Theme Options Page function adventure_admin_enqueue_scripts( $hook_suffix ) { wp_enqueue_style('adventure-theme-options', get_template_directory_uri() . '/theme-options.css', false, '1.0');} add_action('admin_print_styles-appearance_page_theme_options', 'adventure_admin_enqueue_scripts'); // Create the Theme Information page (Theme Options) function adventure_theme_options_do_page() { ?>

    this video on YouTube. I know the video is for a different theme, but this will change soon. Also, I would embed the video, but regrettably people wiser than me have said that it will introduce security issues. In the future I plan to add stuff here, but for now I just need to get the theme approved.', 'localize_adventure'); ?>

    Contact me about it.', 'localize_adventure'); ?>

    here. I use this link to spread the word about my coding skills in the hopes I will get some jobs. Anyway, you can dig through the code and remove it by hand but if you upgrade to the lastest version it will come right back. It is not really a big deal to do it by hand each time I release an update. However if you want to support my theme and get the Adventure+ upgrade, its just a simple "On or Off" option in the "Theme Customizer."', 'localize_adventure'); ?>

    22
    21
    20
    19
    16
    14
    13
    12
    11
    10

    3.5
    3.4
    3.3
    3.1
    3.0
    2.80
    2.70
    2.60
    2.4
    2.3
    2.2
    2.1
    1.8

    this page I setup for contacting me.', 'localize_adventure'); ?>

    Twitter account, but all I really use it for is posting information on updates to my themes. So if you looking for a new feature, you may be in luck. I am not really sure what to do with Twitter, but I know a lot of people use it.', 'localize_adventure'); ?>

    Support" forums on WordPress.org for any questions or problems, I just do not check it as often because I do not recieve email notifications on new posts or replies.', 'localize_adventure'); ?>

    get( 'Name' ); _e('and need some help, contact me about it. But I recommend taking a look at this video before sending me an email. The video is for a different theme, but it will show everything there is to customizing the theme ', 'localize_adventure'); ?>"get( 'Name' )?>."

    upgrade to Adventure. I have already included a few more features, some of which I am not allowed include in the free version, and I also offer to write additional code to customize the theme for you. Even if the code will be unique to your website.', 'localize_adventure'); ?>

    http://schwarttzy.com/', 'localize_adventure'); ?>