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