source: extensions/UserCollections/template/collections_list.tpl @ 23551

Last change on this file since 23551 was 23551, checked in by mistic100, 11 years ago

many corrections & optimizations + remove useless code + clean

File size: 1.3 KB
Line 
1{combine_css path=$USER_COLLEC_PATH|cat:'template/style_collections.css'}
2
3{footer_script require='jquery'}
4jQuery(".new_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
14jQuery(".titrePage h2").append(" [{$COLLECTIONS_COUNT}]");
15{/footer_script}
16
17{* <!-- Menubar & titrePage --> *}
18{if $themeconf.name == "stripped" or $themeconf.parent == "stripped"}
19  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/stripped.tpl'}
20  {assign var="clear" value="true"}
21{elseif $themeconf.name == "simple-grey" or $themeconf.parent == "simple"}
22  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/simple.tpl'}
23  {assign var="clear" value="true"}
24{else}
25  {include file=$USER_COLLEC_ABS_PATH|@cat:'template/themes/default.tpl'}
26{/if}
27
28{if isset($errors) or not empty($infos)}
29{include file='infos_errors.tpl'}
30{/if}
31
32
33<p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="new_col">{'Create a new collection'|@translate}</a></p>
34
35{if !empty($CATEGORIES)}
36{$CATEGORIES}
37{else}
38{'You have no collection'|@translate}
39{/if}
40
41{if isset($clear)}<div style="clear: both;"></div>
42</div>{/if}
43</div>{* <!-- content --> *}
Note: See TracBrowser for help on using the repository browser.