| @@ -1,28 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use LassoLite\Classes\Init; | |
| 4 | - | |
| 5 | -if ( ! defined( 'ABSPATH' ) ) { | |
| 6 | - exit; | |
| 7 | -} | |
| 8 | -define( 'SIMPLE_URLS_SLUG', 'surl' ); | |
| 3 | +define( "SIMPLE_URLS_SLUG", "surl" ); | |
| 9 | 4 | define( 'SIMPLE_URLS_DIR', plugin_dir_path( __FILE__ ) ); |
| 10 | 5 | define( 'SIMPLE_URLS_URL', plugins_url( '', __FILE__ ) ); |
| 11 | -define( 'SIMPLE_URLS_PLUGIN_PATH', __DIR__ ); | |
| 12 | - | |
| 13 | -require_once SIMPLE_URLS_DIR . '/admin/constant.php'; | |
| 14 | -require_once SIMPLE_URLS_DIR . DIRECTORY_SEPARATOR . 'autoload.php'; | |
| 15 | -require_once SIMPLE_URLS_DIR . '/vendor-prefix/vendor/autoload.php'; | |
| 16 | - | |
| 17 | -// ? Sentry declaration | |
| 18 | -require_once SIMPLE_URLS_DIR . '/libs/lasso-lite/lasso-lite-sentry.php'; | |
| 19 | - | |
| 20 | -require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls.php'; | |
| 21 | -new Simple_Urls(); | |
| 22 | - | |
| 23 | -if ( is_admin() ) { | |
| 24 | - require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls-admin.php'; | |
| 25 | - new Simple_Urls_Admin(); | |
| 26 | -} | |
| 27 | - | |
| 28 | -new Init(); | |
| 6 | +define( 'SIMPLE_URLS_DOMAIN', "simple-urls" ); | |
| 7 | +require_once __DIR__ . '/includes/class-simple-urls.php'; | |
| 8 | +require_once __DIR__ . '/includes/class-simple-urls-admin.php'; | |