esc_html__('Left Sidebar','barletta'), 'mz-sidebar-right' => esc_html__('Right Sidebar','barletta'), 'no-sidebar' => esc_html__('No Sidebar','barletta'), 'mz-full-width' => esc_html__('Full Width', 'barletta') ); $header_show = array( 'logo-only' => __('Logo Only', 'barletta'), 'logo-text' => __('Logo + Tagline', 'barletta'), 'title-only' => __('Title Only', 'barletta'), 'title-text' => __('Title + Tagline', 'barletta') ); if ( ! function_exists( 'barletta_setup' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function barletta_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'barletta', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); // Set the content width based on the theme's design and stylesheet. global $content_width; if ( ! isset( $content_width ) ) { $content_width = 640; /* pixels */ } /** * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'barletta-large-thumbnail', 1140, 550, true ); add_image_size( 'barletta-thumbnail', 833, 540, true ); add_image_size( 'barletta-middle-thumbnail', 627, 320, true ); add_image_size( 'barletta-small-thumbnail', 455, 320, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'main-menu' => esc_html__( 'Main Menu', 'barletta' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'image', 'audio', 'video', 'quote', 'link' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'barletta_custom_background_args', array( 'default-color' => 'F5F5F5', 'default-image' => '', ) ) ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded