Version ) ); define( 'ABC_THEME_NAME', $abc_theme_data->Name ); define( 'ABC_FEATURED_CONTENT', false ); if ( ! isset( $content_width ) ) { $content_width = 860; } function is_abc_theme() { return true; } foreach ( glob( ABC_THEME_TEMPLATE . '/inc/*' ) as $filename ) { include $filename; } add_action( 'after_setup_theme', 'abc_setup' ); if ( ! function_exists( 'abc_setup' ) ) { function abc_setup() { load_theme_textdomain( 'abacus', ABC_THEME_TEMPLATE . '/languages' ); add_theme_support( 'title-tag' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'woocommerce' ); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_theme_support( 'custom-header', apply_filters( 'abc_custom_header_args', array( //'header-text' => false, 'flex-height' => true, 'flex-width' => true, 'random-default' => true, 'width' => apply_filters( 'abc_header_image_width', 1400 ), 'height' => apply_filters( 'abc_header_image_height', 600 ), 'wp-head-callback' => 'abc_header_style', ) ) ); if ( function_exists( 'abc_premium_features' ) ) { add_theme_support( 'custom-background', apply_filters( 'abc_custom_background_args', array( 'default-color' => '2E3739', ) ) ); } add_theme_support( 'jetpack-testimonial' ); add_editor_style( array( 'css/admin/editor-style.css', '/css/font-awesome.css', abc_fonts_url() ) ); register_nav_menu( 'top', __( 'Top Menu', 'abacus' ) ); register_nav_menu( 'primary', __( 'Primary Menu', 'abacus' ) ); add_image_size( 'abacus-testimonial-thumbnail', 60, 60, true ); add_filter( 'use_default_gallery_style', '__return_false' ); } } if ( ! function_exists( 'abc_header_style' ) ) { function abc_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value if ( HEADER_TEXTCOLOR == $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?> urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ) : ''; } } add_action( 'widgets_init', 'abc_widgets_init' ); if ( ! function_exists( 'abc_widgets_init' ) ) { function abc_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar', 'abacus' ), 'id' => 'sidebar', 'description' => __( 'This section appears on the right of the main content on every page.', 'abacus' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Jumbo Headline', 'abacus' ), 'id' => 'jumbo-headline', 'description' => __( 'This section appears on the front page in the centre of the header image. Designed specifically for one Text widget. ', 'abacus' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); if ( function_exists( 'abc_premium_features' ) ) { register_sidebar( array( 'name' => __( 'Shop Categories', 'abacus' ), 'id' => 'shop-categories', 'description' => __( 'This section appears on the Front Page template below the featured section. Designed specifically for three widgets. ', 'abacus' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Shop Banner', 'abacus' ), 'id' => 'shop-banner', 'description' => __( 'This section appears on the Front Page template above the trending section. Designed specifically for one widget. ', 'abacus' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } } }