'e5e5e5', 'default-image' => '', ) ) ); $args = array( 'flex-width' => true, 'width' => 1980, 'flex-height' => true, 'height' => 250, 'header-text' => true, 'default-text-color' => '#ffffff', ); add_theme_support( 'custom-header', $args ); // Post Formats add_theme_support( 'post-formats', array( 'image', 'gallery', 'video', 'quote', 'link', 'audio', 'status' ) ); register_nav_menus( array( 'primary' => __( 'Main Navigation', 'mwsmall' ) ) ); } endif; add_action( 'after_setup_theme', 'mwsmall_setup' ); /** * Enqueue scripts and styles */ function mwsmall_scripts() { wp_enqueue_style( 'blog-icons', get_template_directory_uri() . '/css/font-awesome.min.css' ); wp_enqueue_style( 'flexslider', get_template_directory_uri() . '/css/flexslider.css' ); wp_enqueue_style( 'bootstrap-framework', get_template_directory_uri() . '/css/bootstrap.min.css' ); wp_enqueue_style( 'style', get_stylesheet_uri() ); $color_scheme = get_theme_mod( 'mwsmall_color_theme' ); if ( $color_scheme == 'dark' ) wp_enqueue_style( 'dark', get_template_directory_uri() . '/css/dark.css', array(), null ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } wp_enqueue_script( 'flexslider-js', get_template_directory_uri() . '/js/jquery.flexslider.js', array( 'jquery' ), '201408', true ); wp_enqueue_script( 'superfish', get_template_directory_uri() . '/js/superfish.js', array( 'jquery' ) ); wp_enqueue_script( 'mwsmall-js', get_template_directory_uri() . '/js/bootstrap.js', array( 'jquery' ), '201408', true ); wp_enqueue_script( 'mwsmall-js', get_template_directory_uri() . '/js/bootstrap.min.js', array( 'jquery' ), '201408', true ); wp_enqueue_script( 'my-script', get_template_directory_uri() . '/js/script.js', array( 'jquery' ), '201408', true ); } add_action( 'wp_enqueue_scripts', 'mwsmall_scripts' ); function mwsmall_add_editor_styles() { add_editor_style( 'editor-style.css' ); } add_action( 'after_setup_theme', 'mwsmall_add_editor_styles' ); function mwsmall_post_icon() { if ( get_post_format() === 'quote' ) { $post_icon = ''; } else if ( get_post_format() == 'gallery' ) { $post_icon = ''; } else if ( get_post_format() == 'image' ) { $post_icon = ''; } else if ( get_post_format() == 'status' ) { $post_icon = ''; } else if ( get_post_format() == 'video' ) { $post_icon = ''; } else if ( get_post_format() == 'audio' ) { $post_icon = ''; } else if ( get_post_format() == 'link' ) { $post_icon = ''; } else { $post_icon = ''; } $output = '
'; echo $output; } /* Register Widget Areas ----------------------------------- */ function mwsmall_widgets_init() { register_sidebar(array( 'name' => __( 'Blog Widget', 'mwsmall' ), 'id' => 'blog-widget', 'before_widget' => '', 'before_title' => '