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 3415 to 3424

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 19th March 2024 09:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.