PluginProbe
Elementor Website Builder – more than just a page builder / 3.30.0-beta1
Elementor Website Builder – more than just a page builder v3.30.0-beta1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / elementor.php

elementor.php in Elementor Website Builder – more than just a page builder 3.30.0-beta1, at elementor.php

107 lines 3.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin Name: Elementor
4 * Description: The Elementor Website Builder has it all: drag and drop page builder, pixel perfect design, mobile responsive editing, and more. Get started now!
5 * Plugin URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=plugin-uri&utm_medium=wp-dash
6 * Version: 3.30.0-beta1
7 * Author: Elementor.com
8 * Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9 * Text Domain: elementor
10 *
11 * @package Elementor
12 * @category Core
13 *
14 * Elementor is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation, either version 3 of the License, or
17 * any later version.
18 *
19 * Elementor is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 */
24
25 if ( ! defined( 'ABSPATH' ) ) {
26 exit; // Exit if accessed directly.
27 }
28
29 define( 'ELEMENTOR_VERSION', '3.30.0-beta1' );
30
31 define( 'ELEMENTOR__FILE__', __FILE__ );
32 define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
33 define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
34
35 if ( defined( 'ELEMENTOR_TESTS' ) && ELEMENTOR_TESTS ) {
36 define( 'ELEMENTOR_URL', 'file://' . ELEMENTOR_PATH );
37 } else {
38 define( 'ELEMENTOR_URL', plugins_url( '/', ELEMENTOR__FILE__ ) );
39 }
40
41 define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
42 define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
43 define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
44
45 if ( file_exists( ELEMENTOR_PATH . 'vendor/autoload.php' ) ) {
46 require_once ELEMENTOR_PATH . 'vendor/autoload.php';
47 // We need this file because of the DI\create function that we are using.
48 // Autoload classmap doesn't include this file.
49 require_once ELEMENTOR_PATH . 'vendor_prefixed/dependency-injection/php-di/php-di/src/functions.php';
50 }
51
52 if ( ! version_compare( PHP_VERSION, '7.4', '>=' ) ) {
53 add_action( 'admin_notices', 'elementor_fail_php_version' );
54 } elseif ( ! version_compare( get_bloginfo( 'version' ), '6.5', '>=' ) ) {
55 add_action( 'admin_notices', 'elementor_fail_wp_version' );
56 } else {
57 require ELEMENTOR_PATH . 'includes/plugin.php';
58 }
59
60 /**
61 * Elementor admin notice for minimum PHP version.
62 *
63 * Warning when the site doesn't have the minimum required PHP version.
64 *
65 * @since 1.0.0
66 *
67 * @return void
68 */
69 function elementor_fail_php_version() {
70 $html_message = sprintf(
71 '<div class="error"><h3>%1$s</h3><p>%2$s <a href="https://go.elementor.com/wp-dash-update-php/" target="_blank">%3$s</a></p></div>',
72 esc_html__( 'Elementor isn’t running because PHP is outdated.', 'elementor' ),
73 sprintf(
74 /* translators: %s: PHP version. */
75 esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
76 '7.4'
77 ),
78 esc_html__( 'Show me how', 'elementor' )
79 );
80
81 echo wp_kses_post( $html_message );
82 }
83
84 /**
85 * Elementor admin notice for minimum WordPress version.
86 *
87 * Warning when the site doesn't have the minimum required WordPress version.
88 *
89 * @since 1.5.0
90 *
91 * @return void
92 */
93 function elementor_fail_wp_version() {
94 $html_message = sprintf(
95 '<div class="error"><h3>%1$s</h3><p>%2$s <a href="https://go.elementor.com/wp-dash-update-wordpress/" target="_blank">%3$s</a></p></div>',
96 esc_html__( 'Elementor isn’t running because WordPress is outdated.', 'elementor' ),
97 sprintf(
98 /* translators: %s: WordPress version. */
99 esc_html__( 'Update to version %s and get back to creating!', 'elementor' ),
100 '6.5'
101 ),
102 esc_html__( 'Show me how', 'elementor' )
103 );
104
105 echo wp_kses_post( $html_message );
106 }
107