9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
28 $format = apply_filters(
'gravityview/field/quiz_percent/format',
'%d%%', $gravityview );
if(gv_empty( $display_value, false, false)) $format
gravityview()
The main GravityView wrapper function.
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
if(! isset( $gravityview)||empty( $gravityview->template)) $display_value
The default quiz percentage field output template.