% if ( $m->comp_exists ("/comps/$prj/header.msn") ) {
<& "/comps/$prj/header.msn", alias => 'main' &>
% } else {
<& "/comps/header.msn", alias => 'main' &>
% }
% if ( $m->comp_exists ("/comps/$prj/left.msn") ) {
<& "/comps/$prj/left.msn" &>
% }
|
|
<% ref $document ? $document->name : $section->name %>
% if ( ref $document ) {
% my $video = $document->get_image('file');
% if ( ref $video && exists $video->{filename} ) {
% if ( $video->{ext} eq 'avi' || $document->attype eq 'avi' ) {
% }
% }
% }
|
% ### Футер
% ##############################################
% if ( $m->comp_exists ("/comps/$prj/footer.msn") ) {
<& "/comps/$prj/footer.msn" &>
% } else {
<& "/comps/footer.msn" &>
% }
% ### /Футер
<%args>
$p => 1
$id => undef
%args>
<%init>
my $prj = $request->{project};
my $profile = $request->{project_profile};
my $root = $request->{project_section};
&abort404 if $id && $id !~ /^\d+$/;
my $document;
my ($section) = $keeper->get_sections (
s => $root->id,
class => 'promosuite::MultimediaSection',
alias => 'video',
limit => 1,
status => 1,
);
if ( ref $section ) {
($document) = $keeper->get_documents (
s => $section->id,
class => 'promosuite::Multimedia',
status => 1,
limit => 1,
);
}
%init>