_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( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', 'gallery', 'status', 'audio', 'chat', ) ); */ 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' ); /*function aemi_search_form( $form ) { $form = '
'; return $form; } add_filter( 'get_search_form', 'aemi_search_form' );*/ 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.', 'before_widget' => '