% if ( $m->comp_exists ("/comps/$prj/header.msn") ) {
<& "/comps/$prj/header.msn" &>
% } else {
<& "/comps/header.msn" &>
% }
% ### контент
|
<% $document->name %>
%
% if ( $m->comp_exists ("/comps/$prj/article.msn") ) {
<& "/comps/$prj/article.msn", doc => $document, photo_href => undef &>
% } else {
<& "/comps/article.msn", doc => $document, photo_href => undef &>
% }
%
|
|
% ### Футер
% ##############################################
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) {
<& "/comps/$prj/footer.msn" &>
% } else {
<& "/comps/footer.msn" &>
% }
% ### /Футер
<%args>
%args>
<%init>
my $prj = $request->{project};
my $profile = $request->{project_profile};
my $root = $request->{project_section};
my $document;
($document) = $keeper->get_documents (
s => $root->id,
class => 'promosuite::Article',
status => 'positive',
limit => 1,
);
&abort404 unless ref $document;
my $images = $document->get_image('pictures');
%init>