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.../logo
File: logo.php
<?php
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[1] Fix | Delete
exit;
[2] Fix | Delete
}
[3] Fix | Delete
function ampforwp_framework_get_logo(){
[4] Fix | Delete
global $redux_builder_amp;
[5] Fix | Delete
$title = get_bloginfo();
[6] Fix | Delete
?>
[7] Fix | Delete
<div class="amp-logo">
[8] Fix | Delete
<?php
[9] Fix | Delete
do_action('amp_header_top');
[10] Fix | Delete
$set_rel_to_noamp = false;
[11] Fix | Delete
$ampforwp_home_url = user_trailingslashit( get_bloginfo('url') );
[12] Fix | Delete
if ( true == ampforwp_get_setting('ampforwp-homepage-on-off-support') && !ampforwp_get_setting('amp-on-off-support-for-non-amp-home-page') ) {
[13] Fix | Delete
$ampforwp_home_url = ampforwp_url_controller( get_bloginfo('url') );
[14] Fix | Delete
}
[15] Fix | Delete
if ( ampforwp_get_setting('amp-on-off-support-for-non-amp-home-page') && ampforwp_get_setting('amp-mobile-redirection') ) {
[16] Fix | Delete
$ampforwp_home_url = trailingslashit( get_bloginfo('url') ).'?nonamphead=1';
[17] Fix | Delete
$set_rel_to_noamp = true;
[18] Fix | Delete
}
[19] Fix | Delete
$ampforwp_home_url = apply_filters('ampforwp_header_url', $ampforwp_home_url); ?>
[20] Fix | Delete
<?php if ( true == ($redux_builder_amp['opt-media']['url']) ) {
[21] Fix | Delete
$alt = ampforwp_default_logo('alt');
[22] Fix | Delete
$logo_url = __( $redux_builder_amp['opt-media']['url'], 'accelerated-mobile-pages' ); ?>
[23] Fix | Delete
<a href="<?php echo esc_url( $ampforwp_home_url ); ?>" title="<?php echo esc_html( $title ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> >
[24] Fix | Delete
<amp-img data-hero src="<?php echo esc_url( $logo_url ); ?>" width="<?php echo esc_attr(ampforwp_default_logo('width')); ?>" height="<?php echo esc_attr(ampforwp_default_logo('height')); ?>" alt="<?php echo esc_attr($alt); ?>" class="amp-logo" layout="responsive"></amp-img></a>
[25] Fix | Delete
<?php if( ampforwp_is_home() || ampforwp_is_blog() ){ ?>
[26] Fix | Delete
<div class="hide">
[27] Fix | Delete
<?php bloginfo('name'); ?>
[28] Fix | Delete
</div>
[29] Fix | Delete
<?php } ?>
[30] Fix | Delete
<?php } else { ?>
[31] Fix | Delete
<a href="<?php echo esc_url( $ampforwp_home_url ); ?>" <?php if($set_rel_to_noamp){ echo ' rel="nofollow"'; } ?> ><?php bloginfo('name'); ?></a><?php
[32] Fix | Delete
} ?>
[33] Fix | Delete
</div>
[34] Fix | Delete
<?php }
[35] Fix | Delete
[36] Fix | Delete
add_action('amp_post_template_css','amp_framework_logo_styles',11);
[37] Fix | Delete
if( !function_exists( 'amp_framework_logo_styles' ) ){
[38] Fix | Delete
function amp_framework_logo_styles(){
[39] Fix | Delete
global $redux_builder_amp;
[40] Fix | Delete
$max_width = '190px';
[41] Fix | Delete
$width = (integer) ampforwp_default_logo('width');
[42] Fix | Delete
if ( true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && 'flexible' == ampforwp_get_setting('ampforwp-custom-logo-dimensions-options') ) {
[43] Fix | Delete
$max_width = (integer) ampforwp_get_setting('ampforwp-custom-logo-dimensions-slider');
[44] Fix | Delete
$width = (integer) ampforwp_default_logo('width');
[45] Fix | Delete
$max_width = ceil(($width*$max_width)/100)."px";
[46] Fix | Delete
}elseif( true == ampforwp_get_setting('ampforwp-custom-logo-dimensions') && 'prescribed' == ampforwp_get_setting('ampforwp-custom-logo-dimensions-options') ) {
[47] Fix | Delete
$max_width = (integer) ampforwp_get_setting('opt-media-width');
[48] Fix | Delete
$width = (integer) ampforwp_default_logo('width');
[49] Fix | Delete
$max_width .="px";
[50] Fix | Delete
}
[51] Fix | Delete
$width .= 'px';
[52] Fix | Delete
?>
[53] Fix | Delete
.amp-logo amp-img{width:<?php echo esc_attr($max_width); ?>}
[54] Fix | Delete
<?php }
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function