Changeset 20097 for extensions/UserCollections/template
- Timestamp:
- Jan 13, 2013, 12:29:56 AM (11 years ago)
- Location:
- extensions/UserCollections/template
- Files:
-
- 1 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserCollections/template/menublock_user_collec.tpl
r16698 r20097 3 3 <p> 4 4 {if $block->data.NB_COL == 0} 5 {'You have no collection'|@translate |sprintf:$block->data.NB_COL}5 {'You have no collection'|@translate} 6 6 {else} 7 7 <a href="{$block->data.U_LIST}">{$pwg->l10n_dec('You have %d collection', 'You have %d collections', $block->data.NB_COL)}</a> … … 10 10 <ul>{strip} 11 11 {foreach from=$block->data.collections item=col} 12 <li> {if $col.active}13 <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>14 {else}15 < a href="{$col.U_EDIT}" rel="nofollow">{$col.name}</a> <span class="menuInfoCat">[{$col.nb_images}]</span>16 {/if}</li>12 <li> 13 <a href="{$col.U_EDIT}" {if $col.active}style="font-weight:bold;"{/if} rel="nofollow">{$col.name}</a> 14 {if $col.active}<i class="menuInfoCat">({'active'|@translate})</i> {/if} 15 <span class="menuInfoCat">[<span {if $col.count_handler}class="nbImagesCollec"{/if}>{$col.nb_images}</span>]</span> 16 </li> 17 17 {/foreach} 18 18 {if $block->data.MORE}<li class="menuInfoCat">{'%d more...'|@translate|sprintf:$block->data.MORE}</li>{/if} -
extensions/UserCollections/template/thumbnails_css_js.tpl
r20090 r20097 1 1 {html_style} 2 2 .thumbnails .wrap1 {ldelim} position:relative !important; } 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 .wrap1:hover .addCollection {ldelim} display:block; }3 .wrap1 .addCollection, .gthumb .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 !important;color:#eee;white-space:nowrap; } 4 .wrap1:hover .addCollection, .gthumb:hover .addCollection {ldelim} display:block; } 5 5 {/html_style} 6 6 … … 17 17 }).done(function(msg) {ldelim} 18 18 if (msg == "true") {ldelim} 19 $trigger.html('{'Remove from collection'|@translate} <img src="{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/image_delete.png" title="{'Remove from collection'|@translate}">'); 19 $trigger.children(".uc_remove").show(); 20 $trigger.children(".uc_add").hide(); 20 21 jQuery(".nbImagesCollec").html(parseInt(jQuery(".nbImagesCollec").html()) +1); 21 22 } else if (msg == "false") {ldelim} 22 23 {if $COL_ID} 23 $trigger.parent(".wrap1 ").hide("fast", function() {ldelim} $trigger.remove() });24 $trigger.parent(".wrap1, .gthumb").hide("fast", function() {ldelim} $trigger.remove() }); 24 25 if (typeof batchdown_count != 'undefined') batchdown_count-=1; 25 26 {else} 26 $trigger.html('{'Add to collection'|@translate} <img src="{$ROOT_URL}{$USER_COLLEC_PATH}template/resources/image_add.png" title="{'Add to collection'|@translate}">'); 27 $trigger.children(".uc_remove").hide(); 28 $trigger.children(".uc_add").show(); 27 29 {/if} 28 30 jQuery(".nbImagesCollec").html(parseInt(jQuery(".nbImagesCollec").html()) -1); 29 31 } else {ldelim} 30 32 $trigger.html('{'Un unknown error occured'|@translate}');
Note: See TracChangeset
for help on using the changeset viewer.