esc_html__( 'Primary Menu', 'belly' ), 'footer' => esc_html__( 'Footer Menu', 'belly' ), 'social' => esc_html__( 'Social Menu', 'belly' ), ) ); add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption', ) ); add_theme_support( 'custom-background', apply_filters( 'belly_custom_background_args', array( 'default-color' => 'F1F0F0', 'default-image' => '', ) ) ); add_theme_support( 'customize-selective-refresh-widgets' ); add_theme_support( 'custom-logo' ); $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; add_editor_style( array( belly_fonts_url(), 'css/editor-style' . $min . '.css' ) ); } endif; add_action( 'after_setup_theme', 'belly_setup' ); function belly_content_width() { $GLOBALS['content_width'] = apply_filters( 'belly_content_width', 640 ); } add_action( 'after_setup_theme', 'belly_content_width', 0 ); function belly_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Primary Sidebar', 'belly' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here to appear in your Primary Sidebar.', 'belly' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Secondary Sidebar', 'belly' ), 'id' => 'sidebar-2', 'description' => esc_html__( 'Add widgets here to appear in your Secondary Sidebar.', 'belly' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Header Right Widget Area', 'belly' ), 'id' => 'sidebar-header-right-widget-area', 'description' => esc_html__( 'Add widgets here to appear in your Header Right Widget Area. Especially used for image or ad widget.', 'belly' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Front Page Widget Area', 'belly' ), 'id' => 'sidebar-front-page-widget-area', 'description' => esc_html__( 'Add widgets here to appear in your Front Page.', 'belly' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'belly' ), 1 ), 'id' => 'footer-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'belly' ), 2 ), 'id' => 'footer-2', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'belly' ), 3 ), 'id' => 'footer-3', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => sprintf( esc_html__( 'Footer %d', 'belly' ), 4 ), 'id' => 'footer-4', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'belly_widgets_init' ); function belly_scripts() { $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/vendors/font-awesome/css/font-awesome' . $min . '.css', '', '4.7.0' ); $fonts_url = belly_fonts_url(); if ( ! empty( $fonts_url ) ) { wp_enqueue_style( 'belly-google-fonts', $fonts_url, array(), null ); } wp_enqueue_style( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/css/jquery.sidr.dark' . $min . '.css', '', '2.2.1' ); wp_enqueue_style( 'jquery-slick', get_template_directory_uri() . '/vendors/slick/slick' . $min . '.css', '', '1.5.9' ); wp_enqueue_style( 'belly-style', get_stylesheet_uri(), array(), '1.0.1' ); wp_enqueue_script( 'belly-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix' . $min . '.js', array(), '20130115', true ); wp_enqueue_script( 'jquery-cycle2', get_template_directory_uri() . '/vendors/cycle2/js/jquery.cycle2' . $min . '.js', array( 'jquery' ), '2.1.6', true ); wp_enqueue_script( 'jquery-sidr', get_template_directory_uri() . '/vendors/sidr/js/jquery.sidr' . $min . '.js', array( 'jquery' ), '2.2.1', true ); wp_enqueue_script( 'jquery-slick', get_template_directory_uri() . '/vendors/slick/slick' . $min . '.js', array( 'jquery' ), '1.5.9', true ); wp_enqueue_script( 'belly-custom', get_template_directory_uri() . '/js/custom' . $min . '.js', array( 'jquery' ), '1.0.0', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'belly_scripts' ); require_once trailingslashit( get_template_directory() ) . 'includes/start.php';