PluginProbe
The Innovative Form Builder – IvyForms / 0.4
The Innovative Form Builder – IvyForms v0.4
1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 1.2 1.3
ivyforms / ivyforms.php

ivyforms.php in The Innovative Form Builder – IvyForms 0.4, at ivyforms.php

82 lines 2.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: IvyForms - The innovative Contact Form Builder
4 * Plugin URI: https://ivyforms.com
5 * Description: Transform your WordPress site with IvyForms: a powerful, user-friendly plugin for creating and managing customizable forms effortlessly.
6 * Version: 0.4
7 * Requires PHP: 7.4
8 * Author: TMS-Plugins
9 * Author URI: https://tmsproducts.io
10 * License: GPLv2 or later
11 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12 * Text Domain: ivyforms
13 * Domain Path: /languages
14 *
15 * IvyForms is free software: you can redistribute it and/or modify
16 * it under the terms of the GNU General Public License as published by
17 * the Free Software Foundation, either version 2 of the License, or
18 * any later version.
19 *
20 * IvyForms is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * You should have received a copy of the GNU General Public License
26 * along with IvyForms. If not, see {URI to Plugin License}.
27 */
28 namespace IvyForms;
29
30 use Exception;
31 use IvyForms\Plugin\Plugin;
32
33 if ( ! defined( 'ABSPATH' ) )
34 {
35 exit; // Exit if accessed directly.
36 }
37
38 if (!defined('IVYFORMS_PATH'))
39 {
40 define('IVYFORMS_PATH', __DIR__);
41 }
42
43 if (!defined('IVYFORMS_URL'))
44 {
45 define('IVYFORMS_URL', plugin_dir_url(__FILE__));
46 }
47
48 if (!defined('IVYFORMS_TEMPLATES_IMAGES_URL'))
49 {
50 define('IVYFORMS_TEMPLATES_IMAGES_URL', plugin_dir_url(__FILE__) . 'frontend/src/assets/images/templates/');
51 }
52
53 if (!defined('IVYFORMS_DEV'))
54 {
55 define('IVYFORMS_DEV', false);
56 }
57
58 // Const for plugin slug
59 if (!defined('IVYFORMS_PLUGIN_SLUG'))
60 {
61 define('IVYFORMS_PLUGIN_SLUG', plugin_basename(__FILE__));
62 }
63
64 if (!defined('IVYFORMS_FILE'))
65 {
66 define('IVYFORMS_FILE', __FILE__);
67 }
68
69 if (!defined('IVYFORMS_VERSION')) {
70 define('IVYFORMS_VERSION', '0.4');
71 }
72
73 require_once IVYFORMS_PATH . '/backend/scope-vendor/autoload.php';
74 require_once IVYFORMS_PATH . '/backend/vendor/autoload.php';
75 $container = require IVYFORMS_PATH . '/backend/src/Config/container.php';
76
77 try {
78 Plugin::getInstance($container);
79 } catch (Exception $e) {
80 echo 'ERROR: ' . esc_html($e->getMessage());
81 }
82