esc_html__( 'Primary Menu', 'boxed-wp' ), 'header-menu' => esc_html__( 'Header Menu', 'boxed-wp' ), ) ); //Switch default core markup for search form, comment form, and comments to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); //Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'boxed_wp_custom_background_args', array( 'default-color' => 'fafafa', 'default-image' => get_template_directory_uri() . '/images/bg-wood.png', ) ) ); } endif; // boxed_wp_setup add_action( 'after_setup_theme', 'boxed_wp_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. */ function boxed_wp_content_width() { $GLOBALS['content_width'] = apply_filters( 'boxed_wp_content_width', 1170 ); } add_action( 'after_setup_theme', 'boxed_wp_content_width', 0 ); /** * Custom image size. */ if ( function_exists( 'add_image_size' ) ) { // post slider image. add_image_size( 'img-slider', 480, 260, true ); // (cropped) // post image. add_image_size( 'img-post', 1170, 370, false ); // (cropped) } //Implement the Custom Header feature. require get_template_directory() . '/core-framework/custom-header.php'; //Custom template tags for this theme. require get_template_directory() . '/core-framework/template-tags.php'; //Custom functions that act independently of the theme templates. require get_template_directory() . '/core-framework/extras.php'; //Load Jetpack compatibility file. require get_template_directory() . '/core-framework/jetpack.php'; //Core Framework. require get_template_directory() . '/core-framework/func/function-action.php'; require get_template_directory() . '/core-framework/func/function-widget.php'; require get_template_directory() . '/core-framework/func/function-script.php'; require get_template_directory() . '/core-framework/partials/page-metabox.php'; if ( is_admin() ) { require get_template_directory() . '/core-framework/welcome/welcome-screen.php'; } //Loads the Options Panel require get_template_directory() . '/core-framework/options/options-framework.php'; // Loads options.php require get_template_directory() . '/options.php'; //widgets require get_template_directory() . '/core-framework/widgets/social-widget.php'; require get_template_directory() . '/core-framework/widgets/recent-posts-widget.php'; require get_template_directory() . '/core-framework/widgets/adsense-widget.php'; /*----------------------------------------------- * Woocommerce support. -----------------------------------------------*/ add_theme_support( 'woocommerce' );