9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
14 $form = $gravityview->view->form->form;
16 $entry = $gravityview->entry->as_entry();
29 echo GFCommon::replace_variables(
'{quiz_passfail}',
$form,
$entry );
32 $grade_type = __(
'Pass/Fail',
'gk-gravityview' );
33 printf( esc_html_x(
'%s grading is disabled for this form. %sChange the setting%s',
'%s is the current Quiz field type ("Letter" or "Pass/Fail")',
'gk-gravityview' ), $grade_type,
'<a href="'. admin_url(
'admin.php?page=gf_edit_forms&view=settings&subview=gravityformsquiz&id='.
$form[
'id'] ) .
'">',
'</a>' );
if(! isset( $gravityview)||empty( $gravityview->template)) $form
The default quiz pass/fail field output template.
if(gv_empty( $display_value, false, false)) $grading_type_enabled
gravityview()
The main GravityView wrapper function.
gv_empty( $value, $zero_is_empty=true, $allow_string_booleans=true)
Is the value empty?
static has_cap( $caps='', $object_id=null, $user_id=null)
Alias of GravityView_Roles_Capabilities::has_cap()