ajax
1 year ago
assets
1 year ago
includes
5 months ago
langs
1 year ago
boot.php
5 months ago
index.php
3 years ago
boot.php
70 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Factory Plugin |
| 4 | * |
| 5 | * @author @author Alex Kovalev <alex.kovalevv@gmail.com>, repo: https://github.com/alexkovalevv |
| 6 | * @since 1.0.0 |
| 7 | * @package core |
| 8 | * @copyright (c) 2018, Webcraftic Ltd |
| 9 | * |
| 10 | */ |
| 11 | |
| 12 | // Exit if accessed directly |
| 13 | if ( ! defined( 'ABSPATH' ) ) { |
| 14 | exit; |
| 15 | } |
| 16 | |
| 17 | if ( defined( 'FACTORY_480_LOADED' ) ) { |
| 18 | return; |
| 19 | } |
| 20 | |
| 21 | define( 'FACTORY_480_LOADED', true ); |
| 22 | |
| 23 | define( 'FACTORY_480_VERSION', '4.8.0' ); |
| 24 | |
| 25 | define( 'FACTORY_480_DIR', dirname( __FILE__ ) ); |
| 26 | define( 'FACTORY_480_URL', plugins_url( '', __FILE__ ) ); |
| 27 | |
| 28 | add_action( 'init', function () { |
| 29 | load_plugin_textdomain( 'wbcr_factory_480', false, dirname( plugin_basename( __FILE__ ) ) . '/langs' ); |
| 30 | } ); |
| 31 | |
| 32 | #comp merge |
| 33 | require_once( FACTORY_480_DIR . '/includes/functions.php' ); |
| 34 | |
| 35 | require_once( FACTORY_480_DIR . '/includes/entities/class-factory-paths.php' ); |
| 36 | require_once( FACTORY_480_DIR . '/includes/entities/class-factory-support.php' ); |
| 37 | |
| 38 | require_once( FACTORY_480_DIR . '/includes/class-factory-requests.php' ); |
| 39 | require_once( FACTORY_480_DIR . '/includes/class-factory-options.php' ); |
| 40 | require_once( FACTORY_480_DIR . '/includes/class-factory-plugin-base.php' ); |
| 41 | require_once( FACTORY_480_DIR . '/includes/class-factory-migrations.php' ); |
| 42 | require_once( FACTORY_480_DIR . '/includes/class-factory-notices.php' ); |
| 43 | |
| 44 | // ASSETS |
| 45 | require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-assets-list.php' ); |
| 46 | require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-script-list.php' ); |
| 47 | require_once( FACTORY_480_DIR . '/includes/assets-managment/class-factory-style-list.php' ); |
| 48 | |
| 49 | // UPDATES |
| 50 | require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-repository-abstract.php' ); |
| 51 | require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-wordpress.php' ); |
| 52 | require_once( FACTORY_480_DIR . '/includes/updates/repositories/class-factory-github.php' ); |
| 53 | require_once( FACTORY_480_DIR . '/includes/updates/class-factory-upgrader.php' ); |
| 54 | |
| 55 | require_once( FACTORY_480_DIR . '/includes/class-factory-plugin-abstract.php' ); |
| 56 | |
| 57 | require_once( FACTORY_480_DIR . '/includes/activation/class-factory-activator.php' ); |
| 58 | require_once( FACTORY_480_DIR . '/includes/activation/class-factory-update.php' ); |
| 59 | #endcomp |
| 60 | |
| 61 | add_action( 'admin_enqueue_scripts', function () { |
| 62 | wp_enqueue_script( 'wfactory-480-core-general', FACTORY_480_URL . '/assets/js/core-general.js', [ |
| 63 | 'jquery' |
| 64 | ], FACTORY_480_VERSION ); |
| 65 | wp_enqueue_script( 'wfactory-480-core-components', FACTORY_480_URL . '/assets/js/core-components.js', [ |
| 66 | 'jquery', |
| 67 | 'wfactory-480-core-general' |
| 68 | ], FACTORY_480_VERSION ); |
| 69 | } ); |
| 70 |