1 | {if isset($errors) or not empty($infos)} |
---|
2 | {include file='infos_errors.tpl'} |
---|
3 | {/if} |
---|
4 | <div data-role="content" id="picture_page"> |
---|
5 | <ul data-role="listview" data-inset="true"> |
---|
6 | <li data-role="list-divider">{$SECTION_TITLE}<span class="browsePathSeparator">{$LEVEL_SEPARATOR}</span>{$current.TITLE}</li> |
---|
7 | </ul> |
---|
8 | {$ELEMENT_CONTENT} |
---|
9 | |
---|
10 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
11 | |
---|
12 | {if isset($COMMENT_IMG)} |
---|
13 | <p class="imageComment">{$COMMENT_IMG}</p> |
---|
14 | {/if} |
---|
15 | |
---|
16 | <ul data-role="listview" data-inset="true" id="PictureInfo"> |
---|
17 | {strip} |
---|
18 | {if $display_info.author and isset($INFO_AUTHOR)} |
---|
19 | <li id="Author" class="imageInfo"> |
---|
20 | <dt>{'Author'|@translate}</dt> |
---|
21 | <dd>{$INFO_AUTHOR}</dd> |
---|
22 | </li> |
---|
23 | {/if} |
---|
24 | {if $display_info.created_on and isset($INFO_CREATION_DATE)} |
---|
25 | <li id="datecreate" class="imageInfo"> |
---|
26 | <dt>{'Created on'|@translate}</dt> |
---|
27 | <dd>{$INFO_CREATION_DATE}</dd> |
---|
28 | </li> |
---|
29 | {/if} |
---|
30 | {if $display_info.posted_on} |
---|
31 | <li id="datepost" class="imageInfo"> |
---|
32 | <dt>{'Posted on'|@translate}</dt> |
---|
33 | <dd>{$INFO_POSTED_DATE}</dd> |
---|
34 | </li> |
---|
35 | {/if} |
---|
36 | {if $display_info.dimensions and isset($INFO_DIMENSIONS)} |
---|
37 | <li id="Dimensions" class="imageInfo"> |
---|
38 | <dt>{'Dimensions'|@translate}</dt> |
---|
39 | <dd>{$INFO_DIMENSIONS}</dd> |
---|
40 | </li> |
---|
41 | {/if} |
---|
42 | {if $display_info.file} |
---|
43 | <li id="File" class="imageInfo"> |
---|
44 | <dt>{'File'|@translate}</dt> |
---|
45 | <dd>{$INFO_FILE}</dd> |
---|
46 | </li> |
---|
47 | {/if} |
---|
48 | {if $display_info.filesize and isset($INFO_FILESIZE)} |
---|
49 | <li id="Filesize" class="imageInfo"> |
---|
50 | <dt>{'Filesize'|@translate}</dt> |
---|
51 | <dd>{$INFO_FILESIZE}</dd> |
---|
52 | </li> |
---|
53 | {/if} |
---|
54 | {if $display_info.tags and isset($related_tags)} |
---|
55 | <li id="Tags" class="imageInfo"> |
---|
56 | <dt>{'Tags'|@translate}</dt> |
---|
57 | <dd> |
---|
58 | {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach} |
---|
59 | </dd> |
---|
60 | </li> |
---|
61 | {/if} |
---|
62 | {if $display_info.categories and isset($related_categories)} |
---|
63 | <li id="Categories" class="imageInfo"> |
---|
64 | <dt>{'Albums'|@translate}</dt> |
---|
65 | <dd> |
---|
66 | <ul> |
---|
67 | {foreach from=$related_categories item=cat} |
---|
68 | <li>{$cat}</li> |
---|
69 | {/foreach} |
---|
70 | </ul> |
---|
71 | </dd> |
---|
72 | </li> |
---|
73 | {/if} |
---|
74 | {if $display_info.visits} |
---|
75 | <li id="Visits" class="imageInfo"> |
---|
76 | <dt>{'Visits'|@translate}</dt> |
---|
77 | <dd>{$INFO_VISITS}</dd> |
---|
78 | </li> |
---|
79 | {/if} |
---|
80 | |
---|
81 | {if $display_info.rating_score and isset($rate_summary)} |
---|
82 | <li id="Average" class="imageInfo"> |
---|
83 | <dt>{'Rating score'|@translate}</dt> |
---|
84 | <dd> |
---|
85 | {if $rate_summary.count} |
---|
86 | <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({$rate_summary.count|@translate_dec:'%d rate':'%d rates'})</span> |
---|
87 | {else} |
---|
88 | <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> |
---|
89 | {/if} |
---|
90 | </dd> |
---|
91 | </li> |
---|
92 | {/if} |
---|
93 | |
---|
94 | {if isset($rating)} |
---|
95 | <li id="rating" class="imageInfo"> |
---|
96 | <dt> |
---|
97 | <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> |
---|
98 | </dt> |
---|
99 | <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> |
---|
100 | <div data-role="controlgroup" data-type="horizontal" align="center"> |
---|
101 | {foreach from=$rating.marks item=mark name=rate_loop} |
---|
102 | {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} |
---|
103 | <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> |
---|
104 | {else} |
---|
105 | <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> |
---|
106 | {/if} |
---|
107 | {/foreach} |
---|
108 | </div> |
---|
109 | </form> |
---|
110 | </li> |
---|
111 | {/if} |
---|
112 | </ul> |
---|
113 | |
---|
114 | {if isset($metadata)} |
---|
115 | <ul data-role="listview" data-inset="true"> |
---|
116 | {foreach from=$metadata item=meta} |
---|
117 | <li><h3>{$meta.TITLE}</h3> |
---|
118 | {foreach from=$meta.lines item=value key=label} |
---|
119 | <div class="imageInfo"> |
---|
120 | <dt>{$label}</dt> |
---|
121 | <dd>{$value}</dd> |
---|
122 | </div> |
---|
123 | {/foreach}</li> |
---|
124 | {/foreach} |
---|
125 | </dl> |
---|
126 | {/if} |
---|
127 | </ul> |
---|
128 | |
---|
129 | {if isset($COMMENT_COUNT)} |
---|
130 | <ul data-role="listview" data-inset="true"> |
---|
131 | <h3>{$COMMENT_COUNT|@translate_dec:'%d comment':'%d comments'}</h3> |
---|
132 | |
---|
133 | <div id="pictureComments"> |
---|
134 | {if isset($comment_add)} |
---|
135 | <div data-role="collapsible"> |
---|
136 | <h3>{'Add a comment'|@translate}</h3> |
---|
137 | <form method="post" action="{$comment_add.F_ACTION}" id="addComment"> |
---|
138 | {if $comment_add.SHOW_AUTHOR} |
---|
139 | <p><label for="author">{'Author'|@translate}{if $comment_add.AUTHOR_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> |
---|
140 | <p><input type="text" name="author" id="author" value="{$comment_add.AUTHOR}"></p> |
---|
141 | {/if} |
---|
142 | {if $comment_add.SHOW_EMAIL} |
---|
143 | <p><label for="email">{'Email address'|@translate}{if $comment_add.EMAIL_MANDATORY} ({'mandatory'|@translate}){/if} :</label></p> |
---|
144 | <p><input type="text" name="email" id="email" value="{$comment_add.EMAIL}"></p> |
---|
145 | {/if} |
---|
146 | <p><label for="website_url">{'Website'|@translate} :</label></p> |
---|
147 | <p><input type="text" name="website_url" id="website_url" value="{$comment_add.WEBSITE_URL}"></p> |
---|
148 | <p><label for="contentid">{'Comment'|@translate} ({'mandatory'|@translate}) :</label></p> |
---|
149 | <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> |
---|
150 | <p><input type="hidden" name="key" value="{$comment_add.KEY}"> |
---|
151 | <input type="submit" value="{'Submit'|@translate}"></p> |
---|
152 | </form> |
---|
153 | </div> |
---|
154 | {/if} |
---|
155 | {if isset($comments)} |
---|
156 | <ul data-role="listview" data-inset="true"> |
---|
157 | {if (($COMMENT_COUNT > 2) || !empty($navbar))} |
---|
158 | <div id="pictureCommentNavBar"> |
---|
159 | {if $COMMENT_COUNT > 2} |
---|
160 | <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a> |
---|
161 | {/if} |
---|
162 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
163 | </div> |
---|
164 | {/if} |
---|
165 | {include file='comment_list.tpl' from="picture"} |
---|
166 | </ul> |
---|
167 | {/if} |
---|
168 | </div> |
---|
169 | |
---|
170 | </ul> |
---|
171 | {/if}{*comments*} |
---|
172 | |
---|
173 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
174 | |
---|
175 | </div> |
---|