9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
17 $entry = $gravityview->entry->as_entry();
34 $entry_keys = array_keys(
$entry );
35 foreach( $entry_keys as $input_key ) {
36 if( is_numeric( $input_key ) && floatval( $input_key ) === floatval(
$field_id ) ) {
37 if( in_array(
$field[
'type'], array(
'radio',
'checkbox' ) ) && !empty(
$entry[ $input_key ] ) ) {
38 $output = apply_filters(
'gravityview_field_tick',
'<span class="dashicons dashicons-yes"></span>',
$entry,
$field, $gravityview );
if(! isset( $gravityview)||empty( $gravityview->template)) $field_id
The default radio field output template.
gravityview()
The main GravityView wrapper function.