first commit
This commit is contained in:
45
wp-content/plugins/wpforms-lite/templates/admin-bar-menu.php
Normal file
45
wp-content/plugins/wpforms-lite/templates/admin-bar-menu.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Forms selector for admin bar menu.
|
||||
*
|
||||
* @since 1.6.5
|
||||
*
|
||||
* @var array $forms_data Forms data.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$has_notifications = $forms_data['has_notifications'] ? ' wpforms-menu-form-notifications' : '';
|
||||
|
||||
end( $forms_data['forms'] );
|
||||
$last_key = key( $forms_data['forms'] );
|
||||
?>
|
||||
|
||||
<script type="text/html" id="tmpl-wpforms-admin-menubar-data">
|
||||
<?php foreach ( $forms_data['forms'] as $key => $form ) : ?>
|
||||
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>" class="menupop wpforms-menu-form<?php echo $key === 0 ? esc_attr( $has_notifications ) : ''; ?><?php echo $key === $last_key ? ' wpforms-menu-form-last' : ''; ?>">
|
||||
<div class="ab-item ab-empty-item" aria-haspopup="true"><span class="wp-admin-bar-arrow" aria-hidden="true"></span><?php echo esc_html( $form['title'] ); ?></div>
|
||||
<div class="ab-sub-wrapper">
|
||||
<ul id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-default" class="ab-submenu">
|
||||
<?php if ( ! empty( $form['edit_url'] ) ) : ?>
|
||||
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-edit">
|
||||
<a class="ab-item" href="<?php echo esc_url( $form['edit_url'] ); ?>"><?php echo esc_html( $forms_data['edit_text'] ); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $form['entries_url'] ) ) : ?>
|
||||
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-entries">
|
||||
<a class="ab-item" href="<?php echo esc_url( $form['entries_url'] ); ?>"><?php echo esc_html( $forms_data['entry_text'] ); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $form['survey_url'] ) ) : ?>
|
||||
<li id="wp-admin-bar-wpforms-form-id-<?php echo esc_attr( $form['form_id'] ); ?>-survey">
|
||||
<a class="ab-item" href="<?php echo esc_url( $form['survey_url'] ); ?>"><?php echo esc_html( $forms_data['survey_text'] ); ?></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</script>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* Challenge HTML template specific to Form Builder.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-challenge-tooltips">
|
||||
<div id="tooltip-content1">
|
||||
<h3><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Give your form a name so you can easily identify it.', 'wpforms-lite' ); ?></p>
|
||||
<button type="button" class="wpforms-challenge-step1-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
|
||||
<div id="tooltip-content2">
|
||||
<h3><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Build your form from scratch or use one of our pre-made templates.', 'wpforms-lite' ); ?></p>
|
||||
</div>
|
||||
|
||||
<div id="tooltip-content3">
|
||||
<p><?php esc_html_e( 'You can add additional fields to your form, if you need them.', 'wpforms-lite' ); ?></p>
|
||||
<button type="button" class="wpforms-challenge-step3-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
|
||||
<div id="tooltip-content4">
|
||||
<h3><?php esc_html_e( 'Check Notification Settings', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'The default notification settings might be sufficient, but double‑check to be sure.', 'wpforms-lite' ); ?></p>
|
||||
<button type="button" class="wpforms-challenge-step4-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-challenge-popup-container">
|
||||
<div id="wpforms-challenge-welcome-builder-popup" class="wpforms-challenge-popup wpforms-challenge-popup-plain">
|
||||
<div class="wpforms-challenge-popup-content">
|
||||
<h3><?php esc_html_e( 'Welcome to the Form Builder', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Our form builder is a full-screen, distraction-free experience where you manage your forms. The following steps will walk you through essential areas.', 'wpforms-lite' ); ?></p>
|
||||
<button type="button" class="wpforms-challenge-popup-btn"><?php esc_html_e( 'Let’s Go!', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
/**
|
||||
* Challenge HTML template specific to form embed page.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*
|
||||
* @var integer $minutes
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-challenge-tooltips">
|
||||
<div id="tooltip-content5">
|
||||
<?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?>
|
||||
<h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
/* translators: %s - Link to the WPForms documentation page. */
|
||||
__( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>.', 'wpforms-lite' ),
|
||||
'https://wpforms.com/docs/creating-first-form/#display-form'
|
||||
),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'rel' => [],
|
||||
'target' => [],
|
||||
],
|
||||
'br' => [],
|
||||
]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<i class="wpforms-challenge-tooltips-red-arrow"></i>
|
||||
<?php else : ?>
|
||||
<h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="wpforms-challenge-step5-done wpforms-challenge-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-challenge-popup-container">
|
||||
<div id="wpforms-challenge-congrats-popup" class="wpforms-challenge-popup">
|
||||
<div class="wpforms-challenge-popup-header wpforms-challenge-popup-header-congrats">
|
||||
<i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i>
|
||||
</div>
|
||||
<div class="wpforms-challenge-popup-content">
|
||||
<h3><?php esc_html_e( 'Congrats, you did it!', 'wpforms-lite' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
/* translators: %1$s - Number of minutes in HTML container; %2$s - Single or plural word 'minute'; %3$s - Number of seconds in HTML container; %4$s - Single or plural word 'second'; %5$s - 5 rating star symbols HTML. */
|
||||
__( 'You completed the WPForms Challenge in <b>%1$s %2$s %3$s %4$s</b>. Share your success story with other WPForms users and help us spread the word <b>by giving WPForms a 5-star rating (%5$s) on WordPress.org</b>. Thanks for your support and we look forward to bringing you more awesome features.', 'wpforms-lite' ),
|
||||
'<span id="wpforms-challenge-congrats-minutes"></span>',
|
||||
_n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' ),
|
||||
'<span id="wpforms-challenge-congrats-seconds"></span>',
|
||||
_n( 'second', 'seconds', absint( $minutes ), 'wpforms-lite' ),
|
||||
'<span class="rating-stars"><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i><i class="fa fa-star"></i></span>'
|
||||
),
|
||||
[
|
||||
'span' => [
|
||||
'id' => [],
|
||||
'class' => [],
|
||||
],
|
||||
'b' => [],
|
||||
'i' => [
|
||||
'class' => [],
|
||||
],
|
||||
]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<a href="https://wordpress.org/support/plugin/wpforms-lite/reviews/?filter=5#new-post" class="wpforms-challenge-popup-btn wpforms-challenge-popup-rate-btn" target="_blank" rel="noopener"><?php esc_html_e( 'Rate WPForms on WordPress.org', 'wpforms-lite' ); ?>
|
||||
<span class="dashicons dashicons-external"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpforms-challenge-contact-popup" class="wpforms-challenge-popup">
|
||||
<div class="wpforms-challenge-popup-header wpforms-challenge-popup-header-contact">
|
||||
<i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i>
|
||||
</div>
|
||||
<div class="wpforms-challenge-popup-content">
|
||||
<form id="wpforms-challenge-contact-form">
|
||||
<h3><?php esc_html_e( 'Help us improve WPForms', 'wpforms-lite' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
echo esc_html(
|
||||
sprintf(
|
||||
/* translators: %1$d - Number of minutes; %2$s - Single or plural word 'minute'. */
|
||||
__( 'We\'re sorry that it took longer than %1$d %2$s to create a form. Our goal is to create the most beginner friendly WordPress form plugin. Please take a moment to let us know how we can improve WPForms.', 'wpforms-lite' ),
|
||||
absint( $minutes ),
|
||||
_n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<textarea class="wpforms-challenge-contact-message"></textarea>
|
||||
<label>
|
||||
<input type="checkbox" class="wpforms-challenge-contact-permission"><?php esc_html_e( 'Yes, I give WPForms permission to contact me for any follow up questions.', 'wpforms-lite' ); ?>
|
||||
</label>
|
||||
<button type="submit" class="wpforms-challenge-popup-btn wpforms-challenge-popup-contact-btn"><?php esc_html_e( 'Submit Feedback', 'wpforms-lite' ); ?></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* Challenge main modal window template.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*
|
||||
* @var string $state
|
||||
* @var integer $step
|
||||
* @var integer $minutes
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-challenge <?php echo 'start' === $state ? 'wpforms-challenge-start' : ''; ?>"
|
||||
data-wpforms-challenge-saved-step="<?php echo absint( $step ); ?>">
|
||||
|
||||
<div class="wpforms-challenge-list-block">
|
||||
<i class="list-block-button toggle-list" title="<?php esc_attr_e( 'Toggle list', 'wpforms-lite' ); ?>"></i>
|
||||
<i class="list-block-button challenge-skip" title="<?php esc_attr_e( 'Skip challenge', 'wpforms-lite' ); ?>"
|
||||
data-cancel-title="<?php esc_attr_e( 'Cancel challenge', 'wpforms-lite' ); ?>"></i>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf(
|
||||
/* translators: %1$d - Number of minutes; %2$s - Single or plural word 'minute'. */
|
||||
__( 'Complete the <b>WPForms Challenge</b> and get up and running within %1$d %2$s.', 'wpforms-lite' ),
|
||||
absint( $minutes ),
|
||||
_n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' )
|
||||
),
|
||||
[ 'b' => [] ]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<ul class="wpforms-challenge-list">
|
||||
<li class="wpforms-challenge-step1-item"><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></li>
|
||||
<li class="wpforms-challenge-step2-item"><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></li>
|
||||
<li class="wpforms-challenge-step3-item"><?php esc_html_e( 'Add Fields to Your Form', 'wpforms-lite' ); ?></li>
|
||||
<li class="wpforms-challenge-step4-item"><?php esc_html_e( 'Check Notifications', 'wpforms-lite' ); ?></li>
|
||||
<li class="wpforms-challenge-step5-item"><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></li>
|
||||
<li class="wpforms-challenge-completed"><?php esc_html_e( 'Challenge Complete', 'wpforms-lite' ); ?></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-challenge-bar" style="display:none">
|
||||
<div></div>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-challenge-block-timer">
|
||||
<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' ); ?>">
|
||||
<div>
|
||||
<h3><?php esc_html_e( 'WPForms Challenge', 'wpforms-lite' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s - minutes in 2:00 format. */
|
||||
esc_html__( '%s remaining', 'wpforms-lite' ),
|
||||
'<span id="wpforms-challenge-timer">' . absint( $minutes ) . ':00</span>'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-challenge-block-under-timer">
|
||||
<?php if ( 'start' === $state ) : ?>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder&challenge=init' ) ); ?>" class="wpforms-btn wpforms-btn-md wpforms-btn-orange wpforms-challenge-start">
|
||||
<?php esc_html_e( 'Start Challenge', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
<?php elseif ( 'progress' === $state ) : ?>
|
||||
<button type="button" class="wpforms-btn wpforms-btn-md wpforms-btn-grey wpforms-challenge-pause"><?php esc_html_e( 'Pause', 'wpforms-lite' ); ?></button>
|
||||
<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>
|
||||
<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>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Challenge CTA on WPForms welcome activation screen HTML template.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="challenge">
|
||||
<div class="block">
|
||||
<h1><?php esc_html_e( 'Take the WPForms Challenge', 'wpforms-lite' ); ?></h1>
|
||||
<h6><?php esc_html_e( 'Create your first form with our guided setup wizard in less than 5 minutes to experience the WPForms difference.', 'wpforms-lite' ); ?></h6>
|
||||
<div class="button-wrap">
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder&challenge=init' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
|
||||
<?php esc_html_e( 'Start the WPForms Challenge', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* No forms HTML template.
|
||||
*
|
||||
* @since 1.6.2.3
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-empty-state-container wpforms-admin-no-forms">
|
||||
|
||||
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
|
||||
|
||||
<p><?php esc_html_e( 'It looks like you haven’t created any forms yet.', 'wpforms-lite' ); ?></p>
|
||||
<p><?php esc_html_e( 'You can use WPForms to build contact forms, surveys, payment forms, and more with just a few clicks.', 'wpforms-lite' ); ?></p>
|
||||
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/no-forms.svg' ); ?>" alt=""/>
|
||||
|
||||
<br>
|
||||
|
||||
<?php if ( wpforms_current_user_can( 'create_forms' ) ) : ?>
|
||||
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn add-new-h2 wpforms-btn-orange"><?php esc_html_e( 'Create Your Form', 'wpforms-lite' ); ?></a>
|
||||
<?php endif; ?>
|
||||
|
||||
<p class="wpforms-admin-no-forms-footer">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - URL to the documentation article. */
|
||||
__( 'Need some help? Check out our <a href="%s" target="_blank" rel="noopener noreferrer">comprehensive guide</a>.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
'https://wpforms.com/docs/creating-first-form/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
/**
|
||||
* Form Embed Wizard.
|
||||
* Embed popup HTML template.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
$pages_exists = ! empty( $args['dropdown_pages'] ) ? 1 : 0;
|
||||
?>
|
||||
|
||||
<div id="wpforms-admin-form-embed-wizard-container" class="wpforms-admin-popup-container">
|
||||
<div id="wpforms-admin-form-embed-wizard" class="wpforms-admin-popup" data-pages-exists="<?php echo esc_attr( $pages_exists ); ?>">
|
||||
<div class="wpforms-admin-popup-content">
|
||||
<h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3>
|
||||
<div id="wpforms-admin-form-embed-wizard-content-initial">
|
||||
<p class="no-gap"><b><?php esc_html_e( 'We can help embed your form with just a few clicks!', 'wpforms-lite' ); ?></b></p>
|
||||
|
||||
<?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?>
|
||||
<p><?php esc_html_e( 'Would you like to embed your form in an existing page, or create a new one?', 'wpforms-lite' ); ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ( ! empty( $args['user_can_edit_pages'] ) ) : ?>
|
||||
<div id="wpforms-admin-form-embed-wizard-content-select-page" style="display: none;">
|
||||
<p><?php esc_html_e( 'Select the page you would like to embed your form in.', 'wpforms-lite' ); ?></p>
|
||||
</div>
|
||||
<div id="wpforms-admin-form-embed-wizard-content-create-page" style="display: none;">
|
||||
<p><?php esc_html_e( 'What would you like to call the new page?', 'wpforms-lite' ); ?></p>
|
||||
</div>
|
||||
<div id="wpforms-admin-form-embed-wizard-section-btns" class="wpforms-admin-popup-bottom">
|
||||
<button type="button" data-action="select-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Select Existing Page', 'wpforms-lite' ); ?></button>
|
||||
<button type="button" data-action="create-page" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Create New Page', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
<div id="wpforms-admin-form-embed-wizard-section-go" class="wpforms-admin-popup-bottom wpforms-admin-popup-flex" style="display: none;">
|
||||
<?php echo $args['dropdown_pages']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
<input type="text" id="wpforms-admin-form-embed-wizard-new-page-title" value="" placeholder="<?php esc_attr_e( 'Name Your Page', 'wpforms-lite' ); ?>">
|
||||
<button type="button" data-action="go" class="wpforms-admin-popup-btn"><?php esc_html_e( 'Let’s Go!', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="wpforms-admin-form-embed-wizard-section-toggles" class="wpforms-admin-popup-bottom">
|
||||
<p class="secondary">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %1$s - Video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */
|
||||
__( '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' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'class' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
'tutorial-toggle wpforms-admin-popup-toggle',
|
||||
'shortcode-toggle wpforms-admin-popup-toggle'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<iframe style="display: none;" src="about:blank" frameborder="0" id="wpforms-admin-form-embed-wizard-tutorial" allowfullscreen width="450" height="256"></iframe>
|
||||
<div id="wpforms-admin-form-embed-wizard-shortcode-wrap" style="display: none;">
|
||||
<input type="text" id="wpforms-admin-form-embed-wizard-shortcode" class="wpforms-admin-popup-shortcode" disabled />
|
||||
<span id="wpforms-admin-form-embed-wizard-shortcode-copy" title="<?php esc_attr_e( 'Copy embed code to clipboard', 'wpforms-lite' ); ?>">
|
||||
<i class="fa fa-files-o" aria-hidden="true"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="wpforms-admin-form-embed-wizard-section-goback" class="wpforms-admin-popup-bottom" style="display: none;">
|
||||
<p class="secondary">
|
||||
<a href="#" class="wpforms-admin-popup-toggle initialstate-toggle">« <?php esc_html_e( 'Go back', 'wpforms-lite' ); ?></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<i class="fa fa-times wpforms-admin-popup-close"></i>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Form Embed Wizard.
|
||||
* Embed page tooltip HTML template.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-form-embed-wizard-tooltip">
|
||||
<div id="wpforms-admin-form-embed-wizard-tooltip-content">
|
||||
<?php if ( wpforms_is_gutenberg_active() ) : // Gutenberg content. ?>
|
||||
<h3><?php esc_html_e( 'Add a Block', 'wpforms-lite' ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - Link to the WPForms documentation page. */
|
||||
__( 'Click the plus button, search for WPForms, click the block to<br>embed it. <a href="%s" target="_blank" rel="noopener noreferrer">Learn More</a>.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'rel' => [],
|
||||
'target' => [],
|
||||
],
|
||||
'br' => [],
|
||||
]
|
||||
),
|
||||
'https://wpforms.com/docs/creating-first-form/#display-form'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<i class="wpforms-admin-form-embed-wizard-tooltips-red-arrow"></i>
|
||||
<?php else : ?>
|
||||
<h3><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Click the “Add Form” button, select your form, then add the embed code.', 'wpforms-lite' ); ?></p>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="wpforms-admin-form-embed-wizard-done-btn"><?php esc_html_e( 'Done', 'wpforms-lite' ); ?></button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,18 @@
|
||||
<p><?php esc_html_e( "hCaptcha is a free and privacy-oriented spam prevention service. Within your forms, hCaptcha will display a checkbox asking users to prove they're human (much like Google's v2 Checkbox reCAPTCHA). This is a simple step for legitimate site visitors, but is extremely effective at blocking spam.", 'wpforms-lite' ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - WPForms.com Setup hCaptcha URL. */
|
||||
__( 'For more details on how hCaptcha works, as well as a step by step setup guide, please check out our <a href="%s" target="_blank" rel="noopener noreferrer">documentation</a>.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
'https://wpforms.com/docs/how-to-set-up-and-use-hcaptcha-in-wpforms'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
@@ -0,0 +1,46 @@
|
||||
<p><?php esc_html_e( 'reCAPTCHA is a free anti-spam service from Google which helps to protect your website from spam and abuse while letting real people pass through with ease.', 'wpforms-lite' ); ?></p>
|
||||
<p><?php esc_html_e( 'Google offers 3 versions of reCAPTCHA (all supported within WPForms):', 'wpforms-lite' ); ?></p>
|
||||
<ul style="list-style: disc;margin-left: 20px;">
|
||||
<li>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
__( '<strong>v2 Checkbox reCAPTCHA</strong>: Prompts users to check a box to prove they\'re human.', 'wpforms-lite' ),
|
||||
[ 'strong' => [] ]
|
||||
);
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
__( '<strong>v2 Invisible reCAPTCHA</strong>: Uses advanced technology to detect real users without requiring any input.', 'wpforms-lite' ),
|
||||
[ 'strong' => [] ]
|
||||
);
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
__( '<strong>v3 reCAPTCHA</strong>: Uses a behind-the-scenes scoring system to detect abusive traffic, and lets you decide the minimum passing score. Recommended for advanced use only (or if using Google AMP).', 'wpforms-lite' ),
|
||||
[ 'strong' => [] ]
|
||||
);
|
||||
?>
|
||||
</li>
|
||||
</ul>
|
||||
<p><?php esc_html_e( 'Sites already using one type of reCAPTCHA will need to create new site keys before switching to a different option.', 'wpforms-lite' ); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - WPForms.com Setup reCAPTCHA URL. */
|
||||
__( '<a href="%s" target="_blank" rel="noopener noreferrer">Read our walk through</a> to learn more and for step-by-step directions.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
'http://wpforms.com/docs/how-to-set-up-and-use-recaptcha-in-wpforms/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
133
wp-content/plugins/wpforms-lite/templates/builder/help.php
Normal file
133
wp-content/plugins/wpforms-lite/templates/builder/help.php
Normal file
@@ -0,0 +1,133 @@
|
||||
<?php
|
||||
/**
|
||||
* Form Builder Help Screen tetemplate.
|
||||
*
|
||||
* @since 1.6.3
|
||||
*
|
||||
* @version 1.6.3
|
||||
*
|
||||
* @var array $settings
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$times_svg = '<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>';
|
||||
|
||||
?>
|
||||
<div id="wpforms-builder-help" style="display: none; opacity: 0;" class="wpforms-admin-page">
|
||||
|
||||
<img id="wpforms-builder-help-logo"
|
||||
src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/sullie-alt.png' ); ?>"
|
||||
title="<?php esc_attr_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>" />
|
||||
|
||||
<div id="wpforms-builder-help-close" title="<?php esc_attr_e( 'Close', 'wpforms-lite' ); ?>">
|
||||
<?php echo $times_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
|
||||
<div id="wpforms-builder-help-content">
|
||||
|
||||
<div id="wpforms-builder-help-search">
|
||||
<input type="text" placeholder="<?php esc_attr_e( 'Ask a question or search the docs...', 'wpforms-lite' ); ?>">
|
||||
<div id="wpforms-builder-help-search-clear" title="<?php esc_attr_e( 'Clear', 'wpforms-lite' ); ?>">
|
||||
<?php echo $times_svg; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="wpforms-builder-help-no-result" style="display: none;">
|
||||
<ul class="wpforms-builder-help-docs">
|
||||
<li>
|
||||
<i class="fa fa-info-circle"></i><span><?php esc_html_e( 'No docs found', 'wpforms-lite' ); ?></span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="wpforms-builder-help-result"></div>
|
||||
<div id="wpforms-builder-help-categories"></div>
|
||||
|
||||
<div id="wpforms-builder-help-footer">
|
||||
|
||||
<div class="wpforms-builder-help-footer-block">
|
||||
<i class="fa fa-file-text-o"></i>
|
||||
<h3><?php esc_html_e( 'View Documentation', 'wpforms-lite' ); ?></h3>
|
||||
<p><?php esc_html_e( 'Browse documentation, reference material, and tutorials for WPForms.', 'wpforms-lite' ); ?></p>
|
||||
<a href="<?php echo esc_url( $settings['docs_url'] ); ?>"
|
||||
class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank">
|
||||
<?php esc_html_e( 'View All Documentation', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="wpforms-builder-help-footer-block">
|
||||
<i class="fa fa-support"></i>
|
||||
<h3><?php esc_html_e( 'Get Support', 'wpforms-lite' ); ?></h3>
|
||||
|
||||
<?php if ( wpforms()->pro ) { ?>
|
||||
<p><?php esc_html_e( 'Submit a ticket and our world class support team will be in touch soon.', 'wpforms-lite' ); ?></p>
|
||||
<a href="<?php echo esc_url( $settings['support_ticket_url'] ); ?>"
|
||||
class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank">
|
||||
<?php esc_html_e( 'Submit a Support Ticket', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
|
||||
<?php } else { ?>
|
||||
<p><?php esc_html_e( 'Upgrade to WPForms Pro to access our world class customer support.', 'wpforms-lite' ); ?></p>
|
||||
<a href="<?php echo esc_url( $settings['upgrade_url'] ); ?>"
|
||||
class="wpforms-btn wpforms-btn-md wpforms-btn-orange"
|
||||
rel="noopener noreferrer"
|
||||
target="_blank">
|
||||
<?php esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/html" id="tmpl-wpforms-builder-help-categories">
|
||||
<ul class="wpforms-builder-help-categories-toggle">
|
||||
<# _.each( data.categories, function( categoryTitle, categorySlug ) { #>
|
||||
<li class="wpforms-builder-help-category">
|
||||
<header>
|
||||
<i class="fa fa-folder-open-o wpforms-folder"></i>
|
||||
<span>{{{ categoryTitle }}}</span>
|
||||
<i class="fa fa-angle-right wpforms-arrow"></i>
|
||||
</header>
|
||||
<ul class="wpforms-builder-help-docs" style="display:none;">
|
||||
<# _.each( data.docs[ categorySlug ], function( doc, index ) { #>
|
||||
<li>
|
||||
<i class="fa fa-file-text-o"></i><a href="{{ doc.url }}" rel="noopener noreferrer" target="_blank">{{{ doc.title }}}</a>
|
||||
</li>
|
||||
<# if ( index === 4 && data.docs[ categorySlug ].length > 4 ) { #>
|
||||
<div style="display:none;">
|
||||
<# } #>
|
||||
<# } ) #>
|
||||
<# if ( data.docs[ categorySlug ].length > 4 ) { #>
|
||||
</div>
|
||||
<button class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey viewall"><?php esc_html_e( 'View All', 'wpforms-lite' ); ?> {{{ categoryTitle }}} <?php esc_html_e( 'Docs', 'wpforms-lite' ); ?></button>
|
||||
<# } #>
|
||||
</ul>
|
||||
</li>
|
||||
<# } ) #>
|
||||
</ul>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-wpforms-builder-help-categories-error">
|
||||
<h4 class="wpforms-builder-help-error">
|
||||
<?php esc_html_e( 'Unfortunately the error occurred while downloading help data.', 'wpforms-lite' ); ?>
|
||||
</h4>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="tmpl-wpforms-builder-help-docs">
|
||||
<ul class="wpforms-builder-help-docs">
|
||||
<# _.each( data.docs, function( doc, index ) { #>
|
||||
<li>
|
||||
<i class="fa fa-file-text-o"></i><a href="{{ doc.url }}" rel="noopener noreferrer" target="_blank">{{{ doc.title }}}</a>
|
||||
</li>
|
||||
<# } ) #>
|
||||
</ul>
|
||||
</script>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/**
|
||||
* Panel Setup (form templates).
|
||||
* Form templates list item template.
|
||||
*
|
||||
* @since 1.6.8
|
||||
*
|
||||
* @var string $selected_class Selected item class.
|
||||
* @var string $license_class License class (in the case of higher license needed).
|
||||
* @var string $categories Categories, coma separated.
|
||||
* @var string $badge_text Badge text.
|
||||
* @var string $demo_url Template demo URL.
|
||||
* @var string $template_id Template ID (Slug or ID if available).
|
||||
* @var string $education_class Education class (in the case of higher license needed).
|
||||
* @var string $education_attributes Education attributes.
|
||||
* @var string $addons_attributes Required addons attributes.
|
||||
* @var array $template Template data.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-template<?php echo esc_attr( $selected_class ); ?><?php echo esc_attr( $license_class ); ?>"
|
||||
id="wpforms-template-<?php echo sanitize_html_class( $template['slug'] ); ?>">
|
||||
|
||||
<h3 class="wpforms-template-name categories" data-categories="<?php echo esc_attr( $categories ); ?>">
|
||||
<?php echo esc_html( $template['name'] ); ?>
|
||||
</h3>
|
||||
|
||||
<?php if ( ! empty( $badge_text ) ) { ?>
|
||||
<span class="wpforms-template-badge"><?php echo esc_html( $badge_text ); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( ! empty( $template['description'] ) ) : ?>
|
||||
<p class="wpforms-template-desc"><?php echo esc_html( $template['description'] ); ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="wpforms-template-buttons">
|
||||
<a href="#" class="wpforms-template-select wpforms-btn wpforms-btn-md wpforms-btn-orange<?php echo esc_attr( $education_class ); ?>"
|
||||
data-template-name-raw="<?php echo esc_attr( $template['name'] ); ?>"
|
||||
data-template="<?php echo esc_attr( $template_id ); ?>"
|
||||
data-slug="<?php echo esc_attr( $template['slug'] ); ?>"
|
||||
<?php echo $education_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
<?php echo $addons_attributes; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
|
||||
<?php
|
||||
$template['slug'] !== 'blank'
|
||||
? esc_html_e( 'Use Template', 'wpforms-lite' )
|
||||
: esc_html_e( 'Create Blank Form', 'wpforms-lite' );
|
||||
?>
|
||||
</a>
|
||||
<?php if ( $template['url'] !== '' ) : ?>
|
||||
<a class="wpforms-template-demo wpforms-btn wpforms-btn-md wpforms-btn-light-grey"
|
||||
href="<?php echo esc_url( $demo_url ); ?>"
|
||||
target="_blank" rel="noopener noreferrer">
|
||||
<?php esc_html_e( 'View Demo', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Capabilities for geolocation settings page.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$lists = [
|
||||
[
|
||||
esc_html__( 'City', 'wpforms-lite' ),
|
||||
esc_html__( 'Country', 'wpforms-lite' ),
|
||||
esc_html__( 'Postal/Zip Code', 'wpforms-lite' ),
|
||||
],
|
||||
[
|
||||
esc_html__( 'Latitude/Longitude', 'wpforms-lite' ),
|
||||
esc_html__( 'Address Autocomplete', 'wpforms-lite' ),
|
||||
esc_html__( 'Embedded Map in Forms', 'wpforms-lite' ),
|
||||
],
|
||||
[
|
||||
esc_html__( 'Google Places API', 'wpforms-lite' ),
|
||||
esc_html__( 'Algolia Places API', 'wpforms-lite' ),
|
||||
],
|
||||
];
|
||||
|
||||
?>
|
||||
<p><?php esc_html_e( 'Powerful location-based insights and features…', 'wpforms-lite' ); ?></p>
|
||||
|
||||
<?php foreach ( $lists as $list ) { ?>
|
||||
<ul>
|
||||
<?php foreach ( $list as $item ) { ?>
|
||||
<li><?php echo esc_html( $item ); ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* Heading for geolocation settings page.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var bool $plugin_allow Allow using plugin.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<h4>
|
||||
<?php esc_html_e( 'Geolocation', 'wpforms-lite' ); ?>
|
||||
<?php if ( ! $plugin_allow ) { ?>
|
||||
<img
|
||||
src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-settings-access/pro-plus.svg' ); ?>"
|
||||
alt="<?php esc_attr_e( 'Pro+', 'wpforms-lite' ); ?>"
|
||||
>
|
||||
<?php } ?>
|
||||
</h4>
|
||||
<p><?php esc_html_e( 'Do you want to learn more about visitors who fill out your online forms? Our geolocation addon allows you to collect and store your website visitors geolocation data along with their form submission. This insight can help you be better informed and turn more leads into customers. Furthermore, add a smart address field that autocompletes using the Google Places API.', 'wpforms-lite' ); ?></p>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/**
|
||||
* Screenshots for geolocation settings page.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$images_url = WPFORMS_PLUGIN_URL . 'assets/images/geolocation-education/';
|
||||
$screenshots = [
|
||||
[
|
||||
'url' => $images_url . 'entry-location.jpg',
|
||||
'url2x' => $images_url . 'entry-location@2x.jpg',
|
||||
'title' => __( 'Location Info in Entries', 'wpforms-lite' ),
|
||||
],
|
||||
[
|
||||
'url' => $images_url . 'address-autocomplete.jpg',
|
||||
'url2x' => $images_url . 'address-autocomplete@2x.jpg',
|
||||
'title' => __( 'Address Autocomplete Field', 'wpforms-lite' ),
|
||||
],
|
||||
[
|
||||
'url' => $images_url . 'smart-address-field.jpg',
|
||||
'url2x' => $images_url . 'smart-address-field@2x.jpg',
|
||||
'title' => __( 'Smart Address Field', 'wpforms-lite' ),
|
||||
],
|
||||
];
|
||||
|
||||
foreach ( $screenshots as $screenshot ) {
|
||||
?>
|
||||
<div class="cont">
|
||||
<img src="<?php echo esc_url( $screenshot['url'] ); ?>" alt="<?php echo esc_attr( $screenshot['title'] ); ?>" />
|
||||
<a href="<?php echo esc_url( $screenshot['url2x'] ); ?>" class="hover" data-lity data-lity-desc="<?php echo esc_attr( $screenshot['title'] ); ?>"></a>
|
||||
<span><?php echo esc_html( $screenshot['title'] ); ?></span>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Button for geolocation settings page.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var bool $action Is plugin installed?
|
||||
* @var string $path Plugin file.
|
||||
* @var string $url URL for download plugin.
|
||||
* @var bool $plugin_allow Allow using plugin.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
if ( $plugin_allow && $action === 'activate' ) {
|
||||
?>
|
||||
<button
|
||||
class="status-inactive wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn"
|
||||
data-type="addon"
|
||||
data-action="<?php echo esc_attr( $action ); ?>"
|
||||
data-plugin="<?php echo esc_attr( $path ); ?>">
|
||||
<i></i><?php esc_html_e( 'Activate', 'wpforms-lite' ); ?>
|
||||
</button>
|
||||
<?php } elseif ( $plugin_allow && $action === 'install' ) { ?>
|
||||
<button
|
||||
class="status-download wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn"
|
||||
data-type="addon"
|
||||
data-action="<?php echo esc_attr( $action ); ?>"
|
||||
data-plugin="<?php echo esc_url( $url ); ?>">
|
||||
<i></i><?php esc_html_e( 'Install & Activate', 'wpforms-lite' ); ?>
|
||||
</button>
|
||||
<?php } else { ?>
|
||||
<a
|
||||
href="https://wpforms.com/lite-upgrade/?discount=LITEUPGRADE&utm_source=WordPress&utm_medium=settings-license&utm_campaign=liteplugin"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
class="wpforms-upgrade-modal wpforms-btn wpforms-btn-lg wpforms-btn-orange">
|
||||
<?php esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
<?php
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* General body template (plain text).
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-body-plain.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var string $message
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
echo \wp_kses_post( $message );
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* General body template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-body.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var string $message
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<?php echo \wp_kses_post( $message ); ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* General footer template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-footer.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" valign="top" class="footer">
|
||||
<?php
|
||||
/* translators: %s - link to a site. */
|
||||
printf( esc_html__( 'Sent from %s', 'wpforms-lite' ), '<a href="' . esc_url( home_url() ) . '">' . esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) ) . '</a>' );
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
/**
|
||||
* General header template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-header.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var string $title
|
||||
* @var string $header_image
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<title><?php echo \esc_html( $title ); ?></title>
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="body">
|
||||
<tr>
|
||||
<td align="center" valign="top" class="body-inner">
|
||||
<table border="0" cellpadding="0" cellspacing="0" class="container">
|
||||
<tr>
|
||||
<td align="center" valign="middle" class="header">
|
||||
<?php if ( ! empty( $header_image['url'] ) ) : ?>
|
||||
<img src="<?php echo \esc_url( $header_image['url'] ); ?>" <?php echo isset( $header_image['width'] ) ? 'width="' . \absint( $header_image['width'] ) . '"' : ''; ?> alt="<?php echo \esc_attr( \get_bloginfo( 'name' ) ); ?>" />
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="left" valign="top" class="content">
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* General media queries style template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-queries.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
require \WPFORMS_PLUGIN_DIR . 'assets/css/emails/partials/media_queries.css';
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* General style template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/general-style.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var string $email_background_color
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require \WPFORMS_PLUGIN_DIR . '/assets/css/emails/general.min.css';
|
||||
|
||||
?>
|
||||
|
||||
body, .body {
|
||||
background-color: <?php echo \esc_attr( $email_background_color ); ?>;
|
||||
}
|
||||
|
||||
<?php if ( ! empty( $header_image_max_width ) ) : ?>
|
||||
.header img {
|
||||
max-width: <?php echo \esc_attr( $header_image_max_width ); ?>;
|
||||
}
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
/**
|
||||
* Email Summary body template (plain text).
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body-plain.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var array $entries
|
||||
* @var array $info_block
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
echo \esc_html__( 'Hi there!', 'wpforms-lite' ) . "\n\n";
|
||||
|
||||
if ( \wpforms()->pro ) {
|
||||
echo \esc_html__( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ) . "\n\n";
|
||||
} else {
|
||||
echo \esc_html__( 'Let’s see how your forms performed.', 'wpforms-lite' ) . "\n\n";
|
||||
echo \esc_html__( 'Below is the total number of submissions for each form, however actual entries are not stored in WPForms Lite. To generate detailed reports and view future entries inside your WordPress dashboard, consider upgrading to Pro.', 'wpforms-lite' ) . "\n\n\n";
|
||||
}
|
||||
|
||||
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
|
||||
|
||||
echo \esc_html__( 'Form', 'wpforms-lite' ) . ' | ' . esc_html__( 'Entries', 'wpforms-lite' ) . "\n\n";
|
||||
|
||||
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
|
||||
|
||||
foreach ( $entries as $row ) {
|
||||
echo ( isset( $row['title'] ) ? \esc_html( $row['title'] ) : '' ) . ' | ' . ( isset( $row['count'] ) ? \absint( $row['count'] ) : '' ) . "\n\n";
|
||||
}
|
||||
|
||||
if ( empty( $entries ) ) {
|
||||
echo \esc_html__( 'It appears you do not have any form entries yet.', 'wpforms-lite' ) . "\n\n";
|
||||
}
|
||||
|
||||
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n\n";
|
||||
|
||||
if ( ! empty( $info_block['title'] ) ) {
|
||||
echo \esc_html( $info_block['title'] ) . "\n\n";
|
||||
}
|
||||
|
||||
if ( ! empty( $info_block['content'] ) ) {
|
||||
echo \wp_kses_post( $info_block['content'] ) . "\n\n";
|
||||
}
|
||||
|
||||
if ( ! empty( $info_block['button'] ) && ! empty( $info_block['url'] ) ) {
|
||||
echo \esc_html( $info_block['button'] ) . ': ' . \esc_url( $info_block['url'] ) . "\n\n";
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
<?php
|
||||
/**
|
||||
* Email Summary body template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-body.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var array $entries
|
||||
* @var array $info_block
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<table class="summary-container">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<h6 class="greeting"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h6>
|
||||
<?php if ( wpforms()->pro ) : ?>
|
||||
<p class="large"><?php esc_html_e( 'Let’s see how your forms performed in the past week.', 'wpforms-lite' ); ?></p>
|
||||
<?php else : ?>
|
||||
<p class="large"><?php esc_html_e( 'Let’s see how your forms performed.', 'wpforms-lite' ); ?></p>
|
||||
<p class="lite-disclaimer">
|
||||
<?php
|
||||
echo wp_kses(
|
||||
__( 'Below is the total number of submissions for each form, <strong>however actual entries are not stored by WPForms Lite</strong>.', 'wpforms-lite' ),
|
||||
[
|
||||
'strong' => [],
|
||||
]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<p class="lite-disclaimer">
|
||||
<?php esc_html_e( 'To generate detailed reports and view future entries inside your WordPress dashboard, consider upgrading to Pro.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<table class="email-summaries">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><?php esc_html_e( 'Form', 'wpforms-lite' ); ?></th>
|
||||
<th class="entries-column text-center"><?php esc_html_e( 'Entries', 'wpforms-lite' ); ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ( $entries as $row ) : ?>
|
||||
<tr>
|
||||
<td class="text-large"><?php echo isset( $row['title'] ) ? esc_html( $row['title'] ) : ''; ?></td>
|
||||
<td class="entry-count text-large">
|
||||
<?php if ( empty( $row['edit_url'] ) ) : ?>
|
||||
<span>
|
||||
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
|
||||
</span>
|
||||
<?php else : ?>
|
||||
<a href="<?php echo esc_url( $row['edit_url'] ); ?>">
|
||||
<?php echo isset( $row['count'] ) ? absint( $row['count'] ) : ''; ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<?php if ( empty( $entries ) ) : ?>
|
||||
<tr>
|
||||
<td class="text-center" colspan="2"><?php esc_html_e( 'It appears you do not have any form entries yet.', 'wpforms-lite' ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
<?php if ( ! empty( $info_block ) ) : ?>
|
||||
<table class="summary-info-table">
|
||||
<?php if ( ! empty( $info_block['title'] ) || ! empty( $info_block['content'] ) ) : ?>
|
||||
<tr>
|
||||
<td class="summary-info-content">
|
||||
<table>
|
||||
<?php if ( ! empty( $info_block['title'] ) ) : ?>
|
||||
<tr>
|
||||
<td class="text-center">
|
||||
<h6><?php echo esc_html( $info_block['title'] ); ?></h6>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $info_block['content'] ) ) : ?>
|
||||
<tr>
|
||||
<td class="text-center"><?php echo wp_kses_post( $info_block['content'] ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( ! empty( $info_block['url'] ) && ! empty( $info_block['button'] ) ) : ?>
|
||||
<tr>
|
||||
<td class="summary-info-content button-container">
|
||||
<center>
|
||||
<table class="button rounded-button">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="<?php echo esc_url( $info_block['url'] ); ?>" rel="noopener noreferrer" target="_blank">
|
||||
<?php echo esc_html( $info_block['button'] ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Summary footer template (plain text).
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-footer-plain.php.
|
||||
*
|
||||
* @since 1.6.2.3
|
||||
*
|
||||
* @version 1.6.2.3
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
echo "\n---\n\n";
|
||||
printf( /* translators: %s - link to a site. */
|
||||
esc_html__( 'This email was auto-generated and sent from %s.', 'wpforms-lite' ),
|
||||
esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) )
|
||||
);
|
||||
echo "\n";
|
||||
printf( /* translators: %s - link to the documentation. */
|
||||
esc_html__( 'Learn how to disable: %s.', 'wpforms-lite' ),
|
||||
'https://wpforms.com/docs/how-to-use-email-summaries/#faq'
|
||||
);
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Summary footer template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-footer.php.
|
||||
*
|
||||
* @since 1.6.2.3
|
||||
*
|
||||
* @version 1.6.2.3
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" valign="top" class="footer">
|
||||
<?php
|
||||
echo wp_kses(
|
||||
sprintf( /* translators: %1$s - link to a site; %2$s - link to the documentation. */
|
||||
__( 'This email was auto-generated and sent from %1$s. Learn <a href="%2$s">how to disable</a>', 'wpforms-lite' ),
|
||||
'<a href="' . esc_url( home_url() ) . '">' . esc_html( wp_specialchars_decode( get_bloginfo( 'name' ) ) ) . '</a>',
|
||||
'https://wpforms.com/docs/how-to-use-email-summaries/#faq'
|
||||
),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
],
|
||||
]
|
||||
);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Email Summary style template.
|
||||
*
|
||||
* This template can be overridden by copying it to yourtheme/wpforms/emails/summary-style.php.
|
||||
*
|
||||
* @since 1.5.4
|
||||
*
|
||||
* @version 1.5.4
|
||||
*
|
||||
* @var string $email_background_color
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
require \WPFORMS_PLUGIN_DIR . '/assets/css/emails/summary.min.css';
|
||||
|
||||
?>
|
||||
|
||||
body, .body {
|
||||
background-color: <?php echo \esc_attr( $email_background_color ); ?>;
|
||||
}
|
||||
|
||||
<?php if ( ! empty( $header_image_max_width ) ) : ?>
|
||||
.header img {
|
||||
max-width: <?php echo \esc_attr( $header_image_max_width ); ?>;
|
||||
}
|
||||
<?php endif; ?>
|
||||
@@ -0,0 +1,10 @@
|
||||
<div class="wpforms-input-row">
|
||||
<div class="minimum">
|
||||
<?php echo $input_min; // phpcs:ignore ?>
|
||||
<label for="wpforms-field-option-<?php echo (int) $field_id; ?>-min" class="sub-label"><?php esc_html_e( 'Minimum', 'wpforms-lite' ); ?></label>
|
||||
</div>
|
||||
<div class="maximum">
|
||||
<?php echo $input_max; // phpcs:ignore ?>
|
||||
<label for="wpforms-field-option-<?php echo (int) $field_id; ?>-max" class="sub-label"><?php esc_html_e( 'Maximum', 'wpforms-lite' ); ?></label>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,14 @@
|
||||
<input type="range" readonly
|
||||
class="wpforms-number-slider"
|
||||
id="wpforms-number-slider-<?php echo (int) $field_id; ?>"
|
||||
value="<?php echo (float) $default_value; ?>"
|
||||
min="<?php echo (float) $min; ?>"
|
||||
max="<?php echo (float) $max; ?>"
|
||||
step="<?php echo (float) $step; ?>">
|
||||
|
||||
<div
|
||||
id="wpforms-number-slider-hint-<?php echo (int) $field_id; ?>"
|
||||
data-hint="<?php echo esc_attr( wp_kses_post( $value_display ) ); ?>"
|
||||
class="wpforms-number-slider-hint">
|
||||
<?php echo wp_kses_post( $value_hint ); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,13 @@
|
||||
<input
|
||||
type="range"
|
||||
<?php echo $html_atts; ?>
|
||||
<?php echo $required; ?>
|
||||
value="<?php echo esc_attr( $default_value ); ?>"
|
||||
min="<?php echo esc_attr( $min ); ?>"
|
||||
max="<?php echo esc_attr( $max ); ?>"
|
||||
step="<?php echo esc_attr( $step ); ?>">
|
||||
|
||||
<div class="wpforms-field-number-slider-hint"
|
||||
data-hint="<?php echo esc_attr( wp_kses_post( $value_display ) ); ?>">
|
||||
<?php echo wp_kses_post( $value_hint ); ?>
|
||||
</div>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Forms selector for Elementor page builder.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*
|
||||
* @var string $forms Rendered <option>s for the select tag.
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<div class="wpforms-elementor wpforms-elementor-form-selector">
|
||||
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/integrations/elementor/wpforms-logo.svg' ); ?>" alt="WPForms Logo"/>
|
||||
|
||||
<div class="select-wrapper">
|
||||
<select>
|
||||
<?php echo $forms; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* No forms template.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="wpforms-admin-empty-state-container wpforms-elementor-no-forms">
|
||||
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/no-forms.svg' ); ?>" alt=""/>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
__( 'You can use <b>WPForms</b> to build contact forms, surveys, payment forms, and more with just a few clicks.', 'wpforms-lite' ),
|
||||
[ 'b' => [] ]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
<button type="button" class="wpforms-btn"><?php esc_html_e( 'Create a form', 'wpforms-lite' ); ?></button>
|
||||
|
||||
<p class="wpforms-admin-no-forms-footer">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - URL to the documentation article. */
|
||||
__( 'Need some help? Check out our <a href="%s" target="_blank" rel="noopener noreferrer">comprehensive guide</a>.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
'https://wpforms.com/docs/creating-first-form/'
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
/**
|
||||
* Forms builder popup inside Elementor page builder.
|
||||
*
|
||||
* @since 1.6.2
|
||||
*/
|
||||
|
||||
if ( ! \defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<script type="text/html" id="tmpl-wpforms-builder-elementor-popup">
|
||||
<div id="wpforms-builder-elementor-popup" style="display:none;">
|
||||
<iframe src="about:blank" width="100%" height="100%" frameborder="0" id="wpforms-builder-iframe"></iframe>
|
||||
</div>
|
||||
</script>
|
||||
Reference in New Issue
Block a user