public static function show_entry_shortcode($atts)
 {
     return FrmEntryFormat::show_entry($atts);
 }
 public static function replace_default_message($message, $atts)
 {
     if (strpos($message, '[default-message') === false && strpos($message, '[default_message') === false && !empty($message)) {
         return $message;
     }
     if (empty($message)) {
         $message = '[default-message]';
     }
     preg_match_all("/\\[(default-message|default_message)\\b(.*?)(?:(\\/))?\\]/s", $message, $shortcodes, PREG_PATTERN_ORDER);
     foreach ($shortcodes[0] as $short_key => $tag) {
         $add_atts = shortcode_parse_atts($shortcodes[2][$short_key]);
         if ($add_atts) {
             $this_atts = array_merge($atts, $add_atts);
         } else {
             $this_atts = $atts;
         }
         $default = FrmEntryFormat::show_entry($this_atts);
         // Add the default message
         $message = str_replace($shortcodes[0][$short_key], $default, $message);
     }
     return $message;
 }
 public static function get_email_html()
 {
     check_ajax_referer('frm_ajax', 'nonce');
     echo FrmEntryFormat::show_entry(array('form_id' => FrmAppHelper::get_post_param('form_id', '', 'absint'), 'default_email' => true, 'plain_text' => FrmAppHelper::get_post_param('plain_text', '', 'absint')));
     wp_die();
 }