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/themify-.../views
File: render.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Template to render popups on frontend
[2] Fix | Delete
*
[3] Fix | Delete
* @var $popups
[4] Fix | Delete
*/
[5] Fix | Delete
global $post;
[6] Fix | Delete
[7] Fix | Delete
if( ! $popups )
[8] Fix | Delete
return;
[9] Fix | Delete
[10] Fix | Delete
$tfp_post = $post;
[11] Fix | Delete
foreach ( $popups as $post ): setup_postdata( $post );
[12] Fix | Delete
[13] Fix | Delete
$id = get_the_id();
[14] Fix | Delete
[15] Fix | Delete
$style = themify_popup_get( 'popup_style', 'classic' );
[16] Fix | Delete
[17] Fix | Delete
$atts = array(
[18] Fix | Delete
'id' => "themify-popup-{$id}",
[19] Fix | Delete
'class' => 'themify-popup style-' . $style,
[20] Fix | Delete
'trigger' => themify_popup_get( 'popup_trigger', 'timedelay' ),
[21] Fix | Delete
'data-style' => $style,
[22] Fix | Delete
'style' => 'display:none', // hide the popup by default
[23] Fix | Delete
);
[24] Fix | Delete
[25] Fix | Delete
if ( $style === 'classic' || $style === 'fullscreen' ) {
[26] Fix | Delete
$atts['class'] .= ' mfp-hide';
[27] Fix | Delete
if($style === 'classic'){
[28] Fix | Delete
$atts['data-position'] = themify_popup_get( 'popup_classic_position', 'center-center' );
[29] Fix | Delete
$atts['data-close-overlay'] = themify_popup_check( 'popup_overlay_as_close' ) ? 'yes' : 'no';
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
elseif( $style === 'slide-out' ) {
[33] Fix | Delete
$atts['class'] .= ' ' . themify_popup_get( 'popup_slide_out_position', 'bottom-right' );
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
if ( $atts['trigger'] === 'timedelay' ) {
[37] Fix | Delete
$atts['time-delay'] = themify_popup_get( 'popup_trigger_time_delay', 5 );
[38] Fix | Delete
}
[39] Fix | Delete
elseif( $atts['trigger'] === 'scroll' ) {
[40] Fix | Delete
$atts['scroll-position'] = themify_popup_get( 'popup_trigger_scroll_position', 0 );
[41] Fix | Delete
$atts['scroll-on'] = themify_popup_get( 'popup_trigger_scroll_on', 'px' );
[42] Fix | Delete
}
[43] Fix | Delete
$atts['animation'] = themify_popup_get( 'popup_animation', 'bounce' );
[44] Fix | Delete
$atts['animation-exit'] = themify_popup_get( 'popup_animation_exit', 'fadeOut' );
[45] Fix | Delete
[46] Fix | Delete
if ( themify_popup_check( 'popup_auto_close' ) ) {
[47] Fix | Delete
$atts['auto-close'] = themify_popup_get( 'popup_auto_close_delay', 5 );
[48] Fix | Delete
}
[49] Fix | Delete
[50] Fix | Delete
if ( themify_popup_check( 'popup_limit_count' ) ) {
[51] Fix | Delete
$atts['limit-count'] = themify_popup_get( 'popup_limit_count', 1 );
[52] Fix | Delete
$atts['cookie-expiration'] = themify_popup_get( 'popup_cookie_expiration', 1 );
[53] Fix | Delete
}
[54] Fix | Delete
[55] Fix | Delete
if ( themify_popup_check( 'popup_mobile_disable' ) ) {
[56] Fix | Delete
if ( themify_popup_get( 'popup_mobile_disable' ) === 'on' ) {
[57] Fix | Delete
$atts['display'] = 'desktop';
[58] Fix | Delete
}
[59] Fix | Delete
elseif ( themify_popup_get( 'popup_mobile_disable' ) === 'mob' ) {
[60] Fix | Delete
$atts['display'] = 'mobile';
[61] Fix | Delete
}
[62] Fix | Delete
}
[63] Fix | Delete
[64] Fix | Delete
$atts['enableescapekey'] = $style === 'fullscreen' ? 'no' : 'yes';
[65] Fix | Delete
[66] Fix | Delete
$atts = apply_filters( 'themify_popup_attributes', $atts );
[67] Fix | Delete
[68] Fix | Delete
?>
[69] Fix | Delete
<div<?php echo self::get_element_attributes( $atts ); ?>>
[70] Fix | Delete
<?php self::the_content(); ?>
[71] Fix | Delete
</div>
[72] Fix | Delete
<?php
[73] Fix | Delete
[74] Fix | Delete
include self::get_view_path( 'styles.php' );
[75] Fix | Delete
[76] Fix | Delete
endforeach;
[77] Fix | Delete
wp_reset_postdata();
[78] Fix | Delete
$post = $tfp_post;
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function