| 1 |
<?php |
| 2 |
|
| 3 |
////////////////////////////////////////////////////////////// |
| 4 |
//=========================================================== |
| 5 |
// class.php |
| 6 |
//=========================================================== |
| 7 |
// PAGELAYER |
| 8 |
// Inspired by the DESIRE to be the BEST OF ALL |
| 9 |
// ---------------------------------------------------------- |
| 10 |
// Started by: Pulkit Gupta |
| 11 |
// Date: 23rd Jan 2017 |
| 12 |
// Time: 23:00 hrs |
| 13 |
// Site: http://pagelayer.com/wordpress (PAGELAYER) |
| 14 |
// ---------------------------------------------------------- |
| 15 |
// Please Read the Terms of use at http://pagelayer.com/tos |
| 16 |
// ---------------------------------------------------------- |
| 17 |
//=========================================================== |
| 18 |
// (c)Pagelayer Team |
| 19 |
//=========================================================== |
| 20 |
////////////////////////////////////////////////////////////// |
| 21 |
|
| 22 |
// Are we being accessed directly ? |
| 23 |
if(!defined('PAGELAYER_VERSION')) { |
| 24 |
exit('Hacking Attempt !'); |
| 25 |
} |
| 26 |
|
| 27 |
// PageLayer Class |
| 28 |
class PageLayer{ |
| 29 |
|
| 30 |
// All Settings |
| 31 |
var $settings = array(); |
| 32 |
|
| 33 |
// Cache |
| 34 |
var $cache = array(); |
| 35 |
|
| 36 |
// Common Styles Params |
| 37 |
var $styles = array(); |
| 38 |
|
| 39 |
// All Shortcodes |
| 40 |
var $shortcodes = array(); |
| 41 |
|
| 42 |
// All Shortcodes Groups |
| 43 |
var $groups = array(); |
| 44 |
|
| 45 |
// Definde where to load shortcode template |
| 46 |
var $template_path = ''; |
| 47 |
|
| 48 |
// The Lang Strings |
| 49 |
var $l = array(); |
| 50 |
|
| 51 |
// Runtime fonts |
| 52 |
var $runtime_fonts = array(); |
| 53 |
|
| 54 |
// Array of all the template paths |
| 55 |
var $all_template_paths = array(); |
| 56 |
|
| 57 |
// Tabs visible in the left panel |
| 58 |
var $tabs = ['settings', 'options']; |
| 59 |
|
| 60 |
function __construct() { |
| 61 |
|
| 62 |
// Load the langs |
| 63 |
$this->l = @file_get_contents(PAGELAYER_DIR.'/languages/en.json'); |
| 64 |
$this->l = @json_decode($this->l, true); |
| 65 |
|
| 66 |
} |
| 67 |
|
| 68 |
} |