cc->feature_list) ? null : $this->cc->feature_list );
$dplugin_link = 'https://berocket.com/product/' . $this->cc->values['premium_slug'];
$dplugin_lic = br_get_value_from_array($this->cc->info, 'lic_id');
if( ! empty($dplugin_lic) ) {
$dplugin_lic_link = 'https://berocket.com/checkout/'.$dplugin_lic.'/promo/SAVE15';
} else {
$dplugin_lic_link = $dplugin_link.'/SAVE15';
}
if ( isset($this->plugin_version_capability) && $this->plugin_version_capability <= 5 ) {
echo apply_filters('berocket_rate_plugin_window', '', br_get_value_from_array($this->cc->info, 'id'));
if ( ! empty( $feature_list ) && count( $feature_list ) > 0 ) { ?>
' . $feature . '';
}
$text = '
Unlock all the features with Premium version!
Support the plugin by purchasing paid version
This will help us release next version
';
$dpdiscount = '15%';
if ( isset( $start_time ) and isset( $end_time ) and isset( $discount ) and time() > $start_time && time() < $end_time and (int) $discount > 15 ) {
$dpdiscount = $discount;
}
$text = str_replace( '%feature_list%', $feature_text, $text );
$text = str_replace( '%link%', $dplugin_link, $text );
$text = str_replace( '%licence%', $dplugin_lic, $text );
$text = str_replace( '%licence_link%', $dplugin_lic_link, $text );
$text = str_replace( '%discount%', $dpdiscount, $text );
$text = str_replace( '%plugin_name%', (empty($plugin_info['Name']) ? '' : $plugin_info['Name']), $text );
$text = str_replace( '%plugin_link%', (empty($plugin_info['PluginURI']) ? '' : $plugin_info['PluginURI']), $text );
echo $text;
?>
cc->info, 'id'));
$subscribed = get_option('berocket_email_subscribed');
if( ! $subscribed ) {
$user_email = wp_get_current_user();
if( isset($user_email->user_email) ) {
$user_email = $user_email->user_email;
} else {
$user_email = '';
}
?>