esc_html__('Left Sidebar','avrilly'), 'mz-sidebar-right' => esc_html__('Right Sidebar','avrilly'), 'no-sidebar' => esc_html__('No Sidebar','avrilly') ); $avrilly_thumbs_layout = array( 'landscape' => esc_html__('Landscape','avrilly'), 'portrait' => esc_html__('Portrait','avrilly') ); if ( ! function_exists( 'avrilly_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 avrilly_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'avrilly', get_template_directory() . '/languages' ); // Add default posts and comments RSS feed links to head. add_theme_support( 'automatic-feed-links' ); /** * 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( 'avrilly-slider-thumbnail', 700, 390, true ); add_image_size( 'avrilly-large-thumbnail', 1140, 640, true ); add_image_size( 'avrilly-middle-thumbnail', 730, 476, true ); add_image_size( 'avrilly-author-thumbnail', 170, 170, true ); add_image_size( 'avrilly-small-thumbnail', 100, 80, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'footer-menu' => esc_html__( 'Footer Menu', 'avrilly' ), 'primary' => esc_html__( 'Primary Menu', 'avrilly' ), ) ); // Set the content width based on the theme's design and stylesheet. global $content_width; if ( ! isset( $content_width ) ) { $content_width = 1140; /* pixels */ } /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'gallery', 'caption' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', array( 'default-color' => 'ffffff' ) ); // Add support for editor styles. add_theme_support( 'editor-styles' ); // Enqueue editor styles. add_editor_style( 'editor-style.css' ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded