Revision 296 (by ahitrov, 2013/03/26 17:59:01) |
Promosite (anthill) project source
|
<item id="<% $document->id %>">
<url><% $state->images_directory.$image->{filename} %></url>
<imageX><% $params->{imageX} %></imageX>
<imageY><% $params->{imageY} %></imageY>
<imageWidth><% $params->{imageWidth} %></imageWidth>
<imageHeight><% $params->{imageHeight} %></imageHeight>
<imageRotation><% $params->{imageRotation} %></imageRotation>
<monsterType><% $params->{monsterType} %></monsterType>
</item>
<%args>
$id => undef
</%args>
<%init>
&abort404 unless $id && $id =~ /^\d+$/;
my $document = $keeper->get_document_by_id ( $id,
class => 'promosuite::Postcard',
status => 1,
);
return unless ref $document;
my $params = $document->get_image('params');
my $image = $document->get_image('picture');
</%init>