File size: 1.66Kb
<?php
if (str($list['GENRE']) > 0){
$ex = explode(':', $list['GENRE']);
$genre = null;
foreach ($ex as $key => $value) {
if (str($value) > 0) {
$genre .= " <span class='info red' style='margin-top: 5px'>".lg(tabs($value))."</span> ";
}
}
}else{
$genre = null;
}
if (str($list['COUNTRY']) > 0){
$ex = explode(':', $list['COUNTRY']);
$country = null;
foreach ($ex as $key => $value) {
if (str($value) > 0) {
$country .= " <span class='info blue' style='margin-top: 5px'>".lg(tabs($value))."</span> ";
}
}
}else{
$country = null;
}
$movie_list = '
<div class="list-menu">
<p>
<span style="position: relative">
<img src="/m/movies/poster/?id='.$list['ID'].'&v=10" style="max-width: 120px; border-radius: 5px">
'.($list['TIME'] > (TM - 86400) ? "<span class='info' style='margin-top: 5px; background-color: red; position: absolute; bottom: 7px; right: 3px; border-radius: 4px'>new</span>" : null).'
</span>
</p>
<p><b style="font-size: 18px">'.lg(tabs($list['NAME'])).'</b>
'.(str($list['DURATION']) > 0 ? '<br /><span class="time">'.lg('Длительность').': '.lg(tabs($list['DURATION'])).' '.lg('мин.').'</span>' : null).'<br /><br />
'.(str($list['OPIS']) > 0 ? crop_text(lg(tabs($list['OPIS'])),0,60) : lg('Без описания')).'<br /></p>
'.$genre.(str($list['CREATE']) > 0 ? " <span class='info gray' style='margin-top: 5px'>".lg(tabs($list['CREATE']))."</span> " : null).$country.'
<br /><br />
<a href="/m/movies/show/?id='.$list['ID'].'" class="btn">'.icons('arrow-right', 15, 'fa-fw').' '.lg('Смотреть или скачать').'</a>
</div>
</a>
';