This commit is contained in:
2025-11-18 16:39:33 +00:00
parent c70394d367
commit df1f90c6cd
9673 changed files with 3464697 additions and 34 deletions
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

@@ -0,0 +1,4 @@
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="11" cy="11" r="11" fill="#3B6BF7"/>
<path d="M16 8L9.125 14.875L6 11.75" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 269 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

@@ -0,0 +1,5 @@
<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="11" cy="11" r="11" fill="#D50831"/>
<path d="M14 8L8 14" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M8 8L14 14" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>

After

Width:  |  Height:  |  Size: 355 B

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 140 26.54"><defs><style>.cls-1{isolation:isolate;}.cls-2{fill:#252525;}.cls-3{fill:url(#linear-gradient);}.cls-4{fill:url(#linear-gradient-2);}.cls-5{opacity:0.2;mix-blend-mode:multiply;}.cls-6{fill:#fff;}</style><linearGradient id="linear-gradient" x1="5.26" y1="18.67" x2="19.06" y2="-0.66" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f8003c"/><stop offset="1" stop-color="#ff8438"/></linearGradient><linearGradient id="linear-gradient-2" x1="0.58" y1="24.88" x2="22.35" y2="15.93" gradientUnits="userSpaceOnUse"><stop offset="0.16" stop-color="#0099ac"/><stop offset="1" stop-color="#00d5c9"/></linearGradient></defs><g class="cls-1"><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-2" points="50.22 3.74 44.54 17.97 38.76 3.74 34.48 3.74 34.48 22.64 37.81 22.64 37.81 9.84 43.03 22.64 45.86 22.64 51.08 9.84 51.08 22.64 54.41 22.64 54.41 3.74 50.22 3.74"/><path class="cls-2" d="M69.35,11.69a6,6,0,0,0-2.43-2.32,7.49,7.49,0,0,0-3.54-.82,7,7,0,0,0-3.52.89A6.18,6.18,0,0,0,57.46,12a7.89,7.89,0,0,0-.86,3.75,7.61,7.61,0,0,0,.89,3.72A6.08,6.08,0,0,0,60,21.91a7.74,7.74,0,0,0,3.78.89A6.43,6.43,0,0,0,68,21.43,5.64,5.64,0,0,0,70,17.93l0-.23H66.82l0,.15a2.77,2.77,0,0,1-1.11,1.64,3.61,3.61,0,0,1-2.1.58,3.37,3.37,0,0,1-2.53-1,4,4,0,0,1-1-2.62H70.16l0-.17a7.11,7.11,0,0,0,.09-1.11A7,7,0,0,0,69.35,11.69ZM60.12,14a3.08,3.08,0,0,1,1.08-1.94,3.43,3.43,0,0,1,2.29-.81,3.58,3.58,0,0,1,2.37.78,3.27,3.27,0,0,1,1.07,2Z"/><path class="cls-2" d="M77.41,19.73a1.29,1.29,0,0,1-.94-.27,1.44,1.44,0,0,1-.26-1V11.62h3.25V8.71H76.21V4.93L72.93,6V8.71H71.64l-1.06,2.91h2.35v7.15a4,4,0,0,0,.95,2.91,4,4,0,0,0,3,1h3V19.73Z"/><polygon class="cls-2" points="93.41 6.83 93.41 3.74 81.2 3.74 81.2 22.64 84.64 22.64 84.64 14.82 91.88 14.82 91.88 11.8 84.64 11.8 84.64 6.83 93.41 6.83"/><path class="cls-2" d="M106.88,12a6.34,6.34,0,0,0-2.51-2.52,8.08,8.08,0,0,0-7.41,0A6.4,6.4,0,0,0,94.45,12a7.72,7.72,0,0,0-.88,3.7,7.73,7.73,0,0,0,.88,3.73A6.19,6.19,0,0,0,97,21.91a8.16,8.16,0,0,0,7.41,0,6.19,6.19,0,0,0,2.51-2.51,7.73,7.73,0,0,0,.88-3.73A7.72,7.72,0,0,0,106.88,12Zm-6.21,8a3.39,3.39,0,0,1-2.73-1.19,4.58,4.58,0,0,1-1-3.11,4.57,4.57,0,0,1,1-3.1,3.39,3.39,0,0,1,2.73-1.19,3.44,3.44,0,0,1,2.74,1.19,4.53,4.53,0,0,1,1,3.1,4.54,4.54,0,0,1-1,3.11A3.44,3.44,0,0,1,100.67,20Z"/><path class="cls-2" d="M116.71,8.71a5.13,5.13,0,0,0-2.59.57,4.38,4.38,0,0,0-1.29,1.14l-.26-1.71-2.91,1.06V22.64h3.25v-7a4.88,4.88,0,0,1,.76-2.81,2.68,2.68,0,0,1,2.4-1.06h1.47V8.71Z"/><path class="cls-2" d="M138.54,10.05a5,5,0,0,0-3.76-1.5,5.87,5.87,0,0,0-2.9.68,5.33,5.33,0,0,0-1.76,1.58,4,4,0,0,0-1.58-1.62,5.28,5.28,0,0,0-2.61-.64,5,5,0,0,0-3.85,1.67l-.27-1.51L119,9.77V22.64h3.25V15.2a4.38,4.38,0,0,1,.82-2.78,2.58,2.58,0,0,1,2.16-1,2.35,2.35,0,0,1,2,.83,4.15,4.15,0,0,1,.68,2.59v7.81h3.28V15.12a4.2,4.2,0,0,1,.81-2.74,2.65,2.65,0,0,1,2.19-1,2.3,2.3,0,0,1,2,.84,4.25,4.25,0,0,1,.67,2.58v7.81H140V14.8A6.64,6.64,0,0,0,138.54,10.05Z"/><path class="cls-3" d="M28.89,9.76l-6,.48V2.74A2.74,2.74,0,0,0,20.15,0H2.74A2.74,2.74,0,0,0,0,2.74V15.19L7.77,20Z"/><path class="cls-4" d="M7.81,25.19,0,15.19V23.8a2.74,2.74,0,0,0,2.74,2.74H20.15a2.74,2.74,0,0,0,2.74-2.74V17.09l6-7.26Z"/><g class="cls-5"><rect x="8.82" y="4.57" width="9.39" height="1.29"/><circle cx="5.86" cy="5.22" r="1.18"/><rect x="8.82" y="9.18" width="9.39" height="1.29"/><circle cx="5.86" cy="9.83" r="1.18"/><rect x="8.82" y="13.79" width="6.5" height="1.29"/><circle cx="5.86" cy="14.44" r="1.18"/></g><rect class="cls-6" x="8.82" y="3.26" width="9.39" height="1.29"/><circle class="cls-6" cx="5.86" cy="3.9" r="1.18"/><rect class="cls-6" x="8.82" y="7.87" width="9.39" height="1.29"/><circle class="cls-6" cx="5.86" cy="8.52" r="1.18"/><rect class="cls-6" x="8.82" y="12.48" width="6.5" height="1.29"/><circle class="cls-6" cx="5.86" cy="13.13" r="1.18"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

@@ -0,0 +1 @@
jQuery((function(t){"use strict";var a=t(".ekit-form-btn"),n=a.attr("href"),e=a.attr("data-activation_url"),i=a.data("plugin_status"),l=a.data("installing_text"),c=a.data("activating_text"),s=a.data("activated_text");function u(n,e,i){t.ajax({type:"GET",url:n,beforeSend:function(){a.html(e)},success:function(){a.removeClass("ekit-plugin-install-activate"),a.addClass("activated"),a.html(i),location.reload()}})}a.on("click",(function(o){var d,r;o.preventDefault(),"not_installed"==i?(d=n,r=l,t.ajax({type:"GET",url:d,beforeSend:function(){a.addClass("ekit-plugin-install-activate"),a.html(r)},success:function(){u(e,c,s)}})):"installed"==i&&u(e,c,s)}))}));
@@ -0,0 +1,143 @@
<?php
namespace Wpmet\Libs;
defined( 'ABSPATH' ) || exit;
if ( ! class_exists( '\Wpmet\Libs\Forms' ) ) :
class Forms {
/**
* Member Variable
*
* @var instance
*/
private static $instance;
/**
* Instance.
*
* Ensures only one instance of the plugin class is loaded or can be loaded.
*
* @since 2.6.3
* @access public
* @static
*
* @return Init An instance of the class.
*/
public static function instance() {
if ( is_null( self::$instance ) ) {
self::$instance = new self();
}
return self::$instance;
}
/**
* Construct the plugin object.
*
* @since 2.6.3
* @access public
*/
public function __construct() {
// register admin menus
add_action('admin_menu', [$this, 'register_sub_menu'], 999);
// register js/ css
add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
// check for metform plugin is active or not.
if(in_array('metform/metform.php', apply_filters('active_plugins', get_option('active_plugins'))) && is_admin()) {
add_action('current_screen', [$this, 'redirect_to_metform_page']);
}
}
/**
* Get forms dir.
*
* @since 2.6.3
* @access public
*/
public static function get_dir() {
return \ElementsKit_Lite::lib_dir() . 'forms/';
}
/**
* Get forms dir url.
*
* @since 2.6.3
* @access public
*/
public static function get_url() {
return \ElementsKit_Lite::lib_url() . 'forms/';
}
/**
* Enqueuing js/ css
*
* @since 2.6.3
* @access public
*/
public function enqueue_scripts() {
$current_screen = get_current_screen();
if(!empty($current_screen->id) && $current_screen->id === 'elementskit_page_forms') {
wp_enqueue_style( 'elementskit-forms', self::get_url() . 'assets/css/forms.css', [], \ElementsKit_Lite::version() );
wp_enqueue_script('elementskit-forms', self::get_url() . 'assets/js/forms.js', ['jquery'], \ElementsKit_Lite::version(), true);
}
}
/**
* Adds a submenu page under elementskit menu.
*
* @since 2.6.3
* @access public
*/
public function register_sub_menu() {
add_submenu_page(
'elementskit',
esc_html__('Forms', 'elementskit-lite'),
esc_html__('Forms', 'elementskit-lite'),
'manage_options',
'forms',
[$this, 'form_page_callback']
);
}
/**
* Display callback for the form submenu page.
*
* @since 2.6.3
* @access public
*/
public function form_page_callback() {
// Include template file
include self::get_dir() . 'pages/template.php';
}
/**
* Redirect to metfor plugin page
*
* @since 2.6.3
* @access public
*/
public function redirect_to_metform_page() {
$current_screen = get_current_screen();
if(!empty($current_screen->id) && $current_screen->id === 'elementskit_page_forms') {
wp_safe_redirect(admin_url('edit.php?post_type=metform-form'));
exit;
}
}
}
endif;
@@ -0,0 +1,405 @@
<?php
$pluginStatus = \ElementsKit_Lite\Libs\Framework\Classes\Plugin_Status::instance();
$plugin = $pluginStatus->get_status( 'metform/metform.php' );
?>
<div class="ekit-wrap notice">
<div class="ekit-forms-wrapper ekit-forms-container">
<!-- Hero -->
<section class="ekit-forms-hero">
<div class="ekit-badge">
<span class="ekit-badge-text"><?php esc_html_e('NEW', 'elementskit-lite'); ?></span>
</div>
<div class="ekit-hero-copy">
<h1 class="ekit-hero-title"><?php esc_html_e('Your Visual Form Builder For WordPress', 'elementskit-lite'); ?></h1>
<p class="ekit-sub"><?php echo sprintf( esc_html__('Install & activate %s and visually build fully-functional forms with all the advanced features and highest flexibility.', 'elementskit-lite'), '<span>MetForm</span>' ); ?></p>
<div class="ekit-hero-ctas">
<a
data-plugin_status="<?php echo esc_attr($plugin['status']); ?>"
data-installation_url="<?php echo esc_url($plugin['installation_url']); ?>"
data-activation_url="<?php echo esc_url($plugin['activation_url']); ?>"
href="<?php echo $plugin['status'] == 'not_installed' ? esc_url($plugin['installation_url']) : esc_url($plugin['activation_url']); ?>"
data-installing_text="<?php echo esc_attr__('Installing...', 'elementskit-lite'); ?>"
data-activating_text="<?php echo esc_attr__('Activating...', 'elementskit-lite'); ?>"
data-activated_text="<?php echo esc_attr__('Activated', 'elementskit-lite'); ?>"
class="ekit-install-btn ekit-cta ekit-cta-primary ekit-form-btn">
<?php echo esc_html($plugin['title']); ?>
</a>
<a href="https://wpmet.com/plugin/metform/" target="_blank" rel="noopener noreferrer" class="ekit-cta ekit-cta-outline">
<?php esc_html_e('Learn More', 'elementskit-lite'); ?>
<span class="ekit-external-link-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 10 10" fill="none">
<path d="M1 9L9 1" stroke="#13151D" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M1 1H9V9" stroke="#13151D" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</span>
</a>
</div>
</div>
<div class="ekit-hero-media">
<iframe width="560" height="400" src="https://www.youtube.com/embed/8R4-Q14cu-w?si=NImN8i9XxDv1CCsN" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
<script>
(function(){
'use strict';
try {
// Install/Activate button behavior with error handling
var installBtn = document.querySelector('.ekit-install-btn');
if (installBtn) {
installBtn.addEventListener('click', function(e){
try {
var original = installBtn.textContent.trim();
var isInstalling = installBtn.classList.contains('installing');
if (isInstalling) {
e.preventDefault();
return false;
}
installBtn.classList.add('installing');
installBtn.textContent = '<?php echo esc_js( __( 'Installing...', 'elementskit-lite' ) ); ?>';
installBtn.setAttribute('disabled', 'disabled');
setTimeout(function(){
if (installBtn) {
installBtn.textContent = '<?php echo esc_js( __( 'Activating...', 'elementskit-lite' ) ); ?>';
}
}, 1200);
setTimeout(function(){
if (installBtn) {
installBtn.textContent = '<?php echo esc_js( __( 'Activated', 'elementskit-lite' ) ); ?>';
installBtn.classList.remove('installing');
installBtn.classList.add('activated');
}
}, 2600);
} catch (error) {
console.error('MetForm template: Error handling install button:', error);
if (installBtn) {
installBtn.classList.remove('installing');
installBtn.removeAttribute('disabled');
}
}
});
}
} catch (error) {
console.error('MetForm template: Initialization error:', error);
}
})();
</script>
</section>
<section class="ekit-feature-sections">
<article class="feature feature-contact">
<div class="feature-content-box">
<div class="feature-content">
<h2><?php esc_html_e('Contact Form Builder', 'elementskit-lite'); ?></h2>
<ul>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('40+ input styles for WordPress forms.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('GDPR compliant form-building.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Confirmation email on form submission', 'elementskit-lite'); ?>
</li>
</ul>
</div>
<div class="feature-media">
<div class="media-mock media-contact">
<img src="<?php echo esc_url( plugins_url( '../assets/images/contact-form.png', __FILE__ ) ); ?>" alt="<?php esc_attr_e( 'Contact Form', 'elementskit-lite' ); ?>" />
</div>
</div>
</div>
</article>
<article class="feature feature-conditional">
<div class="feature-content-box">
<div class="feature-content">
<h2><?php esc_html_e('Conditional Logic Form', 'elementskit-lite'); ?></h2>
<ul>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Build smart forms with conditional logic', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Form fields appear dynamically for users.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Conditional fields based on the user input.', 'elementskit-lite'); ?>
</li>
</ul>
</div>
<div class="feature-media">
<div class="media-mock media-conditional">
<img src="<?php echo esc_url( plugins_url( '../assets/images/conditional-form.png', __FILE__ ) ); ?>" alt="<?php esc_attr_e( 'Conditional Logic', 'elementskit-lite' ); ?>" />
</div>
</div>
</div>
</article>
<article class="feature feature-multistep">
<div class="feature-content-box">
<div class="feature-content">
<h2>
<?php esc_html_e('Multi-step', 'elementskit-lite'); ?>
<br>
<?php esc_html_e('WordPress form', 'elementskit-lite'); ?>
</h2>
<ul>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Convert long forms into multiple steps.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('More user-friendly and engaging forms.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Nav bar/ progress bar for better attention.', 'elementskit-lite'); ?>
</li>
</ul>
</div>
<div class="feature-media">
<div class="media-mock media-multistep">
<img src="<?php echo esc_url( plugins_url( '../assets/images/multistep-form.png', __FILE__ ) ); ?>" alt="<?php esc_attr_e( 'Multi-Step Forms', 'elementskit-lite' ); ?>" />
</div>
</div>
</div>
</article>
<article class="feature feature-advanced-integrations">
<div class="feature-content-box">
<div class="feature-content">
<h2>
<?php esc_html_e('18+ Advanced', 'elementskit-lite'); ?>
<br>
<?php esc_html_e('Integrations', 'elementskit-lite'); ?>
</h2>
<ul>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('reCAPTCHA spam protection for forms.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Google Maps and Sheets integration.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Support PayPal and Stripe payments.', 'elementskit-lite'); ?>
</li>
</ul>
</div>
<div class="feature-media">
<div class="media-mock media-advanced-integrations">
<img src="<?php echo esc_url( plugins_url( '../assets/images/advanced-integrations.png', __FILE__ ) ); ?>" alt="<?php esc_attr_e( 'Advanced Integrations', 'elementskit-lite' ); ?>" />
</div>
</div>
</div>
</article>
<article class="feature feature-crm-integrations">
<div class="feature-content-box">
<div class="feature-content">
<h2>
<?php esc_html_e('CRM and Newsletter', 'elementskit-lite'); ?>
<br>
<?php esc_html_e('Integrations', 'elementskit-lite'); ?>
</h2>
<ul>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('Integrates with 7+ CRMs and Newsletters.', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('HubSpot, Zoho, MailChimp, integration', 'elementskit-lite'); ?>
</li>
<li>
<span class="check-icon" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" fill="none"><rect width="20" height="20" fill="#3B67FE" rx="10"/>
<path stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.333 7.708 8.75 12.292l-2.083-2.084"/>
</svg>
</span>
<?php esc_html_e('MailChimp, AWeber, ConvertKit, and more.', 'elementskit-lite'); ?>
</li>
</ul>
</div>
<div class="feature-media">
<div class="media-mock media-crm-integrations">
<img src="<?php echo esc_url( plugins_url( '../assets/images/crm-integrations.png', __FILE__ ) ); ?>" alt="<?php esc_attr_e( 'CRM Integrations', 'elementskit-lite' ); ?>" />
</div>
</div>
</div>
</article>
</section>
<!-- Info table: Free vs Pro -->
<section class="ekit-info-table" aria-labelledby="metform-compare">
<div class="ekit-info-title-wrap">
<h3 id="metform-compare" class="ekit-info-title"><?php esc_html_e('MetForm Free vs Pro', 'elementskit-lite'); ?></h3>
<p class="ekit-info-desc"><?php esc_html_e('Want full freedom while designing WordPress forms? Switch to PRO! Here is what you will be getting with MetForm Pro.', 'elementskit-lite'); ?></p>
</div>
<div class="info-table-wrap">
<table class="info-table" role="table" aria-describedby="metform-compare">
<thead>
<tr>
<th><?php esc_html_e('Features', 'elementskit-lite'); ?></th>
<th><?php esc_html_e('Free', 'elementskit-lite'); ?></th>
<th><?php esc_html_e('Pro', 'elementskit-lite'); ?></th>
</tr>
</thead>
<tbody>
<?php
// Import icons from assets/images
$check_icon_url = plugins_url( '../assets/images/check-icon.svg', __FILE__ );
$cross_icon_url = plugins_url( '../assets/images/cross-icon.svg', __FILE__ );
$check_icon = '<img src="' . esc_url($check_icon_url) . '" alt="' . esc_attr__('Available', 'elementskit-lite') . '" width="22" height="22" />';
$cross_icon = '<img src="' . esc_url($cross_icon_url) . '" alt="' . esc_attr__('Not Available', 'elementskit-lite') . '" width="22" height="22" />';
$info_rows = array(
array('Form Templates','4+','40+'),
array('Contact Form', $check_icon, $check_icon),
array('Booking Form', $check_icon, $check_icon),
array('Multi-Step Form', $cross_icon, $check_icon),
array('Quiz Form', $cross_icon, $check_icon),
array('Conditional Logic', $cross_icon, $check_icon),
array('Calculations', $cross_icon, $check_icon),
array('Field Validation', $cross_icon, $check_icon),
array('Login / Register', $cross_icon, $check_icon),
array('WooCommerce Checkout', $cross_icon, $check_icon),
array('reCAPTCHA', $check_icon, $check_icon),
array('GDPR Consent', $check_icon, $check_icon),
array('Entry Restrictions', $check_icon, $check_icon),
array('Google Map', $cross_icon, $check_icon),
array('Google Sheet', $cross_icon, $check_icon),
array('PayPal Payment', $cross_icon, $check_icon),
array('Stripe Payment', $cross_icon, $check_icon),
array('MailChimp', $check_icon, $check_icon),
array('Hubspot', $cross_icon, $check_icon),
array('Zoho', $cross_icon, $check_icon),
array('Aweber', $cross_icon, $check_icon),
array('ConvertKit', $cross_icon, $check_icon),
);
foreach($info_rows as $r){
$col1 = esc_html($r[0]);
$col2 = (strpos($r[1], '<img') !== false) ? $r[1] : esc_html($r[1]);
$col3 = (strpos($r[2], '<img') !== false) ? $r[2] : esc_html($r[2]);
echo '<tr><td>'.$col1.'</td><td class="center">'.$col2.'</td><td class="center">'.$col3.'</td></tr>';
}
?>
</tbody>
</table>
</div>
</section>
<!-- Newsletter / final CTA -->
<section class="ekit-newslater">
<div class="newslater-inner">
<div class="newslater-copy">
<h3 class="newslater-title">
<?php esc_html_e('Switch to MetForm Pro and start creating', 'elementskit-lite'); ?>
<br>
<?php esc_html_e('your WordPress forms with', 'elementskit-lite'); ?>
<span class="limitless-link"><?php esc_html_e('Limitless Options', 'elementskit-lite'); ?></span>.
</h3>
</div>
<div class="newslater-cta">
<a
href="https://wpmet.com/plugin/metform/pricing/"
target="_blank"
class="ekit-premium-btn"
>
<?php echo esc_html__('Go Premium', 'elementskit-lite'); ?>
</a>
</div>
</div>
</section>
</div>
<div class="ekit-footer">
<p>
<?php echo sprintf( esc_html__('Thank you for creating with %s', 'elementskit-lite'), '<a href="https://wpmet.com/docs/category/elementskit/" target="_blank" rel="noopener noreferrer">' . esc_html__( 'ElementsKit', 'elementskit-lite' ) . '</a>' ); ?>
</p>
<p class="ekit-version">
<?php echo sprintf( esc_html__('Version 6.8.2', 'elementskit-lite') ); ?>
</p>
</div>
</div>