Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 3396 to 3405

Definition

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

This article was last updated 23rd July 2024 21:35 Europe/London time based on the source file dated 22nd July 2024 10:25 Europe/London time.