| 1 |
<div id="frm_top_bar"> |
| 2 |
<?php if ( FrmAppHelper::is_full_screen() ) { ?> |
| 3 |
<div class="frm-full-close"> |
| 4 |
<a href="<?php echo esc_attr( $atts['close'] ); ?>" aria-label="<?php esc_attr_e( 'Close', 'formidable' ); ?>"> |
| 5 |
<?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?> |
| 6 |
</a> |
| 7 |
</div> |
| 8 |
<?php } ?> |
| 9 |
<div id="frm-publishing"> |
| 10 |
<?php |
| 11 |
if ( isset( $atts['publish'] ) ) { |
| 12 |
call_user_func( $atts['publish'][0], $atts['publish'][1] ); |
| 13 |
} |
| 14 |
?> |
| 15 |
</div> |
| 16 |
|
| 17 |
<a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo"> |
| 18 |
<?php |
| 19 |
FrmAppHelper::show_logo( |
| 20 |
array( |
| 21 |
'height' => 35, |
| 22 |
'width' => 35, |
| 23 |
) |
| 24 |
); |
| 25 |
?> |
| 26 |
</a> |
| 27 |
|
| 28 |
<?php |
| 29 |
// Add form nav |
| 30 |
if ( $has_nav ) { |
| 31 |
FrmAppController::get_form_nav( $atts['form'], true, 'hide' ); |
| 32 |
} elseif ( isset( $atts['switcher'] ) ) { |
| 33 |
call_user_func( $atts['switcher'][0], $atts['switcher'][1] ); |
| 34 |
} else { |
| 35 |
// Used when no form is currently selected. |
| 36 |
?> |
| 37 |
|
| 38 |
<div class="frm_top_left"> |
| 39 |
<h1> |
| 40 |
<?php echo esc_html( $atts['label'] ); ?> |
| 41 |
<?php FrmAppHelper::add_new_item_link( $atts ); ?> |
| 42 |
<?php if ( isset( $atts['cancel_link'] ) ) { ?> |
| 43 |
<a href="<?php echo esc_url( $atts['cancel_link'] ); ?>" class="button button-secondary frm-button-secondary frm_animate_bg"> |
| 44 |
<?php esc_html_e( 'Cancel', 'formidable' ); ?> |
| 45 |
</a> |
| 46 |
<?php } ?> |
| 47 |
</h1> |
| 48 |
</div> |
| 49 |
<?php |
| 50 |
} |
| 51 |
|
| 52 |
if ( isset( $atts['nav'] ) ) { |
| 53 |
echo FrmAppHelper::kses( $atts['nav'], 'all' ); // WPCS: XSS ok. |
| 54 |
} |
| 55 |
?> |
| 56 |
<div style="clear:right;"></div> |
| 57 |
</div> |
| 58 |
|