PluginProbe ʕ •ᴥ•ʔ
Pods – Custom Content Types and Fields / 3.3.9.1
Pods – Custom Content Types and Fields v3.3.9.1
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 / div-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
div-row.php
40 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 <div 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 <?php
34 PodsForm::output_label( $field['name'], $field['label'], pods_v( 'help', $field ), $field );
35 PodsForm::output_field( $field['name'], $value, $field['type'], $field, $pod, $id );
36 PodsForm::output_comment( $field['name'], pods_v( 'description', $field ), $field );
37 ?>
38 <?php endif; ?>
39 </div>
40