Line # Revision Author
1 296 ahitrov <item id="<% $document->id %>">
2 <url><% $state->images_directory.$image->{filename} %></url>
3 <imageX><% $params->{imageX} %></imageX>
4 <imageY><% $params->{imageY} %></imageY>
5 <imageWidth><% $params->{imageWidth} %></imageWidth>
6 <imageHeight><% $params->{imageHeight} %></imageHeight>
7 <imageRotation><% $params->{imageRotation} %></imageRotation>
8 <monsterType><% $params->{monsterType} %></monsterType>
9 </item>
10 <%args>
11
12 $id => undef
13
14 </%args>
15 <%init>
16
17 &abort404 unless $id && $id =~ /^\d+$/;
18 my $document = $keeper->get_document_by_id ( $id,
19 class => 'promosuite::Postcard',
20 status => 1,
21 );
22 return unless ref $document;
23 my $params = $document->get_image('params');
24 my $image = $document->get_image('picture');
25
26 </%init>