На странице поиска материал отображается не корекно помогите слелать как на главной странице что б отображалось
<div class="home-post-wrap">
$MESSAGE$
<script>
$('img[style="border:0;height:50px;"]').each(function(){
src = $(this).attr('src');
$(this).replaceWith('<div class="thumbnail-div" style="background: url('+src+'); background-size: cover; border-top: 1px solid #1C242B; border-right: 1px solid #1C242B; border-left: 1px solid #1C242B; float: left;" title="$TITLE$"> <div class="info"> <span class="info-titles"> <a href="$ENTRY_URL$" title="$TITLE$"><?if(len($TITLE$)>36)?><?substr($TITLE$,0,36)?>...<?else?>$TITLE$<?endif?></a> </span> </div> <div alt="more info" class="info-button" title="Развернуть/Свернуть" id="rate_$ID$" style="background: green; color: black; font-size: 9pt; padding: 0px 12px 0px 12px; border-radius: 0px 0px 0px 5px; border-width: 0px 0px 1px 1px; border-style: solid; border-color: #000; cursor: pointer; float: right;"> <b>+</b> </div> </div> </div>')
});
</script>
<script>
$('div[style="float:left;padding:2px;"]').attr({style:'float:left;padding:0px;'});
</script>
<div class="bar">
<a href="#" class="rating" style="float: left; cursor: pointer; opacity:0.5;" title="Опции недоступны">
<div class="prew_rate"></div></a>
<a href="$ENTRY_URL$" style="float: left; cursor: pointer" title="Оставьте свой комментарий">
<div class="prew_com"></div></a>
<a href="" class="rating" style="float: left; opacity:0.5; cursor: pointer" title="Предпросмотр недоступен">
<div class="prew_date"></div></a>
<a href="$ENTRY_URL$" style="float: right" title="Нажмите чтоб отрыть полную фотографию">
<div class="prew_more"></div></a>
</div>
</div>
<style>
div.moderpan span.mdrnlist a {
height: 31px;
width: 39px;
display: block;
padding: 8px 4px 0px 4px;
border-bottom: #2D3A4F solid 1px;
border-right: #2D3A4F solid 1px;
background: #1E242A; }
div.moderpan span.mdrnlist a:hover {
background-color: #414E59;
border-bottom: #526270 solid 1px;
border-right: #526270 solid 1px; }
a.lbunext span {
background: url("/images/icons/next.png") 0px 0px no-repeat transparent;
right: 0px;}
a.lbuprev span {
background: url("/images/icons/prev.png") 0px 0px no-repeat transparent;
left: 0px;}
.myWinCont legend {
color: #fff;
font-size: 12px;
background-color: gray;
border-radius: 4px;
padding: 4px;}
.xw-plain div.xw-mc {
color: #F3F3F3;
text-shadow: 0px 0px 0px #F3F3F3;}
.myWinCont, .myWinCont td, .myWinCont dl, .myWinCont dt {
color: #000;
font-family: "Arial";
font-size: 12px;}
.myWinCont a:link, .myWinCont a:visited {
color: #000;
font-weight: 600;
text-decoration: none;}
#suggEdit {
font-size: 11px;
position: relative;
width: 420px;
margin-bottom: 4px;}
</style>