| 1 |
<?php |
| 2 |
|
| 3 |
namespace WPAdminify\Inc\Admin\Frames; |
| 4 |
|
| 5 |
// no direct access allowed |
| 6 |
if (!defined('ABSPATH')) { |
| 7 |
exit; |
| 8 |
} |
| 9 |
/** |
| 10 |
* WP Adminify |
| 11 |
* Init Class |
| 12 |
* |
| 13 |
* @author Jewel Theme <support@jeweltheme.com> |
| 14 |
*/ |
| 15 |
|
| 16 |
if (!class_exists('Init')) { |
| 17 |
class Init |
| 18 |
{ |
| 19 |
public static $instance; |
| 20 |
public $admin; |
| 21 |
public $frame; |
| 22 |
|
| 23 |
public static function instance() |
| 24 |
{ |
| 25 |
if (is_null(self::$instance)) { |
| 26 |
self::$instance = new self(); |
| 27 |
} |
| 28 |
return self::$instance; |
| 29 |
} |
| 30 |
|
| 31 |
public function __construct() |
| 32 |
{ |
| 33 |
if (is_iframe()) { |
| 34 |
$this->frame = new Frames(); |
| 35 |
} else { |
| 36 |
$this->admin = new Admin(); |
| 37 |
} |
| 38 |
} |
| 39 |
} |
| 40 |
} |
| 41 |
|