__( 'Primary Menu', 'fanwood_light' ),
) );
/**
* Custom background support
*/
$args = array(
'default-color' => 'ffde01',
);
add_theme_support( 'custom-background', $args );
/**
* Enable support for Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'chat' ) );
/**
* Enable support for Social Links
*/
add_theme_support( 'social-links', array( 'facebook', 'twitter', 'linkedin', 'tumblr' ) );
}
endif; // fanwood_light_setup
add_action( 'after_setup_theme', 'fanwood_light_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since fanwood-light 1.0
*/
function fanwood_light_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'fanwood_light' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
) );
}
add_action( 'widgets_init', 'fanwood_light_widgets_init' );
/**
* Enqueue scripts and styles
*/
function fanwood_light_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'navigation', get_template_directory_uri() . '/js/navigation.js', null, '20120206', true );
wp_enqueue_script( 'skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array( ), '20130115', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image() ) {
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20120202' );
}
}
add_action( 'wp_enqueue_scripts', 'fanwood_light_scripts' );
/**
* Implement the Custom Header feature
*/
require( get_template_directory() . '/inc/custom-header.php' );