|
Server : LiteSpeed System : Linux srv107862549.host 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 User : malam2778 ( 1069) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /home/malam188.net/public_html/wp-content/plugins/amp/includes/templates/ |
Upload File : |
<?php /** * Load the reader mode template. * * @package AMP */ /** * Queried post. * * @global WP_Post $post */ global $post; // Populate the $post without calling the_post() to prevent entering The Loop. This ensures that templates which // contain The Loop will still loop over the posts. Otherwise, if a template contains The Loop then calling the_post() // here will advance the WP_Query::$current_post to the next_post. See WP_Query::the_post(). $post = get_queried_object(); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited setup_postdata( $post ); /** * Fires before rendering a post in AMP. * * This action is not triggered when 'amp' theme support is present. Instead, you should use 'template_redirect' action and check if `amp_is_request()`. * * @since 0.2 * * @param int $post_id Post ID. */ do_action( 'pre_amp_render_post', get_queried_object_id() ); require_once AMP__DIR__ . '/includes/amp-post-template-functions.php'; amp_post_template_init_hooks(); $amp_post_template = new AMP_Post_Template( $post ); $amp_post_template->load();