- Timestamp:
- Nov 24, 2013, 6:09:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/template/collections_list.tpl
r23551 r25678 2 2 3 3 {footer_script require='jquery'} 4 jQuery( ".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);4 jQuery('.new_col').click(function() { 5 var name = prompt('{'Collection name:'|translate|escape:javascript}'); 6 if (name != null) { 7 jQuery(this).attr('href', jQuery(this).attr('href') +'&name='+ name); 8 8 return true; 9 } else {ldelim} 9 } 10 else { 10 11 return false; 11 12 } 12 13 }); 13 14 14 jQuery( ".titrePage h2").append(" [{$COLLECTIONS_COUNT}]");15 jQuery('.titrePage h2').append(' [{$COLLECTIONS_COUNT}]'); 15 16 {/footer_script} 16 17 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'} 18 19 <p style="text-align:left;font-weight:bold;margin:20px;"><a href="{$U_CREATE}" class="new_col">{'Create a new collection'|translate}</a></p> 20 21 {if empty($CATEGORIES)} 22 {'You have no collection'|translate} 26 23 {/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 TracChangeset
for help on using the changeset viewer.