PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.2.2
Pods – Custom Content Types and Fields v3.2.2
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 / p-row.php
pods / ui / forms Last commit date
type 2 years ago div-row.php 2 years ago div-rows.php 2 years ago form.php 2 years ago list-row.php 2 years ago list-rows.php 2 years ago p-row.php 2 years ago p-rows.php 2 years ago table-row.php 2 years ago table-rows.php 2 years ago
p-row.php
40 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 \Pods\Whatsit\Field $field
12 * @var string $row_classes
13 * @var mixed $value
14 * @var string|null $heading_tag
15 */
16 ?>
17 <div class="pods-field__container pods-field-option" style="<?php echo esc_attr( 'hidden' == $field['type'] ? 'display:none;' : '' ); ?>">
18 <?php if ( 'heading' === $field['type'] ) : ?>
19 <?php $heading_tag = pods_v( $field['type'] . '_tag', $field, isset( $heading_tag ) ? $heading_tag : 'h2', true ); ?>
20 <<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>
21 class="pods-form-ui-heading pods-form-ui-heading-<?php echo esc_attr( $field['name'] ); ?>"
22 id="heading-<?php echo esc_attr( $field['name'] ); ?>">
23 <?php echo esc_html( $field['label'] ); ?>
24 </<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>>
25 <?php echo PodsForm::comment( $field['name'], pods_v( 'description', $field ), $field ); ?>
26 <?php elseif ( 'html' === $field['type'] && 1 === (int) $field['html_no_label'] ) : ?>
27 <?php echo PodsForm::field( $field['name'], $value, $field['type'], $field, $pod, $id ); ?>
28 <?php else : ?>
29 <p<?php if ( ! empty( $row_classes ) ) : ?>
30 class="<?php echo esc_attr( $row_classes ); ?>
31 <?php endif; ?>>
32 <?php
33 echo PodsForm::label( $field['name'], $field['label'], pods_v( 'help', $field ), $field );
34 echo PodsForm::field( $field['name'], $value, $field['type'], $field, $pod, $id );
35 echo PodsForm::comment( $field['name'], pods_v( 'description', $field ), $field );
36 ?>
37 </p>
38 <?php endif; ?>
39 </div>
40