Deprecated: Return type of WP_Theme::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/class-wp-theme.php on line 554

Deprecated: Return type of WP_Theme::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/class-wp-theme.php on line 595

Deprecated: Return type of WP_Theme::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/class-wp-theme.php on line 533

Deprecated: Return type of WP_Theme::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/class-wp-theme.php on line 542

Deprecated: Return type of WP_REST_Request::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/rest-api/class-wp-rest-request.php on line 920

Deprecated: Return type of WP_REST_Request::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/rest-api/class-wp-rest-request.php on line 940

Deprecated: Return type of WP_REST_Request::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/rest-api/class-wp-rest-request.php on line 952

Deprecated: Return type of WP_REST_Request::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/rest-api/class-wp-rest-request.php on line 963

Deprecated: Return type of WPCF7_FormTag::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 386

Deprecated: Return type of WPCF7_FormTag::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 378

Deprecated: Return type of WPCF7_FormTag::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 372

Deprecated: Return type of WPCF7_FormTag::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/plugins/contact-form-7/includes/form-tag.php on line 390

Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/plugins/polylang/include/class-polylang.php on line 144

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/formatting.php on line 4891
init(); } public function init(){ add_filter('show_admin_bar', '__return_false'); add_action( 'admin_enqueue_scripts', array( &$this, 'load_admin_style' ) ); add_action( 'login_enqueue_scripts', array( &$this, 'load_login_style') ); add_action( 'admin_menu', array( &$this, 'remove_admin_nodes') ); add_action( 'init', array( &$this, 'add_settings' ) ); add_action( 'init', array( &$this, 'register_my_session' ) ); add_action( 'init', array( &$this, 'cfui_register_my_cf' ) ); add_action( 'init', array( &$this, 'cptui_register_my_cpts' ) ); register_nav_menus( array( 'primary' => __( 'Menu Principal', 'vinaquintay' ), 'secondary' => __( 'Menu Inferior', 'vinaquintay' ), ) ); add_theme_support('post-thumbnails'); add_post_type_support( 'page', 'excerpt' ); add_image_size('hero-thumbnail-1460x640', 1460, 640, true ); add_image_size('square-600', 600, 600, true ); add_image_size('hero-thumbnail-1460x540', 1460, 420, true ); add_image_size('hero-thumbnail-800x350', 800, 350, true ); add_image_size('portrait-340x680', 340, 680, true ); add_image_size('portrait-240x340', 240, 340, true ); add_image_size('portrait-170x340', 170, 340, true ); add_image_size('hero-thumbnail-235x150', 235, 150, true ); add_image_size('square-115', 115, 115, true ); pll_register_string( 'Nuestros Vinos', 'Nuestros Vinos'); pll_register_string( 'Visitanos', 'Visitanos'); pll_register_string( 'Tours', 'Tours'); pll_register_string( 'Políticas Comerciales', 'Políticas Comerciales'); } public function add_settings(){ if( function_exists('acf_add_options_page') ) { acf_add_options_page(array( 'page_title' => 'Configuración', 'menu_title' => 'Configuración', 'menu_slug' => 'theme-general-settings', 'capability' => 'edit_posts', 'redirect' => true, 'position' => 5.5, )); acf_add_options_sub_page(array( 'page_title' => 'Opciones Generales', 'menu_title' => 'Opciones Generales', 'parent_slug' => 'theme-general-settings', )); } if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_5a6f200dad060', 'title' => 'Datos Generales', 'fields' => array ( array ( 'key' => 'field_5a6f282dfd563', 'label' => 'Nombre del Sitio', 'name' => 'site_title', 'type' => 'text', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', ), array ( 'key' => 'field_5a6f521f363c4', 'label' => 'Correo Administrador', 'name' => 'admin_email', 'type' => 'email', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', ), array ( 'key' => 'field_5a6f521f363c8', 'label' => 'Correo Contacto', 'name' => 'contact_email', 'type' => 'email', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', ), array ( 'key' => 'field_6a6f511f363c8', 'label' => 'Correo Contacto 2', 'name' => 'contact_email2', 'type' => 'email', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', ), array ( 'key' => 'field_5a6f2467e167f', 'label' => 'Dirección', 'name' => 'address', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => 3, 'new_lines' => '', ), array ( 'key' => 'field_5a6f24d3e1680', 'label' => 'Teléfono', 'name' => 'phone', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-opciones-generales', ), ), ), 'menu_order' => 1, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); acf_add_local_field_group(array ( 'key' => 'group_5a6f200ddd060', 'title' => 'Descripcion Sitio', 'fields' => array ( array ( 'key' => 'field_5a6f282ddd564', 'label' => 'Español', 'name' => 'es_site_description', 'type' => 'textarea', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => 3, 'new_lines' => '', ), array ( 'key' => 'field_5a6f282ddd565', 'label' => 'Inglés', 'name' => 'en_site_description', 'type' => 'textarea', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => 3, 'new_lines' => '', ), array ( 'key' => 'field_5a6f282ddd566', 'label' => 'Chino', 'name' => 'zh_site_description', 'type' => 'textarea', 'instructions' => '', 'required' => 1, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => 3, 'new_lines' => '', ) ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-opciones-generales', ), ), ), 'menu_order' => 2, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); acf_add_local_field_group(array ( 'key' => 'group_5a6f211defa11', 'title' => 'Redes Sociales', 'fields' => array ( array ( 'key' => 'field_5a6f253d4482c', 'label' => 'Facebook', 'name' => 'facebook', 'type' => 'url', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => 'http://facebook.com/', ), array ( 'key' => 'field_5a6f25a74482d', 'label' => 'Instagram', 'name' => 'instagram', 'type' => 'url', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => 'http://instagram.com', ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-opciones-generales', ), ), ), 'menu_order' => 3, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); acf_add_local_field_group(array ( 'key' => 'group_5a6f226b7b371', 'title' => 'Pie de Página', 'fields' => array ( array ( 'key' => 'field_5a6f269030a12', 'label' => 'Copyright', 'name' => 'copyright', 'type' => 'textarea', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'maxlength' => '', 'rows' => 2, 'new_lines' => '', ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-opciones-generales', ), ), ), 'menu_order' => 4, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); acf_add_local_field_group(array ( 'key' => 'group_5a6f226b7b374', 'title' => 'Mapa', 'fields' => array ( array ( 'key' => 'field_5a6f269030a14', 'label' => 'Latitud', 'name' => 'map_lat', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', ), array ( 'key' => 'field_5a6f269030a15', 'label' => 'Longitud', 'name' => 'map_lon', 'type' => 'text', 'instructions' => '', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'default_value' => '', 'placeholder' => '', 'prepend' => '', 'append' => '', 'maxlength' => '', ), ), 'location' => array ( array ( array ( 'param' => 'options_page', 'operator' => '==', 'value' => 'acf-options-opciones-generales', ), ), ), 'menu_order' => 5, 'position' => 'normal', 'style' => 'default', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; } public function remove_admin_nodes() { remove_menu_page('edit-comments.php'); //Comments remove_submenu_page('index', 'update-core'); // Actualizaciones //remove_submenu_page( 'themes.php', 'themes.php' ); // Editor //remove_submenu_page( 'themes.php', 'theme-editor.php' ); // Editor //remove_submenu_page('themes', 'edit'); //remove_menu_page('edit.php?post_type=home_hero'); //Custom Fields } public function load_admin_style() { wp_enqueue_style( 'admin_css', get_template_directory_uri() . '/admin.css', false, '1.0.0' ); } public function load_login_style() { wp_enqueue_style( 'login_css', get_template_directory_uri() . '/login.css', false, '1.0.0' ); //echo ''; } public function register_my_session() { if( !session_id() ) { session_start(); } } function cfui_register_my_cf() { if( function_exists('acf_add_local_field_group') ): acf_add_local_field_group(array ( 'key' => 'group_5ade3e3e58b5a', 'title' => 'Imagen Categorías', 'fields' => array ( array ( 'key' => 'field_5ade3e6bf2124', 'label' => 'Imagen', 'name' => 'category_image', 'type' => 'image', 'instructions' => 'Seleccione una imagen para la Categoría de Vino', 'required' => 0, 'conditional_logic' => 0, 'wrapper' => array ( 'width' => '', 'class' => '', 'id' => '', ), 'return_format' => 'array', 'preview_size' => 'thumbnail', 'library' => 'all', 'min_width' => '', 'min_height' => '', 'min_size' => '', 'max_width' => '', 'max_height' => '', 'max_size' => '', 'mime_types' => '', ), ), 'location' => array ( array ( array ( 'param' => 'taxonomy', 'operator' => '==', 'value' => 'category', ), ), ), 'menu_order' => 0, 'position' => 'normal', 'style' => 'seamless', 'label_placement' => 'top', 'instruction_placement' => 'label', 'hide_on_screen' => '', 'active' => 1, 'description' => '', )); endif; } function cptui_register_my_cpts() { /** * Post Type: vinos. */ $labels = array( "name" => __( "vinos", "vinaquintay" ), "singular_name" => __( "vino", "vinaquintay" ), "menu_name" => __( "Vinos", "vinaquintay" ), "all_items" => __( "Todos los Vinos", "vinaquintay" ), "add_new" => __( "Agregar Vino", "vinaquintay" ), "add_new_item" => __( "Agregar Vino", "vinaquintay" ), "edit_item" => __( "Editar Vino", "vinaquintay" ), "new_item" => __( "Nuevo Vino", "vinaquintay" ), "view_item" => __( "Ver Vino", "vinaquintay" ), "view_items" => __( "Ver Vinos", "vinaquintay" ), "search_items" => __( "Buscar Vino", "vinaquintay" ), "not_found" => __( "No se encontraron Vinos", "vinaquintay" ), "not_found_in_trash" => __( "No se encontraron Vinos en la Papelera", "vinaquintay" ), "featured_image" => __( "Imagen Principal", "vinaquintay" ), "set_featured_image" => __( "Seleccionar Imagen Principal", "vinaquintay" ), "remove_featured_image" => __( "Remover Imagen Principal", "vinaquintay" ), "use_featured_image" => __( "Usar Imagen Principal", "vinaquintay" ), "archives" => __( "Archivos", "vinaquintay" ), "insert_into_item" => __( "Insertar en el Registro", "vinaquintay" ), "uploaded_to_this_item" => __( "Subido a este Registro", "vinaquintay" ), "filter_items_list" => __( "Filtrar listado", "vinaquintay" ), "items_list_navigation" => __( "Lista de Navegación", "vinaquintay" ), "items_list" => __( "Lista de Vinos", "vinaquintay" ), "attributes" => __( "Atributos", "vinaquintay" ), ); $args = array( "label" => __( "vinos", "vinaquintay" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array( "slug" => "vinos", "with_front" => true ), "query_var" => true, "menu_icon" => "http://vinaquintay.cl/wp-content/uploads/2018/04/152117062155252244-e1521170732826.png", "supports" => array( "title", "thumbnail", "excerpt" ), "taxonomies" => array( "category" ), ); register_post_type( "vinos", $args ); /** * Post Type: Imágenes. */ $labels = array( "name" => __( "Imágenes", "vinaquintay" ), "singular_name" => __( "Imagen", "vinaquintay" ), "menu_name" => __( "Galeria Home", "vinaquintay" ), "all_items" => __( "Todas las Imágenes", "vinaquintay" ), "add_new" => __( "Agregar Imagen", "vinaquintay" ), "add_new_item" => __( "Agregar Nueva Imagen", "vinaquintay" ), "edit_item" => __( "Editar Imagen", "vinaquintay" ), "new_item" => __( "Nueva Imagen", "vinaquintay" ), "view_item" => __( "Ver Imagen", "vinaquintay" ), "view_items" => __( "Ver Imágenes", "vinaquintay" ), "search_items" => __( "Buscar Imagen", "vinaquintay" ), "not_found" => __( "No se encontraron Imágenes", "vinaquintay" ), "not_found_in_trash" => __( "No se encontraron Imágenes en la Papelera", "vinaquintay" ), "featured_image" => __( "Imagen", "vinaquintay" ), "set_featured_image" => __( "Seleccionar Imagen", "vinaquintay" ), "remove_featured_image" => __( "Remover Imagen", "vinaquintay" ), "use_featured_image" => __( "Usar Imagen", "vinaquintay" ), "archives" => __( "Archivos", "vinaquintay" ), "insert_into_item" => __( "Insertar en el Registro", "vinaquintay" ), "uploaded_to_this_item" => __( "Subido a este Registro", "vinaquintay" ), "filter_items_list" => __( "Filtrar listado", "vinaquintay" ), "items_list_navigation" => __( "Lista de Navegación", "vinaquintay" ), "items_list" => __( "Lista de Imágenes", "vinaquintay" ), "attributes" => __( "Atributos", "vinaquintay" ), ); $args = array( "label" => __( "Imágenes", "vinaquintay" ), "labels" => $labels, "description" => "", "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => false, "rest_base" => "", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "rewrite" => array( "slug" => "slider_home", "with_front" => true ), "query_var" => true, "menu_icon" => "dashicons-format-gallery", "supports" => array( "title", "editor", "thumbnail" ), ); register_post_type( "slider_home", $args ); } } $Application = new Application();
Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/q76vcsphhsmt/public_html/quintay.com/wp-includes/class-wp.php on line 173


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 70

Warning: Attempt to read property "post_title" on null in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 70


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 76


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 96

Warning: Attempt to read property "post_title" on null in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 96


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 98


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 142

Warning: Attempt to read property "post_title" on null in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 142


Warning: Undefined variable $featured_single_post in /home/q76vcsphhsmt/public_html/quintay.com/wp-content/themes/vinaquintay/index.php on line 144

Our Wines

'name', 'order' => 'ASC' ); $categories = get_categories($cat_args); foreach($categories as $category) : $category_image = get_field('category_image', $category->taxonomy.'_'.$category->term_id); $search = array( '[ES]', '[EN]', '[ZH]' ); $replace = array( '', '', '' ); $category_name = str_replace($search, $replace, $category->name); ?> $category->term_id, 'post_type' => 'vinos' ); $postslist = get_posts( $args ); $permalink = ""; ?>