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.../public_h.../wp-conte.../plugins/themify-.../sample
File: sample.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Data for the sample popup post created on activation of the plugin
[2] Fix | Delete
*
[3] Fix | Delete
* @package Themify Popup
[4] Fix | Delete
* @since 1.0.0
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
// if there are existing popup posts, don't create any
[8] Fix | Delete
$query = get_posts( array(
[9] Fix | Delete
'post_type' => 'themify_popup',
[10] Fix | Delete
'posts_per_page' => 1,
[11] Fix | Delete
'no_found_rows'=>true,
[12] Fix | Delete
'post_status' => array( 'publish', 'pending', 'draft', 'auto-draft', 'future', 'private', 'inherit', 'trash' )
[13] Fix | Delete
) );
[14] Fix | Delete
if( ! empty( $query ) ) {
[15] Fix | Delete
return;
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
$data = array(
[19] Fix | Delete
'post_type' => 'themify_popup',
[20] Fix | Delete
'post_title' => __( 'Sample popup', 'themify-popup' ),
[21] Fix | Delete
'post_content' => '<div class="welcome-popup">
[22] Fix | Delete
<h2>Thank you for using <br>
[23] Fix | Delete
Themify Popup</h2>
[24] Fix | Delete
<p>This is a sample pop up. A <a href="https://themify.me/themes">Themify theme</a> or <a href="https://wordpress.org/plugins/themify-builder">Builder Plugin</a> (free) is recommended to design the pop up layouts.</p>
[25] Fix | Delete
<p class="action-buttons"><a href="https://themify.me/builder">Get Builder</a> <a href="#" class="outline">Watch Video</a></p>
[26] Fix | Delete
</div>',
[27] Fix | Delete
'post_status' => 'publish',
[28] Fix | Delete
'meta_input' => array(
[29] Fix | Delete
'popup_start_at' => '1970-01-01 00:00:00',
[30] Fix | Delete
'popup_end_at' => '3015-01-01 00:00:00',
[31] Fix | Delete
'popup_width' => 500,
[32] Fix | Delete
'_tf_popup_sample_post' => 'yes', // flag, may come handy in the future,
[33] Fix | Delete
'custom_css' => '%POPUP% .welcome-popup {
[34] Fix | Delete
background: #fff;
[35] Fix | Delete
color: #777;
[36] Fix | Delete
font-size: 1em;
[37] Fix | Delete
line-height: 1.6em;
[38] Fix | Delete
text-align: center;
[39] Fix | Delete
padding: 75px 10% 60px;
[40] Fix | Delete
}
[41] Fix | Delete
%POPUP% .welcome-popup h1,
[42] Fix | Delete
%POPUP% .welcome-popup h2,
[43] Fix | Delete
%POPUP% .welcome-popup h3 {
[44] Fix | Delete
color: #000;
[45] Fix | Delete
}
[46] Fix | Delete
%POPUP% .welcome-popup a {
[47] Fix | Delete
color: #755ebb;
[48] Fix | Delete
text-decoration: none;
[49] Fix | Delete
}
[50] Fix | Delete
%POPUP% .action-buttons {
[51] Fix | Delete
margin: 30px 0 10px;
[52] Fix | Delete
}
[53] Fix | Delete
%POPUP% .action-buttons a {
[54] Fix | Delete
font-size: 1.2em;
[55] Fix | Delete
line-height: 1;
[56] Fix | Delete
background: #755ebb;
[57] Fix | Delete
color: #fff;
[58] Fix | Delete
display: inline-block;
[59] Fix | Delete
vertical-align: middle;
[60] Fix | Delete
padding: 11px 26px;
[61] Fix | Delete
margin: 5px 3px;
[62] Fix | Delete
text-decoration: none;
[63] Fix | Delete
border-radius: 40px;
[64] Fix | Delete
}
[65] Fix | Delete
%POPUP% .action-buttons a.outline {
[66] Fix | Delete
background: none;
[67] Fix | Delete
color: #755ebb;
[68] Fix | Delete
border: solid 2px;
[69] Fix | Delete
}
[70] Fix | Delete
',
[71] Fix | Delete
)
[72] Fix | Delete
);
[73] Fix | Delete
[74] Fix | Delete
wp_insert_post( $data );
[75] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function