Рипал: Бармен
Ссылка на скачивание!
Вставляем в раздел Страница материала и комментариев к нему (куда удобней вам):
Код
<div id="colum_right">
<?if($FILE_URL$)?>
<div class="side_box cat_decript">
<div class="sb_cont">
<div class="sb_title cd_cat_1">СКАЧАТЬ ФАЙЛ!</div>
<span class="attachment">
Скачать файл: <a href="$FILE_URL$" style="color: #141d23 !important; font-weight: bold; font-size: 12px;"><?substr($FILE_DIRECT_URL$, strrpos($FILE_DIRECT_URL$,'/') +1)?></a> [$FILE_SIZE$] (cкачиваний: $LOADS$)
</span>
</div>
</div>
<?endif?>
CSS:
Код
#colum_right {
width: 300px;
float: right;
overflow: hidden;
position: relative;
z-index: 2;
}
.side_box {
background: #3a5260;
margin-bottom: 25px;
}
.side_box.cat_decript {
background: url("../images/cat_box_bg.png");
color: #141D23;
}
.sb_cont {
padding: 15px;
padding-top: 0;
font-size: 12px;
}
.sb_cont p {
text-indent: 1.5em;
text-align: justify;
}
.sb_title {
padding: 20px;
font-size: 15px;
background: #141d23;
position: relative;
color: #fff;
text-transform: uppercase;
font-family: 'proxima_nova_rgbold';
}
.sb_title.cd_cat_1 {
background: url("../images/news_cat.png") no-repeat left center;
padding-left: 25px;
border-bottom: 0;
color: #141D23;
}
.attachment{color:gray}