section add_theme_support( 'automatic-feed-links' ); // Add Custom BG add_theme_support( 'custom-background' ); // Enable post thumbnails add_theme_support('post-thumbnails'); set_post_thumbnail_size(280, 280, true); // ADD POST FORMATS add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', 'audio' ) ); // Editor Support add_editor_style(); // Menu Support register_nav_menu('header-menu',__( 'Header Menu' )); } add_action( 'after_setup_theme', 'simonwpframework_setup' ); // Enqueue scripts and styles function simonwpframework_scripts() { if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); wp_enqueue_script( "jquery" ); wp_enqueue_style( 'normalize', get_template_directory_uri() .'/inc/css/normalize.css' ); wp_enqueue_style( 'style', get_stylesheet_uri() ); wp_enqueue_style( 'media-queries', get_template_directory_uri() .'/inc/css/mediaqueries.css' ); wp_enqueue_style( 'to-top', get_template_directory_uri() .'/inc/css/to-top-jquery.css' ); wp_enqueue_script( 'retina', get_template_directory_uri() .'/inc/js/retina.js' ); wp_enqueue_script( 'menu', get_template_directory_uri() .'/inc/js/menu.js' ); wp_enqueue_script( 'to-top', get_template_directory_uri() .'/inc/js/to-top-jquery.js' ); wp_enqueue_script( 'fade-in', get_template_directory_uri() .'/inc/js/fadein.js' ); wp_enqueue_script( 'flow-type', get_template_directory_uri() . '/inc/js/flowtype.js' ); } add_action( 'wp_enqueue_scripts', 'simonwpframework_scripts' ); // Add Bread Crumbs function simonwpframework_breadcrumb() { echo bloginfo('name'); if (!is_front_page()) { echo ' Home'; echo " / "; if (is_category() || is_single()) { the_category(' '); if (is_single()) { echo " / "; the_title(); } } elseif (is_page()) { echo the_title(); } } else { echo 'Home'; } } // Add Widgets function simonwpframework_widgets_init() { register_sidebar(array( 'id' => 'main-sidebar', 'name' => 'Main Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'id' => 'footer-1', 'name' => 'Footer1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'id' => 'footer-2', 'name' => 'Footer2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'id' => 'footer-3', 'name' => 'Footer3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action ( 'widgets_init', 'simonwpframework_widgets_init' ); // Add Template for comments and pingbacks if ( ! function_exists( 'simonwpframework_comment' ) ) : function simonwpframework_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    says:', 'simonwpframework' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>