Changeset 16688 for extensions/UserCollections/template
- Timestamp:
- Jul 13, 2012, 12:09:19 PM (12 years ago)
- Location:
- extensions/UserCollections/template
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/template/edit.tpl
r16658 r16688 23 23 delay: 0, 24 24 defaultPosition: 'right' 25 }); 26 27 jQuery("#actions input").click(function() {ldelim} 28 if (confirm("{'Are you sure?'|@translate}")) {ldelim} 29 document.location.href = jQuery(this).data("href"); 30 } 31 return false; 25 32 }); 26 33 {if $collection.PUBLIC}bindZclip();{/if} … … 49 56 50 57 51 {if $collection and not $collection.IS_TEMP}58 {if $collection} 52 59 <form action="{$F_ACTION}" method="post"> 53 60 <fieldset id="colProperties"> … … 68 75 </fieldset> 69 76 </form> 70 {/if}71 77 72 78 73 {if !empty($THUMBNAILS)}79 {if $collection.NB_IMAGES > 0} 74 80 <ul class="thumbnails" id="thumbnails"> 75 81 {$THUMBNAILS} … … 82 88 83 89 84 <p style="text-align:center;font-weight:bold;margin:20px;"><a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a></p> 90 <form id="actions" style="text-align:center;"> 91 <input type="submit" data-href="{$collection.U_CLEAR}" value="{'Clear collection'|@translate}"> 92 <input type="submit" data-href="{$collection.U_DELETE}" value="{'Delete'|@translate}"> 93 </form> 94 {/if} 95 85 96 86 97 </div>{* <!-- content --> *} -
extensions/UserCollections/template/list.tpl
r16658 r16688 56 56 | <a href="{$col.U_SAVE}" class="save_col" rel="nofollow">{'save'|@translate}</a> 57 57 {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if} 58 | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{' delete'|@translate}</a>58 | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a> 59 59 {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if} 60 60 </p> … … 83 83 <a href="{$col.U_EDIT}" rel="nofollow">{'Edit'|@translate}</a> 84 84 {if $col.U_DOWNLOAD}| <a href="{$col.U_DOWNLOAD}" rel="nofollow">{'download'|@translate}</a>{/if} 85 | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{' delete'|@translate}</a>85 | <a href="{$col.U_DELETE}" onClick="return confirm('{'Are you sure?'|@translate}');" rel="nofollow">{'Delete'|@translate}</a> 86 86 {if not $col.active}| <a href="{$col.U_ACTIVE}" rel="nofollow">{'set active'|@translate}</a>{/if} 87 87 </p> -
extensions/UserCollections/template/menublock_user_collec.tpl
r16625 r16688 1 1 <dt>{$block->get_title()}</dt> 2 2 <dd> 3 {if $block->data.current} 4 {assign var="nb_images" value='<span class="nbImagesCollec">'|@cat:$block->data.current.NB_IMAGES|@cat:'</span>'} 5 <p>{'Current collection:'|@translate} <b>{$block->data.current.NAME}</b>, {'%d photos'|@translate|replace:'%d':'%s'|sprintf:$nb_images}</p> 6 <ul>{strip} 7 {foreach from=$block->data.links item=link} 8 <li><a href="{$link.URL}" title="{$link.TITLE}" rel="nofollow">{$link.NAME}</a></li> 3 <p><a href="{$block->data.U_LIST}">{'You have %d collections'|@translate|sprintf:$block->data.NB_COL}</a></p> 4 {if $block->data.collections} 5 <ul>{strip} 6 {foreach from=$block->data.collections item=col} 7 <li>{if $col.active} 8 <a href="{$col.U_EDIT}" style="font-weight:bold;" rel="nofollow">{$col.name}</a> <i class="menuInfoCat">({'active'|@translate})</i> <span class="menuInfoCat">[<span class="nbImagesCollec">{$col.nb_images}</span>]</span> 9 {else} 10 <a href="{$col.U_EDIT}" rel="nofollow">{$col.name}</a> <span class="menuInfoCat">[{$col.nb_images}]</span> 11 {/if}</li> 9 12 {/foreach} 13 {if $block->data.MORE}<li class="menuInfoCat">{'%d more...'|@translate|sprintf:$block->data.MORE}</li>{/if} 10 14 {/strip}</ul> 11 {/if}12 <p><a href="{$block->data.U_ LIST}" rel="nofollow">{'See all my collections'|@translate}</a></p>15 {/if} 16 <p><a href="{$block->data.U_CREATE}" rel="nofollow">{'Create a new collection'|@translate}</a></p> 13 17 </dd> -
extensions/UserCollections/template/thumbnails.tpl
r16658 r16688 5 5 rel: ".preview-box", 6 6 title: function() {ldelim} 7 return $(this).attr("title") +' · <a href="'+ $(this).data('url') +'" target="_blank">{'jump to photo'|@translate} →</a>'; 7 var title = $(this).attr("title"); 8 {if $F_ACTION} title+= ' · <a href="{$collection_toggle_url}&collection_toggle='+ $(this).data('id') +'" class="addCollection" data-id="'+ $(this).data('id') +'">{'Remove from collection'|@translate}</a>';{/if} 9 title+= ' · <a href="'+ $(this).data('url') +'" target="_blank">{'jump to photo'|@translate} →</a>'; 10 return title; 8 11 } 12 }); 13 jQuery(document).on("click", "#cboxTitle .addCollection", function() {ldelim} 14 jQuery.colorbox.close(); 15 jQuery("#thumbnails a.addCollection[data-id='"+ $(this).data('id')+"']").trigger("click"); 16 return false; 9 17 }); 10 18 {/footer_script} … … 42 50 <span class="wrap1"> 43 51 <span class="wrap2"> 44 <a href="{$thumbnail.FILE_SRC}" class="preview-box" title="{$thumbnail.NAME}" data-url="{$thumbnail.URL}" >52 <a href="{$thumbnail.FILE_SRC}" class="preview-box" title="{$thumbnail.NAME}" data-url="{$thumbnail.URL}" data-id="{$thumbnail.id}"> 45 53 <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.img_dir}/ajax-loader-small.gif" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{$thumbnail.TN_TITLE}"> 46 54 </a> -
extensions/UserCollections/template/thumbnails_css_js.tpl
r16658 r16688 1 1 {html_style} 2 2 .thumbnails .wrap1 {ldelim} position:relative !important; } 3 . addCollection {ldelim} width:100%;height:16px;display:none;position:absolute;top:0;background:rgba(0,0,0,0.8);padding:2px;border-radius:2px;font-size:10px;z-index:100;color:#eee;white-space:nowrap; }3 .wrap1 .addCollection {ldelim} width:100%;height:16px;display:none;position:absolute;top:0;background:rgba(0,0,0,0.8);padding:2px;border-radius:2px;font-size:10px;z-index:100;color:#eee;white-space:nowrap; } 4 4 .wrap1:hover .addCollection {ldelim} display:block; } 5 5 {/html_style} -
extensions/UserCollections/template/view.tpl
r16658 r16688 32 32 33 33 34 {if $U_LIST}<p style="text-align:center;font-weight:bold;margin:20px;"><a href="{$U_LIST}" rel="nofollow">{'Return to collections list'|@translate}</a></p>{/if}35 36 34 </div>{* <!-- content --> *}
Note: See TracChangeset
for help on using the changeset viewer.