__( 'Primary Menu', 'spun' ),
) );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/**
* Add support for custom backgrounds
*/
add_theme_support( 'custom-background' );
/**
* Add support for editor styles
*/
add_editor_style();
/**
* Add support for Post Formats
*/
add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'status', 'gallery' ) );
}
endif; // spun_setup
add_action( 'after_setup_theme', 'spun_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
*/
function spun_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar 1', 'spun' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Sidebar 2', 'spun' ),
'id' => 'sidebar-2',
'before_widget' => '',
'before_title' => '',
) );
register_sidebar( array(
'name' => __( 'Sidebar 3', 'spun' ),
'id' => 'sidebar-3',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'spun_widgets_init' );
/**
* Enqueue scripts and styles
*/
function spun_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_script( 'spun-toggle', get_template_directory_uri() . '/js/toggle.js', array( 'jquery' ), '20121005', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() ) {
wp_enqueue_script( 'keyboard-navigation', get_template_directory_uri() . '/js/keyboard-navigation.js', array( 'jquery' ), '20151117' );
}
wp_enqueue_style( 'spun-quicksand' );
wp_enqueue_style( 'spun-playfair' );
wp_enqueue_style( 'spun-nunito' );
}
add_action( 'wp_enqueue_scripts', 'spun_scripts', 1 );
function spun_options_styles() {
if ( false == get_theme_mod( 'spun_grayscale', false ) ) : ?>