1 |
296 |
ahitrov |
<div class="text"> |
2 |
|
|
% if ( ref $img && exists $img->{filename} ) { |
3 |
|
|
<img src="<% $img->{filename} %>" border="0" align="left" class="imageBorder1" width="<% $img->{width} %>" height="<% $img->{height} %>" alt="<% $document->name %>" title="<% $document->name %>"> |
4 |
|
|
% } |
5 |
|
|
<h2><% uc($document->name) %></h2> |
6 |
|
|
% if ( $document->url && $document->url_label ) { |
7 |
|
|
<a href="<% $document->url %>" target="_blank"><% $document->url_label %></a><br> |
8 |
|
|
% } |
9 |
|
|
<p><& /inc/text_format.msn, doc => $document &></p> |
10 |
|
|
</div> |
11 |
|
|
<%args> |
12 |
|
|
|
13 |
|
|
$document => undef |
14 |
|
|
|
15 |
|
|
</%args> |
16 |
|
|
<%init> |
17 |
|
|
|
18 |
|
|
return unless ref $document; |
19 |
|
|
my $img = $document->get_image('photo'); |
20 |
|
|
|
21 |
|
|
</%init> |