| @@ -1,5 +1,14 @@ | ||
| 1 | 1 | <?php |
| 2 | +/** | |
| 3 | + * Applications header. | |
| 4 | + * | |
| 5 | + * @package Formidable | |
| 6 | + * | |
| 7 | + * @var string $title Header title text. | |
| 8 | + * @var string $context Current applications view context (e.g. 'index'). | |
| 9 | + */ | |
| 10 | + | |
| 2 | 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | 12 | die( 'You are not allowed to call this page directly.' ); |
| 4 | 13 | } |
| 5 | 14 | ?> |
| @@ -5,8 +14,9 @@ | ||
| 5 | 14 | ?> |
| 6 | 15 | <div id="frm_top_bar"> |
| 7 | 16 | <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo"> |
| 8 | 17 | <?php FrmAppHelper::show_header_logo(); ?> |
| 18 | + <span class="screen-reader-text"><?php esc_html_e( 'View Forms', 'formidable' ); ?></span> | |
| 9 | 19 | </a> |
| 10 | 20 | <div id="frm_bs_dropdown"> |
| 11 | 21 | <h1> |
| 12 | 22 | <span> |
| @@ -17,9 +27,9 @@ | ||
| 17 | 27 | <div id="frm-publishing"> |
| 18 | 28 | <?php do_action( 'frm_applications_header_inside_title_after_span', $context ); ?> |
| 19 | 29 | <?php do_action( 'frm_applications_header_after_title', $context ); ?> |
| 20 | 30 | <?php if ( 'index' === $context && ! FrmAppHelper::pro_is_installed() ) { ?> |
| 21 | - <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary"> | |
| 31 | + <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary" target="_blank" rel="noopener"> | |
| 22 | 32 | <?php esc_html_e( 'Upgrade', 'formidable' ); ?> |
| 23 | 33 | </a> |
| 24 | 34 | <?php } ?> |
| 25 | 35 | </div> |