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

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