esc_html__('Left Sidebar','sanremo'), 'ot-sidebar-right' => esc_html__('Right Sidebar','sanremo'), 'no-sidebar' => esc_html__('No Sidebar','sanremo'), 'ot-full-width' => esc_html__('Full Width', 'sanremo') ); if ( ! function_exists( 'sanremo_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 sanremo_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'sanremo', 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( 'sanremo-slider', 1140, 550, true ); add_image_size( 'sanremo-thumbnail', 750, 500, true ); add_image_size( 'sanremo-author-thumbnail', 170, 170, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'top-menu' => esc_html__( 'Top Menu', 'sanremo' ), 'footer-menu' => esc_html__( 'Footer Menu', 'sanremo' ) // secondary nav in footer ) ); /* * 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( 'sanremo_custom_background_args', array( 'default-color' => 'F5F5F5', 'default-image' => '', ) ) ); add_theme_support( 'custom-logo', array( 'height' => 140, 'width' => 320, 'flex-height' => true, ) ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded