@@ -1,10 +1,10 @@ discard block |
||
| 1 | -<?php wp_nonce_field('frm_save_form_nonce', 'frm_save_form'); ?> |
|
| 1 | +<?php wp_nonce_field( 'frm_save_form_nonce', 'frm_save_form' ); ?> |
|
| 2 | 2 | <input type="hidden" name="status" value="<?php echo esc_attr( $values['status'] ); ?>" /> |
| 3 | 3 | <input type="hidden" name="new_status" value="" /> |
| 4 | 4 | |
| 5 | 5 | <div id="frm_form_editor_container"> |
| 6 | 6 | <div id="titlediv"> |
| 7 | - <input type="text" name="name" value="<?php echo esc_attr($form->name); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here') ?>" /> |
|
| 7 | + <input type="text" name="name" value="<?php echo esc_attr( $form->name ); ?>" id="title" placeholder="<?php esc_attr_e( 'Enter title here' ) ?>" /> |
|
| 8 | 8 | <div id="edit-slug-box" class="hide-if-no-js"> |
| 9 | 9 | <div id="frm_form_key_box" class="alignright"> |
| 10 | 10 | <strong><?php _e( 'Form Key:', 'formidable' ) ?></strong> |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | </div> |
| 17 | 17 | |
| 18 | 18 | <div class="postbox"> |
| 19 | - <div class="frm_no_fields <?php echo ( isset($values['fields']) && ! empty($values['fields']) ) ? 'frm_hidden' : ''; ?>"> |
|
| 19 | + <div class="frm_no_fields <?php echo ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) ? 'frm_hidden' : ''; ?>"> |
|
| 20 | 20 | <div class="alignleft sketch1"> |
| 21 | 21 | <img src="<?php echo esc_url( FrmAppHelper::plugin_url() . '/images/sketch_arrow1.png' ); ?>" alt="" /> |
| 22 | 22 | </div> |
@@ -50,16 +50,16 @@ discard block |
||
| 50 | 50 | </div> |
| 51 | 51 | <ul id="new_fields" class="frm_sorting inside"> |
| 52 | 52 | <?php |
| 53 | -if ( isset($values['fields']) && ! empty($values['fields']) ) { |
|
| 53 | +if ( isset( $values['fields'] ) && ! empty( $values['fields'] ) ) { |
|
| 54 | 54 | $count = 0; |
| 55 | 55 | foreach ( $values['fields'] as $field ) { |
| 56 | - $count++; |
|
| 56 | + $count ++; |
|
| 57 | 57 | $field_name = 'item_meta[' . $field['id'] . ']'; |
| 58 | - $html_id = FrmFieldsHelper::get_html_id($field); |
|
| 58 | + $html_id = FrmFieldsHelper::get_html_id( $field ); |
|
| 59 | 59 | require( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/add_field.php' ); |
| 60 | - unset($field, $field_name); |
|
| 60 | + unset( $field, $field_name ); |
|
| 61 | 61 | } |
| 62 | - unset($count); |
|
| 62 | + unset( $count ); |
|
| 63 | 63 | } ?> |
| 64 | 64 | </ul> |
| 65 | 65 | </div> |