PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.13
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.13
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 6.13, at classes/views/shared/admin-header.php

77 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 FrmAppHelper::print_admin_banner( ! $has_nav && empty( $atts['switcher'] ) );
7 ?>
8 <div id="frm_top_bar" class="<?php echo esc_attr( 'frm_nav_bar' ); ?>">
9 <a href="<?php echo esc_url( admin_url( 'admin.php?page=formidable' ) ); ?>" class="frm-header-logo">
10 <?php FrmAppHelper::show_header_logo(); ?>
11 <span class="screen-reader-text"><?php esc_html_e( 'View Forms', 'formidable' ); ?></span>
12 </a>
13
14 <?php
15 // Add form nav
16 if ( $has_nav ) {
17 FrmAppController::get_form_nav( $atts['form'], true, 'hide' );
18 } elseif ( isset( $atts['switcher'] ) ) {
19 call_user_func( $atts['switcher'][0], $atts['switcher'][1] );
20 } else {
21 // Used when no form is currently selected.
22 ?>
23 <div class="frm_top_left">
24 <h1>
25 <?php
26 echo esc_html( $atts['label'] );
27 FrmAppHelper::add_new_item_link( $atts );
28
29 if ( isset( $atts['cancel_link'] ) ) {
30 ?>
31 <a href="<?php echo esc_url( $atts['cancel_link'] ); ?>" class="button frm-button-secondary frm_animate_bg">
32 <?php esc_html_e( 'Cancel', 'formidable' ); ?>
33 </a>
34 <?php
35 }
36 ?>
37 </h1>
38 </div>
39 <ul class="frm_form_nav"></ul>
40 <?php
41 }//end if
42
43 if ( isset( $atts['nav'] ) ) {
44 echo FrmAppHelper::kses( $atts['nav'], 'all' ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
45 }
46
47 echo '<div id="frm-publishing">';
48 if ( ! empty( $atts['publish'] ) || ! empty( $atts['import_link'] ) ) {
49 $btn_type = 'primary';
50 if ( isset( $atts['publish'] ) && is_array( $atts['publish'] ) ) {
51 call_user_func( $atts['publish'][0], $atts['publish'][1] );
52 $btn_type = 'secondary';
53 }
54
55 if ( $atts['import_link'] ) {
56 // Use primary style if it's the only button.
57 FrmAppHelper::import_link( $btn_type );
58 }
59 } elseif ( ! FrmAppHelper::pro_is_installed() ) {
60 ?>
61 <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary">
62 <?php esc_html_e( 'Upgrade', 'formidable' ); ?>
63 </a>
64 <?php
65 }
66 echo '</div>';
67
68 if ( FrmAppHelper::is_full_screen() ) {
69 ?>
70 <div class="frm-full-close">
71 <a href="<?php echo esc_url( $atts['close'] ); ?>" aria-label="<?php esc_attr_e( 'Close', 'formidable' ); ?>">
72 <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?>
73 </a>
74 </div>
75 <?php } ?>
76 </div>
77