Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

render_question_div()

Description

Render generic Question div (including clearleft)

@var string $id Div ID if required. Set to empty string if not needed.
@var callable $render_content Content renderer

Parameters

ColumnTypeDefaultDescription
$id
$render_content callable

Return

void

Location

include/render_functions.php lines 2995 to 3005

Definition

 
function render_question_div($id, callable $render_content)
    {
    
$id = (trim($id) !== "" 'id="' htmlspecialchars(trim($id)) . '"' "");
    
?>
    <div  echo $id?> class="Question">
         $render_content(); ?>
        <div class="clearerleft"></div>
    </div>
    
    
return;
    }

This article was last updated 7th July 2020 10:05 Europe/London time based on the source file dated 3rd July 2020 14:29 Europe/London time.