@auto[] ^use[/ech2014/ajax/news.html] ^use[/account/auto.p] ^use[$_core/${prefix}/events.p] ^init[] ^if($user && $user.athlete){ ^use[$_core/${prefix}/athletes.p] $athlete[^athletes:item[$user.athlete;accept]] } @title[] ${_title}ECH 2014 - News $bodyClass[page-ech2014] @js[assets] @css[assets] @supMenu[] ^generateSupMenu[] @menu[] ^generateMenu[menu-page-ech2014] @layout[] $f[^file::load[binary;../header.html]] ^taint[as-is][$f.text]
^if(! def $_nameless){

News

}{

News

}
^if(def $news && $news){
$params[ $.type[all] $.fire[all] ] $html[^HTML[$params]] $html
}(def $new && $new){ $comments[^io:comments[;;; $.target[$new.id] $.type[0] ;1]] $commentsTable[ ^comments.menu{
^if($comments.accounts_athlete && def $comments.athletes_image && -f "/media/athletes/$comments.athletes_image"){ }(-f "/media/accounts/${comments.accounts_id}.jpg"){ }{ }
$comments.accounts_name^if(def $user && $user.id eq $comments.accounts_id){ ^; ^;удалить} # ^if(def $user && $user){ | ответить}
$_date[^date::unix-timestamp($comments.date)]
^_date.day.format[%.2d].^_date.month.format[%.2d].$_date.year в ^_date.hour.format[%.2d]:^_date.minute.format[%.2d]
^comments.content.match[\n][gi]{
}
} ]

$new.title

$tags[^tags:gettags[$new.id;0]] ^tags.menu{ $tags.text, } $dt[^date::unix-timestamp($new.date)] $dt.day ^;$month_names_case.[$dt.month] ^;$dt.year Количество комментариев ^comments.count[] Количество просмотров $new.visits
^if(def $new.href && $new.href ne ""){ ^if(def $new.hreftitle && $new.hreftitle ne ""){

Источник: $new.hreftitle

}{ ^if(^new.href.pos[http://]!=-1){ $href[^new.href.mid(7)] ^if(^href.pos[/]!=-1){ $href[^href.mid(0;^href.pos[/])] }

Источник: $href

}{

Источник: $new.href

} } } ^taint[as-is][$new.content] $rels[^getRelations[$new.id;news]] ^getLinkedNews[Другие новости;$rels] ^getLinkedEvents[Соревнования;$rels] ^getLinkedResults[Результаты;$rels] ^getLinkedDocs[Документы;$rels] ^getLinkedFiles[Файлы;$rels] ^getLinkedGalls[Галереи;$rels]
Комментарии пользователей
^comments.count[]
$commentsTable ^if($user){
Комментировать ^if($user.athlete && def $athlete.image && -f "/media/athletes/$athlete.image"){ }(-f "/media/accounts/${user.id}.jpg"){ }{ }
}{
Чтобы писать комментарии, вы должны зарегистрироваться или авторизоваться.
}
$banner(1) $size(0) ^if(def ${new.image} && -f "/media/news/${new.image}.jpg"){
$stat[^file::stat[/media/news/${new.image}.jpg]] $size($stat.size / 1024) }{ $relevents[^relations:items[$new.id;0;;1]] ^if(^relevents.count[] > 0){ $event[^events:item[$relevents.id2]] ^if(def ${event.image} && -f "/media/events/${event.image}"){
$banner(0) } } }
^if(def $rels){^getAddMaterials[новости;$new.id;news;$rels;$banner;$size]}
}

Partners and sponsors