9 if ( ! isset( $gravityview ) || empty( $gravityview->template ) ) {
10 gravityview()->log->error(
'{file} template loaded without context', array(
'file' => __FILE__ ) );
15 $form = $gravityview->view->form->form;
28 $grade_type = __(
'Letter',
'gk-gravityview' );
29 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)) $value
The default quiz grade field output template.
if(gv_empty( $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()