| @@ -7,9 +7,8 @@ | ||
| 7 | 7 | ?> |
| 8 | 8 | <div id="frm_top_bar" class="<?php echo esc_attr( 'frm_nav_bar' ); ?>"> |
| 9 | 9 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo"> |
| 10 | 10 | <?php FrmAppHelper::show_header_logo(); ?> |
| 11 | - <span class="screen-reader-text"><?php esc_html_e( 'View Forms', 'formidable' ); ?></span> | |
| 12 | 11 | </a> |
| 13 | 12 | |
| 14 | 13 | <?php |
| 15 | 14 | // Add form nav |
| @@ -35,21 +34,18 @@ | ||
| 35 | 34 | } |
| 36 | 35 | ?> |
| 37 | 36 | </h1> |
| 38 | 37 | </div> |
| 39 | - <ul class="frm_form_nav"></ul> | |
| 40 | 38 | <?php |
| 41 | - }//end if | |
| 39 | + } | |
| 42 | 40 | |
| 43 | 41 | if ( isset( $atts['nav'] ) ) { |
| 44 | - FrmAppHelper::kses_echo( $atts['nav'], 'all' ); | |
| 42 | + echo FrmAppHelper::kses( $atts['nav'], 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 45 | 43 | } |
| 46 | 44 | |
| 47 | 45 | echo '<div id="frm-publishing">'; |
| 48 | - | |
| 49 | 46 | if ( ! empty( $atts['publish'] ) || ! empty( $atts['import_link'] ) ) { |
| 50 | 47 | $btn_type = 'primary'; |
| 51 | - | |
| 52 | 48 | if ( isset( $atts['publish'] ) && is_array( $atts['publish'] ) ) { |
| 53 | 49 | call_user_func( $atts['publish'][0], $atts['publish'][1] ); |
| 54 | 50 | $btn_type = 'secondary'; |
| 55 | 51 | } |
| @@ -69,9 +65,9 @@ | ||
| 69 | 65 | |
| 70 | 66 | if ( FrmAppHelper::is_full_screen() ) { |
| 71 | 67 | ?> |
| 72 | 68 | <div class="frm-full-close"> |
| 73 | - <a href="<?php echo esc_url( $atts['close'] ); ?>" aria-label="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> | |
| 69 | + <a href="<?php echo esc_attr( $atts['close'] ); ?>" aria-label="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> | |
| 74 | 70 | <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?> |
| 75 | 71 | </a> |
| 76 | 72 | </div> |
| 77 | 73 | <?php } ?> |