deprecated/classes/Pods.php 1 location
|
@@ 361-366 (lines=6) @@
|
358 |
|
foreach ( $fields as $k => $field ) { |
359 |
|
$name = $k; |
360 |
|
|
361 |
|
if ( !is_array( $field ) ) { |
362 |
|
$name = $field; |
363 |
|
$field = array(); |
364 |
|
} |
365 |
|
elseif ( isset( $field[ 'name' ] ) ) |
366 |
|
$name = $field[ 'name' ]; |
367 |
|
|
368 |
|
if ( in_array( $name, array( 'created', 'modified', 'author' ) ) && isset( $this->obj->fields[ $name . '2' ] ) ) |
369 |
|
$name .= '2'; |
includes/general.php 1 location
|
@@ 421-427 (lines=7) @@
|
418 |
|
wp_enqueue_script( 'pods-qtip-init' ); |
419 |
|
} |
420 |
|
|
421 |
|
if ( is_array( $text ) ) { |
422 |
|
if ( isset( $text[ 1 ] ) ) { |
423 |
|
$url = $text[ 1 ]; |
424 |
|
} |
425 |
|
|
426 |
|
$text = $text[ 0 ]; |
427 |
|
} |
428 |
|
|
429 |
|
if ( 'help' == $text ) { |
430 |
|
return; |
ui/fields/checkbox.php 1 location
|
@@ 20-25 (lines=6) @@
|
17 |
|
$primary_id = 'pods-form-ui-' . PodsForm::clean( $name ); |
18 |
|
|
19 |
|
foreach ( $options[ 'data' ] as $val => $label ) { |
20 |
|
if ( is_array( $label ) ) { |
21 |
|
if ( isset( $label[ 'label' ] ) ) |
22 |
|
$label = $label[ 'label' ]; |
23 |
|
else |
24 |
|
$label = $val; |
25 |
|
} |
26 |
|
|
27 |
|
$attributes = array(); |
28 |
|
|
ui/fields/radio.php 1 location
|
@@ 17-22 (lines=6) @@
|
14 |
|
$selection_made = false; |
15 |
|
|
16 |
|
foreach ( $options[ 'data' ] as $val => $label ) { |
17 |
|
if ( is_array( $label ) ) { |
18 |
|
if ( isset( $label[ 'label' ] ) ) |
19 |
|
$label = $label[ 'label' ]; |
20 |
|
else |
21 |
|
$label = $val; |
22 |
|
} |
23 |
|
|
24 |
|
$attributes = array(); |
25 |
|
|