is_action('theme')) { if ($controls->data['theme'] != 'rawhtml') { $controls->merge($module->themes->get_options($controls->data['theme'])); $module->save_options($controls->data); } // If this theme has no intermediate options... if ($controls->data['theme'] == 'rawhtml' || !file_exists($module->get_current_theme_file_path('theme-options.php'))) { $email = array(); $email['status'] = 'new'; $email['subject'] = __('Here the email subject', 'newsletter'); $email['track'] = Newsletter::instance()->options['track']; $email['token'] = $module->get_token(); if ($controls->data['theme'] == 'rawhtml') { $email['editor'] = NewsletterEmails::EDITOR_HTML; $email['message'] = "\n\n
\n