[4456] | 1 | <div id="titrePage"> |
---|
| 2 | <div class="imageNumber">{$PHOTO}</div> |
---|
| 3 | <a href="{$U_HOME}" rel="home">{'home'|@translate}</a> |
---|
| 4 | {if !$IS_HOME}{$LEVEL_SEPARATOR}{$SECTION_TITLE}{/if} |
---|
| 5 | » <h2>{$current.TITLE}</h2> |
---|
| 6 | </div> <!-- imageHeaderBar --> |
---|
| 7 | {if !empty($PLUGIN_PICTURE_BEFORE)}{$PLUGIN_PICTURE_BEFORE}{/if} |
---|
| 8 | <div id="content"> |
---|
| 9 | {if isset($errors) and count($errors)} |
---|
| 10 | <div class="errors"> |
---|
| 11 | <ul> |
---|
| 12 | {foreach from=$errors item=error} |
---|
| 13 | <li>{$error}</li> |
---|
| 14 | {/foreach} |
---|
| 15 | </ul> |
---|
| 16 | </div> |
---|
| 17 | {/if} |
---|
| 18 | {if isset($infos) and count($infos)} |
---|
| 19 | <div class="infos"> |
---|
| 20 | <ul> |
---|
| 21 | {foreach from=$infos item=info} |
---|
| 22 | <li>{$info}</li> |
---|
| 23 | {/foreach} |
---|
| 24 | </ul> |
---|
| 25 | </div> |
---|
| 26 | {/if} |
---|
| 27 | <div id="imageInfoBar"> |
---|
| 28 | <div id="imageToolBar"> |
---|
| 29 | {include file='picture_nav_buttons.tpl'|@get_extent:'picture_nav_buttons'} |
---|
| 30 | </div> |
---|
| 31 | {if isset($previous) } |
---|
| 32 | <div id="navThumbPrev"> |
---|
| 33 | <a class="navThumb" href="{$previous.U_IMG}" title="{'previous_page'|@translate} : {$previous.TITLE}" rel="prev"> |
---|
| 34 | <img src="{$previous.THUMB_SRC}" alt="{$previous.TITLE}"></a> |
---|
| 35 | </div> <!-- navThumbPrev --> |
---|
| 36 | {/if} |
---|
| 37 | {if isset($next) } |
---|
| 38 | <div id="navThumbNext"> |
---|
| 39 | <a class="navThumb" href="{$next.U_IMG}" title="{'next_page'|@translate} : {$next.TITLE}" rel="next"> |
---|
| 40 | <img src="{$next.THUMB_SRC}" alt="{$next.TITLE}"></a> |
---|
| 41 | </div> <!-- navThumbNext --> |
---|
| 42 | {/if} |
---|
| 43 | <div id="randomButtons"> |
---|
| 44 | <ul> |
---|
| 45 | {if isset($U_SLIDESHOW_START) } |
---|
| 46 | <li><a href="{$U_SLIDESHOW_START}" title="{'slideshow'|@translate}" rel="nofollow">{'slideshow'|@translate}</a></li> |
---|
| 47 | {/if} |
---|
| 48 | {if isset($PLUGIN_PICTURE_ACTIONS)}{$PLUGIN_PICTURE_ACTIONS}{/if} |
---|
| 49 | {if !empty($U_SET_AS_REPRESENTATIVE) } |
---|
| 50 | <li><a href="{$U_SET_AS_REPRESENTATIVE}" title="{'set as category representative'|@translate}">{'representative'|@translate}</a></li> |
---|
| 51 | {/if} |
---|
| 52 | {if isset($U_ADMIN) } |
---|
| 53 | <li><a href="{$U_ADMIN}" title="{'link_info_image'|@translate}">{'link_info_image'|@translate}</a></li> |
---|
| 54 | {/if} |
---|
| 55 | <li><a href="{$U_METADATA}" title="{'picture_show_metadata'|@translate}" rel="nofollow">{'picture_show_metadata'|@translate}</a></li> |
---|
| 56 | </ul> |
---|
| 57 | </div> |
---|
| 58 | {if isset($metadata)} |
---|
| 59 | <div id="imageMeta"> |
---|
| 60 | {foreach from=$metadata item=meta} |
---|
| 61 | <h3>{$meta.TITLE}</h3> |
---|
| 62 | <dl> |
---|
| 63 | {foreach from=$meta.lines item=value key=label} |
---|
| 64 | <dt class="label">{$label}</dt> |
---|
| 65 | <dd class="value">{$value}</dd> |
---|
| 66 | {/foreach} |
---|
| 67 | </dl> |
---|
| 68 | {/foreach} |
---|
| 69 | </div> <!-- imageMeta --> |
---|
| 70 | {/if} |
---|
| 71 | <div id="imageInfos"> |
---|
| 72 | <dl> |
---|
| 73 | {if isset($INFO_AUTHOR)} |
---|
| 74 | <dt class="label">{'Author'|@translate}</dt> |
---|
| 75 | <dd class="value">{$INFO_AUTHOR}</dd> |
---|
| 76 | {/if} |
---|
| 77 | {if isset($INFO_CREATION_DATE)} |
---|
| 78 | <dt class="label">{'Created on'|@translate}</dt> |
---|
| 79 | <dd class="value">{$INFO_CREATION_DATE}</dd> |
---|
| 80 | {/if} |
---|
| 81 | <!-- <dt class="label">{'Posted on'|@translate}</dt> |
---|
| 82 | <dd class="value">{$INFO_POSTED_DATE}</dd>--> |
---|
| 83 | {if isset($related_tags)} |
---|
| 84 | <dt class="label">{'Tags'|@translate}</dt> |
---|
| 85 | <dd class="value">{foreach from=$related_tags item=tag name=tag_loop} |
---|
| 86 | {if !$smarty.foreach.tag_loop.first}, {/if} |
---|
| 87 | <a href="{$tag.URL}">{$tag.name}</a>{/foreach}</dd> |
---|
| 88 | {/if} |
---|
| 89 | {if isset($related_categories)} |
---|
| 90 | <dt class="label">{'Categories'|@translate}</dt> |
---|
| 91 | <dd class="value"> |
---|
| 92 | {foreach from=$related_categories item=cat name=tag_loop} |
---|
| 93 | {if !$smarty.foreach.tag_loop.first}, {/if} {' '|@str_ireplace:' ':$cat}{/foreach} |
---|
| 94 | </dd> |
---|
| 95 | {/if} |
---|
| 96 | <dt class="label">{'Visits'|@translate}</dt> |
---|
| 97 | <dd class="value">{$INFO_VISITS}</dd> |
---|
| 98 | {if isset($rate_summary)} |
---|
| 99 | <dt class="label">{'Average rate'|@translate}</dt> |
---|
| 100 | <dd class="value" id="ratingSummary"> |
---|
| 101 | {if $rate_summary.count} |
---|
| 102 | {assign var='rate_text' value='%.2f (rated %d times, standard deviation = %.2f)'|@translate } |
---|
| 103 | {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) } |
---|
| 104 | {else} |
---|
| 105 | {'no_rate'|@translate} |
---|
| 106 | {/if} |
---|
| 107 | </dd> |
---|
| 108 | {/if} |
---|
| 109 | {if isset($rating)} |
---|
| 110 | <dt class="label"><span id="updateRate">{if isset($rating.USER_RATE)}{'update_rate'|@translate}{else}{'new_rate'|@translate}{/if}</span></dt> |
---|
| 111 | <dd class="value"> |
---|
| 112 | <form action="{$rating.F_ACTION}" method="post" id="rateForm"> |
---|
| 113 | <div> |
---|
| 114 | {foreach from=$rating.marks item=mark name=rate_loop} |
---|
| 115 | {if !$smarty.foreach.rate_loop.first} | {/if} |
---|
| 116 | {if isset($rating.USER_RATE) && $mark==$rating.USER_RATE} |
---|
| 117 | <input type="button" name="rate" value="{$mark}" class="rateButtonSelected" title="{$mark}" /> |
---|
| 118 | {else} |
---|
| 119 | <input type="submit" name="rate" value="{$mark}" class="rateButton" title="{$mark}" /> |
---|
| 120 | {/if} |
---|
| 121 | {/foreach} |
---|
| 122 | <script type="text/javascript" src="{$ROOT_URL}template/{$themeconf.template}/js/rating.min.js"></script> |
---|
| 123 | <script type="text/javascript"> |
---|
| 124 | makeNiceRatingForm( {ldelim}rootUrl: '{$ROOT_URL|@escape:"javascript"}', |
---|
| 125 | image_id: {$current.id}, |
---|
| 126 | updateRateText: "{'update_rate'|@translate|@escape:'javascript'}", |
---|
| 127 | updateRateElement: document.getElementById("updateRate"), |
---|
| 128 | ratingSummaryText: "{'%.2f (rated %d times, standard deviation = %.2f)'|@translate|@escape:'javascript'}", |
---|
| 129 | ratingSummaryElement: document.getElementById("ratingSummary") {rdelim} ); |
---|
| 130 | </script> |
---|
| 131 | </div> |
---|
| 132 | </form> |
---|
| 133 | </dd> |
---|
| 134 | {/if} |
---|
| 135 | </dl> |
---|
| 136 | </div> <!-- imageInfos --> |
---|
| 137 | </div> |
---|
| 138 | <div id="theImage"> |
---|
| 139 | {$ELEMENT_CONTENT} |
---|
| 140 | {if isset($COMMENT_IMG)} |
---|
| 141 | <p>{$COMMENT_IMG}</p> |
---|
| 142 | {/if} |
---|
| 143 | </div> <!-- theImage --> |
---|
| 144 | <div style="clear: both;"></div> |
---|
| 145 | |
---|
| 146 | {if (isset($COMMENT_COUNT) and ($COMMENT_COUNT>0)) or isset($comment_add) } |
---|
| 147 | <div id="theComments"> |
---|
| 148 | <h3 title="{'comments_add'|@translate}">{$pwg->l10n_dec('%d comment', '%d comments',$COMMENT_COUNT)}</h3> |
---|
| 149 | {if !empty($COMMENT_NAV_BAR)} |
---|
| 150 | <div class="navigationBar">{$COMMENT_NAV_BAR}</div> |
---|
| 151 | {/if} |
---|
| 152 | {if isset($comment_add)} |
---|
| 153 | <div id="commentAdd"> |
---|
| 154 | <h4>{'comments_add'|@translate}</h4> |
---|
| 155 | <form method="post" action="{$comment_add.F_ACTION}" class="filter"> |
---|
| 156 | {if $comment_add.SHOW_AUTHOR} |
---|
| 157 | <p><label>{'upload_author'|@translate}</label> |
---|
| 158 | <input type="text" name="author" /></p> |
---|
| 159 | {/if} |
---|
| 160 | <p><label>{'comment'|@translate}</label></p> |
---|
| 161 | <p><textarea name="content" id="contentid" rows="5" cols="50">{$comment_add.CONTENT}</textarea></p> |
---|
| 162 | <p><input type="hidden" name="key" value="{$comment_add.KEY}" /> |
---|
| 163 | <input class="submit" type="submit" value="{'Submit'|@translate}"></p> |
---|
| 164 | </form> |
---|
| 165 | </div> |
---|
| 166 | {/if} |
---|
| 167 | {if isset($comments)} |
---|
| 168 | <div id="commentList"> |
---|
| 169 | {include file='comment_list.tpl' comment_separator=true} |
---|
| 170 | </div> |
---|
| 171 | {/if} |
---|
| 172 | </div> |
---|
| 173 | {/if} {*comments*} |
---|
| 174 | <div style="clear: both;"></div> |
---|
| 175 | </div> |
---|
| 176 | {if !empty($PLUGIN_PICTURE_AFTER)}{$PLUGIN_PICTURE_AFTER}{/if} |
---|