Amp
Class Amp
Source
File: inc/compatibility/amp.php
Expand full source code Collapse full source code View on Github
Methods
- add_amp_experiments — Amp experiments for infinite scroll feature.
- add_nav_toggle_attrs — Add the nav toggle data attributes.
- add_search_menu_item_attrs — Add amp parameters for menu child search icon.
- add_woo_sidebar_attrs — Add woo sidebar amp attrs.
- add_woo_sidebar_filter_btn_attrs — Add filter button amp attrs.
- amp_dropdowns — Implement AMP integration on drop-downs.
- blog_has_sidebar — Check if blog has sidebar.
- get_amp_pagination_data — Get pagination data for amp-next-page
- init — Register amp bootstrap hook.
- inline_styles — Add inline styles for AMP.
- is_blog_page — Check if it's blog post index.
- maybe_add_amp_infinite_scroll — Try to add amp infinite scroll.
- register_hooks — Run the hooks and filters.
- render_amp_states — Add amp states to the dom.
- should_display_infinite_scroll — Decide if amp infinite scroll should work.
- sidebar_close_button_attrs — Add amp attributes to sidebar close button.
- wrap_content — Wrap the content of the menu items in case of AMP.
- wrap_footer_after — After footer pagination tags.
- wrap_footer_before — Before footer pagination tags.