pro_text;
$json['pro_url'] = esc_url( $this->pro_url );
return $json;
}
public function get_recommended_plugins(){
$status = get_option( 'bizberg_disable_recommended_plugins_status', false );
if( $status ){
return;
}
if( class_exists( 'WPCF7' ) &&
defined( 'ELEGANTBLOCKS_PLUGIN_URL' ) &&
class_exists( 'UAGB_Config' ) &&
class_exists( 'OCDI_Plugin' ) ){
return;
} ?>
get_pro_link();
if( !empty( $pro_link ) ){ ?>
get_recommended_plugins();
}
}
function get_pro_link(){
$theme = wp_get_theme();
switch ( $theme->get( 'TextDomain' ) ) {
case 'bizberg':
case 'happy-wedding-day':
case 'ngo-charity-fundraising':
case 'building-construction-architecture':
case 'education-business':
case 'green-eco-planet':
return 'https://cyclonethemes.com/downloads/bizberg-pro/';
break;
case 'dr-life-saver':
return 'https://cyclonethemes.com/downloads/dr-life-saver-pro/';
break;
case 'pizza-hub':
return 'https://cyclonethemes.com/downloads/pizza-hub-pro/';
break;
case 'professional-education-consultancy':
return 'https://cyclonethemes.com/downloads/professional-education-consultancy-pro/';
break;
default:
return false;
break;
}
}
}