PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 2.9.19.4
Pods – Custom Content Types and Fields v2.9.19.4
2.7.31.4 2.8.23.5 2.9.19.5 3.0.10.5 3.1.4.3 3.2.8.4 3.3.9.2 2.8.23.4 2.9.19.4 3.0.10.4 3.1.4.2 3.2.8.3 3.3.9.1 trunk 1.14.8 2.7.31.3 2.8.23.3 2.9.19.3 3.0.10.3 3.1.4.1 3.2.0 3.2.1 3.2.1.1 3.2.2 3.2.4 3.2.5 3.2.6 3.2.7 3.2.7.1 3.2.8 3.2.8.1 3.2.8.2 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9
pods / ui / forms / table-row.php
pods / ui / forms Last commit date
type 2 weeks ago div-row.php 2 weeks ago div-rows.php 2 weeks ago form.php 2 weeks ago list-row.php 2 weeks ago list-rows.php 2 weeks ago p-row.php 2 weeks ago p-rows.php 2 weeks ago table-row.php 2 weeks ago table-rows.php 2 weeks ago
table-row.php
49 lines
1 <?php
2 // Don't load directly.
3 if ( ! defined( 'ABSPATH' ) ) {
4 die( '-1' );
5 }
6
7 /**
8 * @var Pods $pod
9 * @var mixed $id
10 * @var string $field_prefix
11 * @var string $th_scope
12 * @var \Pods\Whatsit\Field $field
13 * @var string $row_classes
14 * @var mixed $value
15 * @var string|null $heading_tag
16 */
17 ?>
18 <tr valign="top" class="pods-field__container pods-field-option <?php echo esc_attr( $row_classes ); ?>"
19 style="<?php echo esc_attr( 'hidden' == $field['type'] ? 'display:none;' : '' ); ?>">
20 <?php if ( 'heading' === $field['type'] ) : ?>
21 <?php $heading_tag = pods_v( $field['type'] . '_tag', $field, isset( $heading_tag ) ? $heading_tag : 'h2', true ); ?>
22 <td colspan="2">
23 <<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>
24 class="pods-form-ui-heading pods-form-ui-heading-<?php echo esc_attr( $field['name'] ); ?>">
25 <?php echo esc_html( $field['label'] ); ?>
26 </<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>>
27 <?php echo PodsForm::comment( $field_prefix . $field['name'], pods_v( 'description', $field ), $field ); ?>
28 </td>
29 <?php elseif ( 'html' === $field['type'] && 1 === (int) $field['html_no_label'] ) : ?>
30 <td colspan="2">
31 <?php echo PodsForm::field( $field_prefix . $field['name'], $value, $field['type'], $field, $pod, $id ); ?>
32 </td>
33 <?php else : ?>
34 <th<?php if ( ! empty( $th_scope ) ) : ?>
35 scope="<?php echo esc_attr( $th_scope ); ?>"
36 <?php endif; ?>>
37 <?php echo PodsForm::label( $field_prefix . $field['name'], $field['label'], pods_v( 'help', $field ), $field ); ?>
38 </th>
39 <td>
40 <div class="pods-submittable-fields">
41 <?php
42 echo PodsForm::field( $field_prefix . $field['name'], $value, $field['type'], $field, $pod, $id );
43 echo PodsForm::comment( $field_prefix . $field['name'], pods_v( 'description', $field ), $field );
44 ?>
45 </div>
46 </td>
47 <?php endif; ?>
48 </tr>
49