Activation
3 years ago
Config
1 year ago
Entities
1 year ago
Form
3 years ago
Views
1 year ago
Bootstrap.php
3 years ago
FrontEndBootstrap.php
4 years ago
Helpers.php
7 years ago
NestedPages.php
1 year ago
Redirects.php
5 years ago
RedirectsFrontEnd.php
8 years ago
NestedPages.php
20 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Static Wrapper for Bootstrap Class |
| 4 | * Prevents T_STRING error when checking for 5.3.2 |
| 5 | */ |
| 6 | class NestedPages |
| 7 | { |
| 8 | public static function init() |
| 9 | { |
| 10 | // dev/live |
| 11 | global $np_env; |
| 12 | $np_env = 'live'; |
| 13 | |
| 14 | global $np_version; |
| 15 | $np_version = '3.2.9'; |
| 16 | |
| 17 | if ( is_admin() ) $app = new NestedPages\Bootstrap; |
| 18 | if ( !is_admin() ) $app = new NestedPages\FrontEndBootstrap; |
| 19 | } |
| 20 | } |