Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin > Addons page template.
|
||||
*
|
||||
* @since 1.6.7
|
||||
*
|
||||
* @var string $upgrade_link_base Upgrade link base.
|
||||
* @var array $addons Addons data.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="wpforms-admin-addons" class="wrap wpforms-admin-wrap">
|
||||
<h1 class="page-title">
|
||||
<?php esc_html_e( 'WPForms Addons', 'wpforms-lite' ); ?>
|
||||
<input type="search" placeholder="<?php esc_html_e( 'Search Addons', 'wpforms-lite' ); ?>" id="wpforms-admin-addons-search">
|
||||
</h1>
|
||||
<div class="wpforms-admin-content">
|
||||
<div id="wpforms-admin-addons-list">
|
||||
<div class="list">
|
||||
<?php
|
||||
foreach ( $addons as $addon ) :
|
||||
$addon['icon'] = ! empty( $addon['icon'] ) ? $addon['icon'] : '';
|
||||
$addon['title'] = ! empty( $addon['title'] ) ? $addon['title'] : __( 'Unknown Addon', 'wpforms-lite' );
|
||||
$addon['excerpt'] = ! empty( $addon['excerpt'] ) ? $addon['excerpt'] : '';
|
||||
$upgrade_link = add_query_arg(
|
||||
[
|
||||
'utm_content' => $addon['title'],
|
||||
],
|
||||
$upgrade_link_base
|
||||
);
|
||||
|
||||
if ( $addon['slug'] === 'wpforms-stripe' ) {
|
||||
$addon['recommended'] = true;
|
||||
}
|
||||
?>
|
||||
<div class="addon-container">
|
||||
<div class="addon-item">
|
||||
<div class="details wpforms-clear">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/' . $addon['icon'] ); ?>" alt="<?php echo esc_attr( $addon['title'] ); ?> <?php esc_attr_e( 'logo', 'wpforms-lite' ); ?>">
|
||||
<h5 class="addon-name">
|
||||
<?php
|
||||
printf(
|
||||
'<a href="%1$s" title="%2$s" target="_blank" rel="noopener noreferrer" class="addon-link">%3$s</a>',
|
||||
esc_url( $upgrade_link ),
|
||||
esc_attr__( 'Learn more', 'wpforms-lite' ),
|
||||
esc_html( $addon['title'] )
|
||||
);
|
||||
?>
|
||||
<?php if ( ! empty( $addon['recommended'] ) ) : ?>
|
||||
<span class="wpforms-addon-recommended">
|
||||
<i class="fa fa-star" aria-hidden="true"></i>
|
||||
<?php esc_html_e( 'Recommended', 'wpforms-lite' ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</h5>
|
||||
<p class="addon-desc"><?php echo esc_html( $addon['excerpt'] ); ?></p>
|
||||
</div>
|
||||
<div class="actions wpforms-clear">
|
||||
<div class="upgrade-button">
|
||||
<a href="<?php echo esc_url( $upgrade_link ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-btn wpforms-btn-orange wpforms-upgrade-modal">
|
||||
<?php esc_html_e( 'Upgrade Now', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/DidYouKnow Education template for Lite.
|
||||
*
|
||||
* @since 1.7.4
|
||||
*
|
||||
* @var string $slug DYK message slug.
|
||||
* @var int $cols Table columns count.
|
||||
* @var string $title Message title.
|
||||
* @var string $desc Message body.
|
||||
* @var string $more_title Learn More button title.
|
||||
* @var string $more_link Learn More button URL.
|
||||
* @var string $more_class Learn More button class.
|
||||
* @var string $icon Message icon.
|
||||
* @var string $cont_class Container class.
|
||||
* @var string $enabled_title Message title in enabled mode.
|
||||
* @var string $enabled_desc Message body in enabled mode.
|
||||
* @var string $enabled_more_title Learn More button title in enabled mode.
|
||||
* @var string $enabled_more_link Learn More button URL in enabled mode.
|
||||
* @var string $enabled_more_class Learn More button class in enabled mode.
|
||||
* @var string $enabled_cont_class Container class in enabled mode.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$default_icon = '<svg viewBox="0 0 352 512"><path d="M176 0C73.05 0-.12 83.54 0 176.24c.06 44.28 16.5 84.67 43.56 115.54C69.21 321.03 93.85 368.68 96 384l.06 75.18c0 3.15.94 6.22 2.68 8.84l24.51 36.84c2.97 4.46 7.97 7.14 13.32 7.14h78.85c5.36 0 10.36-2.68 13.32-7.14l24.51-36.84c1.74-2.62 2.67-5.7 2.68-8.84L256 384c2.26-15.72 26.99-63.19 52.44-92.22C335.55 260.85 352 220.37 352 176 352 78.8 273.2 0 176 0zm47.94 454.31L206.85 480h-61.71l-17.09-25.69-.01-6.31h95.9v6.31zm.04-38.31h-95.97l-.07-32h96.08l-.04 32zm60.4-145.32c-13.99 15.96-36.33 48.1-50.58 81.31H118.21c-14.26-33.22-36.59-65.35-50.58-81.31C44.5 244.3 32.13 210.85 32.05 176 31.87 99.01 92.43 32 176 32c79.4 0 144 64.6 144 144 0 34.85-12.65 68.48-35.62 94.68zM176 64c-61.75 0-112 50.25-112 112 0 8.84 7.16 16 16 16s16-7.16 16-16c0-44.11 35.88-80 80-80 8.84 0 16-7.16 16-16s-7.16-16-16-16z"/></svg>';
|
||||
|
||||
?>
|
||||
<tr class="wpforms-dyk wpforms-dismiss-container wpforms-education-lite-connect-wrapper wpforms-dyk-<?php echo esc_attr( $slug ); ?>">
|
||||
<td colspan="<?php echo esc_attr( $cols ); ?>" class="<?php echo esc_attr( $cont_class ); ?>">
|
||||
<div class="wpforms-dyk-fbox wpforms-dismiss-out">
|
||||
<div class="wpforms-dyk-icon"><?php echo empty( $icon ) ? $default_icon : $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
|
||||
<div class="wpforms-dyk-message"><strong><?php echo esc_html( $title ); ?></strong><br>
|
||||
<?php echo esc_html( $desc ); ?>
|
||||
</div>
|
||||
<div class="wpforms-dyk-buttons">
|
||||
<?php if ( ! empty( $more_link ) ) : ?>
|
||||
<a href="<?php echo esc_url( $more_link ); ?>" class="button button-primary button-learn-more <?php echo esc_attr( $more_class ); ?>"><?php echo esc_html( $more_title ); ?></a>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="admin-did-you-know-overview"></button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="<?php echo esc_attr( $cols ); ?>" class="<?php echo esc_attr( $enabled_cont_class ); ?>">
|
||||
<div class="wpforms-dyk-fbox wpforms-dismiss-out">
|
||||
<div class="wpforms-dyk-icon"><?php echo empty( $icon ) ? $default_icon : $icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></div>
|
||||
<div class="wpforms-dyk-message"><strong><?php echo esc_html( $enabled_title ); ?></strong><br>
|
||||
<?php echo esc_html( $enabled_desc ); ?>
|
||||
</div>
|
||||
<div class="wpforms-dyk-buttons">
|
||||
<?php if ( ! empty( $enabled_more_link ) ) : ?>
|
||||
<a href="<?php echo esc_url( $enabled_more_link ); ?>" class="button button-primary button-learn-more <?php echo esc_attr( $enabled_more_class ); ?>"><?php echo esc_html( $enabled_more_title ); ?></a>
|
||||
<?php endif; ?>
|
||||
<button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="admin-did-you-know-overview"></button>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Classic Editor notice for Edit Post Education template for Lite.
|
||||
*
|
||||
* @since 1.8.1
|
||||
*
|
||||
* @var string $message Notice message.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="wpforms-edit-post-education-notice wpforms-hidden">
|
||||
<?php
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo wpforms_render(
|
||||
'education/admin/edit-post/notice',
|
||||
[
|
||||
'message' => $message,
|
||||
],
|
||||
true
|
||||
)
|
||||
?>
|
||||
<button type="button" class="wpforms-edit-post-education-notice-close notice-dismiss">
|
||||
<span class="screen-reader-text"><?php esc_html_e( 'Dismiss this notice.', 'wpforms-lite' ); ?></span>
|
||||
</button>
|
||||
</div>
|
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
/**
|
||||
* Gutenberg Editor notice for Edit Post Education template for Lite.
|
||||
*
|
||||
* @since 1.8.1
|
||||
*
|
||||
* @var string $message Notice message.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="wpforms-edit-post-education-notice-body">
|
||||
<p>
|
||||
<strong><?php esc_html_e( 'Oh hey, it looks like you\'re working on a Contact page.', 'wpforms-lite' ); ?></strong>
|
||||
</p>
|
||||
<p>
|
||||
<?php
|
||||
echo wp_kses(
|
||||
$message,
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/LiteConnect Challenge popup footer Education template for Lite.
|
||||
*
|
||||
* @since 1.7.4
|
||||
*
|
||||
* @var string $toggle Enable Entry backups toggle markup.
|
||||
* @var bool $is_enabled Is backup entry enabled?
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="wpforms-challenge-popup-lite-connect" class="wpforms-education-lite-connect-wrapper wpforms-challenge-popup-footer">
|
||||
<h3>
|
||||
<?php esc_html_e( 'One More Thing', 'wpforms-lite' ); ?>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/raised-hand.png' ); ?>" alt="">
|
||||
</h3>
|
||||
<p>
|
||||
<?php esc_html_e( 'WPForms now offers offsite backups for your form entries. If you decide to upgrade to WPForms Pro, you can restore entries collected while you used WPForms Lite.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
<hr>
|
||||
<div class="wpforms-education-lite-connect-setting <?php echo $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<?php echo $toggle; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
<div class="wpforms-education-lite-connect-enabled-info <?php echo ! $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/check-circle.svg' ); ?>" alt="">
|
||||
<?php esc_html_e( 'Form Entry Backups Are Enabled', 'wpforms-lite' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/LiteConnect Dashboard Widget before Education template for Lite.
|
||||
*
|
||||
* @since 1.7.4
|
||||
*
|
||||
* @var string $toggle Enable Entry backups toggle markup.
|
||||
* @var bool $is_enabled Is backup entry enabled?
|
||||
* @var string $entries_since_info Entries information string.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="wpforms-dash-widget-lite-connect-block" class="wpforms-dash-widget-block wpforms-education-lite-connect-wrapper">
|
||||
<div class="wpforms-education-lite-connect-setting <?php echo $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<?php echo $toggle; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
<div class="wpforms-education-lite-connect-enabled-info <?php echo ! $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/info-circle.svg' ); ?>" alt="">
|
||||
<span><?php echo esc_html( $entries_since_info ); ?></span>
|
||||
<a href="<?php echo esc_url( wpforms_admin_upgrade_link( 'dashboard-widget', 'restore-entries' ) ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-upgrade-modal">
|
||||
<?php esc_html_e( 'Restore Form Entries', 'wpforms-lite' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/NoticeBar Education template for Lite.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var string $upgrade_link Upgrade to Pro page URL.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="wpforms-notice-bar" class="wpforms-dismiss-container">
|
||||
<span class="wpforms-notice-bar-message">
|
||||
<?php
|
||||
printf(
|
||||
wp_kses(
|
||||
/* translators: %s - WPForms.com Upgrade page URL. */
|
||||
__( '<strong>You\'re using WPForms Lite.</strong> To unlock more features consider <a href="%s" target="_blank" rel="noopener noreferrer">upgrading to Pro</a> for 50%% off.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'rel' => [],
|
||||
'target' => [],
|
||||
],
|
||||
'strong' => [],
|
||||
]
|
||||
),
|
||||
esc_url( $upgrade_link )
|
||||
);
|
||||
?>
|
||||
</span>
|
||||
<button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="admin-notice-bar"></button>
|
||||
</div>
|
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/Integrations item Education template for Lite.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var string $clear_slug Clear slug (without `wpforms-` prefix).
|
||||
* @var string $modal_name Name of the addon used in modal window.
|
||||
* @var string $license_level License level.
|
||||
* @var string $name Name of the addon.
|
||||
* @var string $icon Addon icon.
|
||||
* @var string $video Video URL.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="wpforms-integration-<?php echo esc_attr( $clear_slug ); ?>"
|
||||
class="wpforms-settings-provider wpforms-clear focus-out education-modal"
|
||||
data-name="<?php echo esc_attr( $modal_name ); ?>"
|
||||
data-action="upgrade"
|
||||
data-video="<?php echo esc_url( $video ); ?>"
|
||||
data-license="<?php echo esc_attr( $license_level ); ?>">
|
||||
<div class="wpforms-settings-provider-header wpforms-clear">
|
||||
<div class="wpforms-settings-provider-logo ">
|
||||
<i class="fa fa-chevron-right"></i>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/' . $icon ); ?>" alt="<?php echo esc_attr( $modal_name ); ?>">
|
||||
</div>
|
||||
<div class="wpforms-settings-provider-info">
|
||||
<h3><?php echo esc_html( $name ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf( /* translators: %s - provider name. */
|
||||
esc_html__( 'Integrate %s with WPForms', 'wpforms-lite' ),
|
||||
esc_html( $name )
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Builder/DidYouKnow Education template for Lite.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var string $desc Message body.
|
||||
* @var string $more Learn More button URL.
|
||||
* @var string $link Upgrade to Pro page URL.
|
||||
* @var string $section The slug of the dismissible section.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<section class="wpforms-dyk wpforms-dismiss-container">
|
||||
<div class="wpforms-dyk-fbox wpforms-dismiss-out">
|
||||
<div class="wpforms-dyk-message">
|
||||
<b><?php esc_html_e( 'Did You Know?', 'wpforms-lite' ); ?></b><br>
|
||||
<?php echo esc_html( $desc ); ?>
|
||||
</div>
|
||||
<div class="wpforms-dyk-buttons">
|
||||
<?php
|
||||
if ( ! empty( $more ) ) {
|
||||
echo '<a href="' . esc_url( $more ) . '" class="learn-more">' . esc_html__( 'Learn More', 'wpforms-lite' ) . '</a>';
|
||||
}
|
||||
?>
|
||||
<a href="<?php echo esc_url( $link ); ?>" target="_blank" rel="noopener noreferrer" class="wpforms-btn wpforms-btn-md wpforms-btn-light-grey"><?php esc_html_e( 'Upgrade to Pro', 'wpforms-lite' ); ?></a>
|
||||
<button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="builder-did-you-know-<?php echo esc_attr( $section ); ?>"></button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/**
|
||||
* Builder/LiteConnect Top Bar Education template for Lite.
|
||||
*
|
||||
* @since 1.7.4
|
||||
*
|
||||
* @var string $toggle Enable Entry backups toggle markup.
|
||||
* @var bool $is_enabled Is backup entry enabled?
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<div id="wpforms-builder-lite-connect-top-bar" class="wpforms-education-lite-connect-wrapper wpforms-dismiss-container">
|
||||
<div class="wpforms-hidden-element"></div>
|
||||
<div class="wpforms-education-lite-connect-setting <?php echo $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<?php echo $toggle; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
|
||||
</div>
|
||||
<div class="wpforms-education-lite-connect-enabled-info <?php echo ! $is_enabled ? 'wpforms-hidden' : ''; ?>">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/check-circle.svg' ); ?>" alt="">
|
||||
<?php esc_html_e( 'Form Entry Backups Are Enabled', 'wpforms-lite' ); ?>
|
||||
</div>
|
||||
<p><?php esc_html_e( 'Easily restore your entries when you upgrade to WPForms Pro.', 'wpforms-lite' ); ?></p>
|
||||
<button type="button" class="wpforms-dismiss-button" title="<?php esc_attr_e( 'Dismiss this message.', 'wpforms-lite' ); ?>" data-section="builder-lite-connect-top-bar"></button>
|
||||
</div>
|
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Builder/Providers and Payments Education template for Lite.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var string $clear_slug Clear slug (without `wpforms-` prefix).
|
||||
* @var string $modal_name Name of the addon used in modal window.
|
||||
* @var string $license_level License level.
|
||||
* @var string $name Name of the addon.
|
||||
* @var string $icon Addon icon.
|
||||
* @var string $video Video URL.
|
||||
* @var string $utm_content UTM content.
|
||||
* @var bool $recommended Flag for recommended providers.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<a href="#"
|
||||
class="wpforms-panel-sidebar-section icon wpforms-panel-sidebar-section-<?php echo esc_attr( $clear_slug ); ?> education-modal"
|
||||
data-name="<?php echo esc_attr( $modal_name ); ?>"
|
||||
data-slug="<?php echo esc_attr( $clear_slug ); ?>"
|
||||
data-video="<?php echo esc_url( $video ); ?>"
|
||||
data-license="<?php echo esc_attr( $license_level ); ?>"
|
||||
data-utm-content="<?php echo esc_attr( $utm_content ); ?>">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/' . $icon ); ?>" alt="<?php echo esc_attr( $modal_name ); ?>">
|
||||
<?php echo esc_html( $name ); ?>
|
||||
<?php if ( ! empty( $recommended ) ) : ?>
|
||||
<span class="wpforms-panel-sidebar-recommended">
|
||||
<i class="fa fa-star" aria-hidden="true"></i>
|
||||
<?php esc_html_e( 'Recommended', 'wpforms-lite' ); ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
<i class="fa fa-angle-right wpforms-toggle-arrow"></i>
|
||||
</a>
|
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/**
|
||||
* Builder/Settings Education template for Lite.
|
||||
*
|
||||
* @since 1.6.6
|
||||
*
|
||||
* @var string $clear_slug Clear slug (without `wpforms-` prefix).
|
||||
* @var string $modal_name Name of the addon used in modal window.
|
||||
* @var string $license_level License level.
|
||||
* @var string $name Name of the addon.
|
||||
* @var string $video Video URL.
|
||||
* @var string $utm_content UTM content.
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<a href="#"
|
||||
class="wpforms-panel-sidebar-section wpforms-panel-sidebar-section-<?php echo esc_attr( $clear_slug ); ?> education-modal"
|
||||
data-name="<?php echo esc_attr( $modal_name ); ?>"
|
||||
data-slug="<?php echo esc_attr( $clear_slug ); ?>"
|
||||
data-video="<?php echo esc_url( $video ); ?>"
|
||||
data-license="<?php echo esc_attr( $license_level ); ?>"
|
||||
data-utm-content="<?php echo esc_attr( $utm_content ); ?>">
|
||||
<?php echo esc_html( $name ); ?>
|
||||
<i class="fa fa-angle-right wpforms-toggle-arrow"></i>
|
||||
</a>
|
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/**
|
||||
* Admin/Settings/LiteConnect Education modal template for Lite.
|
||||
*
|
||||
* @since 1.7.4
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit;
|
||||
}
|
||||
|
||||
?>
|
||||
<script type="text/html" id="tmpl-wpforms-settings-lite-connect-modal-content">
|
||||
<div class="wpforms-settings-lite-connect-modal-content">
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/sullie-alt.png' ); ?>" alt="<?php esc_attr_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>" class="wpforms-mascot">
|
||||
|
||||
<h2><?php esc_html_e( 'Form Entry Backups', 'wpforms-lite' ); ?></h2>
|
||||
<p>
|
||||
<?php esc_html_e( 'If your email notifications aren\'t delivered, you’ll lose form entries. Turn on free backups now and restore your entries when you upgrade to Pro.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
|
||||
<div class="wpforms-features">
|
||||
<section>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/lock-alt.svg' ); ?>" alt="<?php esc_attr_e( 'Security and Protection.', 'wpforms-lite' ); ?>">
|
||||
<aside>
|
||||
<h4><?php esc_html_e( 'Security and Protection', 'wpforms-lite' ); ?></h4>
|
||||
<p>
|
||||
<?php esc_html_e( 'Entries are stored securely and privately until you\'re ready to upgrade. Our team cannot view your forms or entries.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
</aside>
|
||||
</section>
|
||||
<section>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/cloud.svg' ); ?>" alt="<?php esc_attr_e( 'Backup and Restore.', 'wpforms-lite' ); ?>">
|
||||
<aside>
|
||||
<h4><?php esc_html_e( 'Backup and Restore', 'wpforms-lite' ); ?></h4>
|
||||
<p>
|
||||
<?php esc_html_e( 'When you upgrade to WPForms Pro, we\'ll automatically restore all of the entries that you collected in WPForms Lite.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
</aside>
|
||||
</section>
|
||||
<section>
|
||||
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/lite-connect/envelope.svg' ); ?>" alt="<?php esc_attr_e( 'WPForms Newsletter.', 'wpforms-lite' ); ?>">
|
||||
<aside>
|
||||
<h4><?php esc_html_e( 'WPForms Newsletter', 'wpforms-lite' ); ?></h4>
|
||||
<p>
|
||||
<?php esc_html_e( 'Ready to grow your website? Get the latest pro tips and updates from the WPForms team.', 'wpforms-lite' ); ?>
|
||||
</p>
|
||||
</aside>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
<?php
|
||||
printf(
|
||||
wp_kses( /* translators: %s - WPForms Terms of Service link. */
|
||||
__( 'By enabling Lite Connect you agree to our <a href="%s" target="_blank" rel="noopener noreferrer">Terms of Service</a> and to share your information with WPForms.', 'wpforms-lite' ),
|
||||
[
|
||||
'a' => [
|
||||
'href' => [],
|
||||
'target' => [],
|
||||
'rel' => [],
|
||||
],
|
||||
]
|
||||
),
|
||||
esc_url( wpforms_utm_link( 'https://wpforms.com/terms/', 'Lite Connect Modal', 'Terms of Service' ) )
|
||||
);
|
||||
?>
|
||||
</footer>
|
||||
</div>
|
||||
</script>
|
1440
wp-content/plugins/wpforms-lite/lite/wpforms-lite.php
Normal file
1440
wp-content/plugins/wpforms-lite/lite/wpforms-lite.php
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user