PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 4.06.03
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v4.06.03
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / shared / admin-header.php

admin-header.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 4.06.03, at classes/views/shared/admin-header.php

56 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 FrmAppHelper::show_header_logo(); ?>
19 </a>
20
21 <?php
22 // Add form nav
23 if ( $has_nav ) {
24 FrmAppController::get_form_nav( $atts['form'], true, 'hide' );
25 } elseif ( isset( $atts['switcher'] ) ) {
26 call_user_func( $atts['switcher'][0], $atts['switcher'][1] );
27 } else {
28 // Used when no form is currently selected.
29 ?>
30
31 <div class="frm_top_left <?php echo esc_attr( $atts['import_link'] ? 'frm_top_wide' : '' ); ?>">
32 <h1>
33 <?php echo esc_html( $atts['label'] ); ?>
34 <?php FrmAppHelper::add_new_item_link( $atts ); ?>
35 <?php if ( $atts['import_link'] ) { ?>
36 <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable-import' ) ); ?>" class="button button-secondary frm-button-secondary frm_animate_bg">
37 <?php esc_html_e( 'Import', 'formidable' ); ?>
38 </a>
39 <?php } ?>
40 <?php if ( isset( $atts['cancel_link'] ) ) { ?>
41 <a href="<?php echo esc_url( $atts['cancel_link'] ); ?>" class="button button-secondary frm-button-secondary frm_animate_bg">
42 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
43 </a>
44 <?php } ?>
45 </h1>
46 </div>
47 <?php
48 }
49
50 if ( isset( $atts['nav'] ) ) {
51 echo FrmAppHelper::kses( $atts['nav'], 'all' ); // WPCS: XSS ok.
52 }
53 ?>
54 <div style="clear:right;"></div>
55 </div>
56