0.00
Рейтинг
0.00
Сила
  • avatar foore
  • 0

В хабрастиле помогло заменить список определений на обычный div в файлах topic.tpl, topic_list.tpl и questionVote.php, можно для уверенности прописать диву ограничение по ширине… В новой ревизии возможно исправлено, незнаю не ставил, ненравитца мне ее дизайн уж больно на шкурку от вордпресса похож(прастите если что) а в хабрадизайне «лепить» проще из-за его минимализма )))

вообщем что-то такое

в topic.tpl, topic_list.tpl

было:
<dl>
<dt><strong>{$oTopic->getQuestionAnswerPercent($key)}%</strong>
({$aAnswer.count})</dt>
<dd>{$aAnswer.text}

<img width="{$oTopic->getQuestionAnswerPercent($key)}%" height="5" alt="" src="{$DIR_STATIC_SKIN}/img/vote_space.gif"/></dd>
</dl>

стало:
<div style="width:300px;">
<strong>{$aAnswer.text}</strong> ({$aAnswer.count})<sup>{$oTopic->getQuestionAnswerPercent($key)}%</sup>

<img width="{$oTopic->getQuestionAnswerPercent($key)}%" height="5" alt="" src="{$DIR_STATIC_SKIN}/img/vote_space.gif"/>
</div>

в questionVote.php ищем две строки (начинаются с $sTextResult....) и заменяем на это:

$sTextResult.='<div style="width:300px;"><strong>'.$aAnswer['text'].'</strong>'.' '.'('.$aAnswer['count'].')<sup>'.$oTopic->getQuestionAnswerPercent($key).'%</sup>';

$sTextResult.='
<img width="'.$oTopic->getQuestionAnswerPercent($key).'%" height="5" alt="" src="'.DIR_STATIC_SKIN.'/img/vote_space.gif"/></div>';

выглядит примерно вот так:
  • avatar foore
  • 1
спасибо огромное