Exemplo n.º 1
0
/**
 * This function must only be run inside the quiz question loop.
 *
 * This function gets the type and loads the template that will handle it.
 *
 */
function sensei_the_question_content()
{
    global $sensei_question_loop;
    $question_type = Sensei()->question->get_question_type($sensei_question_loop['current_question']->ID);
    // load the template that displays the question information.
    WooThemes_Sensei_Question::load_question_template($question_type);
}
 *
 * Override this template by copying it to yourtheme/sensei/single-quiz/question_type-file-upload.php
 *
 * @author 		Automattic
 * @package 	Sensei
 * @category    Templates
 * @version     1.9.0
 */
?>

<?php 
/**
 * Get the question data with the current quiz id
 * All data is loaded in this array to keep the template clean.
 */
$question_data = WooThemes_Sensei_Question::get_template_data(sensei_get_the_question_id(), get_the_ID());
?>

<?php 
if ($question_data['question_helptext']) {
    ?>

    <?php 
    echo apply_filters('the_content', $question_data['question_helptext']);
    ?>

<?php 
}
?>

<?php