'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 = '
'; $output .= ''.$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' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __( 'Footer Widget 1', 'mwsmall' ), 'id' => 'footer1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __( 'Footer Widget 2', 'mwsmall' ), 'id' => 'footer2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => __( 'Footer Widget 3', 'mwsmall' ), 'id' => 'footer3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); } add_action( 'widgets_init', 'mwsmall_widgets_init'); function mwsmall_pagination_nav(){ global $wp_query, $post; if ( $wp_query->max_num_pages > 1 && ( is_home() || is_archive() || is_search() ) ) : // navigation links for home, archive, and search pages ?>
  • >
    comment_approved == '0') : ?>
    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'] ))); ?>
    = 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'mwsmall' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'mwsmall_wp_title', 10, 2 ); /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; ?>