Commit realizado el 12:13:52 08-04-2024

This commit is contained in:
Pagina Web Monito
2024-04-08 12:13:55 -04:00
commit 0c33094de9
7815 changed files with 1365694 additions and 0 deletions

View File

@@ -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&#8209;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( 'Lets Go!', 'wpforms-lite' ); ?></button>
</div>
</div>
</div>

View File

@@ -0,0 +1,117 @@
<?php
/**
* Challenge HTML template specific to form embed page.
*
* @since 1.6.2
*
* @var int $minutes
* @var string $congrats_popup_footer Congrats popup footer HTML.
*/
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
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' => [],
]
),
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/creating-first-form/#display-form', 'WPForms Challenge Block', 'Add A Block' ) )
);
?>
</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 wpforms-challenge-popup-congrats">
<i class="wpforms-challenge-popup-close fa fa-times-circle fa-lg"></i>
<div class="wpforms-challenge-popup-content">
<h3>
<?php esc_html_e( 'Congrats, You Did It!', 'wpforms-lite' ); ?>
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/challenge/party-popper.png' ); ?>" alt="">
</h3>
<p>
<?php
echo wp_kses(
sprintf(
/* translators: %1$s - number of minutes in HTML container, %2$s - singular or plural form of 'minute', %3$s - number of seconds in HTML container, %4$s - singular or plural form of '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>
<?php echo $congrats_popup_footer; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</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( 'Do you need more help?', 'wpforms-lite' ); ?></h3>
<p>
<?php
echo wp_kses(
sprintf(
/* translators: %1$d - number of minutes, %2$s - singular or plural form of 'minute'. */
__( 'We\'re sorry that it took longer than %1$d %2$s to publish your form. Our goal is to create the most beginner-friendly WordPress form plugin.<br>How can we help you to be successful? Please send us your feedback. Our support team is standing by to help.', 'wpforms-lite' ),
absint( $minutes ),
_n( 'minute', 'minutes', absint( $minutes ), 'wpforms-lite' )
),
[ 'br' => [] ]
);
?>
</p>
<textarea class="wpforms-challenge-contact-message"></textarea>
<?php if ( ! wpforms()->is_pro() ) { ?>
<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>
<?php } ?>
<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>

View File

@@ -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 - singular or plural form of 'minute'. */
__( 'Complete the <b>WPForms Challenge</b> and get up and running within %1$d&nbsp;%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"><span></span><?php esc_html_e( 'Name Your Form', 'wpforms-lite' ); ?></li>
<li class="wpforms-challenge-step2-item"><span></span><?php esc_html_e( 'Select a Template', 'wpforms-lite' ); ?></li>
<li class="wpforms-challenge-step3-item"><span></span><?php esc_html_e( 'Add Fields to Your Form', 'wpforms-lite' ); ?></li>
<li class="wpforms-challenge-step4-item"><span></span><?php esc_html_e( 'Check Notifications', 'wpforms-lite' ); ?></li>
<li class="wpforms-challenge-step5-item"><span></span><?php esc_html_e( 'Embed in a Page', 'wpforms-lite' ); ?></li>
<li class="wpforms-challenge-completed"><span></span><?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' ) ); ?>" 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>

View File

@@ -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' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
<?php esc_html_e( 'Start the WPForms Challenge', 'wpforms-lite' ); ?>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Overview chart template.
*
* @since 1.8.2
*
* @var string $id Identifier to outline the context of where the chart will be used. i.e., "entries".
* @var array $notice Container variable for holding placeholder heading and description text that is displayed when the chart has no stats to show.
* @var string $total_items Total number of items (entries) as a placeholder text to be shown.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
?>
<div class="wpforms-overview-chart">
<div class="spinner"></div>
<div class="wpforms-overview-chart-notice wpforms-hide">
<div class="wpforms-overview-chart-notice-content">
<h2><?php echo esc_html( $notice['heading'] ); ?></h2>
<p><?php echo esc_html( $notice['description'] ); ?></p>
</div>
</div>
<?php if ( ! empty( $total_items ) ) : ?>
<h3 class="wpforms-overview-chart-heading">
<?php echo esc_html( $total_items ); ?>:
<span class="wpforms-overview-chart-total-items">0</span>
</h3>
<?php endif; ?>
<div class="wpforms-overview-chart-canvas">
<canvas id="wpforms-<?php echo esc_attr( $id ); ?>-overview-canvas" width="400" height="300"></canvas>
</div>
</div>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,72 @@
<?php
/**
* Popover (range) datepicker template.
*
* @since 1.8.2
*
* @var string $action The URL that processes the form submission. Ideally points out to the current admin page URL.
* @var string $id Identifier to outline the context of where the datepicker will be used. e.g., "entries".
* @var string $chosen_filter Currently selected filter or date range values. Last "X" days, or i.e. Feb 8, 2023 - Mar 9, 2023.
* @var array $choices A list of date filter options for the datepicker module.
* @var string $value Assigned timespan dates.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// An array of allowed HTML elements and attributes for the datepicker choices.
$choices_allowed_html = [
'li' => [],
'label' => [],
'input' => [
'type' => [],
'name' => [],
'value' => [],
'checked' => [],
'aria-hidden' => [],
],
];
?>
<form class="wpforms-overview-top-bar-filter-form" method="get" action="<?php echo esc_url( $action ); ?>">
<input type="hidden" name="page" value="wpforms-<?php echo esc_attr( $id ); ?>" />
<?php
// Output hidden fields for the current orderby and order values.
// phpcs:disable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
if ( ! empty( $_REQUEST['orderby'] ) ) {
echo '<input type="hidden" name="orderby" value="' . esc_attr( wp_unslash( $_REQUEST['orderby'] ) ) . '" />';
}
if ( ! empty( $_REQUEST['order'] ) ) {
echo '<input type="hidden" name="order" value="' . esc_attr( wp_unslash( $_REQUEST['order'] ) ) . '" />';
}
// phpcs:enable WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
?>
<button id="wpforms-datepicker-popover-button" class="button" role="button" aria-haspopup="true">
<?php echo esc_html( $chosen_filter ); ?>
</button>
<div class="wpforms-datepicker-popover">
<div class="wpforms-datepicker-popover-content">
<ul class="wpforms-datepicker-choices" aria-label="<?php esc_attr_e( 'Datepicker options', 'wpforms-lite' ); ?>" aria-orientation="vertical">
<?php echo wp_kses( '<li>' . implode( '</li><li>', (array) $choices ) . '</li>', $choices_allowed_html ); ?>
</ul>
<div class="wpforms-datepicker-calendar">
<input
type="text"
name="date"
tabindex="-1"
aria-hidden="true"
id="wpforms-<?php echo esc_attr( $id ); ?>-overview-datepicker"
value="<?php echo esc_attr( $value ); ?>"
>
</div>
<div class="wpforms-datepicker-action">
<button class="button-secondary" type="reset"><?php esc_html_e( 'Cancel', 'wpforms-lite' ); ?></button>
<button class="button-primary wpforms-btn-blue" type="submit"><?php esc_html_e( 'Apply', 'wpforms-lite' ); ?></button>
</div>
</div>
</div>
</form>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,59 @@
<?php
/**
* Dashboard widget settings gear icon template.
*
* @since 1.7.4
*
* @var int $graph_style Graph style, value 1 for Bar style, 2 for Line style.
* @var int $color_scheme Color scheme, value 1 for WPForms color scheme, 2 for for WordPress color scheme.
* @var bool $enabled If form fields should be enabled.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$disabled = ! $enabled;
?>
<div class="wpforms-dash-widget-settings-container">
<button id="wpforms-dash-widget-settings-button" class="wpforms-dash-widget-settings-button button" type="button">
<span class="dashicons dashicons-admin-generic"></span>
</button>
<div class="wpforms-dash-widget-settings-menu <?php echo $disabled ? 'disabled' : ''; ?>">
<?php if ( isset( $graph_style ) ) : ?>
<div class="wpforms-dash-widget-settings-menu-wrap">
<h4><?php esc_html_e( 'Graph Style', 'wpforms-lite' ); ?></h4>
<div>
<div class="wpforms-dash-widget-settings-menu-item">
<input type="radio" id="wpforms-dash-widget-settings-style-bar" name="wpforms-style" value="1" <?php checked( '1', $graph_style ); ?> <?php disabled( $disabled ); ?>>
<label for="wpforms-dash-widget-settings-style-bar" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Bar', 'wpforms-lite' ); ?></label>
</div>
<div class="wpforms-dash-widget-settings-menu-item">
<input type="radio" id="wpforms-dash-widget-settings-style-line" name="wpforms-style" value="2" <?php checked( '2', $graph_style ); ?> <?php disabled( $disabled ); ?>>
<label for="wpforms-dash-widget-settings-style-line" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Line', 'wpforms-lite' ); ?></label>
</div>
</div>
</div>
<?php endif; ?>
<?php if ( isset( $color_scheme ) ) : ?>
<div class="wpforms-dash-widget-settings-menu-wrap color-scheme">
<h4><?php esc_html_e( 'Color Scheme', 'wpforms-lite' ); ?></h4>
<div>
<div class="wpforms-dash-widget-settings-menu-item">
<input type="radio" id="wpforms-dash-widget-settings-color-wpforms" name="wpforms-color" value="1" <?php checked( '1', $color_scheme ); ?> <?php disabled( $disabled ); ?>>
<label for="wpforms-dash-widget-settings-color-wpforms" <?php disabled( $disabled ); ?>><?php esc_html_e( 'WPForms', 'wpforms-lite' ); ?></label>
</div>
<div class="wpforms-dash-widget-settings-menu-item">
<input type="radio" id="wpforms-dash-widget-settings-color-wp" name="wpforms-color" value="2" <?php checked( '2', $color_scheme ); ?> <?php disabled( $disabled ); ?>>
<label for="wpforms-dash-widget-settings-color-wp" <?php disabled( $disabled ); ?>><?php esc_html_e( 'WordPress', 'wpforms-lite' ); ?></label>
</div>
</div>
</div>
<?php endif; ?>
<button type="button" class="button wpforms-dash-widget-settings-menu-save" <?php disabled( $disabled ); ?>><?php esc_html_e( 'Save Changes', 'wpforms-lite' ); ?></button>
</div>
</div>

View File

@@ -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 havent 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' => [],
],
]
),
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/creating-first-form/', 'forms-overview', 'Create Your First Form Documentation' ) )
);
?>
</p>
</div>

View File

@@ -0,0 +1,55 @@
<?php
/**
* Get Started HTML template.
*
* @since 1.8.2
*
* @var string $message An abort message to display.
* @var string $version Determine whether is pro or lite version.
* @var string $cta_url URL for the "Get Started" CTA button.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$allowed_html = [
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
'strong' => [],
];
?>
<div class="wpforms-admin-empty-state-container wpforms-admin-no-payments">
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
<h4><?php esc_html_e( 'Ready to start collecting payments from your customers?', 'wpforms-lite' ); ?></h4>
<p><?php echo wp_kses( $message, $allowed_html ); ?></p>
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . "assets/images/empty-states/payments/get-started-$version.svg" ); ?>" alt="">
<?php if ( wpforms_current_user_can( 'create_forms' ) ) : ?>
<a href="<?php echo esc_url( $cta_url ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
<?php esc_html_e( 'Get Started', 'wpforms-lite' ); ?>
</a>
<?php endif; ?>
<p class="wpforms-admin-no-forms-footer">
<?php
printf(
wp_kses( /* translators: %s - URL to the comprehensive guide. */
__( 'Need some help? Check out our <a href="%s" rel="noopener noreferrer" target="_blank">comprehensive guide.</a>', 'wpforms-lite' ),
$allowed_html
),
esc_url(
wpforms_utm_link(
'https://wpforms.com/docs/using-stripe-with-wpforms-lite/',
'Payments Dashboard',
'Splash - Manage Payments Documentation'
)
)
);
?>
</p>
</div>

View File

@@ -0,0 +1,50 @@
<?php
/**
* No Payments HTML template.
*
* @since 1.8.2
*
* @var string $cta_url URL for the "Go To All Forms" CTA button.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wpforms-admin-empty-state-container wpforms-admin-no-payments">
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
<h4><?php esc_html_e( "It looks like you haven't received any payments yet.", 'wpforms-lite' ); ?></h4>
<p><?php esc_html_e( "Your payment gateway has been configured and you're ready to go.", 'wpforms-lite' ); ?></p>
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/payments/no-payments.svg' ); ?>" alt="" style="max-width: 314px;">
<?php if ( wpforms_current_user_can( 'view_forms' ) ) : ?>
<a href="<?php echo esc_url( $cta_url ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
<?php esc_html_e( 'Go To All Forms', 'wpforms-lite' ); ?>
</a>
<?php endif; ?>
<p class="wpforms-admin-no-forms-footer">
<?php
printf(
wp_kses( /* translators: %s - URL to the comprehensive guide. */
__( 'Need some help? Check out our <a href="%s" rel="noopener noreferrer" target="_blank">comprehensive guide.</a>', 'wpforms-lite' ),
[
'a' => [
'href' => [],
'rel' => [],
'target' => [],
],
]
),
esc_url(
wpforms_utm_link(
'https://wpforms.com/docs/using-stripe-with-wpforms-lite/',
'Payments Dashboard',
'Activated - Manage Payments Documentation'
)
)
);
?>
</p>
</div>

View File

@@ -0,0 +1,95 @@
<?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( 'Lets 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
$allowed_tags = [
'a' => [
'href' => [],
'class' => [],
],
];
if ( ! empty( $args['user_can_edit_pages'] ) ) {
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' ),
$allowed_tags
),
'tutorial-toggle wpforms-admin-popup-toggle',
'shortcode-toggle wpforms-admin-popup-toggle'
);
} else {
printf(
wp_kses( /* translators: %1$s - video tutorial toggle CSS classes, %2$s - shortcode toggle CSS classes. */
__( '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' ),
$allowed_tags
),
'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>

View File

@@ -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>

View File

@@ -0,0 +1,42 @@
<?php
/**
* Bulk Edit Tags on forms overview page.
*
* @since 1.7.5
*
* @var int $columns Columns count.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<tr class="wpforms-bulk-edit-tags wpforms-row-form wpforms-hidden">
<td colspan="<?php echo absint( $columns ); ?>">
<div class="wpforms-fbox">
<div class="wpforms-edit-forms">
<select multiple size="6"></select>
</div>
<div class="wpforms-edit-tags">
<select multiple size="1"></select>
</div>
</div>
</td>
</tr>
<tr class="wpforms-bulk-edit-tags wpforms-row-buttons wpforms-hidden">
<td colspan="<?php echo absint( $columns ); ?>">
<button type="button" class="button wpforms-bulk-edit-tags-cancel">
<?php esc_html_e( 'Cancel', 'wpforms-lite' ); ?>
</button>
<button type="button" class="button button-primary wpforms-bulk-edit-tags-save">
<i class="wpforms-loading-spinner wpforms-loading-white wpforms-loading-inline wpforms-hidden"></i>
<?php esc_html_e( 'Update', 'wpforms-lite' ); ?>
</button>
</td>
</tr>
<tr class="wpforms-bulk-edit-tags wpforms-row-message wpforms-hidden">
<td colspan="<?php echo absint( $columns ); ?>">
<div class="wpforms-message"></div>
</td>
</tr>

View File

@@ -0,0 +1,27 @@
<?php
/**
* Search box on forms overview page.
*
* @since 1.7.2
*
* @var string $term_input_id Term input id.
* @var string $text Button text.
* @var string $search_term Current search term.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<p class="search-box wpforms-forms-search-box">
<label class="screen-reader-text" for="<?php echo esc_attr( $term_input_id ); ?>"><?php echo esc_html( $text ); ?>:</label>
<input type="search"
name="search[term]"
class="wpforms-forms-search-box-term"
value="<?php echo esc_attr( $search_term ); ?>"
id="<?php echo esc_attr( $term_input_id ); ?>">
<button type="submit" class="button"><?php echo esc_html( $text ); ?></button>
</p>

View File

@@ -0,0 +1,26 @@
<?php
/**
* Search reset block on forms overview page.
*
* @since 1.7.2
*
* @var string $message Message to display inside the Search reset block.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-reset-filter">
<?php
echo wp_kses(
$message,
[
'strong' => [],
'em' => [],
]
);
?>
<i class="reset fa fa-times-circle" title="<?php esc_html_e( 'Clear search and return to All Forms', 'wpforms-lite' ); ?>"></i>
</div>

View File

@@ -0,0 +1,50 @@
<?php
/**
* Admin Notifications template.
*
* @since 1.7.5
*
* @var array $notifications
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-notifications">
<div class="wpforms-notifications-header">
<div class="wpforms-notifications-bell">
<svg width="15" height="17" aria-hidden="true">
<path d="M7.68 16.56c1.14 0 2.04-.95 2.04-2.17h-4.1c0 1.22.9 2.17 2.06 2.17Zm6.96-5.06c-.62-.71-1.81-1.76-1.81-5.26A5.32 5.32 0 0 0 8.69.97H6.65A5.32 5.32 0 0 0 2.5 6.24c0 3.5-1.2 4.55-1.81 5.26a.9.9 0 0 0-.26.72c0 .57.39 1.08 1.04 1.08h12.38c.65 0 1.04-.5 1.07-1.08 0-.24-.1-.51-.3-.72Z"/>
</svg>
<span class="wpforms-notifications-circle"></span>
</div>
<div class="wpforms-notifications-title"><?php esc_html_e( 'Notifications', 'wpforms-lite' ); ?></div>
</div>
<div class="wpforms-notifications-body">
<a class="dismiss" title="<?php esc_attr_e( 'Dismiss this message', 'wpforms-lite' ); ?>">
<svg viewBox="0 0 512 512" aria-hidden="true">
<path d="M256 8a248 248 0 1 0 0 496 248 248 0 0 0 0-496zm122 313c4 5 4 12 0 17l-40 40c-5 4-12 4-17 0l-65-66-65 66c-5 4-12 4-17 0l-40-40c-4-5-4-12 0-17l66-65-66-65c-4-5-4-12 0-17l40-40c5-4 12-4 17 0l65 66 65-66c5-4 12-4 17 0l40 40c4 5 4 12 0 17l-66 65 66 65z"/>
</svg>
</a>
<?php if ( (int) $notifications['count'] > 1 ) : ?>
<div class="navigation">
<a class="prev">
<span class="screen-reader-text"><?php esc_attr_e( 'Previous message', 'wpforms-lite' ); ?></span>
<span aria-hidden="true">&lsaquo;</span>
</a>
<a class="next">
<span class="screen-reader-text"><?php esc_attr_e( 'Next message', 'wpforms-lite' ); ?></span>
<span aria-hidden="true">&rsaquo;</span>
</a>
</div>
<?php endif; ?>
<div class="wpforms-notifications-messages">
<?php echo $notifications['html']; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
</div>
</div>

View File

@@ -0,0 +1,139 @@
<?php
/**
* Constant Contact page template.
*
* @var string $sign_up_link Sign up link.
* @var string $wpbeginners_guide_link Link to a WPBeginners blog post.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wrap wpforms-admin-wrap wpforms-constant-contact-wrap">
<h1 class="page-title"><?php esc_html_e( 'Constant Contact', 'wpforms-lite' ); ?></h1>
<div class="wpforms-admin-content">
<h2><?php esc_html_e( 'Grow Your Website with WPForms + Email Marketing', 'wpforms-lite' ); ?></h2>
<p><?php esc_html_e( 'Wondering if email marketing is really worth your time?', 'wpforms-lite' ); ?></p>
<p>
<?php
echo wp_kses(
__( 'Email is hands-down the most effective way to nurture leads and turn them into customers, with a return on investment (ROI) of <strong>$44 back for every $1 spent</strong> according to DMA.', 'wpforms-lite' ),
[ 'strong' => [] ]
);
?>
</p>
<p><?php esc_html_e( 'Here are 3 big reasons why every smart business in the world has an email list:', 'wpforms-lite' ); ?></p>
<a href="<?php echo esc_url( $sign_up_link ); ?>" target="_blank" rel="noopener noreferrer" class="logo-link">
<?php
printf(
'<img src="%s" srcset="%s 2x" alt="" class="logo">',
esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-logo.png' ),
esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-logo@2x.png' )
);
?>
</a>
<ol class="reasons">
<li>
<?php
echo wp_kses(
__( '<strong>Email is still #1</strong> - At least 91% of consumers check their email on a daily basis. You get direct access to your subscribers, without having to play by social media\'s rules and algorithms.', 'wpforms-lite' ),
[ 'strong' => [] ]
);
?>
</li>
<li>
<?php
echo wp_kses(
__( '<strong>You own your email list</strong> - Unlike with social media, your list is your property and no one can revoke your access to it.', 'wpforms-lite' ),
[ 'strong' => [] ]
);
?>
</li>
<li>
<?php
echo wp_kses(
__( '<strong>Email converts</strong> - People who buy products marketed through email spend 138% more than those who don\'t receive email offers.', 'wpforms-lite' ),
[ 'strong' => [] ]
);
?>
</li>
</ol>
<p><?php esc_html_e( 'That\'s why it\'s crucial to start collecting email addresses and building your list as soon as possible.', 'wpforms-lite' ); ?></p>
<p>
<?php
echo sprintf(
wp_kses( /* translators: %s - WPBeginners.com Guide to Email Lists URL. */
__( 'For more details, see this guide on <a href="%s" target="_blank" rel="noopener noreferrer">why building your email list is so important</a>.', 'wpforms-lite' ),
[
'a' => [
'href' => [],
'target' => [],
'rel' => [],
],
]
),
esc_url( $wpbeginners_guide_link )
);
?>
</p>
<hr/>
<h2><?php esc_html_e( 'You\'ve Already Started - Here\'s the Next Step (It\'s Easy)', 'wpforms-lite' ); ?></h2>
<p><?php esc_html_e( 'Here are the 3 things you need to build an email list:', 'wpforms-lite' ); ?></p>
<ol>
<li><?php esc_html_e( 'A Website or Blog', 'wpforms-lite' ); ?> <span class="dashicons dashicons-yes"></span></li>
<li><?php esc_html_e( 'High-Converting Form Builder', 'wpforms-lite' ); ?> <span class="dashicons dashicons-yes"></span></li>
<li class="bold-marker"><strong><?php esc_html_e( 'The Best Email Marketing Service', 'wpforms-lite' ); ?></strong></li>
</ol>
<p><?php esc_html_e( 'With a powerful email marketing service like Constant Contact, you can instantly send out mass notifications and beautifully designed newsletters to engage your subscribers.', 'wpforms-lite' ); ?></p>
<p>
<a href="<?php echo esc_url( $sign_up_link ); ?>" class="button" target="_blank" rel="noopener noreferrer">
<?php esc_html_e( 'Get Started with Constant Contact for Free', 'wpforms-lite' ); ?>
</a>
</p>
<p><?php esc_html_e( 'WPForms plugin makes it fast and easy to capture all kinds of visitor information right from your WordPress site - even if you don\'t have a Constant Contact account.', 'wpforms-lite' ); ?></p>
<p><?php esc_html_e( 'But when you combine WPForms with Constant Contact, you can nurture your contacts and engage with them even after they leave your website. When you use Constant Contact + WPForms together, you can:', 'wpforms-lite' ); ?></p>
<ul>
<li><?php esc_html_e( 'Seamlessly add new contacts to your email list', 'wpforms-lite' ); ?></li>
<li><?php esc_html_e( 'Create and send professional email newsletters', 'wpforms-lite' ); ?></li>
<li><?php esc_html_e( 'Get expert marketing and support', 'wpforms-lite' ); ?></li>
</ul>
<p>
<a href="<?php echo esc_url( $sign_up_link ); ?>" target="_blank" rel="noopener noreferrer">
<strong><?php esc_html_e( 'Try Constant Contact Today', 'wpforms-lite' ); ?></strong>
</a>
</p>
<hr/>
<h2><?php esc_html_e( 'WPForms Makes List Building Easy', 'wpforms-lite' ); ?></h2>
<p><?php esc_html_e( 'When creating WPForms, our goal was to make a WordPress forms plugin that\'s both EASY and POWERFUL.', 'wpforms-lite' ); ?></p>
<p><?php esc_html_e( 'We made the form creation process extremely intuitive, so you can create a form to start capturing emails within 5 minutes or less.', 'wpforms-lite' ); ?></p>
<p><?php esc_html_e( 'Here\'s how it works.', 'wpforms-lite' ); ?></p>
<div class="steps">
<?php
foreach (
[
esc_html__( 'Select from our pre-built templates, or create a form from scratch.', 'wpforms-lite' ),
esc_html__( 'Drag and drop any field you want onto your signup form.', 'wpforms-lite' ),
esc_html__( 'Connect your Constant Contact email list.', 'wpforms-lite' ),
esc_html__( 'Add your new form to any post, page, or sidebar.', 'wpforms-lite' ),
] as $index => $item
) {
++ $index;
?>
<figure class="step">
<?php
printf(
'<div class="step-image-wrapper"><img src="%1$s" alt=""><a href="%1$s" class="hover" data-lity></a></div><figcaption>%2$d. %3$s</figcaption>',
esc_url( WPFORMS_PLUGIN_URL . 'assets/images/constant-contact/cc-about-step' . $index . '.png' ),
absint( $index ),
esc_html( $item )
);
?>
</figure>
<?php } ?>
</div>
<p><?php esc_html_e( 'It doesn\'t matter what kind of business you run, what kind of website you have, or what industry you are in - you need to start building your email list today.', 'wpforms-lite' ); ?></p>
<p><strong><?php esc_html_e( 'With Constant Contact + WPForms, growing your list is easy.', 'wpforms-lite' ); ?></strong></p>
</div>
</div>

View File

@@ -0,0 +1,27 @@
<?php
/**
* Display a hidden field for the purpose of form submission.
*
* @since 1.8.4
*
* @var string $name Name of the hidden field.
* @var array $value Value of the hidden field.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// Leave early if no field name or value is provided.
if ( empty( $name ) || empty( $value ) ) {
return;
}
?>
<input
type="hidden"
name="<?php echo esc_attr( $name ); ?>"
value="<?php echo esc_attr( $value ); ?>"
/>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,22 @@
<?php
/**
* Payments Overview Mode Toggle template.
*
* @since 1.8.2
*
* @var string $mode Current mode (live or test).
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
?>
<span id="wpforms-payments-overview-mode-toggle" class="wpforms-toggle-control">
<input type="checkbox" id="wpforms-payments-mode-toggle" name="wpforms-payments-mode-toggle" value="1" <?php checked( $mode, 'test' ); ?>>
<label class="wpforms-toggle-control-icon" for="wpforms-payments-mode-toggle"></label>
<label
for="wpforms-payments-mode-toggle"
aria-label="<?php esc_attr_e( 'Toggle between live and test data', 'wpforms-lite' ); ?>"
>
<?php esc_html_e( 'Test Data', 'wpforms-lite' ); ?>
</label>
</span>

View File

@@ -0,0 +1,54 @@
<?php
/**
* Payments overview reports (summary metrics).
* i.e. Total Payments, Total Sales, etc.
*
* @since 1.8.2
*
* @var string $current The active stat card upon page load.
* @var array $statcards Payments report stat cards (clickable list-items).
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// Bail early, if stat cards are empty or not assigned.
if ( empty( $statcards ) ) {
return;
}
?>
<div role="menu" class="wpforms-payments-overview-reports" aria-orientation="horizontal" aria-label="<?php esc_attr_e( 'Payments report indicators', 'wpforms-lite' ); ?>" aria-describedby="wpforms-payments-overview-reports-helptext">
<p id="wpforms-payments-overview-reports-helptext" class="screen-reader-text">
<?php esc_html_e( 'List of data points available for filtering. Click a data point for a detailed report.', 'wpforms-lite' ); ?>
</p>
<ul class="wpforms-payments-overview-reports-legend">
<?php
foreach ( $statcards as $chart => $attributes ) :
// Skip stat card, if it's not supposed to be displayed.
if ( isset( $attributes['condition'] ) && ! $attributes['condition'] ) {
continue;
}
$button_classes = ! empty( $attributes['button_classes'] ) ? (array) $attributes['button_classes'] : [];
// To highlight the stats being displayed in the chart at the moment, identify the selected stat card.
if ( $chart === $current ) {
$button_classes[] = 'is-selected';
}
?>
<li class="wpforms-payments-overview-reports-statcard">
<button class="<?php echo wpforms_sanitize_classes( $button_classes, true ); ?>" data-stats="<?php echo esc_attr( $chart ); ?>">
<span class="statcard-label"><?php echo esc_html( $attributes['label'] ); ?></span>
<span class="statcard-value"><?php echo ! empty( $attributes['value'] ) ? esc_html( $attributes['value'] ) : '0'; ?></span>
<span class="statcard-delta" role="presentation" title="<?php esc_attr_e( 'Comparison to previous period', 'wpforms-lite' ); ?>"><?php echo ! empty( $attributes['delta'] ) ? (int) $attributes['delta'] : ''; ?></span>
</button>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,65 @@
<?php
/**
* Display reset filter notice above the payment table.
*
* @since 1.8.4
*
* @var string $total Total number of payments.
* @var array $applied_filters Applied filters.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// Leave early if no filters are applied.
if ( empty( $applied_filters ) ) {
return;
}
?>
<div id="wpforms-reset-filter" class="wpforms-reset-filter">
<?php
printf(
wp_kses( /* translators: %d - number of payments found. */
_n(
'Found <strong>%d payment</strong>',
'Found <strong>%d payments</strong>',
$total,
'wpforms-lite'
),
[
'strong' => [],
]
),
(int) $total
);
$is_more_than_one_filter = count( $applied_filters ) > 1;
$last_applied_filter = end( $applied_filters );
// Display applied filters in a safe way.
foreach ( $applied_filters as $filter ) :
// Skip empty filters with no results.
if ( empty( $filter['results'] ) ) {
continue;
}
echo wp_kses( $filter['results'], [ 'em' => [] ] );
?>
<a
class="reset fa fa-times-circle"
href="<?php echo esc_url( $filter['reset_url'] ); ?>"
title="<?php esc_attr_e( 'Reset search', 'wpforms-lite' ); ?>"
></a>
<?php
// Add "and" after the first filter if there are more than one and not the last one.
if ( $is_more_than_one_filter && $filter !== $last_applied_filter ) {
esc_html_e( 'and', 'wpforms-lite' );
}
endforeach;
?>
</div>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,47 @@
<?php
/**
* Single Payment page - Advanced details template.
*
* @since 1.8.2
*
* @var array $details_list Details list.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-payment-advanced-info" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php echo esc_html__( 'Advanced Details', 'wpforms-lite' ); ?></span>
</h2>
</div>
<div class="inside">
<?php
foreach ( $details_list as $item ) :
?>
<div class="wpforms-payment-advanced-item" >
<p class="wpforms-payment-advanced-item-label">
<?php echo esc_html( $item['label'] ); ?>
</p>
<div class="wpforms-payment-advanced-item-value">
<?php if ( isset( $item['link'] ) ) : ?>
<a href="<?php echo esc_url( $item['link'] ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-link">
<?php endif; ?>
<?php echo wp_kses_post( nl2br( make_clickable( $item['value'] ) ) ); ?>
<?php if ( isset( $item['link'] ) ) : ?>
</a>
<?php endif; ?>
</div>
</div>
<?php endforeach; ?>
</div>
</div>

View File

@@ -0,0 +1,85 @@
<?php
/**
* Single Payment page - Details metabox.
*
* @since 1.8.2
*
* @var object $payment Payment object.
* @var string $submitted Submitted date.
* @var string $gateway_name Gateway name.
* @var string $gateway_link Link to gateway payment details.
* @var string $form_edit_link Link to the builder.
* @var string $delete_link Link for a payment delete action.
* @var bool $test_mode Is payment in test mode.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-payment-details" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php esc_html_e( 'Details', 'wpforms-lite' ); ?></span>
</h2>
</div>
<div class="inside">
<div class="wpforms-payment-details-meta">
<p class="wpforms-payment-date">
<span class="dashicons dashicons-calendar"></span>
<?php esc_html_e( 'Submitted:', 'wpforms-lite' ); ?>
<strong class="date-time">
<?php echo esc_html( $submitted ); ?>
</strong>
</p>
<p class="wpforms-payment-gateway">
<span class="dashicons dashicons-store"></span>
<?php esc_html_e( 'Gateway:', 'wpforms-lite' ); ?>
<a href="<?php echo esc_url( $gateway_link ); ?>" class="wpforms-link" target="_blank" rel="noopener noreferrer"><?php echo esc_html( $gateway_name ); ?></a>
</p>
<p class="wpforms-payment-form">
<span class="dashicons dashicons-wpforms"></span>
<?php
esc_html_e( 'Form:', 'wpforms-lite' );
// Output the form edit link, if available.
// The output could be a link or a span, depending on the availability of the form.
echo wp_kses(
$form_edit_link,
[
'a' => [
'href' => [],
'class' => [],
],
'span' => [ 'class' => [] ],
]
);
?>
</p>
<?php if ( $test_mode ) : ?>
<p class="wpforms-payment-test-mode">
<span class="dashicons dashicons-marker"></span>
<?php esc_html_e( 'Payment Mode:', 'wpforms-lite' ); ?>
<strong><?php esc_html_e( 'Test', 'wpforms-lite' ); ?></strong>
</p>
<?php endif; ?>
</div>
<div class="wpforms-payment-actions">
<div class="status"></div>
<div class="actions">
<a class="button button-large button-delete" href="<?php echo esc_url( $delete_link ); ?>">
<?php esc_html_e( 'Delete', 'wpforms-lite' ); ?>
</a>
</div>
<div class="clear"></div>
</div>
</div>
</div>

View File

@@ -0,0 +1,59 @@
<?php
/**
* Single Payment page - Payment details template for single and subscription data.
*
* @since 1.8.2
*
* @var array $entry_fields Entry object.
* @var array $form_data Form data.
* @var int $entry_id Entry ID.
* @var string $entry_id_title Entry title id.
* @var string $entry_url Entry page URL.
* @var string $entry_status Entry status.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-payment-entry-fields" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php echo esc_html__( 'Entry Summary', 'wpforms-lite' ); ?></span>
<?php if ( ! empty( $entry_id_title ) ) : ?>
<span class="wpforms-payment-entry-id"><?php echo esc_html( $entry_id_title ); ?></span>
<?php endif; ?>
</h2>
</div>
<div class="inside">
<?php foreach ( $entry_fields as $key => $field ) : ?>
<div class="wpforms-payment-entry-field <?php echo wpforms_sanitize_classes( $field['field_class'] ); ?>" >
<p class="wpforms-payment-entry-field-name">
<?php echo esc_html( wp_strip_all_tags( $field['field_name'] ) ); ?>
</p>
<div class="wpforms-payment-entry-field-value">
<?php echo wp_kses_post( nl2br( make_clickable( $field['field_value'] ) ) ); ?>
</div>
</div>
<?php endforeach; ?>
</div>
<?php if ( $entry_id_title && $entry_status !== 'trash' ) : ?>
<div class="wpforms-payment-actions">
<div class="status"></div>
<div class="actions">
<a class="button" href="<?php echo esc_url( $entry_url ); ?>">
<?php echo esc_html__( 'View Entry', 'wpforms-lite' ); ?>
</a>
<div class="clear"></div>
</div>
</div>
<?php endif; ?>
</div>

View File

@@ -0,0 +1,59 @@
<?php
/**
* Single Payment page - Heading navigation.
*
* @since 1.8.2
*
* @var int $count Count of all payments.
* @var int $prev_count Count of previous payments.
* @var string $prev_url Previous payment URL.
* @var string $prev_class Previous payment class.
* @var string $next_url Next payment URL.
* @var string $next_class Next payment class.
* @var string $overview_url Payments Overview page URL.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<a href="<?php echo esc_url( $overview_url ); ?>" class="page-title-action wpforms-btn wpforms-btn-orange" data-action="back">
<svg viewBox="0 0 16 14" class="page-title-action-icon">
<path d="M16 6v2H4l4 4-1 2-7-7 7-7 1 2-4 4h12Z"/>
</svg>
<span class="page-title-action-text"><?php esc_html_e( 'Back to All Payments', 'wpforms-lite' ); ?></span>
</a>
<div class="wpforms-admin-single-navigation">
<div class="wpforms-admin-single-navigation-text">
<?php
printf( /* translators: %1$d - current number of payment, %2$d - total number of payments. */
esc_html__( 'Payment %1$d of %2$d', 'wpforms-lite' ),
(int) $prev_count + 1,
(int) $count
);
?>
</div>
<div class="wpforms-admin-single-navigation-buttons">
<a
href="<?php echo esc_url( $prev_url ); ?>"
title="<?php esc_attr_e( 'Previous payment', 'wpforms-lite' ); ?>"
id="wpforms-admin-single-navigation-prev-link"
class="wpforms-btn-grey <?php echo sanitize_html_class( $prev_class ); ?>">
<span class="dashicons dashicons-arrow-left-alt2"></span>
</a>
<span
class="wpforms-admin-single-navigation-current"
title="<?php esc_attr_e( 'Current payment', 'wpforms-lite' ); ?>">
<?php echo (int) $prev_count + 1; ?>
</span>
<a
href="<?php echo esc_url( $next_url ); ?>"
title="<?php esc_attr_e( 'Next payment', 'wpforms-lite' ); ?>"
id="wpforms-admin-single-navigation-next-link"
class="wpforms-btn-grey <?php echo sanitize_html_class( $next_class ); ?>">
<span class="dashicons dashicons-arrow-right-alt2"></span>
</a>
</div>
</div>

View File

@@ -0,0 +1,56 @@
<?php
/**
* Single Payment page - Log metabox.
*
* @since 1.8.2
*
* @var array $logs Logs.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-payment-logs" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php esc_html_e( 'Log', 'wpforms-lite' ); ?></span>
</h2>
</div>
<div class="inside">
<?php if ( empty( $logs ) ) : ?>
<span class="wpforms-payment-no-logs"><?php esc_html_e( 'No Logs', 'wpforms-lite' ); ?></span>
<?php endif; ?>
<?php
foreach ( $logs as $log ) :
$item = json_decode( $log['value'], false );
$date_time = sprintf( /* translators: %1$s - date, %2$s - time when item was created, e.g. "Oct 22, 2022 at 11:11 am". */
__( '%1$s at %2$s', 'wpforms-lite' ),
wpforms_date_format( $item->date, 'M j, Y', true ),
wpforms_time_format( $item->date, '', true )
);
if ( empty( $item->value ) ) {
continue;
}
?>
<div class="wpforms-payment-log-item" >
<span class="wpforms-payment-log-item-value">
<?php echo esc_html( $item->value ); ?>
</span>
<span class="wpforms-payment-log-item-date">
<?php echo esc_html( $date_time ); ?>
</span>
</div>
<?php endforeach; ?>
</div>
</div>

View File

@@ -0,0 +1,27 @@
<?php
/**
* No template payment HTML template.
*
* @since 1.8.2
*
* @var string $message An abort message to display.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wpforms-admin-empty-state-container wpforms-admin-no-payments">
<h2 class="waving-hand-emoji"><?php esc_html_e( 'Hi there!', 'wpforms-lite' ); ?></h2>
<p><?php echo esc_html( $message ); ?></p>
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/empty-states/payments/no-payments.svg' ); ?>" alt="" style="max-width: 314px;">
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-payments' ) ); ?>" class="wpforms-btn wpforms-btn-lg wpforms-btn-orange">
<?php esc_html_e( 'Back to All Payments', 'wpforms-lite' ); ?>
</a>
</div>

View File

@@ -0,0 +1,83 @@
<?php
/**
* Single Payment page - Payment details template for single and subscription data.
*
* @since 1.8.2
*
* @var string $title Block title.
* @var string $payment_id Payment id.
* @var string $gateway_link Link to gateway payment details.
* @var string $gateway_text Gateway link text.
* @var string $gateway_name Gateway name.
* @var string $gateway_action_text Gateway action link text.
* @var string $gateway_action_link Gateway action link.
* @var string $gateway_action_slug Gateway action slug.
* @var int $payment_id_raw Payment id raw.
* @var string $status Payment or Subscription status.
* @var string $status_label Payment or Subscription status label.
* @var bool $disabled Is gateway action disabled.
* @var array $stat_cards Stat cards to display.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div id="wpforms-payment-info" class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php echo esc_html( $title ); ?></span>
<?php if ( isset( $payment_id ) ) : ?>
<span class="wpforms-payment-id"><?php echo esc_html( $payment_id ); ?></span>
<?php endif; ?>
</h2>
</div>
<div class="inside">
<ul class="wpforms-payments-details-list">
<?php foreach ( $stat_cards as $key => $stat_card ) : ?>
<li class="wpforms-payments-details-stat-card">
<button class="<?php echo wpforms_sanitize_classes( $stat_card['button_classes'], true ); ?>" >
<span class="stat-card-label"><?php echo esc_html( $stat_card['label'] ); ?></span>
<span class="stat-card-value">
<?php echo ! empty( $stat_card['value'] ) ? esc_html( $stat_card['value'] ) : esc_html__( 'N/A', 'wpforms-lite' ); ?>
<?php if ( ! empty( $stat_card['tooltip'] ) ) : ?>
<i class="wpforms-single-payment-tooltip" data-tooltip-content="#wpforms-single-payment-tooltip-content-<?php echo esc_attr( $key ); ?>"></i>
<span id="wpforms-single-payment-tooltip-content-<?php echo esc_attr( $key ); ?>" class="wpforms-single-payment-tooltip-content"><?php echo wp_kses_post( $stat_card['tooltip'] ); ?></span>
<?php endif; ?>
</span>
</button>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="wpforms-payment-actions">
<div class="status">
<span class="wpforms-payment-action-status-label"><?php esc_html_e( 'Status:', 'wpforms-lite' ); ?></span>
<span class="wpforms-payment-action-status-value <?php echo esc_attr( $status ); ?>"><?php echo wp_kses( $status_label, [ 'span' => [] ] ); ?></span>
</div>
<?php if ( $gateway_link ) : ?>
<div class="actions">
<a href="<?php echo esc_url( $gateway_link ); ?>" class="link" target="_blank" rel="noopener noreferrer">
<?php echo esc_html( $gateway_text ); ?>
</a>
<?php if ( ! $disabled ) : ?>
<a href="<?php echo esc_url( $gateway_action_link ); ?>"
class="button wpforms-payments-single-action"
target="_blank"
rel="noopener noreferrer"
id="wpforms-payments-single-<?php echo esc_attr( $gateway_action_slug ); ?>"
data-action-id="<?php echo esc_attr( $payment_id_raw ); ?>"
data-gateway="<?php echo esc_attr( $gateway_name ); ?>"
data-action-type="<?php echo esc_attr( $gateway_action_slug ); ?>">
<?php echo esc_html( $gateway_action_text ); ?>
</a>
<?php endif; ?>
</div>
<?php endif; ?>
<div class="clear"></div>
</div>
</div>

View File

@@ -0,0 +1,66 @@
<?php
/**
* Single Payment page - Display a table outlining the subscription payment history.
*
* @since 1.8.4
*
* @var string $title Table heading.
* @var array $renewals Renewal payments data.
* @var array $types Payment types.
* @var array $statuses Payment statuses.
* @var string $placeholder_na_text Placeholder text. Display "N\A" if empty.
* @var string $single_url Single payment URL. Note that payment ID will be appended to this URL.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="postbox">
<div class="postbox-header">
<h2 class="hndle">
<span><?php echo esc_html( $title ); ?></span>
</h2>
</div>
<table class="wpforms-subscription-payment-history" role="table" aria-label="<?php esc_attr_e( 'Subscription Renewal History Table', 'wpforms-lite' ); ?>">
<thead>
<tr>
<th scope="col"><?php esc_html_e( 'Payment ID', 'wpforms-lite' ); ?></th>
<th scope="col"><?php esc_html_e( 'Date', 'wpforms-lite' ); ?></th>
<th scope="col"><?php esc_html_e( 'Type', 'wpforms-lite' ); ?></th>
<th scope="col"><?php esc_html_e( 'Total', 'wpforms-lite' ); ?></th>
<th scope="col"><?php esc_html_e( 'Status', 'wpforms-lite' ); ?></th>
</thead>
<tbody>
<?php
foreach ( $renewals as $renewal ) :
// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
$is_current = isset( $_GET['payment_id'] ) && $renewal->id === wp_unslash( $_GET['payment_id'] );
?>
<tr class="<?php echo $is_current ? sanitize_html_class( 'current' ) : ''; ?>">
<td data-title="<?php esc_attr_e( 'Payment ID', 'wpforms-lite' ); ?>">
<a href="<?php echo esc_url( add_query_arg( [ 'payment_id' => $renewal->id ], $single_url ) ); ?>">
<?php echo esc_html( $renewal->id ); ?>
</a>
</td>
<td data-title="<?php esc_attr_e( 'Date', 'wpforms-lite' ); ?>">
<?php echo wpforms_datetime_format( $renewal->date_created_gmt, 'M j, Y', true ); ?>
</td>
<td data-title="<?php esc_attr_e( 'Type', 'wpforms-lite' ); ?>">
<?php echo esc_html( isset( $types[ $renewal->type ] ) ? $renewal->type : $placeholder_na_text ); ?>
</td>
<td data-title="<?php esc_attr_e( 'Total', 'wpforms-lite' ); ?>">
<?php echo wpforms_format_amount( wpforms_sanitize_amount( $renewal->total_amount, $renewal->currency ), true, $renewal->currency ); ?>
</td>
<td data-title="<?php esc_attr_e( 'Status', 'wpforms-lite' ); ?>">
<?php echo esc_html( $statuses[ $renewal->status ] ); ?>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,33 @@
<?php
/**
* Display a multiselect field for filtering the payments overview table.
*
* @since 1.8.4
*
* @var string $name Name of the select field.
* @var array $options Select field options.
* @var array $selected Array of selected options.
* @var array $data_settings Data settings for the multiselect JS instance.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// Leave early if no filters are provided.
if ( empty( $options ) ) {
return '';
}
?>
<select
multiple
class="wpforms-multiselect wpforms-hide"
name="<?php echo esc_attr( $name ); ?>"
placeholder="<?php echo esc_attr( $data_settings['i18n']['all'] ); ?>"
data-settings="<?php echo esc_attr( wp_json_encode( $data_settings ) ); ?>"
>
<?php foreach ( $options as $key => $label ) : ?>
<option value="<?php echo esc_attr( $key ); ?>" <?php selected( true, in_array( $key, $selected, true ) ); ?>>
<?php echo esc_html( $label ); ?>
</option>
<?php endforeach; ?>
</select>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Display extra filters for the payment table.
*
* @since 1.8.4
*
* @var string $filters Tablenav filters.
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
// Leave early if no filters are provided.
if ( empty( $filters ) ) {
return;
}
// Allowed HTML tags, and attributes for the filters.
$allowed_filters_attributes = [
'select' => [
'name' => [],
'class' => [],
'multiple' => [],
'placeholder' => [],
'data-settings' => [],
],
'option' => [
'value' => [],
'selected' => [],
],
];
?>
<div class="wpforms-tablenav-filters">
<?php echo wp_kses( $filters, $allowed_filters_attributes ); ?>
<input type="submit" class="button" value="<?php esc_attr_e( 'Filter', 'wpforms-lite' ); ?>">
</div>
<?php
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,82 @@
<?php
/**
* Footer promotion template.
*
* @since 1.8.0
*
* @var string $title
* @var array $links
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$links_count = count( $links );
?>
<div class="wpforms-footer-promotion">
<p><?php echo esc_html( $title ); ?></p>
<ul class="wpforms-footer-promotion-links">
<?php foreach ( $links as $key => $item ) : ?>
<li>
<?php
$attributes = [
'href' => esc_url( $item['url'] ),
'target' => isset( $item['target'] ) ? $item['target'] : false,
'rel' => isset( $item['target'] ) ? 'noopener noreferrer' : false,
];
printf(
'<a %1s>%2$s</a>%3$s',
wpforms_html_attributes( '', [], [], $attributes, false ),
esc_html( $item['text'] ),
$links_count === $key + 1 ? '' : '<span>/</span>'
);
?>
</li>
<?php endforeach; ?>
</ul>
<ul class="wpforms-footer-promotion-social">
<li>
<a href="https://www.facebook.com/wpforms" target="_blank" rel="noopener noreferrer">
<svg width="16" height="16" aria-hidden="true">
<path fill="#A7AAAD" d="M16 8.05A8.02 8.02 0 0 0 8 0C3.58 0 0 3.6 0 8.05A8 8 0 0 0 6.74 16v-5.61H4.71V8.05h2.03V6.3c0-2.02 1.2-3.15 3-3.15.9 0 1.8.16 1.8.16v1.98h-1c-1 0-1.31.62-1.31 1.27v1.49h2.22l-.35 2.34H9.23V16A8.02 8.02 0 0 0 16 8.05Z"/>
</svg>
<span class="screen-reader-text"><?php echo esc_html( 'Facebook' ); ?></span>
</a>
</li>
<li>
<a href="https://www.instagram.com/wpforms/" target="_blank" rel="noopener noreferrer">
<svg width="16" height="16" aria-hidden="true">
<path fill="#A7AAAD" d="M8.016 4.39c-2 0-3.594 1.626-3.594 3.594 0 2 1.594 3.594 3.594 3.594a3.594 3.594 0 0 0 3.593-3.594c0-1.968-1.625-3.593-3.593-3.593Zm0 5.938a2.34 2.34 0 0 1-2.344-2.344c0-1.28 1.031-2.312 2.344-2.312a2.307 2.307 0 0 1 2.312 2.312c0 1.313-1.031 2.344-2.312 2.344Zm4.562-6.062a.84.84 0 0 0-.844-.844.84.84 0 0 0-.843.844.84.84 0 0 0 .843.843.84.84 0 0 0 .844-.843Zm2.375.843c-.062-1.125-.312-2.125-1.125-2.937-.812-.813-1.812-1.063-2.937-1.125-1.157-.063-4.625-.063-5.782 0-1.125.062-2.093.312-2.937 1.125-.813.812-1.063 1.812-1.125 2.937-.063 1.157-.063 4.625 0 5.782.062 1.125.312 2.093 1.125 2.937.844.813 1.812 1.063 2.937 1.125 1.157.063 4.625.063 5.782 0 1.125-.062 2.125-.312 2.937-1.125.813-.844 1.063-1.812 1.125-2.937.063-1.157.063-4.625 0-5.782Zm-1.5 7c-.219.625-.719 1.094-1.312 1.344-.938.375-3.125.281-4.125.281-1.032 0-3.22.094-4.125-.28a2.37 2.37 0 0 1-1.344-1.345c-.375-.906-.281-3.093-.281-4.125 0-1-.094-3.187.28-4.125a2.41 2.41 0 0 1 1.345-1.312c.906-.375 3.093-.281 4.125-.281 1 0 3.187-.094 4.125.28.593.22 1.062.72 1.312 1.313.375.938.281 3.125.281 4.125 0 1.032.094 3.22-.28 4.125Z"/>
</svg>
<span class="screen-reader-text"><?php echo esc_html( 'Instagram' ); ?></span>
</a>
</li>
<li>
<a href="https://www.linkedin.com/company/wpforms/" target="_blank" rel="noopener noreferrer">
<svg width="16" height="16" aria-hidden="true">
<path fill="#A7AAAD" d="M14 1H1.97C1.44 1 1 1.47 1 2.03V14c0 .56.44 1 .97 1H14a1 1 0 0 0 1-1V2.03C15 1.47 14.53 1 14 1ZM5.22 13H3.16V6.34h2.06V13ZM4.19 5.4a1.2 1.2 0 0 1-1.22-1.18C2.97 3.56 3.5 3 4.19 3c.65 0 1.18.56 1.18 1.22 0 .66-.53 1.19-1.18 1.19ZM13 13h-2.1V9.75C10.9 9 10.9 8 9.85 8c-1.1 0-1.25.84-1.25 1.72V13H6.53V6.34H8.5v.91h.03a2.2 2.2 0 0 1 1.97-1.1c2.1 0 2.5 1.41 2.5 3.2V13Z"/>
</svg>
<span class="screen-reader-text"><?php echo esc_html( 'LinkedIn' ); ?></span>
</a>
</li>
<li>
<a href="https://twitter.com/easywpforms" target="_blank" rel="noopener noreferrer">
<svg width="17" height="16" aria-hidden="true">
<path fill="#A7AAAD" d="M15.27 4.43A7.4 7.4 0 0 0 17 2.63c-.6.27-1.3.47-2 .53a3.41 3.41 0 0 0 1.53-1.93c-.66.4-1.43.7-2.2.87a3.5 3.5 0 0 0-5.96 3.2 10.14 10.14 0 0 1-7.2-3.67C.86 2.13.7 2.73.7 3.4c0 1.2.6 2.26 1.56 2.89a3.68 3.68 0 0 1-1.6-.43v.03c0 1.7 1.2 3.1 2.8 3.43-.27.06-.6.13-.9.13a3.7 3.7 0 0 1-.66-.07 3.48 3.48 0 0 0 3.26 2.43A7.05 7.05 0 0 1 0 13.24a9.73 9.73 0 0 0 5.36 1.57c6.42 0 9.91-5.3 9.91-9.92v-.46Z"/>
</svg>
<span class="screen-reader-text"><?php echo esc_html( 'Twitter' ); ?></span>
</a>
</li>
<li>
<a href="https://www.youtube.com/c/Wpformsplugin" target="_blank" rel="noopener noreferrer">
<svg width="17" height="16" aria-hidden="true">
<path fill="#A7AAAD" d="M16.63 3.9a2.12 2.12 0 0 0-1.5-1.52C13.8 2 8.53 2 8.53 2s-5.32 0-6.66.38c-.71.18-1.3.78-1.49 1.53C0 5.2 0 8.03 0 8.03s0 2.78.37 4.13c.19.75.78 1.3 1.5 1.5C3.2 14 8.51 14 8.51 14s5.28 0 6.62-.34c.71-.2 1.3-.75 1.49-1.5.37-1.35.37-4.13.37-4.13s0-2.81-.37-4.12Zm-9.85 6.66V5.5l4.4 2.53-4.4 2.53Z"/>
</svg>
<span class="screen-reader-text"><?php echo esc_html( 'YouTube' ); ?></span>
</a>
</li>
</ul>
</div>

View File

@@ -0,0 +1,23 @@
<?php
/**
* Display Email settings heading.
*
* @since 1.8.5
*/
defined( 'ABSPATH' ) || exit; // Exit if accessed directly.
?>
<h4>
<?php esc_html_e( 'Email', 'wpforms-lite' ); ?>
</h4>
<p>
<?php esc_html_e( 'Customize your email template and sending preferences.', 'wpforms-lite' ); ?>
</p>
<?php
// phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
echo wpforms()->get( 'education_smtp_notice' )->get_template();
/* Omit closing PHP tag at the end of PHP files to avoid "headers already sent" issues. */

View File

@@ -0,0 +1,29 @@
<?php
/**
* Description template for hCaptcha.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<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' => [],
],
]
),
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/how-to-set-up-and-use-hcaptcha-in-wpforms/', 'Settings - Captcha', 'hCaptcha Documentation' ) )
);
?>
</p>

View File

@@ -0,0 +1,57 @@
<?php
/**
* Description template for reCAPTCHA.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<p class="wpforms-strong"><?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' => [],
],
]
),
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/how-to-set-up-and-use-recaptcha-in-wpforms/', 'Settings - Captcha', 'reCAPTCHA Documentation' ) )
);
?>
</p>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Specific note template.
*
* @since 1.8.4
*
* @var string $content
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wpforms-specific-note-wrap">
<div class="wpforms-specific-note-lightbulb">
<svg viewBox="0 0 14 20">
<path d="M3.75 17.97c0 .12 0 .23.08.35l.97 1.4c.12.2.32.28.51.28H8.4c.2 0 .39-.08.5-.27l.98-1.41c.04-.12.08-.23.08-.35v-1.72H3.75v1.72Zm3.13-5.47c.66 0 1.25-.55 1.25-1.25 0-.66-.6-1.25-1.26-1.25-.7 0-1.25.59-1.25 1.25 0 .7.55 1.25 1.25 1.25Zm0-12.5A6.83 6.83 0 0 0 0 6.88c0 1.75.63 3.32 1.68 4.53.66.74 1.68 2.3 2.03 3.59H5.6c0-.16 0-.35-.08-.55-.2-.7-.86-2.5-2.42-4.25a5.19 5.19 0 0 1-1.21-3.32c-.04-2.86 2.3-5 5-5 2.73 0 5 2.26 5 5 0 1.2-.47 2.38-1.26 3.32a11.72 11.72 0 0 0-2.42 4.25c-.07.2-.07.35-.07.55H10a10.56 10.56 0 0 1 2.03-3.6A6.85 6.85 0 0 0 6.88 0Zm-.4 8.75h.75c.3 0 .58-.23.62-.55l.5-3.75a.66.66 0 0 0-.62-.7H5.98a.66.66 0 0 0-.63.7l.5 3.75c.05.32.32.55.63.55Z"/>
</svg>
</div>
<div class="wpforms-specific-note-content">
<?php echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Description template for Turnstile.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<p><?php esc_html_e( 'Cloudflare Turnstile is a free, CAPTCHA-like service for preventing form spam while protecting data privacy. It offers a user-friendly experience by confirming visitors are real humans without requiring them to solve puzzles or math questions.', 'wpforms-lite' ); ?></p>
<p>
<?php
printf(
wp_kses( /* translators: %s - WPForms.com Setup Cloudflare Turnstile URL. */
__( 'For more details on how Turnstile 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' => [],
],
]
),
esc_url( wpforms_utm_link( 'https://wpforms.com/docs/setting-up-cloudflare-turnstile/', 'Settings - Captcha', 'Turnstile Documentation' ) )
);
?>
</p>