image; $retina = $preview->getUrl(Image::SIZE_680x383,"webp"); $normal = $preview->getUrl(Image::SIZE_320x180,"webp"); $bad = $preview->getUrl(Image::SIZE_320x180,'jpg'); $bad = $bad?$bad:'/images/default.jpg'; if( $retina === false || $normal == false ){ $normal = $bad; $retina = $bad; } $normal .= "?v=".$model->rev; $retina .= "?v=".$model->rev; $bad .= "?v=".$model->rev; $count=$model->getCommentsAll()->count(); /* После этой даты не выводить фото if( isset( $model->dt_pub ) && strtotime( $model->dt_pub ) < strtotime('2015-01-01 00:00:00') ){ $bad = '/images/default.jpg'; $normal = $bad; $retina = $bad; }; */ if( isset($index) ){ $index = $index+1; }else{ static $index = 0; } ?>

title?>

publishedAt?> 0):?>