Changeset 3411670
- Timestamp:
- 12/05/2025 04:07:28 AM (3 months ago)
- Location:
- portfolio-pro-advance
- Files:
-
- 2 edited
-
tags/1.2.9/portfolio-pro-advance.php (modified) (1 diff)
-
trunk/portfolio-pro-advance.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
portfolio-pro-advance/tags/1.2.9/portfolio-pro-advance.php
r3411657 r3411670 21 21 define('PETRUTH_PORTFOLIO_PRO_BASENAME', plugin_basename(__FILE__)); 22 22 23 // ✅ FIX: Define the PRO check constant with a default value of 'false' (Free version)24 if ( ! defined( 'PORTFOLIO_PRO_ADVANCE_IS_PRO' ) ) {25 define( 'PORTFOLIO_PRO_ADVANCE_IS_PRO', false );26 }27 23 28 // Load Freemius SDK29 if ( function_exists( 'petruth_fs' ) ) {30 petruth_fs()->set_basename( false, __FILE__ );31 } else {32 if ( ! function_exists( 'petruth_fs' ) ) {33 function petruth_fs() {34 global $petruth_fs;35 if ( ! isset( $petruth_fs ) ) {36 require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';37 $petruth_fs = fs_dynamic_init( array(38 'id' => '19244',39 'slug' => 'portfolio-pro-advance',40 'premium_slug' => 'petruth-premium',41 'type' => 'plugin',42 'public_key' => 'pk_528b7125d0f4353e92c632f215536',43 'is_premium' => false,44 'premium_suffix' => 'Premium',45 'has_addons' => false,46 'has_paid_plans' => true,47 'trial' => array(48 'days' => 7,49 'is_require_payment' => true,50 ),51 'menu' => array(52 'slug' => 'petruth-settings',53 'support' => false,54 'parent' => array(55 'slug' => 'options-general.php',56 ),57 ),58 'is_live' => true,59 'is_org_compliant' => true,60 ) );61 }62 return $petruth_fs;63 }64 65 petruth_fs();66 do_action( 'petruth_fs_loaded' );67 }68 }69 24 70 25 // Load core plugin files -
portfolio-pro-advance/trunk/portfolio-pro-advance.php
r3411651 r3411670 21 21 define('PETRUTH_PORTFOLIO_PRO_BASENAME', plugin_basename(__FILE__)); 22 22 23 // ✅ FIX: Define the PRO check constant with a default value of 'false' (Free version)24 if ( ! defined( 'PORTFOLIO_PRO_ADVANCE_IS_PRO' ) ) {25 define( 'PORTFOLIO_PRO_ADVANCE_IS_PRO', false );26 }27 23 28 // Load Freemius SDK29 if ( function_exists( 'petruth_fs' ) ) {30 petruth_fs()->set_basename( false, __FILE__ );31 } else {32 if ( ! function_exists( 'petruth_fs' ) ) {33 function petruth_fs() {34 global $petruth_fs;35 if ( ! isset( $petruth_fs ) ) {36 require_once dirname( __FILE__ ) . '/vendor/freemius/start.php';37 $petruth_fs = fs_dynamic_init( array(38 'id' => '19244',39 'slug' => 'portfolio-pro-advance',40 'premium_slug' => 'petruth-premium',41 'type' => 'plugin',42 'public_key' => 'pk_528b7125d0f4353e92c632f215536',43 'is_premium' => false,44 'premium_suffix' => 'Premium',45 'has_addons' => false,46 'has_paid_plans' => true,47 'trial' => array(48 'days' => 7,49 'is_require_payment' => true,50 ),51 'menu' => array(52 'slug' => 'petruth-settings',53 'support' => false,54 'parent' => array(55 'slug' => 'options-general.php',56 ),57 ),58 'is_live' => true,59 'is_org_compliant' => true,60 ) );61 }62 return $petruth_fs;63 }64 65 petruth_fs();66 do_action( 'petruth_fs_loaded' );67 }68 }69 24 70 25 // Load core plugin files
Note: See TracChangeset
for help on using the changeset viewer.