PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 1.5.3
JetFormBuilder — Dynamic Blocks Form Builder v1.5.3
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / jet-form-builder.php
jetformbuilder Last commit date
assets 4 years ago framework 4 years ago includes 4 years ago languages 4 years ago templates 4 years ago README.md 4 years ago index.php 4 years ago jet-form-builder.php 4 years ago readme.txt 4 years ago
jet-form-builder.php
87 lines
1 <?php
2 /**
3 * Plugin Name: JetFormBuilder
4 * Plugin URI: https://jetformbuilder.com/
5 * Description: Advanced form builder plugin for WordPress block editor. Create forms from the ground up, customize the existing ones, and style them up – all in one editor.
6 * Version: 1.5.3
7 * Author: Crocoblock
8 * Author URI: https://crocoblock.com/
9 * Text Domain: jet-form-builder
10 * License: GPL-3.0+
11 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
12 * Domain Path: /languages
13 */
14
15 // If this file is called directly, abort.
16 if ( ! defined( 'WPINC' ) ) {
17 die();
18 }
19
20 function jet_form_builder_init() {
21
22 define( 'JET_FORM_BUILDER_VERSION', '1.5.3' );
23
24 define( 'JET_FORM_BUILDER__FILE__', __FILE__ );
25 define( 'JET_FORM_BUILDER_PLUGIN_BASE', plugin_basename( JET_FORM_BUILDER__FILE__ ) );
26 define( 'JET_FORM_BUILDER_PATH', plugin_dir_path( JET_FORM_BUILDER__FILE__ ) );
27 define( 'JET_FORM_BUILDER_URL', plugins_url( '/', JET_FORM_BUILDER__FILE__ ) );
28
29 require JET_FORM_BUILDER_PATH . 'includes/plugin.php';
30
31 add_filter(
32 'plugin_action_links_' . JET_FORM_BUILDER_PLUGIN_BASE,
33 function ( $links ) {
34 if ( jet_form_builder()->addons_manager->is_active() ) {
35 return $links;
36 }
37
38 $url = 'https://jetformbuilder.com/pricing/';
39 $url = add_query_arg(
40 array(
41 'utm_source' => 'wp-dashboard/jet-form-builder-plugins-page',
42 'utm_medium' => 'crocoblock-license/theme-author',
43 'utm_campaign' => 'go-pro-button',
44 ),
45 $url
46 );
47
48 wp_enqueue_style(
49 'jet-fb-admin',
50 JET_FORM_BUILDER_URL . 'assets/css/admin/plugins.css',
51 array(),
52 JET_FORM_BUILDER_VERSION
53 );
54
55 $links['go_pro'] = "<a href=\"{$url}\" target=\"_blank\" class=\"jet-fb-go-pro-link\">Go Pro</a>";
56
57 return $links;
58 }
59 );
60 }
61
62 if ( version_compare( PHP_VERSION, '7.0.0', '>=' ) ) {
63 add_action( 'plugins_loaded', 'jet_form_builder_init' );
64
65 function jet_form_builder() {
66 return Jet_Form_Builder\Plugin::instance();
67 }
68
69 if ( ! function_exists( 'jet_fb_render_form' ) ) {
70 function jet_fb_render_form( $settings ) {
71 return Jet_Form_Builder\Plugin::instance()->blocks->get_form_class()->render_callback_field( $settings );
72 }
73 }
74 } else {
75 add_action(
76 'admin_notices',
77 function () {
78 $class = 'notice notice-error';
79 $message = __(
80 '<b>Error:</b> <b>JetFormBuilder</b> plugin requires a PHP version ">= 7.0"',
81 'jet-form-builder'
82 );
83 printf( '<div class="%1$s"><p>%2$s</p></div>', esc_attr( $class ), wp_kses_post( $message ) );
84 }
85 );
86 }
87