title = __('Discount Alert', 'notificationx');
$this->popup = [
"denyButtonText" => __("More Info", "notificationx"),
"confirmButtonText" => __("Upgrade to PRO", "notificationx"),
// phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent -- False positive for this context: these are HTML email bodies and remote documentation/tutorial links in admin help text, not offloaded plugin assets. Audited 2026-07-16.
"html"=> __('
Discount Alert by NotificationX will allow you to display offers/discounts of your products/services on your website interactively & easily.
', 'notificationx')
// phpcs:enable PluginCheck.CodeAnalysis.Offloading.OffloadedContent
];
}
/**
* Hooked to nx_before_metabox_load action.
*
* @return void
*/
public function init_fields() {
parent::init_fields();
// add_filter('nx_content_trim_length_dependency', [$this, 'content_trim_length_dependency']);
}
/**
* Adds option to Link Type field in Content tab.
*
* @param array $options
* @return array
*/
public function link_types($options){
$_options = GlobalFields::get_instance()->normalize_fields([
'comment_url' => __('Comment URL', 'notificationx'),
], 'type', $this->id);
return array_merge($options, $_options);
}
/**
* This method is an implementable method for All Extension coming forward.
*
* @param array $args Settings arguments.
* @return mixed
*/
public function content_trim_length_dependency($dependency) {
$dependency[] = 'comments_theme-six-free';
$dependency[] = 'comments_theme-seven-free';
$dependency[] = 'comments_theme-eight-free';
return $dependency;
}
}