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 3358 to 3367

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 27th April 2024 07:05 Europe/London time based on the source file dated 25th April 2024 16:15 Europe/London time.