A little version for AMP
-
Thanks for your job.
Would it be easy to do some modification to have a version for AMP?
“Errors” for AMp:
{
“node_name”: “script”,
“parent_name”: “head”,
“code”: “DISALLOWED_TAG”,
“type”: “js_error”,
“node_attributes”: {
“src”: “https://polyfill.io/v3/polyfill.min.js?version=3.109.0&features=Array.prototype.find%2CCustomEvent%2CElement.prototype.closest%2CElement.prototype.dataset%2CEvent%2CMutationObserver%2CNodeList.prototype.forEach%2CObject.assign%2CObject.keys%2CString.prototype.endsWith%2CURL%2CURLSearchParams%2CXMLHttpRequest&flags=gated&ver=__normalized__”,
“id”: “site-reviews/polyfill-js”
},
“node_type”: “ELEMENT”,
“sources”: [
{
“type”: “plugin”,
“name”: “site-reviews”,
“file”: “plugin/Controllers/PublicController.php”,
“line”: 21,
“function”: “GeminiLabs\\SiteReviews\\Controllers\\PublicController::enqueueAssets”,
“hook”: “wp_enqueue_scripts”,
“priority”: 999,
“dependency_type”: “script”,
“handle”: “site-reviews”,
“dependency_handle”: “site-reviews/polyfill”
},
{
“type”: “core”,
“name”: “wp-includes”,
“file”: “script-loader.php”,
“line”: 2150,
“function”: “wp_enqueue_scripts”,
“hook”: “wp_head”,
“priority”: 1,
“dependency_type”: “script”,
“handle”: “site-reviews”,
“dependency_handle”: “site-reviews/polyfill”
},
{
“type”: “plugin”,
“name”: “site-reviews”,
“file”: “plugin/Controllers/PublicController.php”,
“line”: 21,
“function”: “GeminiLabs\\SiteReviews\\Controllers\\PublicController::enqueueAssets”,
“hook”: “wp_enqueue_scripts”,
“priority”: 999,
“dependency_type”: “script”,
“handle”: “site-reviews/polyfill”
},
{
“type”: “core”,
“name”: “wp-includes”,
“file”: “script-loader.php”,
“line”: 2150,
“function”: “wp_enqueue_scripts”,
“hook”: “wp_head”,
“priority”: 1,
“dependency_type”: “script”,
“handle”: “site-reviews/polyfill”
},
{
“type”: “core”,
“name”: “wp-includes”,
“file”: “script-loader.php”,
“line”: 2103,
“function”: “wp_print_head_scripts”,
“hook”: “wp_head”,
“priority”: 9
}
],
“removed”: true,
“reviewed”: false
}`{ "node_name": "script", "parent_name": "body", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "id": "site-reviews-js-before" }, "text": "\nwindow.hasOwnProperty(__DOUBLE_QUOTED_STRING__)||(window.GLSR={});GLSR.action=__DOUBLE_QUOTED_STRING__;GLSR.ajaxpagination=[__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__];GLSR.ajaxurl=__DOUBLE_QUOTED_STRING__;GLSR.captcha=[];GLSR.nameprefix=__DOUBLE_QUOTED_STRING__;GLSR.stars={__DOUBLE_QUOTED_STRING__:false,__DOUBLE_QUOTED_STRING__:false};GLSR.state={__DOUBLE_QUOTED_STRING__:false};GLSR.urlparameter=true;GLSR.validationconfig={field:__DOUBLE_QUOTED_STRING__,form:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__,__DOUBLE_QUOTED_STRING__:__DOUBLE_QUOTED_STRING__};GLSR.validationstrings={accepted:__DOUBLE_QUOTED_STRING__,between:__DOUBLE_QUOTED_STRING__,betweenlength:__DOUBLE_QUOTED_STRING__,email:__DOUBLE_QUOTED_STRING__,errors:__DOUBLE_QUOTED_STRING__,max:__DOUBLE_QUOTED_STRING__,maxlength:__DOUBLE_QUOTED_STRING__,min:__DOUBLE_QUOTED_STRING__,minlength:__DOUBLE_QUOTED_STRING__,number:__DOUBLE_QUOTED_STRING__,pattern:__DOUBLE_QUOTED_STRING__,regex:__DOUBLE_QUOTED_STRING__,required:__DOUBLE_QUOTED_STRING__,tel:__DOUBLE_QUOTED_STRING__,url:__DOUBLE_QUOTED_STRING__,unsupported:__DOUBLE_QUOTED_STRING__};GLSR.version=__DOUBLE_QUOTED_STRING__;\n", "node_type": "ELEMENT", "sources": [ { "type": "core", "name": "wp-includes", "file": "script-loader.php", "line": 2133, "function": "wp_print_footer_scripts", "hook": "wp_footer", "priority": 20 }, { "type": "core", "name": "wp-includes", "file": "script-loader.php", "line": 2123, "function": "_wp_footer_scripts", "hook": "wp_print_footer_scripts", "priority": 10 }, { "type": "plugin", "name": "site-reviews", "file": "plugin/Controllers/PublicController.php", "line": 21, "function": "GeminiLabs\\SiteReviews\\Controllers\\PublicController::enqueueAssets", "hook": "wp_enqueue_scripts", "priority": 999, "dependency_type": "script", "extra_key": "before", "text": "window.hasOwnProperty(\"GLSR\")||(window.GLSR={});GLSR.action=\"glsr_action\";GLSR.ajaxpagination=[\"#wpadminbar\",\".site-navigation-fixed\"];GLSR.ajaxurl=\"https://informacionmadrid.es/wp-admin/admin-ajax.php\";GLSR.captcha=[];GLSR.nameprefix=\"site-reviews\";GLSR.stars={\"clearable\":false,\"tooltip\":false};GLSR.state={\"popstate\":false};GLSR.urlparameter=true;GLSR.validationconfig={field:\"glsr-field\",form:\"glsr-form\",\"field_error\":\"glsr-field-is-invalid\",\"field_message\":\"glsr-field-error\",\"field_required\":\"glsr-required\",\"field_valid\":\"glsr-field-is-valid\",\"form_error\":\"glsr-form-is-invalid\",\"form_message\":\"glsr-form-message\",\"form_message_failed\":\"glsr-form-failed\",\"form_message_success\":\"glsr-form-success\",\"input_error\":\"glsr-is-invalid\",\"input_valid\":\"glsr-is-valid\"};GLSR.validationstrings={accepted:\"Este campo debe ser aceptado.\",between:\"Este valor de campo debe estar entre %s y %s.\",betweenlength:\"Este campo debe tener entre %s y %s caracteres.\",email:\"Este campo requiere una dirección de correo electrónico válida.\",errors:\"Por favor corrige los errores de envío.\",max:\"El valor máximo para este campo es %s.\",maxlength:\"Este campo permite un máximo de %s caracteres.\",min:\"El valor mínimo para este campo es %s.\",minlength:\"Este campo requiere un mínimo de %s caracteres.\",number:\"Este campo requiere un número.\",pattern:\"Please match the requested format.\",regex:\"Please match the requested format.\",required:\"Este campo es obligatorio.\",tel:\"Este campo requiere un número de teléfono válido\",url:\"This field requires a valid website URL (make sure it starts with http or https).\",unsupported:\"The review could not be submitted because this browser is too old. Please try again with a modern browser.\"};GLSR.version=\"5.25.1\";", "handle": "site-reviews" }, { "type": "core", "name": "wp-includes", "file": "script-loader.php", "line": 2150, "function": "wp_enqueue_scripts", "hook": "wp_head", "priority": 1, "dependency_type": "script", "extra_key": "before", "text": "window.hasOwnProperty(\"GLSR\")||(window.GLSR={});GLSR.action=\"glsr_action\";GLSR.ajaxpagination=[\"#wpadminbar\",\".site-navigation-fixed\"];GLSR.ajaxurl=\"https://informacionmadrid.es/wp-admin/admin-ajax.php\";GLSR.captcha=[];GLSR.nameprefix=\"site-reviews\";GLSR.stars={\"clearable\":false,\"tooltip\":false};GLSR.state={\"popstate\":false};GLSR.urlparameter=true;GLSR.validationconfig={field:\"glsr-field\",form:\"glsr-form\",\"field_error\":\"glsr-field-is-invalid\",\"field_message\":\"glsr-field-error\",\"field_required\":\"glsr-required\",\"field_valid\":\"glsr-field-is-valid\",\"form_error\":\"glsr-form-is-invalid\",\"form_message\":\"glsr-form-message\",\"form_message_failed\":\"glsr-form-failed\",\"form_message_success\":\"glsr-form-success\",\"input_error\":\"glsr-is-invalid\",\"input_valid\":\"glsr-is-valid\"};GLSR.validationstrings={accepted:\"Este campo debe ser aceptado.\",between:\"Este valor de campo debe estar entre %s y %s.\",betweenlength:\"Este campo debe tener entre %s y %s caracteres.\",email:\"Este campo requiere una dirección de correo electrónico válida.\",errors:\"Por favor corrige los errores de envío.\",max:\"El valor máximo para este campo es %s.\",maxlength:\"Este campo permite un máximo de %s caracteres.\",min:\"El valor mínimo para este campo es %s.\",minlength:\"Este campo requiere un mínimo de %s caracteres.\",number:\"Este campo requiere un número.\",pattern:\"Please match the requested format.\",regex:\"Please match the requested format.\",required:\"Este campo es obligatorio.\",tel:\"Este campo requiere un número de teléfono válido\",url:\"This field requires a valid website URL (make sure it starts with http or https).\",unsupported:\"The review could not be submitted because this browser is too old. Please try again with a modern browser.\"};GLSR.version=\"5.25.1\";", "handle": "site-reviews" } ], "removed": true, "reviewed": false }
- The topic ‘A little version for AMP’ is closed to new replies.