GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
view-configuration.php
Go to the documentation of this file.
1 <?php
2 /** @global string $curr_template GravityView_Template::template_id value. Empty string if not. */
3 ?>
4 <input name="gv_fields" type="hidden" value="<?php echo esc_attr( http_build_query( array( 'fields' => get_post_meta( $post->ID, '_gravityview_directory_fields', true ) ) ) ); ?>" />
5 
6 <div id="gv-view-configuration-tabs">
7 
8  <ul class="nav-tab-wrapper">
9  <li><a href="#directory-view" class="nav-tab"><i class="dashicons dashicons-admin-page tab-icon"></i> <?php echo sprintf( esc_html__( '%s Layout', 'gk-gravityview' ), esc_html__( 'Multiple Entries', 'gk-gravityview' ) . '<span class="gv-responsive-label--collapse">' ); ?></span></a></li>
10  <li><a href="#single-view" class="nav-tab"><i class="dashicons dashicons-media-default tab-icon"></i> <?php echo sprintf( esc_html__( '%s Layout', 'gk-gravityview' ), esc_html__( 'Single Entry', 'gk-gravityview' ) . '<span class="gv-responsive-label--collapse">' ); ?></span></a></li>
11  <li><a href="#edit-view" class="nav-tab"><i class="dashicons dashicons-welcome-write-blog tab-icon"></i> <?php echo sprintf( esc_html__( '%s Layout', 'gk-gravityview' ), esc_html__( 'Edit Entry', 'gk-gravityview' ) . '<span class="gv-responsive-label--collapse">' ); ?></span></a></li>
12  </ul>
13 
14  <div id="directory-view">
15 
16  <div id="directory-fields" class="gv-section">
17 
18  <h4><?php esc_html_e( 'Top Widgets', 'gk-gravityview'); ?> <span><?php esc_html_e( 'These widgets will be shown above entries.', 'gk-gravityview'); ?></span></h4>
19 
20  <?php do_action('gravityview_render_widgets_active_areas', $curr_template, 'header', $post->ID ); ?>
21 
22  <h4><?php esc_html_e( 'Entries Fields', 'gk-gravityview'); ?> <span><?php esc_html_e( 'These fields will be shown for each entry.', 'gk-gravityview'); ?></span></h4>
23 
24  <div id="directory-active-fields" class="gv-grid">
25  <?php if(!empty( $curr_template ) ) {
26  do_action('gravityview_render_directory_active_areas', $curr_template, 'directory', $post->ID, true );
27  } ?>
28  </div>
29 
30  <h4><?php esc_html_e( 'Bottom Widgets', 'gk-gravityview'); ?> <i class="gf_tooltip gv_tooltip" title="<?php esc_attr_e( 'These widgets will be shown below entries.', 'gk-gravityview'); ?>"></i></h4>
31 
32  <?php
33 
34  do_action('gravityview_render_widgets_active_areas', $curr_template, 'footer', $post->ID );
35 
36  do_action('gravityview_render_field_pickers', 'directory' );
37 
38  ?>
39 
40  <?php // list of available widgets to be shown in the popup ?>
41  <div id="directory-available-widgets" class="hide-if-js gv-tooltip">
42  <div aria-live="polite" role="listbox" class="gv-items-picker-container gv-widget-picker-container" data-layout="grid" data-cols="2">
43  <button class="close" role="button" aria-label="<?php esc_html_e( 'Close', 'gk-gravityview' ); ?>"><i class="dashicons dashicons-dismiss"></i></button>
44  <?php do_action('gravityview_render_available_widgets' ); ?>
45  </div>
46  </div>
47 
48  </div>
49 
50 
51  </div><?php //end directory tab ?>
52 
53 
54 
55  <?php // Single View Tab ?>
56 
57  <div id="single-view">
58 
59  <div id="single-fields" class="gv-section">
60 
61  <div class="notice notice-warning inline is-dismissible">
62  <h3><?php printf( esc_html__( 'Note: %s', 'gk-gravityview' ), sprintf( esc_html__( 'No fields link to the %s layout.', 'gk-gravityview'), esc_html__( 'Single Entry', 'gk-gravityview' ) ) ); ?></h3>
63  <p><a data-beacon-article-modal="54c67bbae4b0512429885516" href="https://docs.gravityview.co/article/70-linking-to-a-single-entry"><?php printf( esc_html__( 'Learn how to link to %s', 'gk-gravityview' ), esc_html__( 'Single Entry', 'gk-gravityview' ) ); ?></a></p>
64  </div>
65 
66  <h4><?php esc_html_e( 'These fields will be shown in Single Entry layout.', 'gk-gravityview'); ?></h4>
67 
68  <div id="single-active-fields" class="gv-grid">
69  <?php
70  if(!empty( $curr_template ) ) {
71  do_action('gravityview_render_directory_active_areas', $curr_template, 'single', $post->ID, true );
72  }
73  ?>
74  </div>
75  <?php
76  do_action('gravityview_render_field_pickers', 'single' );
77  ?>
78  </div>
79 
80  </div> <?php // end single view tab ?>
81 
82  <div id="edit-view">
83 
84  <div id="edit-fields" class="gv-section">
85 
86  <div class="notice notice-warning inline is-dismissible">
87  <h3><?php printf( esc_html__( 'Note: %s', 'gk-gravityview' ), sprintf( esc_html__( 'No fields link to the %s layout.', 'gk-gravityview'), esc_html__( 'Edit Entry', 'gk-gravityview' ) ) ); ?></h3>
88  <p><a data-beacon-article-modal="54c67bb9e4b0512429885513" href="https://docs.gravityview.co/article/67-configuring-the-edit-entry-screen"><?php printf( esc_html__( 'Learn how to link to %s', 'gk-gravityview' ), esc_html__( 'Edit Entry', 'gk-gravityview' ) ); ?></a></p>
89  </div>
90 
91  <h4><?php esc_html_e( 'Fields shown when editing an entry.', 'gk-gravityview'); ?> <span><?php esc_html_e('If not configured, all form fields will be displayed.', 'gk-gravityview'); ?></span></h4>
92 
93  <div id="edit-active-fields" class="gv-grid">
94  <?php
95  do_action('gravityview_render_directory_active_areas', apply_filters( 'gravityview/template/edit', 'default_table_edit' ), 'edit', $post->ID, true );
96  ?>
97  </div>
98 
99  <?php
100  do_action('gravityview_render_field_pickers', 'edit' );
101  ?>
102 
103  </div>
104 
105  </div> <?php // end edit view tab ?>
106 </div> <?php // end tabs ?>
107 
108 <input type="hidden" name="gv_fields_done" value="1" />
global $post
Definition: delete-entry.php:7
scale description ul