PluginProbe
Page Builder: Pagelayer – Drag and Drop website builder / 2.1.9
Page Builder: Pagelayer – Drag and Drop website builder v2.1.9
2.1.9 2.1.8 2.1.7 2.1.6 2.1.5 2.1.4 2.1.3 trunk 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5 0.9.6 0.9.7 0.9.8 0.9.9 1.0.0 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 All 127 releases
pagelayer / pagelayer.php

pagelayer.php in Page Builder: Pagelayer – Drag and Drop website builder 2.1.9, at pagelayer.php

59 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Pagelayer
4 Plugin URI: http://wordpress.org/plugins/pagelayer/
5 Description: Pagelayer is a WordPress page builder plugin. Its very easy to use and very light on the browser.
6 Version: 2.1.9
7 Author: Pagelayer Team
8 Author URI: https://pagelayer.com/
9 License: LGPL v2.1
10 License URI: http://www.gnu.org/licenses/lgpl-2.1.html
11 */
12
13 // We need the ABSPATH
14 if (!defined('ABSPATH')) exit;
15
16 if(!function_exists('add_action')){
17 echo 'You are not allowed to access this page directly.';
18 exit;
19 }
20
21 $softac_tmp_plugins = get_option('active_plugins');
22
23 // Is the premium plugin loaded ?
24 if(!defined('SITEPAD') && in_array('pagelayer-pro/pagelayer-pro.php', $softac_tmp_plugins) ){
25
26 // Was introduced in 1.8.8
27 $pagelayer_pro_info = get_option('pagelayer_pro_version');
28
29 if(!empty($pagelayer_pro_info) && version_compare($pagelayer_pro_info, '1.8.8', '>=')){
30 // Let Pagelayer load
31
32 // Lets check for older versions
33 }else{
34
35 if(!function_exists( 'get_plugin_data' )){
36 include_once ABSPATH . 'wp-admin/includes/plugin.php';
37 }
38
39 $pagelayer_pro_info = get_plugin_data(WP_PLUGIN_DIR . '/pagelayer-pro/pagelayer-pro.php');
40
41 if(
42 !empty($pagelayer_pro_info) &&
43 version_compare($pagelayer_pro_info['Version'], '1.8.6', '<')
44 ){
45 return;
46 }
47
48 }
49 }
50
51 // If PAGELAYER_VERSION exists then the plugin is loaded already !
52 if(defined('PAGELAYER_VERSION')) {
53 return;
54 }
55
56 define('PAGELAYER_FILE', __FILE__);
57
58 include_once(dirname(__FILE__).'/init.php');
59