__( 'Primary Menu', 'abrevo' ), ) ); add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link' ) ); add_theme_support( 'custom-background', apply_filters( 'abrevo_custom_background_args', array( 'default-color' => 'ebe7ec', 'default-image' => '', ) ) ); add_post_type_support( 'page', 'excerpt' ); } endif; add_action( 'after_setup_theme', 'abrevo_setup' ); function abrevo_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'abrevo' ), 'id' => 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'abrevo_widgets_init' ); function abrevo_scripts() { wp_enqueue_style( 'abrevo-style', get_stylesheet_uri() ); wp_enqueue_style( 'abrevo-google-fonts', '//fonts.googleapis.com/css?family=Roboto|Merriweather:400,300' ); wp_enqueue_script( 'abrevo-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20120206', true ); wp_enqueue_script( 'abrevo-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20130115', true ); wp_enqueue_script( 'abrevo-custom-js', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ), false, true ); $abrevo_header_image_link = get_header_image(); wp_localize_script( 'abrevo-custom-js', 'abrevoScriptParam', array('abrevo_image_link'=> $abrevo_header_image_link ) ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } $abrevo_user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); if(preg_match('/(?i)msie [1-8]/',$abrevo_user_agent)) { wp_enqueue_script( 'html5', get_template_directory_uri() . '/js/html5shiv.min.js', true ); } } add_action( 'wp_enqueue_scripts', 'abrevo_scripts' ); require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/inc/extras.php'; require get_template_directory() . '/inc/customizer.php'; require get_template_directory() . '/inc/jetpack.php'; ?>