PluginProbe
Elementor Website Builder – more than just a page builder / 3.9.0
Elementor Website Builder – more than just a page builder v3.9.0
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.9.0, at elementor.php

100 lines 3.3 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 * Author: Elementor.com
7 * Version: 3.9.0
8 * Author URI: https://elementor.com/?utm_source=wp-plugins&utm_campaign=author-uri&utm_medium=wp-dash
9 *
10 * Text Domain: elementor
11 *
12 * @package Elementor
13 * @category Core
14 *
15 * Elementor 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 3 of the License, or
18 * any later version.
19 *
20 * Elementor 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
26 if ( ! defined( 'ABSPATH' ) ) {
27 exit; // Exit if accessed directly.
28 }
29
30 define( 'ELEMENTOR_VERSION', '3.9.0' );
31
32 define( 'ELEMENTOR__FILE__', __FILE__ );
33 define( 'ELEMENTOR_PLUGIN_BASE', plugin_basename( ELEMENTOR__FILE__ ) );
34 define( 'ELEMENTOR_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) );
35
36 if ( defined( 'ELEMENTOR_TESTS' ) && ELEMENTOR_TESTS ) {
37 define( 'ELEMENTOR_URL', 'file://' . ELEMENTOR_PATH );
38 } else {
39 define( 'ELEMENTOR_URL', plugins_url( '/', ELEMENTOR__FILE__ ) );
40 }
41
42 define( 'ELEMENTOR_MODULES_PATH', plugin_dir_path( ELEMENTOR__FILE__ ) . '/modules' );
43 define( 'ELEMENTOR_ASSETS_PATH', ELEMENTOR_PATH . 'assets/' );
44 define( 'ELEMENTOR_ASSETS_URL', ELEMENTOR_URL . 'assets/' );
45
46 add_action( 'plugins_loaded', 'elementor_load_plugin_textdomain' );
47
48 if ( ! version_compare( PHP_VERSION, '7.0', '>=' ) ) {
49 add_action( 'admin_notices', 'elementor_fail_php_version' );
50 } elseif ( ! version_compare( get_bloginfo( 'version' ), '5.2', '>=' ) ) {
51 add_action( 'admin_notices', 'elementor_fail_wp_version' );
52 } else {
53 require ELEMENTOR_PATH . 'includes/plugin.php';
54 }
55
56 /**
57 * Load Elementor textdomain.
58 *
59 * Load gettext translate for Elementor text domain.
60 *
61 * @since 1.0.0
62 *
63 * @return void
64 */
65 function elementor_load_plugin_textdomain() {
66 load_plugin_textdomain( 'elementor' );
67 }
68
69 /**
70 * Elementor admin notice for minimum PHP version.
71 *
72 * Warning when the site doesn't have the minimum required PHP version.
73 *
74 * @since 1.0.0
75 *
76 * @return void
77 */
78 function elementor_fail_php_version() {
79 /* translators: %s: PHP version. */
80 $message = sprintf( esc_html__( 'Elementor requires PHP version %s+, plugin is currently NOT RUNNING.', 'elementor' ), '7.0' );
81 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
82 echo wp_kses_post( $html_message );
83 }
84
85 /**
86 * Elementor admin notice for minimum WordPress version.
87 *
88 * Warning when the site doesn't have the minimum required WordPress version.
89 *
90 * @since 1.5.0
91 *
92 * @return void
93 */
94 function elementor_fail_wp_version() {
95 /* translators: %s: WordPress version. */
96 $message = sprintf( esc_html__( 'Elementor requires WordPress version %s+. Because you are using an earlier version, the plugin is currently NOT RUNNING.', 'elementor' ), '5.2' );
97 $html_message = sprintf( '<div class="error">%s</div>', wpautop( $message ) );
98 echo wp_kses_post( $html_message );
99 }
100