Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/elemento.../includes/admin-te...
File: new-floating-elements.php
<?php
[0] Fix | Delete
namespace Elementor;
[1] Fix | Delete
[2] Fix | Delete
use Elementor\Modules\FloatingButtons\Module;
[3] Fix | Delete
[4] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[5] Fix | Delete
exit; // Exit if accessed directly.
[6] Fix | Delete
}
[7] Fix | Delete
[8] Fix | Delete
?>
[9] Fix | Delete
<script type="text/template" id="tmpl-elementor-new-floating-elements">
[10] Fix | Delete
<div id="elementor-new-floating-elements__description">
[11] Fix | Delete
<div id="elementor-new-floating-elements__description__title"><?php
[12] Fix | Delete
printf(
[13] Fix | Delete
/* translators: %1$s Span open tag, %2$s: Span close tag. */
[14] Fix | Delete
esc_html__( 'Floating Elements Help You %1$sWork Efficiently%2$s', 'elementor' ),
[15] Fix | Delete
'<span>',
[16] Fix | Delete
'</span>'
[17] Fix | Delete
);
[18] Fix | Delete
?></div>
[19] Fix | Delete
<div id="elementor-new-floating-elements__description__content"><?php echo esc_html__( 'Use floating elements to engage your visitors and increase conversions.', 'elementor' ); ?></div>
[20] Fix | Delete
</div>
[21] Fix | Delete
<form id="elementor-new-floating-elements__form" action="<?php esc_url( admin_url( '/edit.php' ) ); ?>">
[22] Fix | Delete
<input type="hidden" name="post_type" value="<?php echo esc_attr( Module::CPT_FLOATING_BUTTONS ); ?>">
[23] Fix | Delete
<input type="hidden" name="template_type" value="<?php echo esc_attr( Module::FLOATING_BUTTONS_DOCUMENT_TYPE ); ?>">
[24] Fix | Delete
<input type="hidden" name="action" value="elementor_new_post">
[25] Fix | Delete
<?php // PHPCS - a nonce doesn't have to be escaped. ?>
[26] Fix | Delete
<input type="hidden" name="_wpnonce" value="<?php echo wp_create_nonce( 'elementor_action_new_post' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>">
[27] Fix | Delete
<div id="elementor-new-template__form___elementor_source__wrapper" class="elementor-form-field">
[28] Fix | Delete
<label for="elementor-new-template__form___elementor_source" class="elementor-form-field__label">
[29] Fix | Delete
<?php echo esc_html__( 'Choose Floating Element', 'elementor' ); ?>
[30] Fix | Delete
</label>
[31] Fix | Delete
<div class="elementor-form-field__select__wrapper">
[32] Fix | Delete
<select id="elementor-new-template__form___elementor_source" class="elementor-form-field__select" name="meta[<?php echo esc_attr( Module::FLOATING_ELEMENTS_TYPE_META_KEY ); ?>]">
[33] Fix | Delete
<?php foreach ( Module::get_floating_elements_types() as $key => $value ) : ?>
[34] Fix | Delete
<option value="<?php echo esc_attr( $key ); ?>"><?php echo esc_html( $value ); ?></option>
[35] Fix | Delete
<?php endforeach; ?>
[36] Fix | Delete
</select>
[37] Fix | Delete
</div>
[38] Fix | Delete
</div>
[39] Fix | Delete
[40] Fix | Delete
<div id="elementor-new-floating-elements__form__post-title__wrapper" class="elementor-form-field">
[41] Fix | Delete
<label for="elementor-new-floating-elements__form__post-title" class="elementor-form-field__label">
[42] Fix | Delete
<?php echo esc_html__( 'Name your template', 'elementor' ); ?>
[43] Fix | Delete
</label>
[44] Fix | Delete
<div class="elementor-form-field__text__wrapper">
[45] Fix | Delete
<input type="text" placeholder="<?php echo esc_attr__( 'Enter template name (optional)', 'elementor' ); ?>" id="elementor-new-floating-elements__form__post-title" class="elementor-form-field__text" name="post_data[post_title]">
[46] Fix | Delete
</div>
[47] Fix | Delete
</div>
[48] Fix | Delete
<button id="elementor-new-floating-elements__form__submit" class="elementor-button e-primary"><?php echo esc_html__( 'Create Floating Element', 'elementor' ); ?></button>
[49] Fix | Delete
</form>
[50] Fix | Delete
</script>
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function