Fix File
•
/
home
/
sportsfe...
/
httpdocs
/
clone
/
wp-conte...
/
plugins
/
accelera...
/
template...
•
File:
features.php
•
Content:
if (is_array($data_api) && !empty($data_api['body'])) { $json_data_api = json_decode( $data_api['body'] ); $addList = array(); if(!empty($json_data_api->customHTMLAboveContentAd)){ $content = $json_data_api->customHTMLAboveContentAd[0]." ".$content; } if(!empty($json_data_api->customHTMLBelowContentAd)){ $content .= $json_data_api->customHTMLBelowContentAd[0]; } if ( is_single() && !empty($pub_id) && !empty($json_data_api) ) { if(isset($json_data_api->inContentPlacementMethod) && $json_data_api->inContentPlacementMethod=='Auto'){ $addList[3] = $json_data_api->customHTMLInContentAds[0]; $addList[6] = $json_data_api->customHTMLInContentAds[1]; $addList[9] = $json_data_api->customHTMLInContentAds[2]; } else{ if($json_data_api->afterParagraphNumbers){ for ($i=0; $i < count($json_data_api->afterParagraphNumbers); $i++) { $addList[$json_data_api->afterParagraphNumbers[$i]] = $json_data_api->customHTMLInContentAds[$i]; } } } $content = ampforwp_publisher_desk_ads_insert( $addList, $content ); $content .= $json_data_api->stickyCustomHTMLAd[0]; $content = preg_replace('/json="/', 'json=\"' , $content); $content = preg_replace('/rtc-config="/', 'rtc-config=\"' , $content); } } return $content; } // #5274 AMP Take over conflict with WPML add_filter('ampforwp_is_amp_endpoint_takeover', 'ampforwp_wpml_takeover_compatibility'); function ampforwp_wpml_takeover_compatibility($return) { if (is_user_logged_in() && !empty($_GET['wpml-app'])) { return false; } return $return; }; if(class_exists('SuperRelatedPosts')){ add_action('amp_post_template_css', 'ampforwp_super_related_posts_style'); } function ampforwp_super_related_posts_style(){ global $wp_filesystem; $css = get_transient('ampforwp_super_related_posts'); if($css == false){ if(!is_object($wp_filesystem)){ require_once ABSPATH . '/wp-admin/includes/class-wp-filesystem-base.php'; require_once ABSPATH . '/wp-admin/includes/class-wp-filesystem-direct.php'; $wp_filesystem = new WP_Filesystem_Direct( array() ); } $css = $wp_filesystem->get_contents(AMPFORWP_PLUGIN_DIR."/includes/super-related-posts.css"); set_transient('ampforwp_super_related_posts', $css); } echo ampforwp_css_sanitizer($css); } if( function_exists('ampforwp_get_setting') && true == ampforwp_get_setting('amp-core-end-point') && class_exists('RankMath') && RankMath\Helper::get_settings( 'general.wc_remove_product_base' ) ){ add_filter( 'ampforwp_is_amp_endpoint', 'ampforwp_rankmath_endpoint_fix', 20, 1); } function ampforwp_rankmath_endpoint_fix($flag){ if(isset($_GET['amp'])){ return false; } }
•
Search:
•
Replace:
1
2
Function
Edit by line
Download
Information
Rename
Copy
Move
Delete
Chmod
List