PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / trunk
Pods – Custom Content Types and Fields vtrunk
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 / list-row.php
pods / ui / forms Last commit date
type 4 months ago div-row.php 4 months ago div-rows.php 4 months ago form.php 1 month ago list-row.php 4 months ago list-rows.php 4 months ago p-row.php 4 months ago p-rows.php 4 months ago table-row.php 4 months ago table-rows.php 4 months ago
list-row.php
43 lines
1 <?php
2
3 // Don't load directly.
4 if ( ! defined( 'ABSPATH' ) ) {
5 die( '-1' );
6 }
7
8 // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
9
10 /**
11 * @var Pods $pod
12 * @var mixed $id
13 * @var string $field_prefix
14 * @var \Pods\Whatsit\Field $field
15 * @var string $row_classes
16 * @var mixed $value
17 * @var string|null $heading_tag
18 */
19 ?>
20 <li class="pods-field__container pods-field-option <?php echo esc_attr( $row_classes ); ?>"
21 style="<?php echo esc_attr( 'hidden' == $field['type'] ? 'display:none;' : '' ); ?>">
22 <?php if ( 'heading' === $field['type'] ) : ?>
23 <?php $heading_tag = PodsField_Heading::get_heading_tag( $field, 'h2' ); ?>
24 <<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>
25 class="pods-form-ui-heading pods-form-ui-heading-<?php echo esc_attr( $field['name'] ); ?>"
26 id="heading-<?php echo esc_attr( $field['name'] ); ?>">
27 <?php echo esc_html( $field['label'] ); ?>
28 </<?php echo esc_html( sanitize_key( $heading_tag ) ); ?>>
29 <?php PodsForm::output_comment( $field['name'], pods_v( 'description', $field ), $field ); ?>
30 <?php elseif ( 'html' === $field['type'] && 1 === (int) $field['html_no_label'] ) : ?>
31 <?php PodsForm::output_field( $field['name'], $value, $field['type'], $field, $pod, $id ); ?>
32 <?php else : ?>
33 <div class="pods-field-label">
34 <?php PodsForm::output_label( $field['name'], $field['label'], pods_v( 'help', $field ), $field ); ?>
35 </div>
36
37 <div class="pods-field-input">
38 <?php PodsForm::output_field( $field['name'], $value, $field['type'], $field, $pod, $pod->id() ); ?>
39 <?php PodsForm::output_comment( $field['name'], null, $field ); ?>
40 </div>
41 <?php endif; ?>
42 </li>
43