что дублируется? может я что то просмотрел?ну и зачем лишний раз дублить это
понятия не имею кто такой лексо.Код лексо.
// Network news
if ($bb_cfg['show_network_news'])
{
if (!$network_news = $datastore->get('network_news'))
// Poster_Mod
if($bb_cfg['lenta'])
{
$template -> assign_vars(array(
'POSTER_MOD_ON' => true,
));
$poster_mod = $datastore->get('poster_mod');
foreach ($poster_mod as $row_mod)
{
preg_match_all('/\[img=right\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster, PREG_SET_ORDER);
preg_match_all('/\[img=left\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster2, PREG_SET_ORDER);
preg_match_all('/\[img\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster3, PREG_SET_ORDER);
preg_match_all('/\[poster\](.*?)\[\/poster\]/i', $row_mod['post_text'], $poster4, PREG_SET_ORDER);
$url = '';
if (@$poster[0][1])
{
$url = $poster[0][1];
}
elseif (@$poster2[0][1])
{
$url = $poster2[0][1];
}
elseif (@$poster3[0][1])
{
$url = $poster3[0][1];
}
elseif (@$poster4[0][1])
{
$url = $poster4[0][1];
}
$template->assign_block_vars('PosterMod', array(
'TITLE' => $row_mod['topic_title'],
'TOPIC_ID' => $row_mod['topic_id'],
'FORUM' => $row_mod['forum_name'],
'SIZE' => humn_size($row_mod['size']),
'POSTER' => profile_url(array('username' => $row_mod['username'], 'user_rank' => $row_mod['user_rank'])),
'POSTER_IMG' => $row_mod['topic_image'],
'POSTER_IMG_TITLE' => $url,
));
}
}
// Poster_Mod
<!--/menus-->
<!-- IF SHOW_LATEST_NEWS -->
<!-- IF $bb_cfg['lenta'] -->
<!-- IF $bb_cfg['glossy'] -->
<script type="text/javascript" src="{#BB_ROOT}misc/js/glossy.js?v={$bb_cfg['js_ver']}"></script>
<script type="text/javascript" src="{#BB_ROOT}misc/js/cvi_glossy_lib.js?v={$bb_cfg['js_ver']}"></script>
<!-- ENDIF -->
<script type="text/javascript" src="{#BB_ROOT}misc/js/jquery.mousewheel.js?v=16"></script>
<script type="text/javascript" src="{#BB_ROOT}misc/js/jquery.scrollable.js?v={$bb_cfg['js_ver']}"></script>
<script src="{#BB_ROOT}misc/js/jquery.cluetip.js?v=16" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a.load-local').cluetip({local:true, cursor: 'pointer',showTitle: true,arrows: true});
$('span[title]').cluetip({splitTitle: '|', arrows: true, dropShadow: false, cluetipClass: 'jtip'});
$('a.load-local-menu').cluetip({local:true, activation: 'click', cursor: 'pointer',showTitle: true,sticky: true, closePosition: 'title', width: 500, height: 500, closeText: 'Закрыть', cluetipClass: 'jtip'});
});
</script>
<script>
$(function() {
$("div.scrollable").scrollable({
size: 8,
items: '#thumbs',
hoverClass: 'hover',
keyboard: true,
loop: true,
});
});
</script>
<table cellpadding="0" cellspacing="0" class="poster">
<tr>
<td>
<!-- prev link -->
<a class="prev"></a>
<!-- root element for scrollable -->
<div class="scrollable">
<div id="thumbs">
<!-- IF POSTER_MOD_ON -->
<!-- BEGIN PosterMod -->
<div class="tCenter">
<a class="load-local" href="viewtopic.php?t={PosterMod.TOPIC_ID}" rel="#loadme_{PosterMod.TOPIC_ID}" title="{PosterMod.TITLE}" onclick="top.location.href='viewtopic.php?t={PosterMod.TOPIC_ID}';"><img src="{PosterMod.POSTER_IMG}" <!-- IF $bb_cfg['glossy'] -->onload="cvi_glossy.add(this,{radius:30,nogradient:true,angle:-33,shadow:30});"<!-- ENDIF -->></a>
</div>
<div style="display: none;" id="loadme_{PosterMod.TOPIC_ID}"><center><img src="{PosterMod.POSTER_IMG_TITLE}" width="260"></center><br=clear> Форум: <b>{PosterMod.FORUM}</b> <br> Автор: <b>{PosterMod.POSTER}</b> <br> Размер: <b>{PosterMod.SIZE}</b></br=clear>
</div>
<!-- END PosterMod -->
<!-- ENDIF -->
</div>
</div>
<!-- next link -->
<a class="next"></a>
</td>
</tr>
</table><!-- ENDIF --><!-- ENDIF -->
preg_match_all('/\[img=right\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster, PREG_SET_ORDER);
preg_match_all('/\[img=left\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster2, PREG_SET_ORDER);
preg_match_all('/\[img\](.*?)\[\/img\]/i', $row_mod['post_text'], $poster3, PREG_SET_ORDER);
preg_match_all('/\[poster\](.*?)\[\/poster\]/i', $row_mod['post_text'], $poster4, PREG_SET_ORDER);
$url = '';
if (@$poster[0][1])
{
$url = $poster[0][1];
}
elseif (@$poster2[0][1])
{
$url = $poster2[0][1];
}
elseif (@$poster3[0][1])
{
$url = $poster3[0][1];
}
elseif (@$poster4[0][1])
{
$url = $poster4[0][1];
}