Lines:
1 to 37 of 37
<?php //phpcs:ignore WordPress.Files.FileName.InvalidClassFileName use Automattic\Jetpack\Assets; use Automattic\Jetpack\Sync\Functions; /* class Jetpack_AMP_Support */ /* function Jetpack_AMP_Support::init() – Apply custom AMP changes on the front-end. */ /* function Jetpack_AMP_Support::comment_likes_enabled() – Disable the Comment Likes feature on AMP views. */ /* function Jetpack_AMP_Support::admin_init() – Apply custom AMP changes in wp-admin. */ /* function Jetpack_AMP_Support::is_amp_canonical() – Is the page in AMP ‘canonical mode’. */ /* function Jetpack_AMP_Support::is_amp_available() – Is AMP available for this request This returns false for admin, CLI requests etc. */ /* function Jetpack_AMP_Support::is_amp_request() – Does the page return AMP content. */ /* function Jetpack_AMP_Support::is_amp_legacy() – Determines whether the legacy AMP post templates are being used. */ /* function Jetpack_AMP_Support::amp_disable_the_content_filters() – Remove content filters added by Jetpack. */ /* function Jetpack_AMP_Support::disable_comment_likes_before_the_content() – Do not add comment likes on AMP requests. */ /* function Jetpack_AMP_Support::disable_likes_admin_bar() – Do not display the Likes’ Admin bar on AMP requests. */ /* function Jetpack_AMP_Support::add_stats_pixel() – Add Jetpack stats pixel. */ /* function Jetpack_AMP_Support::amp_post_template_metadata() – Add publisher and image metadata to legacy AMP post. */ /* function Jetpack_AMP_Support::add_site_icon_to_metadata() – Add blavatar to legacy AMP post metadata. */ /* function Jetpack_AMP_Support::add_image_to_metadata() – Add image to legacy AMP post metadata. */ /* function Jetpack_AMP_Support::add_fallback_image_to_metadata() – Add fallback image to legacy AMP post metadata. */ /* function Jetpack_AMP_Support::staticize_subdomain() – Return static WordPress.com domain to use to load resources from WordPress.com. */ /* function Jetpack_AMP_Support::extract_image_dimensions_from_getimagesize() – Extract image dimensions via wpcom/imagesize, only on WPCOM */ /* function Jetpack_AMP_Support::amp_post_jetpack_og_tags() – Display Open Graph Meta tags in AMP views. */ /* function Jetpack_AMP_Support::videopress_enable_freedom_mode() – Force Freedom mode in VideoPress. */ /* function Jetpack_AMP_Support::render_sharing_html() – Display custom markup for the sharing buttons when in an AMP view. */ /* function Jetpack_AMP_Support::amp_disable_sharedaddy_css() – Tells Jetpack not to enqueue CSS for share buttons. */ /* function Jetpack_AMP_Support::amp_enqueue_sharing_css() – Enqueues the AMP specific sharing styles for the sharing icons. */ /* function Jetpack_AMP_Support::amp_reader_sharing_css() – For the AMP Reader mode template, include styles that we need. */ /* function Jetpack_AMP_Support::filter_photon_post_image_args_for_stories() – Ensure proper Photon image dimensions for AMP Stories. */ /* function Jetpack_AMP_Support::filter_jetpack_options_safelist() – Adds amp-options to the list of options to sync, if AMP is available */ add_action( 'init', array( 'Jetpack_AMP_Support', 'init' ), 1 ); add_action( 'admin_init', array( 'Jetpack_AMP_Support', 'admin_init' ), 1 );