/**
  * Get things rolling
  */
 function __construct()
 {
     global $pagenow;
     parent::__construct();
     $this->name = __('Webhook', 'ninja-forms-wh');
     add_filter('nf_notification_admin_js_vars', array($this, 'filter_js_vars'));
     // Only add these actions if we are actually on the notification tab.
     if ('admin.php' == $pagenow && isset($_REQUEST['page']) && $_REQUEST['page'] == 'ninja-forms' && isset($_REQUEST['tab']) && $_REQUEST['tab'] == 'notifications') {
         add_action('admin_init', array($this, 'add_js'), 11);
         add_action('admin_init', array($this, 'add_css'), 11);
     }
 }
 /**
  * Explode our settings by ` and extract each value.
  * Check to see if the setting is a field; if it is, assign the value.
  * Run shortcodes and return the result.
  *
  * @access public
  * @since 2.8
  * @return array $setting
  */
 public function process_setting($id, $setting, $html = 0)
 {
     // save the setting name
     $setting_name = $setting;
     $format = Ninja_Forms()->notification($id)->get_setting('email_format');
     if ('html' == $format) {
         $html = 1;
     }
     // call parent process setting method
     $setting = parent::process_setting($id, $setting, $html);
     // gotta keep the old filter in case anyone was using it.
     return apply_filters('nf_email_notification_process_setting', $setting, $setting_name, $id);
 }
 /**
  * Explode our settings by ` and extract each value.
  * Check to see if the setting is a field; if it is, assign the value.
  * Run shortcodes and return the result.
  *
  * @access public
  * @since  0.0.1
  * @return array $setting
  */
 public function process_setting($id, $setting, $html = 1)
 {
     return implode(' ', parent::process_setting($id, $setting, $html));
 }