set_basename( $launchvik_is_premium_build, __FILE__ ); return; } if ( !function_exists( 'launchvik_fs' ) ) { /** * Freemius SDK: licensing, the upgrade page and automatic updates for Pro. */ function launchvik_fs() { global $launchvik_fs; if ( !isset( $launchvik_fs ) ) { require_once dirname( __FILE__ ) . '/vendor/freemius/start.php'; $launchvik_fs = fs_dynamic_init( array( 'id' => '45192', 'slug' => 'launchvik', 'premium_slug' => 'launchvik-pro', 'type' => 'plugin', 'public_key' => 'pk_4cdfafdb3ac23088d32edd2217f1c', 'is_premium' => false, 'premium_suffix' => 'Pro', 'has_addons' => false, 'has_paid_plans' => true, 'is_org_compliant' => true, 'trial' => array( 'days' => 30, 'is_require_payment' => false, ), 'menu' => array( 'slug' => 'launchvik', 'parent' => array( 'slug' => 'options-general.php', ), 'support' => false, 'contact' => false, ), 'is_live' => true, ) ); } return $launchvik_fs; } launchvik_fs(); do_action( 'launchvik_fs_loaded' ); // Upgrade page: show the yearly price ($29 / year), not a monthly figure. launchvik_fs()->add_filter( 'pricing/show_annual_in_monthly', '__return_false' ); } define( 'LAUNCHVIK_VERSION', '1.5.3' ); define( 'LAUNCHVIK_FILE', __FILE__ ); define( 'LAUNCHVIK_DIR', plugin_dir_path( __FILE__ ) ); define( 'LAUNCHVIK_URL', plugin_dir_url( __FILE__ ) ); define( 'LAUNCHVIK_OPTION', 'launchvik_settings' ); define( 'LAUNCHVIK_LINKS_OPTION', 'launchvik_preview_links' ); define( 'LAUNCHVIK_COOKIE', 'launchvik_preview' ); define( 'LAUNCHVIK_QUERY_VAR', 'launchvik_preview' ); // Pro features run only in the Pro copy, with an active license or trial. When a // license expires, Freemius follows the plan's setting (keep features, stop updates). define( 'LAUNCHVIK_PRO', $launchvik_is_premium_build && launchvik_fs()->can_use_premium_code() ); require_once LAUNCHVIK_DIR . 'includes/functions.php'; require_once LAUNCHVIK_DIR . 'includes/class-launchvik-frontend.php'; LaunchVik_Frontend::init(); // Deleting the plugin removes its data (see launchvik_uninstall()). launchvik_fs()->add_action( 'after_uninstall', 'launchvik_uninstall' ); if ( LAUNCHVIK_PRO ) { require_once LAUNCHVIK_DIR . 'includes/pro__premium_only/pro.php'; } if ( is_admin() ) { require_once LAUNCHVIK_DIR . 'includes/class-launchvik-admin.php'; LaunchVik_Admin::init(); }