| 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 |
|
| 11 |
if ( ! defined( 'ABSPATH' ) ) { |
| 12 |
die( 'You are not allowed to call this page directly.' ); |
| 13 |
} |
| 14 |
?> |
| 15 |
<div id="frm_top_bar"> |
| 16 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo"> |
| 17 |
<?php FrmAppHelper::show_header_logo(); ?> |
| 18 |
<span class="screen-reader-text"><?php esc_html_e( 'View Forms', 'formidable' ); ?></span> |
| 19 |
</a> |
| 20 |
<div id="frm_bs_dropdown"> |
| 21 |
<h1> |
| 22 |
<span> |
| 23 |
<?php echo esc_html( $title ); ?> |
| 24 |
</span> |
| 25 |
</h1> |
| 26 |
</div> |
| 27 |
<div id="frm-publishing"> |
| 28 |
<?php do_action( 'frm_applications_header_inside_title_after_span', $context ); ?> |
| 29 |
<?php do_action( 'frm_applications_header_after_title', $context ); ?> |
| 30 |
<?php if ( 'index' === $context && ! FrmAppHelper::pro_is_installed() ) { ?> |
| 31 |
<a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary" target="_blank" rel="noopener"> |
| 32 |
<?php esc_html_e( 'Upgrade', 'formidable' ); ?> |
| 33 |
</a> |
| 34 |
<?php } ?> |
| 35 |
</div> |
| 36 |
</div> |
| 37 |
|