array( // Name used in saved option 'label' => __( 'Default', 'capture' ), // Label on options panel (required) 'stylesheet' => false, // Stylesheet URL, relative to theme directory (required) 'preview' => '#222222', // Preview color on options panel (required) 'default' => true ), 'slocum-blue' => array( 'label' => __( 'Slocum Blue', 'capture' ), 'stylesheet' => '/css/slocum-blue.css', 'preview' => '#3c639a', 'deps' => 'capture' ) ); return apply_filters( 'sds_theme_options_color_schemes', $color_schemes ); } } /** * This function registers all web fonts available in this theme. * * Note: Capture requires both Damion and Oswald webfonts for post titles and site title. We're * including those fonts as well below. */ if ( ! function_exists( 'sds_web_fonts' ) ) { function sds_web_fonts() { $web_fonts = array( // Lato 'Damion|Oswald|Lato:400' => array( 'label' => 'Lato', 'css' => 'font-family: \'Lato\', sans-serif;' ) ); return apply_filters( 'sds_theme_options_web_fonts', $web_fonts ); } } /** * This function sets the default image dimensions string on the options panel. */ if ( ! function_exists( 'sds_theme_options_logo_dimensions' ) ) { add_filter( 'sds_theme_options_logo_dimensions', 'sds_theme_options_logo_dimensions' ); function sds_theme_options_logo_dimensions( $default ) { return '600x180'; } } /** * This function sets a default featured image size for use in this theme. */ if ( ! function_exists( 'sds_theme_options_default_featured_image_size' ) ) { add_filter( 'sds_theme_options_default_featured_image_size', 'sds_theme_options_default_featured_image_size' ); function sds_theme_options_default_featured_image_size( $default ) { return 'capture-1200x500'; } } if ( ! function_exists( 'sds_theme_options_ads' ) ) { add_action( 'sds_theme_options_ads', 'sds_theme_options_ads' ); function sds_theme_options_ads() { ?>

Upgrade to Capture Pro' ); ?>

Upgrade to Capture Pro' ); ?>

Upgrade to Capture Pro' ); ?>

Capture Forums on WordPress.org' ); ?>

' . sprintf( __( '%1$s by Slocum Studio', 'capture' ), $theme_name ) . ''; } } /** * This function outputs mobile a navigation HTML structure combining both the top and primary menu items. * * It will only output the primary menu items from each menu and those items will contain information such as current menu item. */ function capture_mobile_menu() { global $post; // Make sure we have nav menus and they aren't empty $nav_menu_locations = get_nav_menu_locations(); if ( $nav_menu_locations = array_filter( $nav_menu_locations ) ) : // Make sure the top menu is always above the primary menu array_multisort( $nav_menu_locations, SORT_DESC ); ?>