Exemplo n.º 1
0
                echo FrmFieldsHelper::replace_shortcodes($field['custom_html'], $field, array(), $form);
                ?>
<input type="hidden" name="frm_next_page" class="frm_next_page" id="frm_next_p_<?php 
                echo isset($frm_vars['prev_page'][$field['form_id']]) ? $frm_vars['prev_page'][$field['form_id']] : 0;
                ?>
" value="" />
<?php 
                if ($field['form_id'] == $post_form_id && !defined('DOING_AJAX')) {
                    $frm_vars['scrolled'] = true;
                    //scroll to the form when we move to the next page
                    FrmFormsHelper::get_scroll_js($field['form_id']);
                }
            } else {
                ?>
<input type="hidden" name="frm_page_order_<?php 
                echo esc_attr($field['form_id']);
                ?>
" value="<?php 
                echo esc_attr($field['field_order']);
                ?>
" />
<?php 
                if ($field['form_id'] == $post_form_id && !defined('DOING_AJAX') && !isset($frm_vars['scrolled'])) {
                    $frm_vars['scrolled'] = true;
                    //scroll to the form when we move to the next page
                    FrmFormsHelper::get_scroll_js($field['form_id']);
                }
            }
        }
    }
}
Exemplo n.º 2
0
if (isset($message) && $message != '') {
    if (FrmAppHelper::is_admin()) {
        ?>
<div id="message" class="frm_message updated frm_msg_padding"><?php 
        echo wp_kses_post($message);
        ?>
</div><?php 
    } else {
        FrmFormsHelper::get_scroll_js($form->id);
        // we need to allow scripts here for javascript in the success message
        echo $message;
    }
}
if (isset($errors) && is_array($errors) && !empty($errors)) {
    if (isset($form) && is_object($form)) {
        FrmFormsHelper::get_scroll_js($form->id);
    }
    ?>
<div class="<?php 
    echo esc_attr(FrmFormsHelper::form_error_class());
    ?>
">
<?php 
    $img = '';
    if (!FrmAppHelper::is_admin()) {
        $img = apply_filters('frm_error_icon', $img);
        if ($img && !empty($img)) {
            ?>
<img src="<?php 
            echo esc_attr($img);
            ?>