esc_html__('Left Sidebar','serenti'), 'mz-sidebar-right' => esc_html__('Right Sidebar','serenti'), 'no-sidebar' => esc_html__('No Sidebar','serenti'), 'mz-full-width' => esc_html__('Full Width', 'serenti') ); $serenti_thumbs_layout = array( 'landscape' => esc_html__('Landscape','serenti'), 'portrait' => esc_html__('Portrait','serenti') ); if ( ! function_exists( 'serenti_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 serenti_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'serenti', 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( 'serenti-slider-thumbnail', 900, 515, true ); add_image_size( 'serenti-large-thumbnail', 1140, 640, true ); add_image_size( 'serenti-landscape-thumbnail', 735, 490, true ); add_image_size( 'serenti-portrait-thumbnail', 735, 1100, true ); add_image_size( 'serenti-author-thumbnail', 170, 170, true ); add_image_size( 'serenti-small-thumbnail', 100, 80, true ); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'serenti' ), ) ); // 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', apply_filters( 'serenti_custom_background_args', array( 'default-color' => 'FFFFFF', 'default-image' => '', ) ) ); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded