{"id":269,"date":"2021-05-23T21:40:27","date_gmt":"2021-05-23T19:40:27","guid":{"rendered":"http:\/\/www.gioiellino.eu\/index.php\/my-orders\/"},"modified":"2021-05-23T21:40:27","modified_gmt":"2021-05-23T19:40:27","slug":"my-orders","status":"publish","type":"page","link":"https:\/\/www.gioiellino.eu\/index.php\/my-orders\/","title":{"rendered":"My Orders"},"content":{"rendered":"\n<div class=\"wrap plugin-container vikrestaurants-page-allorders\">\n\n\t\n\t\n\t\n<div class=\"vikrestaurants-start-body\">\n\t<!--\n\t\tThis tag is simply used to understand where the\n\t\tbody of VikRestaurants starts.\n\t-->\n<\/div>\n\n\t<!-- REGISTRATION -->\n\t\n\t<script>\n\t\t(function($, w) {\n\t\t\t'use strict';\n\n\t\t\tw.vreUserRegistrationValidator = null;\n\n\t\t\tw.vrLoginValueChanged = () => {\n\t\t\t\tif ($('input[name=loginradio]:checked').val() == 1) {\n\t\t\t\t\t$('.vrregisterblock').css('display', 'none');\n\t\t\t\t\t$('.vrloginblock').fadeIn();\n\t\t\t\t} else {\n\t\t\t\t\t$('.vrloginblock').css('display', 'none');\n\t\t\t\t\t$('.vrregisterblock').fadeIn();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$(function() {\n\t\t\t\t\/\/ in case of a specified form, register only the fields contained within the registration wrapper\n\t\t\t\tconst formSelector = '#vrregform';\n\n\t\t\t\t\/\/ create validator once the document is ready, because certain themes\n\t\t\t\t\/\/ might load the resources after the body\n\t\t\t\tw.vreUserRegistrationValidator = new VikFormValidator(formSelector, 'vrinvalid');\n\n\t\t\t\t\/\/ register callback to make sure both the password fields are equals\n\t\t\t\tw.vreUserRegistrationValidator.addCallback((form) => {\n\t\t\t\t\tconst pwd1 = $('#vrcfregister_password');\n\t\t\t\t\tconst pwd2 = $('#vrcfregister_conf_password');\n\n\t\t\t\t\tif (!pwd1.val() || (pwd1.val() !== pwd2.val())) {\n\t\t\t\t\t\t\/\/ the specified password are not matching\n\t\t\t\t\t\tform.setInvalid($(pwd1).add(pwd2));\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ the specified password are equals\n\t\t\t\t\tform.unsetInvalid($(pwd1).add(pwd2));\n\t\t\t\t\treturn true;\n\t\t\t\t});\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$(formSelector).find('button[name=\"registerbutton\"]').on('click', function(event) {\n\t\t\t\t\tif (!w.vreUserRegistrationValidator.validate()) {\n\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\t\t\t\t\t\/\/ find parent form\n\t\t\t\t\tconst formElement = $(this).closest('form');\n\n\t\t\t\t\t\n\t\t\t\t\treturn true;\n\t\t\t\t});\n\t\t\t});\n\t\t})(jQuery, window);\n\t<\/script>\n\n\t<div class=\"vrloginradiobox\" id=\"vrloginradiobox\">\n\t\t<span class=\"vrloginradiosp\">\n\t\t\t<label for=\"logradio1\">Login<\/label>\n\t\t\t<input type=\"radio\" id=\"logradio1\" name=\"loginradio\" value=\"1\" onChange=\"vrLoginValueChanged();\" checked=\"checked\" \/>\n\t\t<\/span>\n\t\t<span class=\"vrloginradiosp\">\n\t\t\t<label for=\"logradio2\">Crea nuovo account<\/label>\n\t\t\t<input type=\"radio\" id=\"logradio2\" name=\"loginradio\" value=\"2\" onChange=\"vrLoginValueChanged();\"  \/>\n\t\t<\/span>\n\t<\/div>\n\n\t<div class=\"vrregisterblock\" style=\"display: none;\">\n\t\t\t\t\t<form action=\"https:\/\/www.gioiellino.eu\/index.php\/my-orders\/?option=com_vikrestaurants\" method=\"post\" name=\"vrregform\" id=\"vrregform\">\n\t\t\t\n\t\t\t<h3>Registrazione<\/h3>\n\t\t\t\n\t\t\t<div class=\"vrloginfieldsdiv custom-fields-material\">\n\n\t\t\t\t\n<div class=\"cf-control control-custom-field control-nominative\" id=\"vrcfregister_first_name-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_first_name\" style=\"display: none;\">\n\t\t\t\tNome\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"text\"\n\tname=\"vrcfregister_first_name\"    id=\"vrcfregister_first_name\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required field-nominative\"\n                            \/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_first_name\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tNome\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_first_name');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n<div class=\"cf-control control-custom-field control-nominative\" id=\"vrcfregister_last_name-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_last_name\" style=\"display: none;\">\n\t\t\t\tCognome\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"text\"\n\tname=\"vrcfregister_last_name\"    id=\"vrcfregister_last_name\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required field-nominative\"\n                            \/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_last_name\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tCognome\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_last_name');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n<div class=\"cf-control control-custom-field\" id=\"vrcfregister_username-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_username\" style=\"display: none;\">\n\t\t\t\tUsername\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"text\"\n\tname=\"vrcfregister_username\"    id=\"vrcfregister_username\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required\"\n                            \/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_username\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tUsername\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_username');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n<div class=\"cf-control control-custom-field control-email\" id=\"vrcfregister_email-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_email\" style=\"display: none;\">\n\t\t\t\tE-mail\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"email\"\n\tname=\"vrcfregister_email\"    id=\"vrcfregister_email\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required field-email mail-field\"\n                            \/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_email\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tE-mail\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_email');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n<div class=\"cf-control control-custom-field\" id=\"vrcfregister_password-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_password\" style=\"display: none;\">\n\t\t\t\tPassword\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"password\"\n\tname=\"vrcfregister_password\"    id=\"vrcfregister_password\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required\"\n                                autocomplete=\"off\"\n\/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_password\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tPassword\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_password');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n<div class=\"cf-control control-custom-field\" id=\"vrcfregister_conf_password-control\">\n\n\t\n\t\n\t<div class=\"cf-value\">\n\n\t\t\t\t\t\t\t\t<label for=\"vrcfregister_conf_password\" style=\"display: none;\">\n\t\t\t\tConferma password\t\t\t<\/label>\n\t\t\n\t\t\n<input\n\ttype=\"password\"\n\tname=\"vrcfregister_conf_password\"    id=\"vrcfregister_conf_password\"\tvalue=\"\"\n\tsize=\"40\"\n\tclass=\"vrinput custom-field required\"\n                                autocomplete=\"off\"\n\/>\n\n\t\t\t\t\t<span class=\"cf-highlight\"><!-- input highlight --><\/span>\n\n\t\t\t<span class=\"cf-bar\"><!-- input bar --><\/span>\n\n\t\t\t<label for=\"vrcfregister_conf_password\" class=\"cf-label\">\n\t\t\t\n\t\t\t\tConferma password\n\t\t\t\t\t\t\t\t\t<span class=\"vrrequired\"><sup aria-hidden=\"true\">*<\/sup><\/span>\n\t\t\t\t\n\t\t\t<\/label>\n\t\t\n\t<\/div>\n\n\t\n<\/div>\n\n<script>\n\t(function($, w) {\n\t\t'use strict';\n\n\t\tconst handleCustomFieldFocus = (input) => {\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar, .cf-label')\n\t\t\t\t\t.addClass('focus');\n\t\t}\n\n\t\tconst handleCustomFieldBlur = (input) => {\n\t\t\tlet val = $(input).val();\n\n\t\t\tif ($(input).attr('type') == 'tel' && $.fn.intlTelInput) {\n\t\t\t\t\/\/ get number to make sure we are not obtaining only the default prefix\n\t\t\t\tval = $(input).intlTelInput('getNumber');\n\t\t\t}\n\n\t\t\t\/\/ remove class from label only if empty\n\t\t\tif (!val || val.length == 0) {\n\t\t\t\t$(input).closest('.cf-value')\n\t\t\t\t\t.find('.cf-label')\n\t\t\t\t\t\t.removeClass('focus');\n\t\t\t}\n\n\t\t\t$(input).closest('.cf-value')\n\t\t\t\t.find('.cf-bar')\n\t\t\t\t\t.removeClass('focus');\n\t\t}\n\n\t\t$(function() {\n\t\t\t\/\/ get current field\n\t\t\tconst input = $('#vrcfregister_conf_password');\n\n\t\t\t\/\/ add\/remove has-value class during change and blur events\n\t\t\t$(input).on('change blur', function() {\n\t\t\t\tlet val = $(this).val();\n\n\t\t\t\tif (val && val.length) {\n\t\t\t\t\t$(this).addClass('has-value');\n\t\t\t\t} else {\n\t\t\t\t\t$(this).removeClass('has-value');\n\t\t\t\t}\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on focus)\n\t\t\t$(input).on('focus', function() {\n\t\t\t\thandleCustomFieldFocus(this);\n\t\t\t});\n\n\t\t\t\/\/ handle focus classes on siblings (on blur)\n\t\t\t$(input).on('blur', function() {\n\t\t\t\thandleCustomFieldBlur(this);\n\t\t\t});\n\n\t\t\tif ($(input).attr('type') === 'tel') {\n\t\t\t\t\/\/ trigger focus and blur to properly set the control classes\n\t\t\t\t\/\/ for the telephone input, since stand-alone CSS cannot deal\n\t\t\t\t\/\/ with the composite structure of this field\n\t\t\t\thandleCustomFieldFocus(input);\n\t\t\t\thandleCustomFieldBlur(input);\n\t\t\t}\n\n\t\t\t\t\t\t\tonInstanceReady(() => {\n\t\t\t\t\t\/\/ wait until the provided validator has been loaded\n\t\t\t\t\treturn w['vreUserRegistrationValidator'];\n\t\t\t\t}).then((validator) => {\n\t\t\t\t\t\/**\n\t\t\t\t\t * Overwrite getLabel method to properly access the\n\t\t\t\t\t * label by using our custom layout.\n\t\t\t\t\t *\n\t\t\t\t\t * @param   mixed  input  The input element.\n\t\t\t\t\t *\n\t\t\t\t\t * @return  mixed  The label of the input.\n\t\t\t\t\t *\/\n\t\t\t\t\tvalidator.getLabel = (input) => {\n\t\t\t\t\t\tif ($(input).is(':checkbox')) {\n\t\t\t\t\t\t\t\/\/ get label next to the checkbox\n\t\t\t\t\t\t\tconst label = $(input).next('label');\n\n\t\t\t\t\t\t\t\/\/ check if we have a popup link\n\t\t\t\t\t\t\tif (label.find('a')) {\n\t\t\t\t\t\t\t\treturn label.find('a');\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn label;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn $(input).closest('.cf-value').find('.cf-label');\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\t});\n\t})(jQuery, window);\n<\/script>\n\t\t\t\t<div class=\"vrloginfield field-button\">\n\t\t\t\t\t<button type=\"submit\" class=\"vre-btn primary large\" name=\"registerbutton\">\n\t\t\t\t\t\tRegistra\t\t\t\t\t<\/button>\n\t\t\t\t<\/div>\n\n\t\t\t<\/div>\n\t\n\t\t\t<input type=\"hidden\" id=\"vikwp_nonce\" name=\"vikwp_nonce\" value=\"962da73e13\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/269\" \/>\n\t\t\t\t\t\t<input type=\"hidden\" name=\"option\" value=\"com_vikrestaurants\" \/>\n\t\t\t\t<input type=\"hidden\" name=\"task\" value=\"userprofile.register\" \/>\n\t\t\t\t<input type=\"hidden\" name=\"return\" value=\"aW5kZXgucGhwP29wdGlvbj1jb21fdmlrcmVzdGF1cmFudHMmdmlldz1hbGxvcmRlcnM=\" \/>\n\t\t\t<\/form>\n\t\t\t\t<\/form>\n\t<\/div>\n\n\n<!-- LOGIN -->\n\n<div class=\"vrloginblock\" style=\"\">\n\t<form action=\"https:\/\/www.gioiellino.eu\/wp-login.php?action=login&referer=vikrestaurants\" method=\"post\">\n\t<h3>Login<\/h3>\n\n\t\t\n\t<div class=\"vrloginfieldsdiv\">\n\t\t\n\t\t<form name=\"loginform\" id=\"loginform\" action=\"https:\/\/www.gioiellino.eu\/wp-login.php\" method=\"post\"><p class=\"login-username\">\n\t\t\t\t<label for=\"user_login\">Nome utente o indirizzo email<\/label>\n\t\t\t\t<input type=\"text\" name=\"log\" id=\"user_login\" autocomplete=\"username\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t<\/p><p class=\"login-password\">\n\t\t\t\t<label for=\"user_pass\">Password<\/label>\n\t\t\t\t<input type=\"password\" name=\"pwd\" id=\"user_pass\" autocomplete=\"current-password\" spellcheck=\"false\" class=\"input\" value=\"\" size=\"20\" \/>\n\t\t\t<\/p><p class=\"login-remember\"><label><input name=\"rememberme\" type=\"checkbox\" id=\"rememberme\" value=\"forever\" \/> Ricordami<\/label><\/p><p class=\"login-submit\">\n\t\t\t\t<input type=\"submit\" name=\"wp-submit\" id=\"wp-submit\" class=\"button button-primary\" value=\"Accedi\" \/>\n\t\t\t\t<input type=\"hidden\" name=\"redirect_to\" value=\"https:\/\/www.gioiellino.eu\/index.php\/my-orders\/\" \/>\n\t\t\t<\/p><\/form>\n\t<\/div>\n\n\t\t\t<div class=\"vr-login-footer-links\">\n\t\t\t<div>\n\t\t\t\t<a href=\"https:\/\/www.gioiellino.eu\/wp-login.php?action=lostpassword\" target=\"_blank\">\n\t\t\t\t\tPassword dimenticata?\t\t\t\t<\/a>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\n\t<input type=\"hidden\" id=\"vikwp_nonce\" name=\"vikwp_nonce\" value=\"962da73e13\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/index.php\/wp-json\/wp\/v2\/pages\/269\" \/><\/form>\n<\/div>\n\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\"> <a href=\"https:\/\/www.gioiellino.eu\/index.php\/my-orders\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-269","page","type-page","status-publish","hentry","xfolkentry"],"aioseo_notices":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P6eNwF-4l","jetpack-related-posts":[{"id":268,"url":"https:\/\/www.gioiellino.eu\/index.php\/confirmation\/","url_meta":{"origin":269,"position":0},"title":"Confirmation","author":"rice103","date":"23\/05\/2021","format":false,"excerpt":"","rel":"","context":"Articolo simile","block_context":{"text":"Articolo simile","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":267,"url":"https:\/\/www.gioiellino.eu\/index.php\/book-a-table\/","url_meta":{"origin":269,"position":1},"title":"Prenota il tuo tavolo","author":"rice103","date":"23\/05\/2021","format":false,"excerpt":"","rel":"","context":"Articolo simile","block_context":{"text":"Articolo simile","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":272,"url":"https:\/\/www.gioiellino.eu\/index.php\/take-away-confirmation\/","url_meta":{"origin":269,"position":2},"title":"Take-Away Confirmation","author":"rice103","date":"23\/05\/2021","format":false,"excerpt":"","rel":"","context":"Articolo simile","block_context":{"text":"Articolo simile","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":270,"url":"https:\/\/www.gioiellino.eu\/index.php\/daily-menu\/","url_meta":{"origin":269,"position":3},"title":"Daily Menu","author":"rice103","date":"23\/05\/2021","format":false,"excerpt":"","rel":"","context":"Articolo simile","block_context":{"text":"Articolo simile","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":271,"url":"https:\/\/www.gioiellino.eu\/index.php\/order-food-online\/","url_meta":{"origin":269,"position":4},"title":"Order Food Online","author":"rice103","date":"23\/05\/2021","format":false,"excerpt":"","rel":"","context":"Articolo simile","block_context":{"text":"Articolo simile","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/pages\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/pages\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gioiellino.eu\/index.php\/wp-json\/wp\/v2\/media?parent=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}