| 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: 1.0.3 |
| 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 |
$_tmp_plugins = get_option('active_plugins'); |
| 22 |
|
| 23 |
// Is the premium plugin loaded ? |
| 24 |
if(in_array('pagelayer-pro/pagelayer-pro.php', $_tmp_plugins)){ |
| 25 |
return; |
| 26 |
} |
| 27 |
|
| 28 |
// If PAGELAYER_VERSION exists then the plugin is loaded already ! |
| 29 |
if(defined('PAGELAYER_VERSION')) { |
| 30 |
return; |
| 31 |
} |
| 32 |
|
| 33 |
define('PAGELAYER_FILE', __FILE__); |
| 34 |
|
| 35 |
include_once(dirname(__FILE__).'/init.php'); |
| 36 |
|