Version ) ); define( 'ABACUS_THEME_NAME', $abacus_theme_data->Name ); define( 'ABC_SLIDER', true ); if ( ! isset( $content_width ) ) { $content_width = 860; } require 'inc/about.php'; require 'inc/jetpack.php'; require 'inc/premium-filters.php'; require 'inc/template-tags.php'; require 'inc/woocommerce.php'; require 'inc/customizer/customizer.php'; add_action( 'after_setup_theme', 'abacus_setup' ); if ( ! function_exists( 'abacus_setup' ) ) { function abacus_setup() { load_theme_textdomain( 'abacus', ABACUS_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( 'abacus_custom_header_args', array( 'header-text' => false, 'flex-height' => true, 'flex-width' => true, 'random-default' => true, 'width' => apply_filters( 'abacus_header_image_width', 1400 ), 'height' => apply_filters( 'abacus_header_image_width', 600 ), 'wp-head-callback' => 'abacus_header_style', ) ) ); if ( function_exists( 'abc_premium_features' ) ) { add_theme_support( 'custom-background', apply_filters( 'abacus_custom_background_args', array( 'default-color' => 'ffffff', ) ) ); } add_theme_support( 'jetpack-testimonial' ); add_theme_support( 'custom-logo' ); add_editor_style( array( 'css/admin/editor-style.css', '/css/font-awesome.css', abacus_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( 'abacus_header_style' ) ) { function abacus_header_style() { $header_text_color = get_header_textcolor(); // If no custom options for text are set, let's bail if ( get_theme_support( 'custom-header', 'default-text-color' ) === $header_text_color ) { return; } // If we get this far, we have custom styles. Let's do this. ?> height . "px; }"; wp_add_inline_style( 'abacus-stylesheet', $custom_css ); } } } if ( ! function_exists( 'abacus_fonts_url' ) ) { function abacus_fonts_url() { $fonts = array(); $subsets = 'latin,latin-ext'; /* * Translators: If there are characters in your language that are not supported * by Roboto, translate this to 'off'. Do not translate into your own language. */ if ( 'off' !== _x( 'on', 'Roboto font: on or off', 'abacus' ) ) { $fonts[] = 'Roboto:300,400,400italic,700,700italic'; } /* * Translators: To add an additional character subset specific to your language, * translate this to 'greek', 'cyrillic', 'devanagari' or 'vietnamese'. Do not translate into your own language. */ $subset = _x( 'no-subset', 'Add new subset (greek, cyrillic, devanagari, vietnamese)', 'abacus' ); if ( 'cyrillic' == $subset ) { $subsets .= ',cyrillic,cyrillic-ext'; } elseif ( 'greek' == $subset ) { $subsets .= ',greek,greek-ext'; } elseif ( 'devanagari' == $subset ) { $subsets .= ',devanagari'; } elseif ( 'vietnamese' == $subset ) { $subsets .= ',vietnamese'; } return ( $fonts ) ? add_query_arg( array( 'family' => urlencode( implode( '|', $fonts ) ), 'subset' => urlencode( $subsets ), ), 'https://fonts.googleapis.com/css' ) : ''; } } add_action( 'widgets_init', 'abacus_widgets_init' ); if ( ! function_exists( 'abacus_widgets_init' ) ) { function abacus_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' => '

', ) ); } } }