| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Plugin Name: Lasso Lite | |
| 4 | - * Plugin URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP | |
| 5 | - * Description: Lasso Lite (formerly SimpleURLs) is a complete URL management system that allows you to create, manage, and track outbound links from your site using custom post types and 301 redirects. | |
| 3 | + * Plugin Name: Simple URLs | |
| 4 | + * Plugin URI: https://getlasso.co/?utm_source=SimpleURLs&utm_campaign=WP | |
| 5 | + * Description: Simple URLs is a complete URL management system that allows you create, manage, and track outbound links from your site by using custom post types and 301 redirects. | |
| 6 | 6 | * Author: Lasso |
| 7 | - * Author URI: https://getlasso.co/?utm_source=SimpleURLs&utm_medium=WP | |
| 8 | - * Version: 152 | |
| 7 | + * Author URI: https://getlasso.co/?utm_source=SimpleURLs&utm_campaign=WP | |
| 8 | + * Version: 106 | |
| 9 | 9 | |
| 10 | 10 | * Text Domain: simple-urls |
| 11 | 11 | * Domain Path: /languages |
| 12 | 12 | |
| @@ -15,35 +15,19 @@ | ||
| 15 | 15 | * |
| 16 | 16 | * @package simple-urls |
| 17 | 17 | */ |
| 18 | 18 | |
| 19 | -use LassoLite\Admin\Constant; | |
| 20 | -use LassoLite\Classes\Enum; | |
| 21 | -use LassoLite\Classes\Helper; | |
| 22 | -use LassoLite\Classes\License; | |
| 23 | -use LassoLite\Pages\Hook; | |
| 19 | +if ( ! defined( 'ABSPATH' ) ) { | |
| 20 | + exit; | |
| 21 | +} | |
| 24 | 22 | |
| 25 | -// ? ============================================================================================== | |
| 26 | -// ? WE SHOULD UPDATE THE VERSION NUMBER HERE AS WELL WHEN RELEASING A NEW VERSION | |
| 27 | -define( 'LASSO_LITE_VERSION', '152' ); | |
| 28 | -// ? ============================================================================================== | |
| 23 | +define( 'SIMPLE_URLS_DIR', plugin_dir_path( __FILE__ ) ); | |
| 24 | +define( 'SIMPLE_URLS_URL', plugins_url( '', __FILE__ ) ); | |
| 29 | 25 | |
| 30 | -function activate_lasso_lite() { | |
| 31 | - update_option( Enum::LASSO_LITE_ACTIVE, 1 ); | |
| 32 | - $license_active = License::get_license_status(); | |
| 33 | - if ( $license_active === false ) { | |
| 34 | - Helper::update_option( Constant::LASSO_OPTION_DISMISS_PROMOTIONS, '0' ); | |
| 35 | - Helper::update_option( Constant::LASSO_OPTION_AFFILIATE_PROMOTIONS, '1' ); | |
| 36 | - } | |
| 37 | - Hook::lasso_register_connect_snippet_rewrite(); | |
| 38 | - flush_rewrite_rules(); | |
| 39 | -} | |
| 26 | +require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls.php'; | |
| 40 | 27 | |
| 41 | -function deactivate_lasso_lite() { | |
| 42 | - Helper::update_option( Enum::IS_PRE_POPULATED_AMAZON_API, 0 ); | |
| 43 | - flush_rewrite_rules(); | |
| 28 | +new Simple_Urls(); | |
| 29 | + | |
| 30 | +if ( is_admin() ) { | |
| 31 | + require_once SIMPLE_URLS_DIR . '/includes/class-simple-urls-admin.php'; | |
| 32 | + new Simple_Urls_Admin(); | |
| 44 | 33 | } |
| 45 | - | |
| 46 | -register_activation_hook( __FILE__, 'activate_lasso_lite' ); | |
| 47 | -register_deactivation_hook( __FILE__, 'deactivate_lasso_lite' ); | |
| 48 | - | |
| 49 | -require_once plugin_dir_path( __FILE__ ) . '/simple-urls.php'; | |