[8378] | 1 | {* Example of resizeable |
---|
[2721] | 2 | {include file='include/autosize.inc.tpl'} |
---|
| 3 | *} |
---|
[13474] | 4 | {if isset($MENUBAR)}{$MENUBAR}{/if} |
---|
| 5 | <div id="content" {if isset($MENUBAR)}class="contentWithMenu"{/if}> |
---|
[13074] | 6 | {if isset($errors) or not empty($infos)} |
---|
[12764] | 7 | {include file='infos_errors.tpl'} |
---|
[13074] | 8 | {/if} |
---|
[2902] | 9 | {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} |
---|
| 10 | |
---|
[859] | 11 | <div id="imageHeaderBar"> |
---|
[8378] | 12 | <div class="browsePath"> |
---|
[13474] | 13 | {$SECTION_TITLE}<span class="browsePathSeparator">{$LEVEL_SEPARATOR}</span><h2>{$current.TITLE}</h2> |
---|
[8378] | 14 | </div> |
---|
[859] | 15 | </div> |
---|
| 16 | |
---|
| 17 | <div id="imageToolBar"> |
---|
[13774] | 18 | <div class="imageNumber">{$PHOTO}</div> |
---|
[13777] | 19 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
[8378] | 20 | <div class="actionButtons"> |
---|
[13474] | 21 | |
---|
| 22 | {if count($current.unique_derivatives)>1} |
---|
[13773] | 23 | {footer_script require='jquery'}{literal} |
---|
[13489] | 24 | function changeImgSrc(url,typeSave,typeMap) |
---|
[13474] | 25 | { |
---|
| 26 | var theImg = document.getElementById("theMainImage"); |
---|
| 27 | if (theImg) |
---|
| 28 | { |
---|
| 29 | theImg.removeAttribute("width");theImg.removeAttribute("height"); |
---|
| 30 | theImg.src = url; |
---|
| 31 | theImg.useMap = "#map"+typeMap; |
---|
| 32 | } |
---|
[13773] | 33 | jQuery('#derivativeSwitchBox .switchCheck').css('visibility','hidden'); |
---|
| 34 | jQuery('#derivativeChecked'+typeSave).css('visibility','visible'); |
---|
| 35 | document.cookie = 'picture_deriv='+typeSave+';path={/literal}{$COOKIE_PATH}{literal}'; |
---|
[13474] | 36 | } |
---|
| 37 | |
---|
| 38 | function toggleDerivativeSwitchBox() |
---|
| 39 | { |
---|
| 40 | var elt = document.getElementById("derivativeSwitchBox"), |
---|
| 41 | ePos = document.getElementById("derivativeSwitchLink"); |
---|
| 42 | if (elt.style.display==="none") |
---|
| 43 | { |
---|
[13729] | 44 | elt.style.left = (ePos.offsetLeft)+"px"; |
---|
[13474] | 45 | elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; |
---|
| 46 | elt.style.display=""; |
---|
| 47 | } |
---|
| 48 | else |
---|
| 49 | elt.style.display="none"; |
---|
| 50 | } |
---|
[13773] | 51 | jQuery("#derivativeSwitchBox").on('mouseleave click', function() { |
---|
| 52 | this.style.display="none"; |
---|
| 53 | } |
---|
| 54 | ); |
---|
[13474] | 55 | {/literal}{/footer_script} |
---|
| 56 | {strip}<a id="derivativeSwitchLink" href="javascript:toggleDerivativeSwitchBox()" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
| 57 | <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span></a> |
---|
[13773] | 58 | <div id="derivativeSwitchBox" class="switchBox" style="display:none"> |
---|
[13683] | 59 | <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> |
---|
[13474] | 60 | {foreach from=$current.unique_derivatives item=derivative key=derivative_type} |
---|
[13801] | 61 | <span class="switchCheck" id="derivativeChecked{$derivative_type}"{if $derivative->get_type() ne $current.selected_derivative->get_type()} style="visibility:hidden"{/if}>✔ </span> |
---|
[13773] | 62 | <a href="javascript:changeImgSrc('{$derivative->get_url()|@escape:javascript}','{$derivative_type}','{$derivative->get_type()}')"> |
---|
[13729] | 63 | {$derivative->get_type()|@translate}<span class="derivativeSizeDetails"> ({$derivative->get_size_hr()})</span> |
---|
| 64 | </a><br> |
---|
[13474] | 65 | {/foreach} |
---|
| 66 | {if isset($U_ORIGINAL)} |
---|
| 67 | <a href="javascript:phpWGOpenWindow('{$U_ORIGINAL}','xxx','scrollbars=yes,toolbar=no,status=no,resizable=yes')" rel="nofollow">{'Original'|@translate}</a> |
---|
| 68 | {/if} |
---|
| 69 | </div> |
---|
| 70 | {/strip}{/if} |
---|
| 71 | |
---|
| 72 | |
---|
[8757] | 73 | {strip}{if isset($U_SLIDESHOW_START)} |
---|
[8378] | 74 | <a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
[8774] | 75 | <span class="pwg-icon pwg-icon-slideshow"> </span><span class="pwg-button-text">{'slideshow'|@translate}</span> |
---|
[8378] | 76 | </a> |
---|
[8757] | 77 | {/if}{/strip} |
---|
| 78 | {strip}{if isset($U_METADATA)} |
---|
[8378] | 79 | <a href="{$U_METADATA}" title="{'Show file metadata'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
[8774] | 80 | <span class="pwg-icon pwg-icon-camera-info"> </span><span class="pwg-button-text">{'Show file metadata'|@translate}</span> |
---|
[8378] | 81 | </a> |
---|
[8757] | 82 | {/if}{/strip} |
---|
| 83 | {strip}{if isset($current.U_DOWNLOAD)} |
---|
[12681] | 84 | <a href="{$current.U_DOWNLOAD}" title="{'Download this file'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
| 85 | <span class="pwg-icon pwg-icon-save"> </span><span class="pwg-button-text">{'Download'|@translate}</span> |
---|
[8378] | 86 | </a> |
---|
[8757] | 87 | {/if}{/strip} |
---|
[8119] | 88 | {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} |
---|
[8757] | 89 | {strip}{if isset($favorite)} |
---|
[8665] | 90 | <a href="{$favorite.U_FAVORITE}" title="{if $favorite.IS_FAVORITE}{'delete this photo from your favorites'|@translate}{else}{'add this photo to your favorites'|@translate}{/if}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
[8774] | 91 | <span class="pwg-icon pwg-icon-favorite-{if $favorite.IS_FAVORITE}del{else}add{/if}"> </span><span class="pwg-button-text">{'Favorites'|@translate}</span> |
---|
[8378] | 92 | </a> |
---|
[8757] | 93 | {/if}{/strip} |
---|
| 94 | {strip}{if isset($U_SET_AS_REPRESENTATIVE)} |
---|
[8378] | 95 | <a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as album representative'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
[8774] | 96 | <span class="pwg-icon pwg-icon-representative"> </span><span class="pwg-button-text">{'representative'|@translate}</span> |
---|
[8378] | 97 | </a> |
---|
[8757] | 98 | {/if}{/strip} |
---|
| 99 | {strip}{if isset($U_ADMIN)} |
---|
[8378] | 100 | <a href="{$U_ADMIN}" title="{'Modify information'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
[12677] | 101 | <span class="pwg-icon pwg-icon-edit"> </span><span class="pwg-button-text">{'Edit'|@translate}</span> |
---|
[8378] | 102 | </a> |
---|
[8757] | 103 | {/if}{/strip} |
---|
| 104 | {strip}{if isset($U_CADDIE)}{*caddie management BEGIN*} |
---|
[8299] | 105 | {footer_script} |
---|
[2429] | 106 | {literal}function addToCadie(aElement, rootUrl, id) |
---|
| 107 | { |
---|
| 108 | if (aElement.disabled) return; |
---|
[8119] | 109 | aElement.disabled=true; |
---|
[2429] | 110 | var y = new PwgWS(rootUrl); |
---|
| 111 | y.callService( |
---|
[8119] | 112 | "pwg.caddie.add", {image_id: id} , |
---|
| 113 | { |
---|
| 114 | onFailure: function(num, text) { alert(num + " " + text); document.location=aElement.href; }, |
---|
| 115 | onSuccess: function(result) { aElement.disabled = false; } |
---|
| 116 | } |
---|
| 117 | ); |
---|
[2429] | 118 | }{/literal} |
---|
[8299] | 119 | {/footer_script} |
---|
[12677] | 120 | <a href="{$U_CADDIE}" onclick="addToCadie(this, '{$ROOT_URL}', {$current.id}); return false;" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
| 121 | <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'Caddie'|@translate}</span> |
---|
[8378] | 122 | </a> |
---|
[8757] | 123 | {/if}{/strip}{*caddie management END*} |
---|
[8378] | 124 | </div> |
---|
[8757] | 125 | </div>{*<!-- imageToolBar -->*} |
---|
[859] | 126 | |
---|
[13474] | 127 | <div id="theImageAndInfos"> |
---|
[12881] | 128 | <div id="theImage"> |
---|
[2227] | 129 | {$ELEMENT_CONTENT} |
---|
| 130 | |
---|
| 131 | {if isset($COMMENT_IMG)} |
---|
[11062] | 132 | <p class="imageComment">{$COMMENT_IMG}</p> |
---|
[2227] | 133 | {/if} |
---|
| 134 | |
---|
[8378] | 135 | {if isset($U_SLIDESHOW_STOP)} |
---|
[859] | 136 | <p> |
---|
[8378] | 137 | [ <a href="{$U_SLIDESHOW_STOP}">{'stop the slideshow'|@translate}</a> ] |
---|
[859] | 138 | </p> |
---|
[2227] | 139 | {/if} |
---|
| 140 | |
---|
[13801] | 141 | </div> |
---|
[859] | 142 | |
---|
[13801] | 143 | <div id="infoSwitcher"></div> |
---|
| 144 | <div id="imageInfos"> |
---|
[5293] | 145 | {if $DISPLAY_NAV_THUMB} |
---|
[13774] | 146 | <div class="navThumbs"> |
---|
| 147 | {if isset($previous)} |
---|
| 148 | <a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> |
---|
| 149 | <span class="thumbHover prevThumbHover"> </span> |
---|
| 150 | <img src="{$previous.derivatives.square->get_url()}" alt="{$previous.TITLE}"> |
---|
| 151 | </a> |
---|
| 152 | {/if} |
---|
| 153 | {if isset($next)} |
---|
| 154 | <a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> |
---|
| 155 | <span class="thumbHover nextThumbHover"> </span> |
---|
| 156 | <img src="{$next.derivatives.square->get_url()}" alt="{$next.TITLE}"> |
---|
| 157 | </a> |
---|
| 158 | {/if} |
---|
| 159 | </div> |
---|
[2227] | 160 | {/if} |
---|
[859] | 161 | |
---|
[13801] | 162 | <dl id="standard" class="imageInfoTable"> |
---|
[8757] | 163 | {strip} |
---|
[13782] | 164 | {if $display_info.author and isset($INFO_AUTHOR)} |
---|
[13774] | 165 | <div id="Author" class="imageInfo"> |
---|
| 166 | <dt>{'Author'|@translate}</dt> |
---|
[13782] | 167 | <dd>{$INFO_AUTHOR}</dd> |
---|
[13774] | 168 | </div> |
---|
[8378] | 169 | {/if} |
---|
[13782] | 170 | {if $display_info.created_on and isset($INFO_CREATION_DATE)} |
---|
[13774] | 171 | <div id="datecreate" class="imageInfo"> |
---|
| 172 | <dt>{'Created on'|@translate}</dt> |
---|
[13782] | 173 | <dd>{$INFO_CREATION_DATE}</dd> |
---|
[13774] | 174 | </div> |
---|
[8378] | 175 | {/if} |
---|
| 176 | {if $display_info.posted_on} |
---|
[13774] | 177 | <div id="datepost" class="imageInfo"> |
---|
| 178 | <dt>{'Posted on'|@translate}</dt> |
---|
| 179 | <dd>{$INFO_POSTED_DATE}</dd> |
---|
| 180 | </div> |
---|
[8378] | 181 | {/if} |
---|
[13782] | 182 | {if $display_info.dimensions and isset($INFO_DIMENSIONS)} |
---|
[13774] | 183 | <div id="Dimensions" class="imageInfo"> |
---|
| 184 | <dt>{'Dimensions'|@translate}</dt> |
---|
[13782] | 185 | <dd>{$INFO_DIMENSIONS}</dd> |
---|
[13774] | 186 | </div> |
---|
[8378] | 187 | {/if} |
---|
| 188 | {if $display_info.file} |
---|
[13774] | 189 | <div id="File" class="imageInfo"> |
---|
| 190 | <dt>{'File'|@translate}</dt> |
---|
| 191 | <dd>{$INFO_FILE}</dd> |
---|
| 192 | </div> |
---|
[8378] | 193 | {/if} |
---|
[13782] | 194 | {if $display_info.filesize and isset($INFO_FILESIZE)} |
---|
[13774] | 195 | <div id="Filesize" class="imageInfo"> |
---|
| 196 | <dt>{'Filesize'|@translate}</dt> |
---|
[13782] | 197 | <dd>{$INFO_FILESIZE}</dd> |
---|
[13774] | 198 | </div> |
---|
[8378] | 199 | {/if} |
---|
[13782] | 200 | {if $display_info.tags and isset($related_tags)} |
---|
[13774] | 201 | <div id="Tags" class="imageInfo"> |
---|
| 202 | <dt>{'Tags'|@translate}</dt> |
---|
| 203 | <dd> |
---|
[13782] | 204 | {foreach from=$related_tags item=tag name=tag_loop}{if !$smarty.foreach.tag_loop.first}, {/if}<a href="{$tag.URL}">{$tag.name}</a>{/foreach} |
---|
[13774] | 205 | </dd> |
---|
| 206 | </div> |
---|
[8378] | 207 | {/if} |
---|
[13782] | 208 | {if $display_info.categories and isset($related_categories)} |
---|
[13774] | 209 | <div id="Categories" class="imageInfo"> |
---|
| 210 | <dt>{'Albums'|@translate}</dt> |
---|
| 211 | <dd> |
---|
[8378] | 212 | <ul> |
---|
| 213 | {foreach from=$related_categories item=cat} |
---|
| 214 | <li>{$cat}</li> |
---|
| 215 | {/foreach} |
---|
| 216 | </ul> |
---|
[13774] | 217 | </dd> |
---|
| 218 | </div> |
---|
[8378] | 219 | {/if} |
---|
| 220 | {if $display_info.visits} |
---|
[13774] | 221 | <div id="Visits" class="imageInfo"> |
---|
| 222 | <dt>{'Visits'|@translate}</dt> |
---|
| 223 | <dd>{$INFO_VISITS}</dd> |
---|
| 224 | </div> |
---|
[8378] | 225 | {/if} |
---|
[2480] | 226 | |
---|
[11893] | 227 | {if $display_info.rating_score and isset($rate_summary)} |
---|
[13774] | 228 | <div id="Average" class="imageInfo"> |
---|
| 229 | <dt>{'Rating score'|@translate}</dt> |
---|
| 230 | <dd> |
---|
[2594] | 231 | {if $rate_summary.count} |
---|
[11839] | 232 | <span id="ratingScore">{$rate_summary.score}</span> <span id="ratingCount">({assign var='rate_text' value='%d rates'|@translate}{$pwg->sprintf($rate_text, $rate_summary.count)})</span> |
---|
[2594] | 233 | {else} |
---|
[11839] | 234 | <span id="ratingScore">{'no rate'|@translate}</span> <span id="ratingCount"></span> |
---|
[2594] | 235 | {/if} |
---|
[13774] | 236 | </dd> |
---|
| 237 | </div> |
---|
[2594] | 238 | {/if} |
---|
[8378] | 239 | |
---|
[2480] | 240 | {if isset($rating)} |
---|
[13774] | 241 | <div id="rating" class="imageInfo"> |
---|
| 242 | <dt> |
---|
[8665] | 243 | <span id="updateRate">{if isset($rating.USER_RATE)}{'Update your rating'|@translate}{else}{'Rate this photo'|@translate}{/if}</span> |
---|
[13774] | 244 | </dt> |
---|
| 245 | <dd> |
---|
[2480] | 246 | <form action="{$rating.F_ACTION}" method="post" id="rateForm" style="margin:0;"> |
---|
[8378] | 247 | <div> |
---|
[2480] | 248 | {foreach from=$rating.marks item=mark name=rate_loop} |
---|
| 249 | {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} |
---|
[8378] | 250 | <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}"> |
---|
[2480] | 251 | {else} |
---|
[8378] | 252 | <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}"> |
---|
[2480] | 253 | {/if} |
---|
| 254 | {/foreach} |
---|
[8757] | 255 | {strip}{combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
[7975] | 256 | {combine_script id='rating' load='async' require='core.scripts' path='themes/default/js/rating.js'} |
---|
[8378] | 257 | {footer_script} |
---|
| 258 | var _pwgRatingAutoQueue = _pwgRatingAutoQueue||[]; |
---|
| 259 | _pwgRatingAutoQueue.push( {ldelim}rootUrl: '{$ROOT_URL}', image_id: {$current.id}, |
---|
[11839] | 260 | onSuccess : function(rating) {ldelim} |
---|
| 261 | var e = document.getElementById("updateRate"); |
---|
| 262 | if (e) e.innerHTML = "{'Update your rating'|@translate|@escape:'javascript'}"; |
---|
| 263 | e = document.getElementById("ratingScore"); |
---|
| 264 | if (e) e.innerHTML = rating.score; |
---|
| 265 | e = document.getElementById("ratingCount"); |
---|
| 266 | if (e) e.innerHTML = "({'%d rates'|@translate|@escape:'javascript'})".replace( "%d", rating.count); |
---|
| 267 | {rdelim}{rdelim} ); |
---|
[8378] | 268 | {/footer_script} |
---|
[8757] | 269 | {/strip} |
---|
[2480] | 270 | </div> |
---|
| 271 | </form> |
---|
[13774] | 272 | </dd> |
---|
| 273 | </div> |
---|
[2480] | 274 | {/if} |
---|
| 275 | |
---|
[8378] | 276 | {if $display_info.privacy_level and isset($available_permission_levels)} |
---|
[13774] | 277 | <div id="Privacy" class="imageInfo"><div class="relSwitchBox"> |
---|
| 278 | <dt><a id="privacyLevelLink" href="javascript:togglePrivacyLevelBox()">{'Who can see this photo?'|@translate}</a></dt> |
---|
| 279 | <dd> |
---|
[13801] | 280 | {combine_script id='core.scripts' load='async' path='themes/default/js/scripts.js'} |
---|
| 281 | {footer_script require='jquery'} |
---|
[13774] | 282 | {literal}function setPrivacyLevel(rootUrl, id, level) |
---|
[2594] | 283 | { |
---|
| 284 | var y = new PwgWS(rootUrl); |
---|
| 285 | y.callService( |
---|
| 286 | "pwg.images.setPrivacyLevel", {image_id: id, level:level} , |
---|
| 287 | { |
---|
[4513] | 288 | method: "POST", |
---|
[13774] | 289 | onFailure: function(num, text) { alert(num + " " + text); }, |
---|
| 290 | onSuccess: function(result) { |
---|
[13787] | 291 | jQuery('#privacyLevelBox .switchCheck').css('visibility','hidden'); |
---|
| 292 | jQuery('#levelCheck'+level).css('visibility','visible'); |
---|
[13774] | 293 | } |
---|
[2594] | 294 | } |
---|
| 295 | ); |
---|
[13774] | 296 | } |
---|
| 297 | function togglePrivacyLevelBox() |
---|
| 298 | { |
---|
| 299 | var elt = document.getElementById("privacyLevelBox"), |
---|
| 300 | ePos = document.getElementById("privacyLevelLink"); |
---|
| 301 | if (elt.style.display == "none") |
---|
| 302 | { |
---|
| 303 | elt.style.left = (ePos.offsetLeft)+"px"; |
---|
| 304 | elt.style.top = (ePos.offsetTop+ePos.offsetHeight)+"px"; |
---|
| 305 | elt.style.display=""; |
---|
| 306 | } |
---|
| 307 | else |
---|
| 308 | elt.style.display="none"; |
---|
| 309 | } |
---|
| 310 | {/literal} |
---|
[8299] | 311 | {/footer_script} |
---|
[13801] | 312 | |
---|
[13774] | 313 | <div id="privacyLevelBox" class="switchBox" onclick="togglePrivacyLevelBox()" style="display:none" onmouseout="e=event.toElement||event.relatedTarget;e.parentNode==this||e==this||togglePrivacyLevelBox()"> |
---|
| 314 | {foreach from=$available_permission_levels item=label key=level} |
---|
[13787] | 315 | <span id="levelCheck{$level}" class="switchCheck" {if $level != $current.level} style="visibility:hidden"{/if}>✔ </span> |
---|
| 316 | <a id="switchLevel{$level}" href="javascript:setPrivacyLevel('{$ROOT_URL}', {$current.id}, {$level})">{$label}</a><br> |
---|
[13774] | 317 | {/foreach} |
---|
| 318 | </div> |
---|
| 319 | |
---|
| 320 | </dd> |
---|
| 321 | </div></div> |
---|
[2594] | 322 | {/if} |
---|
[8757] | 323 | {/strip} |
---|
[13774] | 324 | </dl> |
---|
[859] | 325 | |
---|
[2227] | 326 | {if isset($metadata)} |
---|
[13801] | 327 | <dl id="Metadata" class="imageInfoTable"> |
---|
[2227] | 328 | {foreach from=$metadata item=meta} |
---|
[13774] | 329 | <h3>{$meta.TITLE}</h3> |
---|
[8378] | 330 | {foreach from=$meta.lines item=value key=label} |
---|
[13774] | 331 | <div class="imageInfo"> |
---|
| 332 | <dt>{$label}</dt> |
---|
| 333 | <dd>{$value}</dd> |
---|
| 334 | </div> |
---|
[8378] | 335 | {/foreach} |
---|
[2227] | 336 | {/foreach} |
---|
[13774] | 337 | </dl> |
---|
[2227] | 338 | {/if} |
---|
[10804] | 339 | </div> |
---|
[13474] | 340 | </div> |
---|
[859] | 341 | |
---|
[2227] | 342 | {if isset($COMMENT_COUNT)} |
---|
[13774] | 343 | <div id="comments" {if (!isset($comment_add) && ($COMMENT_COUNT == 0))}class="noCommentContent"{else}class="commentContent"{/if}><div id="commentsSwitcher"></div> |
---|
[13801] | 344 | <h3>{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3> |
---|
| 345 | |
---|
[13774] | 346 | <div id="pictureComments"> |
---|
| 347 | {if isset($comment_add)} |
---|
| 348 | <div id="commentAdd"> |
---|
| 349 | <h4>{'Add a comment'|@translate}</h4> |
---|
[13801] | 350 | <form method="post" action="{$comment_add.F_ACTION}" id="addComment" > |
---|
[13774] | 351 | {if $comment_add.SHOW_AUTHOR} |
---|
| 352 | <p><label>{'Author'|@translate} :</label></p> |
---|
| 353 | <p><input type="text" name="author" /></p> |
---|
[13801] | 354 | <p><label>{'Comment'|@translate} :</label></p> |
---|
[13774] | 355 | {/if} |
---|
[13801] | 356 | <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> |
---|
[13774] | 357 | <p><input type="hidden" name="key" value="{$comment_add.KEY}" /> |
---|
[13801] | 358 | <input class="submit" type="submit" value="{'Submit'|@translate}"></p> |
---|
[13774] | 359 | </form> |
---|
| 360 | </div> |
---|
| 361 | {/if} |
---|
| 362 | {if isset($comments)} |
---|
| 363 | <div id="pictureCommentList"> |
---|
| 364 | {if (($COMMENT_COUNT > 2) || !empty($navbar))} |
---|
| 365 | <div id="pictureCommentNavBar"> |
---|
| 366 | {if $COMMENT_COUNT > 2} |
---|
| 367 | <a href="{$COMMENTS_ORDER_URL}#comments" rel="nofollow" class="commentsOrder">{$COMMENTS_ORDER_TITLE}</a> |
---|
| 368 | {/if} |
---|
| 369 | {if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
| 370 | </div> |
---|
| 371 | {/if} |
---|
| 372 | {include file='comment_list.tpl'} |
---|
| 373 | </div> |
---|
| 374 | {/if} |
---|
| 375 | <div style="clear: both;"></div> |
---|
| 376 | </div> |
---|
[859] | 377 | |
---|
[1167] | 378 | </div> |
---|
[8378] | 379 | {/if}{*comments*} |
---|
[2205] | 380 | |
---|
[2352] | 381 | {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
---|
[10812] | 382 | |
---|
| 383 | </div> |
---|