Plugins with AMP incompatibility
-
AMP tells me that the Photo Gallery plugin is not AMP compatible.
Here is the displayed code:[ { "url": "https://derwebfuchs.de/bwg_gallery/banner-400-x-40/", "type": "is_singular[bwg_gallery]", "label": "Galleries", "amp_url": "https://derwebfuchs.de/bwg_gallery/banner-400-x-40/?amp=1", "validation_errors": [ { "code": "DISALLOWED_ATTR", "element_attributes": { "type": "number", "class": "bwg_current_page", "name": "bwg_current_page", "value": "1", "data-url-info": "page_number_0", "onkeypress": "return bwg_change_page_0(event, this)", "min": "1", "oninput": "validity.valid||(value='')" }, "node_name": "onkeypress", "parent_name": "input", "type": "js_error", "node_type": 2, "sources": [ { "type": "plugin", "name": "photo-gallery", "file": "photo-gallery.php", "line": 747, "function": "BWG::shortcode", "shortcode": "Best_Wordpress_Gallery" } ] }, { "code": "DISALLOWED_ATTR", "element_attributes": { "type": "number", "class": "bwg_current_page", "name": "bwg_current_page", "value": "1", "data-url-info": "page_number_0", "onkeypress": "return bwg_change_page_0(event, this)", "min": "1", "oninput": "validity.valid||(value='')" }, "node_name": "oninput", "parent_name": "input", "type": "js_error", "node_type": 2, "sources": [ { "type": "plugin", "name": "photo-gallery", "file": "photo-gallery.php", "line": 747, "function": "BWG::shortcode", "shortcode": "Best_Wordpress_Gallery" } ] }, { "node_name": "script", "parent_name": "span", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": { "type": "text/javascript" }, "text": " if( jQuery(__SINGLE_QUOTED_STRING__).length > __INT__ ) { jQuery(__SINGLE_QUOTED_STRING__).first().remove() } function spider_page_0(cur, x, y, load_more) { if (typeof load_more == __DOUBLE_QUOTED_STRING__) { var load_more = false; } if (jQuery(cur).hasClass(__SINGLE_QUOTED_STRING__)) { return false; } var items_county_0 = __INT__; switch (y) { case __INT__: if (x >= items_county_0) { document.getElementById(__SINGLE_QUOTED_STRING__).value = items_county_0; } else { document.getElementById(__SINGLE_QUOTED_STRING__).value = x + __INT__; } break; case __INT__: document.getElementById(__SINGLE_QUOTED_STRING__).value = items_county_0; break; case __INT__: if (x == __INT__) { document.getElementById(__SINGLE_QUOTED_STRING__).value = __INT__; } else { document.getElementById(__SINGLE_QUOTED_STRING__).value = x - __INT__; } break; case __INT__: document.getElementById(__SINGLE_QUOTED_STRING__).value = __INT__; break;\t\t\t\t\t\tcase __INT__: document.getElementById(__SINGLE_QUOTED_STRING__).value = x; break; default: document.getElementById(__SINGLE_QUOTED_STRING__).value = __INT__; } bwg_ajax(__SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, __INT__, __SINGLE_QUOTED_STRING__, __SINGLE_QUOTED_STRING__, load_more, __SINGLE_QUOTED_STRING__, __INT__); } jQuery(__SINGLE_QUOTED_STRING__).on(__SINGLE_QUOTED_STRING__, function () { spider_page_0(this, __INT__, __INT__, __SINGLE_QUOTED_STRING__); return false; }); jQuery(__SINGLE_QUOTED_STRING__).on(__SINGLE_QUOTED_STRING__, function () { spider_page_0(this, __INT__, __INT__, __SINGLE_QUOTED_STRING__); return false; }); jQuery(__SINGLE_QUOTED_STRING__).on(__SINGLE_QUOTED_STRING__, function () { spider_page_0(this, __INT__, __INT__, __SINGLE_QUOTED_STRING__); return false; }); jQuery(__SINGLE_QUOTED_STRING__).on(__SINGLE_QUOTED_STRING__, function () { spider_page_0(this, __INT__, __INT__, __SINGLE_QUOTED_STRING__); return false; }); \t\t\t\t/* Change page on input enter. */ function bwg_change_page_0( e, that ) { if ( e.key == __SINGLE_QUOTED_STRING__ ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(__DOUBLE_QUOTED_STRING__).data(__DOUBLE_QUOTED_STRING__); var current_url_param = jQuery(that).attr(__SINGLE_QUOTED_STRING__); if (to_page > pages_count) { to_page = __INT__; }\t \t\t\t\t\t\t\t\t\t\t\t\tspider_page_0(this, to_page, __INT__, __SINGLE_QUOTED_STRING__);\t\t\t\t\t\t\treturn false;\t\t\t\t\t\t } return true; } jQuery(__SINGLE_QUOTED_STRING__).on(__SINGLE_QUOTED_STRING__, function () { spider_page_0(this, __INT__, __INT__, true); return false; }); ", "node_type": 1, "sources": [ { "type": "plugin", "name": "photo-gallery", "file": "photo-gallery.php", "line": 747, "function": "BWG::shortcode", "shortcode": "Best_Wordpress_Gallery" } ] }, { "code": "DISALLOWED_ATTR", "element_attributes": { "id": "spider_popup_overlay_0", "class": "spider_popup_overlay", "onclick": "spider_destroypopup(1000)" }, "node_name": "onclick", "parent_name": "div", "type": "js_error", "node_type": 2, "sources": [ { "type": "plugin", "name": "photo-gallery", "file": "photo-gallery.php", "line": 747, "function": "BWG::shortcode", "shortcode": "Best_Wordpress_Gallery" } ] }, { "node_name": "script", "parent_name": "div", "code": "DISALLOWED_TAG", "type": "js_error", "node_attributes": [], "text": " if (document.readyState === __SINGLE_QUOTED_STRING__) { if( typeof bwg_main_ready == __SINGLE_QUOTED_STRING__ ) { if ( jQuery(__DOUBLE_QUOTED_STRING__).height() ) { bwg_main_ready(jQuery(__DOUBLE_QUOTED_STRING__)); } } } else { document.addEventListener(__SINGLE_QUOTED_STRING__, function() { if( typeof bwg_main_ready == __SINGLE_QUOTED_STRING__ ) { if ( jQuery(__DOUBLE_QUOTED_STRING__).height() ) { bwg_main_ready(jQuery(__DOUBLE_QUOTED_STRING__)); } } }); } ", "node_type": 1, "sources": [ { "type": "plugin", "name": "photo-gallery", "file": "photo-gallery.php", "line": 747, "function": "BWG::shortcode", "shortcode": "Best_Wordpress_Gallery" } ] } ], "stale": false, "error": false, "validated_url_post": { "id": 12172, "edit_link": "I delete this url" } } ]
What am I supposed to do now?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Plugins with AMP incompatibility’ is closed to new replies.