| Server IP : 77.39.210.126 / Your IP : 216.73.216.203 Web Server : Apache System : Linux v00l0v-vmpcnews.sphostserver.com 4.18.0-553.124.4.el8_10.x86_64 #1 SMP Fri May 15 04:14:14 EDT 2026 x86_64 User : artecasarepresti ( 1022) PHP Version : 7.4.33 Disable Function : dl,passthru,proc_open,proc_close,proc_terminate,shell_exec,system MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/artecasarepresti/www/wp-content/themes/Avada/includes/lib/inc/ |
Upload File : |
<?php
/**
* AMP methods for Avada & Fusion-Builder.
*
* @package Fusion-Library
* @since 1.8.1
*/
/**
* AMP methods.
*
* @since 1.8.1
*/
class Fusion_AMP {
/**
* Determine if an AMP plugin is active.
*
* @static
* @access public
* @since 1.8.1
* @return bool
*/
public static function is_plugin_activated() {
// Check for the "AMP" plugin.
if ( function_exists( 'is_amp_endpoint' ) ) {
return true;
}
// Check for the "AMP for WP – Accelerated Mobile Pages" plugin.
if ( function_exists( 'ampforwp_is_amp_endpoint' ) ) {
return true;
}
// Check for the "AMP WP" plugin.
if ( function_exists( 'is_amp_wp' ) ) {
return true;
}
return false;
}
/**
* Check if we're on an AMP endpoint.
*
* @static
* @access public
* @since 1.8.1
* @return bool
*/
public static function is_amp_endpoint() {
// If an AMP plugin is not active then this is definitely not an AMP endpoint.
if ( ! self::is_plugin_activated() ) {
return false;
}
// Check for the "AMP" plugin.
if ( function_exists( 'is_amp_endpoint' ) && is_amp_endpoint() ) {
return true;
}
// Check for the "AMP for WP – Accelerated Mobile Pages" plugin.
if ( function_exists( 'ampforwp_is_amp_endpoint' ) && ampforwp_is_amp_endpoint() ) {
return true;
}
// Check for the "AMP WP" plugin.
if ( function_exists( 'is_amp_wp' ) && is_amp_wp() ) {
return true;
}
return false;
}
}