Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/wpforms-.../template.../admin/challeng...
File: modal.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Challenge main modal window template.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 1.6.2
[4] Fix | Delete
*
[5] Fix | Delete
* @var string $state
[6] Fix | Delete
* @var integer $step
[7] Fix | Delete
* @var integer $minutes
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if ( ! \defined( 'ABSPATH' ) ) {
[11] Fix | Delete
exit;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
?>
[15] Fix | Delete
<div class="wpforms-challenge <?php echo 'start' === $state ? 'wpforms-challenge-start' : ''; ?>"
[16] Fix | Delete
data-wpforms-challenge-saved-step="<?php echo absint( $step ); ?>">
[17] Fix | Delete
[18] Fix | Delete
<div class="wpforms-challenge-list-block">
[19] Fix | Delete
<i class="list-block-button toggle-list" title="<?php esc_attr_e( 'Toggle list', 'wpforms-lite' ); ?>"></i>
[20] Fix | Delete
<i class="list-block-button challenge-skip" title="<?php esc_attr_e( 'Skip challenge', 'wpforms-lite' ); ?>"
[21] Fix | Delete
data-cancel-title="<?php esc_attr_e( 'Cancel challenge', 'wpforms-lite' ); ?>"></i>
[22] Fix | Delete
<p>
[23] Fix | Delete
<?php
[24] Fix | Delete
echo wp_kses(
[25] Fix | Delete
sprintf(
[26] Fix | Delete
/* translators: %1$d - number of minutes, %2$s - singular or plural form of 'minute'. */
[27] Fix | Delete
__( 'Complete the <b>WPForms Challenge</b> and get up and running within %1$d&nbsp;%2$s.', 'wpforms-lite' ),
[28] Fix | Delete
absint( $minutes ),
[29] Fix | Delete
_n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' )
[30] Fix | Delete
),
[31] Fix | Delete
[ 'b' => [] ]
[32] Fix | Delete
);
[33] Fix | Delete
?>
[34] Fix | Delete
</p>
[35] Fix | Delete
<ul class="wpforms-challenge-list">
[36] Fix | Delete
<li class="wpforms-challenge-step1-item"><span></span><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></li>
[37] Fix | Delete
<li class="wpforms-challenge-step2-item"><span></span><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></li>
[38] Fix | Delete
<li class="wpforms-challenge-step3-item"><span></span><?php esc_html_e( 'Add Fields to Your Form', 'wpforms-lite' ); ?></li>
[39] Fix | Delete
<li class="wpforms-challenge-step4-item"><span></span><?php esc_html_e( 'Check Notifications', 'wpforms-lite' ); ?></li>
[40] Fix | Delete
<li class="wpforms-challenge-step5-item"><span></span><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></li>
[41] Fix | Delete
<li class="wpforms-challenge-completed"><span></span><?php esc_html_e( 'Challenge Complete', 'wpforms-lite' ); ?></li>
[42] Fix | Delete
</ul>
[43] Fix | Delete
</div>
[44] Fix | Delete
[45] Fix | Delete
<div class="wpforms-challenge-bar" style="display:none">
[46] Fix | Delete
<div></div>
[47] Fix | Delete
</div>
[48] Fix | Delete
[49] Fix | Delete
<div class="wpforms-challenge-block-timer">
[50] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/challenge/sullie-circle.png' ); ?>" alt="<?php esc_html_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>">
[51] Fix | Delete
<div>
[52] Fix | Delete
<h3><?php esc_html_e( 'WPForms Challenge', 'wpforms-lite' ); ?></h3>
[53] Fix | Delete
<p>
[54] Fix | Delete
<?php
[55] Fix | Delete
printf(
[56] Fix | Delete
/* translators: %s - minutes in 2:00 format. */
[57] Fix | Delete
esc_html__( '%s remaining', 'wpforms-lite' ),
[58] Fix | Delete
'<span id="wpforms-challenge-timer">' . absint( $minutes ) . ':00</span>'
[59] Fix | Delete
);
[60] Fix | Delete
?>
[61] Fix | Delete
</p>
[62] Fix | Delete
</div>
[63] Fix | Delete
</div>
[64] Fix | Delete
[65] Fix | Delete
<div class="wpforms-challenge-block-under-timer">
[66] Fix | Delete
<?php if ( 'start' === $state ) : ?>
[67] Fix | Delete
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-start">
[68] Fix | Delete
<?php esc_html_e( 'Start Challenge', 'wpforms-lite' ); ?>
[69] Fix | Delete
</a>
[70] Fix | Delete
<?php elseif ( 'progress' === $state ) : ?>
[71] Fix | Delete
<button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-grey wpforms-challenge-pause"><?php esc_html_e( 'Pause', 'wpforms-lite' ); ?></button>
[72] Fix | Delete
<button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-resume" style="display: none;"><?php esc_html_e( 'Continue', 'wpforms-lite' ); ?></button>
[73] Fix | Delete
<button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-end" style="display: none;"><?php esc_html_e( 'End Challenge', 'wpforms-lite' ); ?></button>
[74] Fix | Delete
<?php endif; ?>
[75] Fix | Delete
</div>
[76] Fix | Delete
</div>
[77] Fix | Delete
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function