GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
table-single.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Display a single entry when using a table template
4  *
5  * @package GravityView
6  * @subpackage GravityView/templates
7  *
8  * @global GravityView_View $this
9  */
10 ?>
11 <?php gravityview_before(); ?>
12 
13 <p class="gv-back-link"><?php echo gravityview_back_link(); ?></p>
14 
15 <div class="<?php gv_container_class( 'gv-table-view gv-table-container gv-table-single-container' ); ?>">
16  <table class="gv-table-view-content">
17  <?php if( $this->getFields('single_table-columns') ) { ?>
18  <thead>
19  <?php gravityview_header(); ?>
20  </thead>
21  <tbody>
22  <?php
23 
24  $markup = '
25  <tr id="{{ field_id }}" class="{{class}}">
26  <th scope="row">{{label}}</th>
27  <td>{{value}}</td>
28  </tr>';
29 
30  $this->renderZone( 'columns', array(
31  'markup' => $markup,
32  ));
33  ?>
34  </tbody>
35  <tfoot>
36  <?php gravityview_footer(); ?>
37  </tfoot>
38  <?php } ?>
39  </table>
40 </div>
41 <?php gravityview_after(); ?>
gravityview_after()
Definition: class-api.php:1274
gravityview_footer()
Definition: class-api.php:1245
gravityview_back_link( $context=null)
Generate HTML for the back link from single entry view.
Definition: class-api.php:953
gravityview_header()
Definition: class-api.php:1216
gravityview_before()
Definition: class-api.php:1187