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/wpforms-.../template.../admin/form-emb...
File: popup.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Form Embed Wizard.
[2] Fix | Delete
* Embed popup HTML template.
[3] Fix | Delete
*
[4] Fix | Delete
* @since 1.6.2
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! \defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
$pages_exists = ! empty( $args['dropdown_pages'] ) ? 1 : 0;
[11] Fix | Delete
?>
[12] Fix | Delete
[13] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-container" class="wpforms-admin-popup-container">
[14] Fix | Delete
<div id="wpforms-admin-form-embed-wizard" class="wpforms-admin-popup" data-pages-exists="<?php echo esc_attr( $pages_exists ); ?>">
[15] Fix | Delete
<div class="wpforms-admin-popup-content">
[16] Fix | Delete
<h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3>
[17] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-content-initial">
[18] Fix | Delete
<p class="no-gap"><b><?php esc_html_e( 'We can help embed your form with just a few clicks!', 'wpforms-lite' ); ?></b></p>
[19] Fix | Delete
[20] Fix | Delete
<?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?>
[21] Fix | Delete
<p><?php esc_html_e( 'Would you like to embed your form in an existing page, or create a new one?', 'wpforms-lite' ); ?></p>
[22] Fix | Delete
<?php endif; ?>
[23] Fix | Delete
</div>
[24] Fix | Delete
[25] Fix | Delete
<?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?>
[26] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-content-select-page" style="display: none;">
[27] Fix | Delete
<p><?php esc_html_e( 'Select the page you would like to embed your form in.', 'wpforms-lite' ); ?></p>
[28] Fix | Delete
</div>
[29] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-content-create-page" style="display: none;">
[30] Fix | Delete
<p><?php esc_html_e( 'What would you like to call the new page?', 'wpforms-lite' ); ?></p>
[31] Fix | Delete
</div>
[32] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-section-btns" class="wpforms-admin-popup-bottom">
[33] Fix | Delete
<button type="button" data-action="select-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Select Existing Page', 'wpforms-lite' ); ?></button>
[34] Fix | Delete
<button type="button" data-action="create-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Create New Page', 'wpforms-lite' ); ?></button>
[35] Fix | Delete
</div>
[36] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-section-go" class="wpforms-admin-popup-bottom wpforms-admin-popup-flex" style="display: none;">
[37] Fix | Delete
<?php echo $args['dropdown_pages']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
[38] Fix | Delete
<input type="text" id="wpforms-admin-form-embed-wizard-new-page-title" value="" placeholder="<?php esc_attr_e( 'Name Your Page', 'wpforms-lite' ); ?>">
[39] Fix | Delete
<button type="button" data-action="go" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Let’s Go!', 'wpforms-lite' ); ?></button>
[40] Fix | Delete
</div>
[41] Fix | Delete
<?php endif; ?>
[42] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-section-toggles" class="wpforms-admin-popup-bottom">
[43] Fix | Delete
<p class="secondary">
[44] Fix | Delete
<?php
[45] Fix | Delete
$allowed_tags = [
[46] Fix | Delete
'a' => [
[47] Fix | Delete
'href' => [],
[48] Fix | Delete
'class' => [],
[49] Fix | Delete
],
[50] Fix | Delete
];
[51] Fix | Delete
[52] Fix | Delete
if ( ! empty( $args['user_can_edit_pages'] ) ) {
[53] Fix | Delete
[54] Fix | Delete
printf(
[55] Fix | Delete
wp_kses( /* translators: %1$s - video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */
[56] Fix | Delete
__( 'You can also <a href="#" class="%1$s">embed your form manually</a> or <a href="#" class="%2$s">use a shortcode</a>', 'wpforms-lite' ),
[57] Fix | Delete
$allowed_tags
[58] Fix | Delete
),
[59] Fix | Delete
'tutorial-toggle wpforms-admin-popup-toggle',
[60] Fix | Delete
'shortcode-toggle wpforms-admin-popup-toggle'
[61] Fix | Delete
);
[62] Fix | Delete
[63] Fix | Delete
} else {
[64] Fix | Delete
[65] Fix | Delete
printf(
[66] Fix | Delete
wp_kses( /* translators: %1$s - video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */
[67] Fix | Delete
__( 'You can embed your form using the <a href="#" class="%1$s">WPForms block</a> or <a href="#" class="%2$s">a shortcode</a>.', 'wpforms-lite' ),
[68] Fix | Delete
$allowed_tags
[69] Fix | Delete
),
[70] Fix | Delete
'tutorial-toggle wpforms-admin-popup-toggle',
[71] Fix | Delete
'shortcode-toggle wpforms-admin-popup-toggle'
[72] Fix | Delete
);
[73] Fix | Delete
[74] Fix | Delete
}
[75] Fix | Delete
?>
[76] Fix | Delete
</p>
[77] Fix | Delete
<iframe style="display: none;" src="about:blank" frameborder="0" id="wpforms-admin-form-embed-wizard-tutorial" allowfullscreen width="450" height="256"></iframe>
[78] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-shortcode-wrap" style="display: none;">
[79] Fix | Delete
<input type="text" id="wpforms-admin-form-embed-wizard-shortcode" class="wpforms-admin-popup-shortcode" disabled />
[80] Fix | Delete
<span id="wpforms-admin-form-embed-wizard-shortcode-copy" title="<?php esc_attr_e( 'Copy embed code to clipboard', 'wpforms-lite' ); ?>">
[81] Fix | Delete
<i class="fa fa-files-o" aria-hidden="true"></i>
[82] Fix | Delete
</span>
[83] Fix | Delete
</div>
[84] Fix | Delete
</div>
[85] Fix | Delete
<div id="wpforms-admin-form-embed-wizard-section-goback" class="wpforms-admin-popup-bottom" style="display: none;">
[86] Fix | Delete
<p class="secondary">
[87] Fix | Delete
<a href="#" class="wpforms-admin-popup-toggle initialstate-toggle">« <?php esc_html_e( 'Go back', 'wpforms-lite' ); ?></a>
[88] Fix | Delete
</p>
[89] Fix | Delete
</div>
[90] Fix | Delete
</div>
[91] Fix | Delete
<i class="fa fa-times wpforms-admin-popup-close"></i>
[92] Fix | Delete
</div>
[93] Fix | Delete
</div>
[94] Fix | Delete
[95] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function