_x( 'Header Menu', 'header menu', 'aemi' ), 'social-menu' => _x( 'Social Menu', 'social menu', 'aemi' ), 'footer-menu' => _x( 'Footer Menu', 'footer menu', 'aemi' ), ) ); add_theme_support( 'html5' ); add_theme_support( 'custom-background', apply_filters( 'aemi_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); add_theme_support( 'custom-header', array( 'default-image' => '', 'width' => 2880, 'height' => 172, 'flex-height' => true, 'flex-width' => true, 'uploads' => true, 'random-default' => false, 'header-text' => false, 'default-text-color' => '', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ) ); add_theme_support( 'site-logo' ); add_theme_support( 'custom-logo', array( 'height' => 92, 'width' => 276, 'flex-height' => true, 'flex-width' => true, 'header-text' => array(), ) ); add_editor_style( array( 'assets/editor-style.css' ) ); $starter_content = apply_filters( 'aemi_starter_content', array( 'widgets' => array( 'header-widget-area' => array( 'search', ), 'footer-widget-area' => array( '', ), ), ) ); add_theme_support( 'starter-content', $starter_content ); } } add_action( 'after_setup_theme', 'aemi_setup' ); function aemi_tagcount_filter ( $variable ) { $variable = str_replace( ' (', '•', $variable ); $variable = str_replace( ')', '', $variable ); return $variable; } add_filter( 'wp_tag_cloud', 'aemi_tagcount_filter' ); if ( ! function_exists( 'aemi_pingback_header' ) ) { function aemi_pingback_header() { if ( is_singular() && pings_open() ) { echo ''; } } } add_action( 'wp_head', 'aemi_pingback_header' ); if ( ! function_exists( 'aemi_widgets_init' ) ) { function aemi_widgets_init() { register_sidebar( array ( 'name' => __( 'Header Widget Area', 'aemi' ), 'id' => 'header-widget-area', 'description' => __( 'Add widgets in this area to display them on header area.', 'aemi' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array ( 'name' => __( 'Sidebar Widget Area', 'aemi' ), 'id' => 'sidebar-widget-area', 'description' => __( 'Add widgets in this area to display them on sidebar area.', 'aemi' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array ( 'name' => __( 'Footer Widget Area', 'aemi' ), 'id' => 'footer-widget-area', 'description' => __( 'Add widgets in this area to display them on footer area.', 'aemi' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } } if ( ! function_exists( 'aemi_scripts' ) ) { function aemi_scripts() { wp_enqueue_style( 'aemi-style', get_stylesheet_uri() ); wp_enqueue_style( 'aemi-font', get_template_directory_uri() . '/assets/css/fonts.css' ); wp_enqueue_script ( 'aemi-script', get_template_directory_uri() . '/assets/js/aemi.js' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } } if ( ! function_exists( 'aemi_ie_scripts') ) { function aemi_ie_scripts() { wp_enqueue_style( 'aemi-ie-style', get_template_directory_uri() . '/assets/css/ie_style.css' ); } }