| 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 |
|