Revision 296 (by ahitrov, 2013/03/26 17:59:01) |
Promosite (anthill) project source
|
<div class="text">
% if ( ref $img && exists $img->{filename} ) {
<img src="<% $img->{filename} %>" border="0" align="left" class="imageBorder1" width="<% $img->{width} %>" height="<% $img->{height} %>" alt="<% $document->name %>" title="<% $document->name %>">
% }
<h2><% uc($document->name) %></h2>
% if ( $document->url && $document->url_label ) {
<a href="<% $document->url %>" target="_blank"><% $document->url_label %></a><br>
% }
<p><& /inc/text_format.msn, doc => $document &></p>
</div>
<%args>
$document => undef
</%args>
<%init>
return unless ref $document;
my $img = $document->get_image('photo');
</%init>