= 2 || $page >= 2 ) && ! is_404() ) $title = "$title $sep " . sprintf( __( 'Page %s', 'hotel' ), max( $paged, $page ) ); return $title; } } add_filter( 'wp_title', 'hotel_head_title', 10, 2); // Theme setup if( !function_exists( 'hotel_theme_setup' ) ) { function hotel_theme_setup(){ global $content_width; if ( ! isset( $content_width ) ) $content_width = 600; // Load text domain for translation-ready load_theme_textdomain( 'hotel', WEBRITI_THEME_FUNCTIONS_PATH . '/lang' ); // supports featured image add_theme_support( 'post-thumbnails' ); // main menu navigation bar register_nav_menu( 'primary', __( 'Primary Menu', 'hotel' ) ); // Let WordPress manage the document title. add_theme_support( 'title-tag' ); // automatic feeds add_theme_support( 'automatic-feed-links'); // shortcode support add_filter('widget_text', 'do_shortcode'); // post format support add_theme_support( 'post-formats', array('aside', 'quote', 'status', 'video','gallery','audio') ); add_theme_support( 'custom-background' ); $header_args = array( 'flex-height' => true, 'height' => 200, 'flex-width' => true, 'width' => 1600, 'admin-head-callback' => 'mytheme_admin_header_style', ); add_theme_support( 'custom-header', $header_args ); } } add_action( 'after_setup_theme', 'hotel_theme_setup' ); function hotel_registers() { wp_enqueue_script( 'hotel_customizer_script', get_template_directory_uri() . '/js/hotel_customizer.js', array("jquery"), '20120206', true ); } add_action( 'customize_controls_enqueue_scripts', 'hotel_registers' );