% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { <& "/comps/$prj/header.msn" &> % } else { <& "/comps/header.msn" &> % } % ### контент
% if ( $id && ref $document ) {
% if ( $m->comp_exists ("/comps/$prj/article.msn") ) {
<& "/comps/$prj/article.msn", doc => $document, show_header => 1, show_dtime => 1 &>
% } else {
<& "/comps/article.msn", doc => $document, show_header => 1, show_dtime => 1 &>
% }
% } else {
% if ( ref $document && $p == 1 ) {
% my $img = $document->get_image ('picture');
% my $date = Contenido::DateTime::new ( postgres => $document->dtime );
% my ($a1, $a2) = $document->url ? ('','') : ('','');
Другие новости
% }
% my ($wday, $wcount) = (0,0);
% foreach my $doc (@$documents) {
% next if ref $document && $doc->id == $document->id;
% my $date = Contenido::DateTime->new( postgres => $doc->dtime );
% my $dw = $date->wday;
% if ($dw != $wday && !$id) {
% $wday = $dw;
<% $date->day %> <% Encode::encode('utf-8', $date->month_name) %> <% $date->year %>
% }
% if ( $id && ref $document ) {
% } elsif ( !$id && $total > $size ) {
<% ($id ? $date->dmy('.') : '').sprintf(" %02d:%02d",$date->hour,$date->min) %>
<% $doc->name %>
% }
Страницы:
%#<& /inc/pages_.msn, p => $p, total => $total, n => $size, delimiter => ' ' &>
% }
% }
|