Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../componen.../google-f...
File: google-font.php
<?php
[0] Fix | Delete
add_action( 'amp_post_template_css', 'ampforwp_theme_support_fonts' );
[1] Fix | Delete
function ampforwp_theme_support_fonts(){
[2] Fix | Delete
global $redux_builder_amp;
[3] Fix | Delete
$amp_font_selector = ampforwp_get_setting('amp_font_selector');
[4] Fix | Delete
if(1==ampforwp_get_setting('ampforwp-google-font-switch') && ( $amp_font_selector==1 || empty($amp_font_selector) ) ) {?>
[5] Fix | Delete
<?php
[6] Fix | Delete
if( !ampforwp_levelup_compatibility('levelup_theme_and_elementor') ){ ?>
[7] Fix | Delete
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 300;font-display: auto;src: local('Poppins Light'), local('Poppins-Light'), url('<?php echo ampforwp_font_url(plugin_dir_url(__FILE__)) ?>fonts/Poppins-Light.ttf');}
[8] Fix | Delete
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 400;font-display: auto;src: local('Poppins Regular'), local('Poppins-Regular'), url('<?php echo ampforwp_font_url(plugin_dir_url(__FILE__)) ?>fonts/Poppins-Regular.ttf');}
[9] Fix | Delete
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 500;font-display: auto;src: local('Poppins Medium'), local('Poppins-Medium'), url('<?php echo ampforwp_font_url(plugin_dir_url(__FILE__)) ?>fonts/Poppins-Medium.ttf');}
[10] Fix | Delete
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 600;font-display: auto;src: local('Poppins SemiBold'), local('Poppins-SemiBold'), url('<?php echo ampforwp_font_url(plugin_dir_url(__FILE__)) ?>fonts/Poppins-SemiBold.ttf'); }
[11] Fix | Delete
@font-face {font-family: 'Poppins';font-style: normal;font-weight: 700;font-display: auto;src: local('Poppins Bold'), local('Poppins-Bold'), url('<?php echo ampforwp_font_url(plugin_dir_url(__FILE__)) ?>fonts/Poppins-Bold.ttf'); }
[12] Fix | Delete
<?php } // levelup condition ends ?>
[13] Fix | Delete
<?php } ?>
[14] Fix | Delete
[15] Fix | Delete
body{<?php
[16] Fix | Delete
$fontFamily = "font-family: Arial, Helvetica, sans-serif;";
[17] Fix | Delete
if( 1==ampforwp_get_setting('ampforwp-google-font-switch')){
[18] Fix | Delete
$fontFamily = "font-family: 'Poppins', sans-serif;";
[19] Fix | Delete
if( $amp_font_selector != 1 && !empty( $amp_font_selector )){
[20] Fix | Delete
$fontFamily = "font-family: '". $amp_font_selector ."';";
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
echo sanitize_text_field($fontFamily);
[24] Fix | Delete
[25] Fix | Delete
?>
[26] Fix | Delete
font-size: 16px; line-height:1.25; }
[27] Fix | Delete
<?php if(is_single() ) { ?>
[28] Fix | Delete
.cntn-wrp{
[29] Fix | Delete
<?php
[30] Fix | Delete
$amp_font_selector_content_single = ampforwp_get_setting('amp_font_selector_content_single');
[31] Fix | Delete
$fontFamily = "font-family: Arial, Helvetica, sans-serif";
[32] Fix | Delete
if(1==ampforwp_get_setting('ampforwp-google-font-switch')){
[33] Fix | Delete
$fontFamily = "font-family: 'Poppins', sans-serif;";
[34] Fix | Delete
if( $amp_font_selector_content_single != 1 && !empty($amp_font_selector_content_single)){
[35] Fix | Delete
$fontFamily = "font-family: '".$amp_font_selector_content_single."';";
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
echo sanitize_text_field($fontFamily);
[39] Fix | Delete
?>
[40] Fix | Delete
}
[41] Fix | Delete
<?php
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
}
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function