<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}

/* Set Freemius into development mode */
if ( ! function_exists( 'liv_fs' ) ) {
    // Create a helper function for easy SDK access.
    function liv_fs() {
        global $liv_fs;

        if ( ! isset( $liv_fs ) ) {
            // Include Freemius SDK.
            require_once dirname( __FILE__ ) . '/start.php';

            $liv_fs = fs_dynamic_init( array(
                'id'                  => '22482',
                'slug'                => 'livelang',
                'premium_slug'        => 'livelang-pro',
                'type'                => 'plugin',
                'public_key'          => 'pk_c35f7a2cd995c48badcf794eb6991',
                'secret_key'          => 'sk_k<z!:qG2MB2<n4pVIM$6Xo=nGB?BX',
                'is_premium'          => false,
                'is_premium_only'     => false,
                'has_addons'          => false,
                'has_paid_plans'      => true,
                'trial'               => array(
                    'days'               => 7,
                    'is_require_payment' => false,
                ),
                'menu'                => array(
                    'slug'           => 'livelang',
                    'support'        => false,
                    'affiliation' => false,
                    'network'     => true,
                ),
                'parallel_activation' => array(
                    //'enabled' => true,
                    'premium_version_basename' => 'livelang-pro/livelang-pro.php',
                ),
            ) );
        }

        return $liv_fs;
    }

    // Init Freemius.
    liv_fs();
    // Signal that SDK was initiated.
    do_action( 'liv_fs_loaded' );
}
