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 / front / view.php
pods / ui / front Last commit date
display 2 weeks ago pagination 2 weeks ago filters.php 2 weeks ago form.php 2 weeks ago view.php 2 weeks ago widgets.php 2 weeks ago
view.php
48 lines
1 <?php
2 // Don't load directly.
3 if ( ! defined( 'ABSPATH' ) ) {
4 die( '-1' );
5 }
6
7 pods_form_enqueue_style( 'pods-form' );
8
9 /**
10 * @var array $fields
11 * @var Pods $pod
12 */
13 ?>
14 <div class="pods-submittable-fields">
15 <ul class="pods-form-fields">
16 <?php
17 foreach ( $fields as $field ) {
18 if ( isset( $field['custom_display'] ) && is_callable( $field['custom_display'] ) ) {
19 $value = call_user_func_array(
20 $field['custom_display'], array(
21 $pod->row(),
22 $pod,
23 $pod->field( $field['name'] ),
24 $field['name'],
25 $field,
26 )
27 );
28 } else {
29 $value = $pod->display( $field['name'] );
30 }
31 $default_class = ' pods-form-ui-row-type-' . $field['type'] . ' pods-form-ui-row-name-' . PodsForm::clean( $field[ 'name' ] );
32 $html_class = apply_filters( 'pods-field-html-class', $field ) . $default_class;
33 ?>
34 <li class="pods-field__container pods-field <?php echo esc_attr( $html_class, true ); ?>">
35 <div class="pods-field-label">
36 <strong><?php echo $field['label']; ?></strong>
37 </div>
38
39 <div class="pods-field-input">
40 <?php echo $value; ?>
41 </div>
42 </li>
43 <?php
44 }//end foreach
45 ?>
46 </ul>
47 </div>
48