1 | {combine_css path=$USER_COLLEC_PATH|cat:'template/style_collections.css'} |
---|
2 | {combine_script id='ZeroClipboard' path=$USER_COLLEC_PATH|cat:'template/resources/ZeroClipboard.min.js'} |
---|
3 | {include file=$USER_COLLEC_ABS_PATH|cat:'template/thumbnails_colorbox.tpl'} |
---|
4 | |
---|
5 | {footer_script require='jquery'} |
---|
6 | {if $user_collections.allow_public} |
---|
7 | ZeroClipboard.setDefaults( {ldelim} moviePath: "{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/ZeroClipboard.swf" } ); |
---|
8 | var clip = new ZeroClipboard(); |
---|
9 | |
---|
10 | clip.glue(jQuery("#publicURL .button").get()); |
---|
11 | clip.addEventListener('onMouseOver', function() {ldelim} |
---|
12 | clip.setText(jQuery("#publicURL .url").val()); |
---|
13 | }); |
---|
14 | clip.addEventListener('complete', function() {ldelim} |
---|
15 | jQuery('.confirm').remove(); |
---|
16 | jQuery("#publicURL .url").select(); |
---|
17 | jQuery('<span class="confirm" style="display:none;">{'Copied'|@translate}</span>').appendTo("#publicURL") |
---|
18 | .fadeIn(400).delay(1000).fadeOut(400, function(){ldelim} jQuery(this).remove(); }); |
---|
19 | }); |
---|
20 | |
---|
21 | jQuery("#publicURL .url").click(function() {ldelim} |
---|
22 | jQuery(this).select(); |
---|
23 | }); |
---|
24 | |
---|
25 | jQuery("input[name='public']").change(function() {ldelim} |
---|
26 | jQuery("#publicURL").fadeToggle("fast"); |
---|
27 | }); |
---|
28 | {/if} |
---|
29 | |
---|
30 | {if $collection.PUBLIC && $user_collections.allow_mails} |
---|
31 | jQuery(window).load(function(){ldelim} |
---|
32 | jQuery(".mail_colorbox_open").colorbox({ldelim} |
---|
33 | {if isset($uc_mail_errors)}open: true, transition:"none",{/if} |
---|
34 | inline:true |
---|
35 | }); |
---|
36 | jQuery(".mail_colorbox_close").click(function() {ldelim} |
---|
37 | jQuery(".mail_colorbox_open").colorbox.close(); |
---|
38 | return false; |
---|
39 | }) |
---|
40 | }); |
---|
41 | jQuery("#mail_form").css('background-color', jQuery("#the_page #content").css('background-color')); |
---|
42 | {/if} |
---|
43 | |
---|
44 | jQuery("#edit_form_show").click(function() {ldelim} |
---|
45 | jQuery("#edit_form_show").hide(); |
---|
46 | jQuery(".additional_info").hide(); |
---|
47 | jQuery("#edit_form").show(); |
---|
48 | }); |
---|
49 | jQuery("#edit_form_hide").click(function() {ldelim} |
---|
50 | jQuery("#edit_form_show").show(); |
---|
51 | jQuery(".additional_info").show(); |
---|
52 | jQuery("#edit_form").hide(); |
---|
53 | }); |
---|
54 | {/footer_script} |
---|
55 | |
---|
56 | |
---|
57 | {* <!-- Menubar & titrePage --> *} |
---|
58 | {if $themeconf.name == "stripped" or $themeconf.parent == "stripped"} |
---|
59 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/stripped.tpl'} |
---|
60 | {assign var="clear" value="true"} |
---|
61 | {elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"} |
---|
62 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/simple.tpl'} |
---|
63 | {assign var="clear" value="true"} |
---|
64 | {else} |
---|
65 | {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/default.tpl'} |
---|
66 | {/if} |
---|
67 | |
---|
68 | {if isset($errors) or not empty($infos)} |
---|
69 | {include file='infos_errors.tpl'} |
---|
70 | {/if} |
---|
71 | |
---|
72 | |
---|
73 | {if !empty($CONTENT_DESCRIPTION)} |
---|
74 | <div class="additional_info"> |
---|
75 | {$CONTENT_DESCRIPTION} |
---|
76 | </div> |
---|
77 | {/if} |
---|
78 | |
---|
79 | <p style="text-align:center;"><input type="submit" id="edit_form_show" value="{'Edit'|@translate}"></p> |
---|
80 | |
---|
81 | {* <!-- edit collection -->*} |
---|
82 | <form action="{$F_ACTION}" method="post" id="edit_form" style="display:none;"> |
---|
83 | <fieldset id="colProperties"> |
---|
84 | <legend>{'Properties'|@translate}</legend> |
---|
85 | |
---|
86 | <p class="title"><label for="name">{'Name'|@translate}</label></p> |
---|
87 | <p><input type="text" name="name" id="name" value="{$collection.NAME|escape:html}" size="60"></p> |
---|
88 | |
---|
89 | <p class="title"><label for="comment">{'Description'|@translate}</label></p> |
---|
90 | <p><textarea name="comment" id="comment" style="width:400px;height:100px;">{$collection.COMMENT}</textarea></p> |
---|
91 | |
---|
92 | {if $user_collections.allow_public} |
---|
93 | <p class="title">{'Public collection'|@translate}</p> |
---|
94 | <p> |
---|
95 | <label><input type="radio" name="public" value="0" {if not $collection.PUBLIC}checked="checked"{/if}> {'No'|@translate}</label> |
---|
96 | <label><input type="radio" name="public" value="1" {if $collection.PUBLIC}checked="checked"{/if}> {'Yes'|@translate}</label> |
---|
97 | <span id="publicURL" {if not $collection.PUBLIC}style="display:none;"{/if}><!-- |
---|
98 | --><span class="button" title="{'Copy to clipboard'|@translate}"> </span><!-- |
---|
99 | --><input type="text" class="url" value="{$collection.U_PUBLIC}" size="{$collection.U_PUBLIC|strlen}"><!-- |
---|
100 | --></span> |
---|
101 | </p> |
---|
102 | {/if} |
---|
103 | |
---|
104 | <p> |
---|
105 | <input type="submit" name="save_col" value="{'Save'|@translate}"> |
---|
106 | <a id="edit_form_hide">{'Cancel'|@translate}</a> |
---|
107 | </p> |
---|
108 | </fieldset> |
---|
109 | </form> |
---|
110 | |
---|
111 | |
---|
112 | {* <!-- send collection by mail -->*} |
---|
113 | {if $user_collections.allow_public && $user_collections.allow_mails} |
---|
114 | <div style="display:none;"> |
---|
115 | <form id="mail_form" action="{$F_ACTION}" method="post"> |
---|
116 | {if isset($uc_mail_errors)} |
---|
117 | {assign var=errors value=$uc_mail_errors} |
---|
118 | {include file='infos_errors.tpl'} |
---|
119 | {/if} |
---|
120 | |
---|
121 | <table> |
---|
122 | <tr> |
---|
123 | <td class="title"><label for="sender_name">{'Your name'|@translate}</label></td> |
---|
124 | <td> |
---|
125 | <input type="text" name="sender_name" id="sender_name" size="40" value="{$contact.sender_name}"> |
---|
126 | </td> |
---|
127 | </tr> |
---|
128 | <tr> |
---|
129 | <td class="title"><label for="sender_email">{'Your e-mail'|@translate}</label></td> |
---|
130 | <td> |
---|
131 | <input type="text" name="sender_email" id="sender_email" size="40" value="{$contact.sender_email}"> |
---|
132 | </td> |
---|
133 | </tr> |
---|
134 | <tr> |
---|
135 | <td class="title"><label for="recipient_name">{'Recipient name'|@translate}</label></td> |
---|
136 | <td> |
---|
137 | <input type="text" name="recipient_name" id="recipient_name" size="40" value="{$contact.recipient_name}"> |
---|
138 | </td> |
---|
139 | </tr> |
---|
140 | <tr> |
---|
141 | <td class="title"><label for="recipient_email">{'Recipient e-mail'|@translate}</label></td> |
---|
142 | <td> |
---|
143 | <input type="text" name="recipient_email" id="recipient_email" size="40" value="{$contact.recipient_email}"> |
---|
144 | </td> |
---|
145 | </tr> |
---|
146 | <tr> |
---|
147 | <td class="title"><label for="nb_images">{'Number of images'|@translate}</label></td> |
---|
148 | <td> |
---|
149 | <select name="nb_images"> |
---|
150 | <option value="2" {if $contact.nb_images==2}selected="selected"{/if}>2</option> |
---|
151 | <option value="4" {if $contact.nb_images==4}selected="selected"{/if}>4</option> |
---|
152 | <option value="8" {if $contact.nb_images==8}selected="selected"{/if}>8</option> |
---|
153 | </select> |
---|
154 | </td> |
---|
155 | </tr> |
---|
156 | <tr> |
---|
157 | <td class="title"><label for="message">{'Message (optional)'|@translate}</label></td> |
---|
158 | <td><textarea name="message" id="message" rows="6" style="width:350px;">{$contact.message}</textarea></td> |
---|
159 | </tr> |
---|
160 | <tr> |
---|
161 | <td class="title"> </td> |
---|
162 | <td> |
---|
163 | <input class="submit" type="submit" name="send_mail" value="{'Send'|@translate}"> |
---|
164 | <a class="mail_colorbox_close" href="#">{'Cancel'|@translate}</a> |
---|
165 | <input type="hidden" name="key" value="{$contact.KEY}" /> |
---|
166 | </td> |
---|
167 | </tr> |
---|
168 | </table> |
---|
169 | </form> |
---|
170 | </div> |
---|
171 | {/if} |
---|
172 | |
---|
173 | |
---|
174 | {* <!-- collection content -->*} |
---|
175 | {if $collection.NB_IMAGES > 0} |
---|
176 | <ul class="thumbnails" id="thumbnails"> |
---|
177 | {$THUMBNAILS} |
---|
178 | </ul> |
---|
179 | {else} |
---|
180 | <p><i>{'This collection is empty'|@translate}</i></p> |
---|
181 | {/if} |
---|
182 | |
---|
183 | {if !empty($navbar)}{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if} |
---|
184 | |
---|
185 | |
---|
186 | {if isset($clear)}<div style="clear: both;"></div> |
---|
187 | </div>{/if} |
---|
188 | </div>{* <!-- content --> *} |
---|