implement TextFormatter class to include media in texts
This commit is contained in:
parent
3fb0b9d074
commit
f723382b93
9 changed files with 137 additions and 7 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<?php endforeach ?>
|
||||
</select>
|
||||
<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($text)?>
|
||||
<?=$t->t($text)?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<br /><br />
|
||||
|
|
|
|||
|
|
@ -7,6 +7,6 @@
|
|||
<?php endforeach ?>
|
||||
</select>
|
||||
<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($text)?>
|
||||
<?=$t->t($text)?>
|
||||
<?php endforeach ?>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<?php foreach($question['answers'] as $i => &$answer) : ?>
|
||||
<li>
|
||||
<input type="checkbox" id="answers[<?=$i?>]" name="answers[<?=$i?>]" value="true" <?=(array_key_exists('useranswer', $answer) && $answer['useranswer']) ? 'checked="checked"' : '' ?> />
|
||||
<label for="answers[<?=$i?>]"><?=\hhu\z\Utils::t($answer['answer'])?></label>
|
||||
<label for="answers[<?=$i?>]"><?=$t->t($answer['answer'])?></label>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ol>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<ol>
|
||||
<?php foreach($questions as $pos => &$question) : ?>
|
||||
<li>
|
||||
<h1><?=\hhu\z\Utils::t($question['question'])?></h1>
|
||||
<h1><?=$t->t($question['question'])?></h1>
|
||||
<ol>
|
||||
<?php foreach($question['answers'] as &$answer) : ?>
|
||||
<li>
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<?php if($i > 0) : ?>
|
||||
<input type="text" name="answers[<?=$i-1?>]" value="<?=$regexs[$i-1]['answer']?>" />
|
||||
<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($text)?>
|
||||
<?=$t->t($text)?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<br /><br />
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
<span style="background-color:grey"><?=$regexs[$i-1]['answer']?></span>
|
||||
<?php if($regexs[$i-1]['right']) : ?>✓<?php else: ?>✕<?php endif ?>
|
||||
<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($text)?>
|
||||
<?=$t->t($text)?>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue