source: extensions/UserCollections/template/list.tpl @ 17493

Revision 17493, 3.2 KB checked in by mistic100, 7 years ago (diff)

better integration in simple and stripped

Line 
1{combine_css path=$USER_COLLEC_PATH|@cat:"template/style.css"}
2
3{footer_script require='jquery'}
4jQuery(".save_col").click(function() {ldelim}
5  var name = prompt("{'Collection name:'|@translate}");
6  if (name != null) {ldelim}
7    $(this).attr("href",  $(this).attr("href") +"&name="+ name);
8    return true;
9  } else {ldelim}
10    return false;
11  }
12});
13{/footer_script}
14
15{if $themeconf.name == "clear"}
16{html_head}{literal}
17<style type="text/css">.collecList a { color:#eee; }</style>
18{/literal}{/html_head}
19{/if}
20
21{* <!-- Menubar & titrePage --> *}
22{if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
23  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/stripped.tpl'}
24  {assign var="clear" value="true"}
25{elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
26  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/simple.tpl'}
27  {assign var="clear" value="true"}
28{else}
29  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/default.tpl'}
30{/if}
31
32{if isset($errors) or not empty($infos)}
33{include file='infos_errors.tpl'}
34{/if}
35
36
37<p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="save_col">{'Create a new collection'|@translate}</a></p>
38
39
40{if $temp_col}
41<fieldset>
42  <legend>{'Unsaved collections'|@translate}</legend>
43 
44  <ul class="collecList">
45  {foreach from=$temp_col item=col}
46    <li {if $col.active}class="active"{/if}>
47      <p class="collecTitle">
48        <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a>
49        <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i>
50      </p>
51      <p class="collecActions">
52        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a>
53        | <a href="{$col.U_SAVE}" class="save_col" rel="nofollow">{'save'|@translate}</a>
54        {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if}
55        | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a>
56        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
57      </p>
58    </li>
59  {/foreach}
60  </ul>
61</fieldset>
62{/if}
63
64
65{if $collections}
66<fieldset>
67  <legend>{'Saved collections'|@translate}</legend>
68 
69  <ul class="collecList">
70  {foreach from=$collections item=col}
71    <li {if $col.active}class="active"{/if}>
72      <p class="collecDate">
73        {'created on %s'|@translate|@sprintf:$col.date_creation}
74      </p>
75      <p class="collecTitle">
76        <a href="{$col.U_EDIT}" rel="nofollow"><b>{$col.name}</b></a>
77        <i>{'%d photos'|@translate|@sprintf:$col.nb_images}</i>
78      </p>
79      <p class="collecActions">
80        <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a>
81        {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if}
82        | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a>
83        {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if}
84      </p>
85    </li>
86  {/foreach}
87  </ul>
88</fieldset>
89{/if}
90
91{if $clear}<div style="clear: both;"></div>{/if}
92</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.