| 1 |
<?php |
| 2 |
|
| 3 |
if ( !defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
if ( !function_exists( 'b_blocks_fs' ) ) { |
| 7 |
// Create a helper function for easy SDK access. |
| 8 |
function b_blocks_fs() { |
| 9 |
global $b_blocks_fs; |
| 10 |
if ( !isset( $b_blocks_fs ) ) { |
| 11 |
// Include Freemius SDK. |
| 12 |
require_once B_BLOCKS_DIR_PATH . 'freemius/start.php'; |
| 13 |
$b_blocks_fs = fs_dynamic_init( array( |
| 14 |
'id' => '12845', |
| 15 |
'slug' => 'b-blocks', |
| 16 |
'premium_slug' => 'b-blocks-pro', |
| 17 |
'type' => 'plugin', |
| 18 |
'public_key' => 'pk_d6426b344df4918bc066a7a0b4719', |
| 19 |
'is_premium' => false, |
| 20 |
'premium_suffix' => 'Pro', |
| 21 |
'has_addons' => false, |
| 22 |
'has_paid_plans' => true, |
| 23 |
'trial' => array( |
| 24 |
'days' => 7, |
| 25 |
'is_require_payment' => true, |
| 26 |
), |
| 27 |
'menu' => array( |
| 28 |
'slug' => 'b-blocks', |
| 29 |
'first-path' => 'admin.php?page=b-blocks', |
| 30 |
'contact' => false, |
| 31 |
'support' => false, |
| 32 |
), |
| 33 |
'is_live' => true, |
| 34 |
'is_org_compliant' => true, |
| 35 |
) ); |
| 36 |
} |
| 37 |
return $b_blocks_fs; |
| 38 |
} |
| 39 |
|
| 40 |
// Init Freemius. |
| 41 |
b_blocks_fs(); |
| 42 |
// Signal that SDK was initiated. |
| 43 |
do_action( 'b_blocks_fs_loaded' ); |
| 44 |
} |