@@ -56,27 +56,27 @@ discard block |
||
| 56 | 56 | <?php esc_html_e( 'Helpers', 'formidable' ) ?>: |
| 57 | 57 | <ul class="frm_code_list"> |
| 58 | 58 | <?php |
| 59 | - $col = 'one'; |
|
| 59 | + $col = 'one'; |
|
| 60 | 60 | foreach ( $entry_shortcodes as $skey => $sname ) { |
| 61 | 61 | if ( empty( $skey ) ) { |
| 62 | - $col = 'one'; |
|
| 63 | - echo '<li class="clear frm_block"></li>'; |
|
| 64 | - continue; |
|
| 65 | - } |
|
| 62 | + $col = 'one'; |
|
| 63 | + echo '<li class="clear frm_block"></li>'; |
|
| 64 | + continue; |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | 67 | $classes = ( in_array( $skey, array( 'siteurl', 'sitename', 'entry_count' ) ) ) ? 'show_before_content show_after_content' : ''; |
| 68 | 68 | $classes .= ( strpos( $skey, 'default-' ) === 0 ) ? 'hide_frm_not_email_subject' : ''; |
| 69 | - ?> |
|
| 69 | + ?> |
|
| 70 | 70 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
| 71 | 71 | <a href="javascript:void(0)" class="frmbutton button <?php echo esc_attr( $classes ); ?> frm_insert_code" data-code="<?php echo esc_attr( $skey ) ?>"> |
| 72 | 72 | <?php echo esc_html( $sname ) ?> |
| 73 | 73 | </a> |
| 74 | 74 | </li> |
| 75 | 75 | <?php |
| 76 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
| 76 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
| 77 | 77 | unset( $skey, $sname, $classes ); |
| 78 | - } |
|
| 79 | - ?> |
|
| 78 | + } |
|
| 79 | + ?> |
|
| 80 | 80 | </ul> |
| 81 | 81 | <div class="clear"></div> |
| 82 | 82 | </div> |
@@ -91,11 +91,11 @@ discard block |
||
| 91 | 91 | <ul class="frm_code_list frm_full_width"> |
| 92 | 92 | <?php |
| 93 | 93 | if ( ! empty( $fields ) ) { |
| 94 | - foreach ( $fields as $f ) { |
|
| 94 | + foreach ( $fields as $f ) { |
|
| 95 | 95 | if ( FrmField::is_no_save_field( $f->type ) || ( $f->type == 'data' && ( ! isset( $f->field_options['data_type'] ) || $f->field_options['data_type'] == 'data' || $f->field_options['data_type'] == '' ) ) ) { |
| 96 | - continue; |
|
| 97 | - } |
|
| 98 | - ?> |
|
| 96 | + continue; |
|
| 97 | + } |
|
| 98 | + ?> |
|
| 99 | 99 | <li> |
| 100 | 100 | <a href="javascript:void(0)" class="frmids alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->id ) ?>]<?php esc_attr_e( 'Conditional text here', 'formidable' ) ?>[/if <?php echo esc_attr( $f->id ) ?>">[if <?php echo (int) $f->id ?>]</a> |
| 101 | 101 | <a href="javascript:void(0)" class="frmkeys alignright frm_insert_code" data-code="if <?php echo esc_attr( $f->field_key ); ?>]something[/if <?php echo esc_attr( $f->field_key ); ?>">[if <?php echo FrmAppHelper::truncate( $f->field_key, 10 ); // WPCS: XSS ok. ?>]</a> |
@@ -115,17 +115,17 @@ discard block |
||
| 115 | 115 | <p class="howto"><?php esc_html_e( 'Click a button below to insert sample logic into your view', 'formidable' ) ?></p> |
| 116 | 116 | <ul class="frm_code_list"> |
| 117 | 117 | <?php |
| 118 | - $col = 'one'; |
|
| 118 | + $col = 'one'; |
|
| 119 | 119 | foreach ( $cond_shortcodes as $skey => $sname ) { |
| 120 | - ?> |
|
| 120 | + ?> |
|
| 121 | 121 | <li class="frm_col_<?php echo esc_attr( $col ) ?>"> |
| 122 | 122 | <a href="javascript:void(0)" class="frmbutton button frm_insert_code" data-code="if x <?php echo esc_attr( $skey ); ?>][/if x"><?php echo esc_html( $sname ); ?></a> |
| 123 | 123 | </li> |
| 124 | 124 | <?php |
| 125 | - $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
| 125 | + $col = ( $col == 'one' ) ? 'two' : 'one'; |
|
| 126 | 126 | unset( $skey, $sname ); |
| 127 | - } |
|
| 128 | - ?> |
|
| 127 | + } |
|
| 128 | + ?> |
|
| 129 | 129 | </ul> |
| 130 | 130 | </div> |
| 131 | 131 | <?php } ?> |
@@ -165,8 +165,8 @@ discard block |
||
| 165 | 165 | </div> |
| 166 | 166 | |
| 167 | 167 | <?php |
| 168 | - if ( $settings_tab ) { |
|
| 168 | + if ( $settings_tab ) { |
|
| 169 | 169 | include( FrmAppHelper::plugin_path() . '/classes/views/frm-forms/mb_html_tab.php' ); |
| 170 | - } |
|
| 171 | - ?> |
|
| 170 | + } |
|
| 171 | + ?> |
|
| 172 | 172 | </div> |