PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
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
← All changes | classes/views/shared/admin-header.php +23 -66 6.303.06.06 View file →
@@ -1,78 +1,35 @@
1 -<?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
1 +<div id="frm_top_bar">
2 + <?php
5 3
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 4 // Add form nav
16 5 if ( $has_nav ) {
17 6 FrmAppController::get_form_nav( $atts['form'], true, 'hide' );
18 - } elseif ( isset( $atts['switcher'] ) ) {
19 - call_user_func( $atts['switcher'][0], $atts['switcher'][1] );
20 7 } else {
21 - // Used when no form is currently selected.
22 - ?>
8 +
9 + ?>
10 +
23 11 <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>
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>
38 18 </div>
39 - <ul class="frm_form_nav"></ul>
40 - <?php
41 - }//end if
42 -
43 - if ( isset( $atts['nav'] ) ) {
44 - FrmAppHelper::kses_echo( $atts['nav'], 'all' );
19 + <?php
45 20 }
21 + ?>
46 22
47 - echo '<div id="frm-publishing">';
23 + <div class="clear"></div>
24 +</div>
48 25
49 - if ( ! empty( $atts['publish'] ) || ! empty( $atts['import_link'] ) ) {
50 - $btn_type = 'primary';
51 -
52 - if ( isset( $atts['publish'] ) && is_array( $atts['publish'] ) ) {
53 - call_user_func( $atts['publish'][0], $atts['publish'][1] );
54 - $btn_type = 'secondary';
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 );
55 32 }
56 -
57 - if ( $atts['import_link'] ) {
58 - // Use primary style if it's the only button.
59 - FrmAppHelper::import_link( $btn_type );
60 - }
61 - } elseif ( ! FrmAppHelper::pro_is_installed() ) {
62 33 ?>
63 - <a href="<?php echo esc_url( FrmAppHelper::admin_upgrade_link( 'header' ) ); ?>" class="button button-secondary frm-button-secondary">
64 - <?php esc_html_e( 'Upgrade', 'formidable' ); ?>
65 - </a>
66 - <?php
67 - }
68 - echo '</div>';
69 -
70 - if ( FrmAppHelper::is_full_screen() ) {
71 - ?>
72 - <div class="frm-full-close">
73 - <a href="<?php echo esc_url( $atts['close'] ); ?>" aria-label="<?php esc_attr_e( 'Close', 'formidable' ); ?>">
74 - <?php FrmAppHelper::icon_by_class( 'frmfont frm_close_icon', array( 'aria-label' => 'Dismiss' ) ); ?>
75 - </a>
76 - </div>
77 - <?php } ?>
78 -</div>
34 + </h<?php echo $has_nav ? 1 : 2 ?>>
35 +<?php } ?>