boot.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Factory Pages |
| 4 | * |
| 5 | * @since 1.0.1 |
| 6 | * @package core |
| 7 | */ |
| 8 | |
| 9 | // Exit if accessed directly |
| 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 11 | exit; |
| 12 | } |
| 13 | |
| 14 | // module provides function only for the admin area |
| 15 | if ( ! is_admin() ) { |
| 16 | return; |
| 17 | } |
| 18 | |
| 19 | if ( defined( 'FACTORY_PAGES_600_LOADED' ) ) { |
| 20 | return; |
| 21 | } |
| 22 | |
| 23 | define( 'FACTORY_PAGES_600_LOADED', true ); |
| 24 | |
| 25 | define( 'FACTORY_PAGES_600_VERSION', '4.8.0' ); |
| 26 | |
| 27 | define( 'FACTORY_PAGES_600_DIR', __DIR__ ); |
| 28 | define( 'FACTORY_PAGES_600_URL', plugins_url( '', __FILE__ ) ); |
| 29 | |
| 30 | if ( ! defined( 'FACTORY_FLAT_ADMIN' ) ) { |
| 31 | define( 'FACTORY_FLAT_ADMIN', true ); |
| 32 | } |
| 33 | |
| 34 | add_action( |
| 35 | 'init', |
| 36 | function () { |
| 37 | load_plugin_textdomain( 'robin-image-optimizer', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' ); |
| 38 | } |
| 39 | ); |
| 40 | |
| 41 | require FACTORY_PAGES_600_DIR . '/pages.php'; |
| 42 | require FACTORY_PAGES_600_DIR . '/includes/page.class.php'; |
| 43 | require FACTORY_PAGES_600_DIR . '/includes/admin-page.class.php'; |
| 44 |