// Output a placeholder input -- clicking on it will
// bring up a real answer form
- if (empty($answer) && empty($question->closed)) {
- $out->elementStart('ul', 'notices threaded-replies xoxo');
- $out->elementStart('li', 'notice-answer-placeholder');
+
+ // NOTE: this whole ul is just a placeholder
+ if (empty($question->closed) && empty($answer)) {
+ $out->elementStart('ul', 'notices qna-dummy');
+ $out->elementStart('li', 'qna-dummy-placeholder');
$out->element(
'input',
- array('class' => 'placeholder', 'value' => 'Answer...')
+ array(
+ 'class' => 'placeholder',
+ 'value' => _m('Your answer...')
+ )
);
$out->elementEnd('li');
$out->elementEnd('ul');
$nli = new NoticeListItem($notice, $out);
$nli->showNotice();
- $out->elementStart('div', array('class' => 'entry-content answer-content'));
+ $out->elementStart('p', array('class' => 'entry-content answer-content'));
if (!empty($answer)) {
$form = new QnashowanswerForm($out, $answer);
$out->text(_m('Answer data is missing.'));
}
- $out->elementEnd('div');
+ $out->elementEnd('p');
// @fixme
$out->elementStart('div', array('class' => 'entry-content'));