1 | {$MENUBAR} |
---|
2 | |
---|
3 | <div id="content" class="content{if isset($MENUBAR)} contentWithMenu{/if}"> |
---|
4 | |
---|
5 | <div class="titrePage"> |
---|
6 | <ul class="categoryActions"> |
---|
7 | {if !empty($image_orders)} |
---|
8 | <li>{strip}<a id="sortOrderLink" title="{'Sort order'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
9 | <span class="pwg-icon pwg-icon-sort"> </span><span class="pwg-button-text">{'Sort order'|@translate}</span> |
---|
10 | </a> |
---|
11 | <div id="sortOrderBox" class="switchBox"> |
---|
12 | <div class="switchBoxTitle">{'Sort order'|@translate}</div> |
---|
13 | {foreach from=$image_orders item=image_order name=loop}{if !$smarty.foreach.loop.first}<br>{/if} |
---|
14 | {if $image_order.SELECTED} |
---|
15 | <span>✔ </span>{$image_order.DISPLAY} |
---|
16 | {else} |
---|
17 | <span style="visibility:hidden">✔ </span><a href="{$image_order.URL}" rel="nofollow">{$image_order.DISPLAY}</a> |
---|
18 | {/if} |
---|
19 | {/foreach} |
---|
20 | </div> |
---|
21 | {footer_script require='jquery'}{literal} |
---|
22 | jQuery("#sortOrderLink").click(function() { |
---|
23 | var elt = jQuery("#sortOrderBox"); |
---|
24 | elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) |
---|
25 | .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) |
---|
26 | .toggle(); |
---|
27 | }); |
---|
28 | jQuery("#sortOrderBox").on("mouseleave", function() { |
---|
29 | jQuery(this).hide(); |
---|
30 | }); |
---|
31 | {/literal}{/footer_script} |
---|
32 | {/strip}</li> |
---|
33 | {/if} |
---|
34 | {if !empty($image_derivatives)} |
---|
35 | <li>{strip}<a id="derivativeSwitchLink" title="{'Photo sizes'|@translate}" class="pwg-state-default pwg-button" rel="nofollow"> |
---|
36 | <span class="pwg-icon pwg-icon-sizes"> </span><span class="pwg-button-text">{'Photo sizes'|@translate}</span> |
---|
37 | </a> |
---|
38 | <div id="derivativeSwitchBox" class="switchBox"> |
---|
39 | <div class="switchBoxTitle">{'Photo sizes'|@translate}</div> |
---|
40 | {foreach from=$image_derivatives item=image_derivative name=loop}{if !$smarty.foreach.loop.first}<br>{/if} |
---|
41 | {if $image_derivative.SELECTED} |
---|
42 | <span>✔ </span>{$image_derivative.DISPLAY} |
---|
43 | {else} |
---|
44 | <span style="visibility:hidden">✔ </span><a href="{$image_derivative.URL}" rel="nofollow">{$image_derivative.DISPLAY}</a> |
---|
45 | {/if} |
---|
46 | {/foreach} |
---|
47 | </div> |
---|
48 | {footer_script require='jquery'}{literal} |
---|
49 | jQuery("#derivativeSwitchLink").click(function() { |
---|
50 | var elt = jQuery("#derivativeSwitchBox"); |
---|
51 | elt.css("left", Math.min( jQuery(this).offset().left, jQuery(window).width() - elt.outerWidth(true) - 5)) |
---|
52 | .css("top", jQuery(this).offset().top + jQuery(this).outerHeight(true)) |
---|
53 | .toggle(); |
---|
54 | }); |
---|
55 | jQuery("#derivativeSwitchBox").on("mouseleave", function() { |
---|
56 | jQuery(this).hide(); |
---|
57 | }); |
---|
58 | {/literal}{/footer_script} |
---|
59 | {/strip}</li> |
---|
60 | {/if} |
---|
61 | {if isset($U_CADDIE)} |
---|
62 | <li><a href="{$U_CADDIE}" title="{'Add to caddie'|@translate}" class="pwg-state-default pwg-button"> |
---|
63 | <span class="pwg-icon pwg-icon-caddie-add"> </span><span class="pwg-button-text">{'Caddie'|@translate}</span> |
---|
64 | </a></li> |
---|
65 | {/if} |
---|
66 | |
---|
67 | {if $U_MAIL} |
---|
68 | <li><a href="#mail_form" title="{'Send this collection my mail'|@translate}" class="mail_colorbox_open pwg-state-default pwg-button" rel="nofollow" |
---|
69 | {if not $collection.PUBLIC}onClick="alert('{'The collection must be public in order to send it'|@translate|escape:javascript}');return false;"{/if}> |
---|
70 | <span class="pwg-icon user-collections-mail-icon" style="background:url('{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/mail.png') center center no-repeat;"> </span><span class="pwg-button-text">{'Send'|@translate}</span> |
---|
71 | </a></li> |
---|
72 | {/if} |
---|
73 | {if $U_CLEAR} |
---|
74 | <li><a href="{$U_CLEAR}" title="{'Clear this collection'|@translate}" class="pwg-state-default pwg-button" rel="nofollow" onClick="return confirm('{'Are you sure?'|@translate|escape:javascript}');"> |
---|
75 | <span class="pwg-icon user-collections-clear-icon" style="background:url('{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/bin.png') center center no-repeat;"> </span><span class="pwg-button-text">{'Clear'|@translate}</span> |
---|
76 | </a></li> |
---|
77 | {/if} |
---|
78 | {if $U_DELETE} |
---|
79 | <li><a href="{$U_DELETE}" title="{'Delete this collection'|@translate}" class="pwg-state-default pwg-button" rel="nofollow" onClick="return confirm('{'Are you sure?'|@translate|escape:javascript}');"> |
---|
80 | <span class="pwg-icon user-collections-delete-icon" style="background:url('{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/delete.png') center center no-repeat;"> </span><span class="pwg-button-text">{'Delete'|@translate}</span> |
---|
81 | </a></li> |
---|
82 | {/if} |
---|
83 | |
---|
84 | {if !empty($COLLECTION_ACTIONS)} |
---|
85 | {$COLLECTION_ACTIONS} |
---|
86 | {/if} |
---|
87 | </ul> |
---|
88 | |
---|
89 | <h2>{$TITLE}</h2> |
---|
90 | </div> |
---|