| 1 |
<div id="frm_top_bar"> |
| 2 |
<?php |
| 3 |
|
| 4 |
// Add form nav |
| 5 |
if ( $has_nav ) { |
| 6 |
FrmAppController::get_form_nav( $atts['form'], true, 'hide' ); |
| 7 |
} else { |
| 8 |
|
| 9 |
?> |
| 10 |
|
| 11 |
<div class="frm_top_left"> |
| 12 |
<h1><?php echo esc_html( $atts['label'] ); ?> |
| 13 |
<?php FrmAppHelper::add_new_item_link( $atts ); ?> |
| 14 |
<?php if ( isset( $atts['cancel_link'] ) ) { ?> |
| 15 |
<a href="<?php echo esc_url( $atts['cancel_link'] ) ?>" class="add-new-h2 frm_animate_bg"><?php esc_html_e( 'Cancel', 'formidable' ); ?></a> |
| 16 |
<?php } ?> |
| 17 |
</h1> |
| 18 |
</div> |
| 19 |
<?php |
| 20 |
} |
| 21 |
?> |
| 22 |
|
| 23 |
<div class="clear"></div> |
| 24 |
</div> |
| 25 |
|
| 26 |
<?php if ( isset( $atts['form'] ) && ! empty( $atts['form'] ) && ! isset( $atts['hide_title'] ) ) { ?> |
| 27 |
<h<?php echo $has_nav ? 1 : 2 ?> id="frm_form_heading"> |
| 28 |
<?php |
| 29 |
echo esc_html( strip_tags( '' === $atts['form']->name ? __( '(no title)', 'formidable' ) : $atts['form']->name ) ); |
| 30 |
if ( $has_nav ) { |
| 31 |
FrmAppHelper::add_new_item_link( $atts ); |
| 32 |
} |
| 33 |
?> |
| 34 |
</h<?php echo $has_nav ? 1 : 2 ?>> |
| 35 |
<?php } ?> |
| 36 |
|