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) 'content_color' => '#333333', // Default content color (required) 'default' => true ), 'slocum-blue' => array( 'label' => __( 'Slocum Blue', 'capture' ), 'stylesheet' => '/css/slocum-blue.css', 'preview' => '#3c639a', 'content_color' => '#333333', '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'; } } /** * This function adds the custom Theme Customizer styles to the tag. */ if ( ! function_exists( 'capture_wp_head' ) ) { add_action( 'wp_head', 'capture_wp_head', 20 ); function capture_wp_head() { $sds_theme_options_instance = SDS_Theme_Options_Instance(); ?>

%2$s %3$s', esc_url( sds_get_pro_link( 'theme-options-colors' ) ), __( 'Upgrade to Capture Pro', 'capture' ), __( 'and receive more color schemes!', 'capture' ) ); ?>

%2$s %3$s', esc_url( sds_get_pro_link( 'theme-options-fonts' ) ), __( 'Upgrade to Capture Pro', 'capture' ), __( 'to use more web fonts!', 'capture' ) ); ?>

%2$s %3$s', esc_url( sds_get_pro_link( 'theme-options-help' ) ), __( 'Upgrade to Capture Pro', 'capture' ), __( 'to receive priority ticketing support!', 'capture' ) ); ?>

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 ); ?>