PluginProbe
Lead Form Builder & Contact Form / 2.2.3
Lead Form Builder & Contact Form v2.2.3
2.2.5 2.2.4 2.2.3 2.2.2 2.2.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 All 56 releases
lead-form-builder / lead-form-builder.php

lead-form-builder.php in Lead Form Builder & Contact Form 2.2.3, at lead-form-builder.php

92 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Lead Form Builder
4 Description: Lead Form Builder Plugin is a contact form builder as well as lead generator. This contact form is compatible with all page builders like Elementor, Brizy, SiteOrigin, Gutenburg etc. Plugin comes with nearly all field options required to create Contact form, Registration form, News letter and contain Ajax based drag & drop field ordering. <a href="https://themehunk.com/plugins/" target="_blank">Get more plugins for your website on <strong>ThemeHunk</strong></a>
5 Version: 2.2.3
6 Author: ThemeHunk
7 Text Domain: lead-form-builder
8 Author URI: http://www.themehunk.com/
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
12 // Version constant for easy CSS refreshes
13
14 if (!function_exists('lfb_plugin_action_links')){
15
16 define( 'LFB_VER', '2.2.3' );
17 define( 'LFB_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
18 define( 'LFB_BASE_DIR_PATH', plugin_dir_path( __FILE__ ) );
19
20 include_once( plugin_dir_path( __FILE__ ) . 'inc/themehunk-menu/admin-menu.php' );
21 include_once( plugin_dir_path( __FILE__ ) . 'block/app.php' );
22
23 /**
24 * Add the settings link to the Lead Form Plugin plugin row
25 *
26 * @param array $links - Links for the plugin
27 * @return array - Links
28 */
29 function lfb_plugin_action_links($links){
30 $settings_page = add_query_arg(array('page' => 'wplf-plugin-menu'), admin_url('/admin.php?'));
31 $settings_link = '<a href="'.esc_url($settings_page).'">'.__('Settings', 'lead-form-builder' ).'</a>';
32 array_unshift($links, $settings_link);
33 return $links;
34 }
35 add_filter('plugin_action_links_'.plugin_basename(__FILE__), 'lfb_plugin_action_links', 10, 1);
36
37 add_filter('plugin_row_meta', 'lfb_plugin_meta_links', 10, 2);
38
39
40 /**
41 * Add links to plugin's description in plugins table
42 *
43 * @param array $links Initial list of links.
44 * @param string $file Basename of current plugin.
45 *
46 * @return array
47 */
48 if ( ! function_exists( 'lfb_plugin_meta_links' ) ){
49
50 function lfb_plugin_meta_links($links, $file){
51
52 if ($file !== plugin_basename(__FILE__)) {
53 return $links;
54 }
55
56 $demo_link = '<a target="_blank" href="https://wpthemes.themehunk.com/lead-form-builder-pro/" title="' . __('Live Demo', 'lead-form-builder') . '"><span class="dashicons dashicons-laptop"></span>' . __('Live Demo', 'lead-form-builder') . '</a>';
57
58 $doc_link = '<a target="_blank" href="https://themehunk.com/docs/lead-form/" title="' . __('Documentation', 'lead-form-builder') . '"><span class="dashicons dashicons-search"></span>' . __('Documentation', 'lead-form-builder') . '</a>';
59
60 $support_link = '<a target="_blank" href="https://themehunk.com/contact-us/" title="' . __('Support', 'lead-form-builder') . '"><span class="dashicons dashicons-admin-users"></span>' . __('Support', 'lead-form-builder') . '</a>';
61
62 $pro_link = '<a target="_blank" href="https://themehunk.com/product/lead-form-builder-pro/" title="' . __('Premium Version', 'lead-form-builder') . '"><span class="dashicons dashicons-cart"></span>' . __('Premium Version', 'lead-form-builder') . '</a>';
63
64 $links[] = $demo_link;
65 $links[] = $doc_link;
66 $links[] = $support_link;
67 $links[] = $pro_link;
68
69 return $links;
70
71 } // plugin_meta_links
72
73 }
74
75
76 include_once( plugin_dir_path(__FILE__) . 'inc/lf-db.php' );
77 include_once( plugin_dir_path(__FILE__) . 'inc/deactivate-feedback.php' );
78
79 register_activation_hook(__FILE__, 'lfb_plugin_activate');
80 if(!function_exists('lfb_include_file')) {
81 function lfb_include_file(){
82 include_once( plugin_dir_path(__FILE__) . 'inc/lfb-constant.php' );
83 include_once( plugin_dir_path(__FILE__) . 'inc/inc.php' );
84 }
85 add_action('init','lfb_include_file');
86 }
87 include_once( plugin_dir_path(__FILE__) . 'inc/lfb-widget.php' );
88 include_once( plugin_dir_path(__FILE__) . 'elementor/lfb-addon-elementor.php' );
89 // show notify
90 include_once( plugin_dir_path(__FILE__) . 'notify/notify.php' );
91 }
92