Advertisement
jimxx

Untitled

Jun 18th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. var params = {
  2. count: 1,
  3. niches: [{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
  4. categories: [{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'hard'{/if}{literal}],
  5. format: ["320x240"],
  6. context: "pdp",
  7. metadata: 1,
  8. behaviour: 14,
  9. excluded_ids : []
  10. };
  11. ThumbManager.getThumbs(params, function(thumbs) {
  12. ThumbManager.apply(thumbs, [ new ThumbSpec($('.ts__thumb'), "320x240") ]);
  13. $('.ts__thumb__nick').html(thumbs[0].metadata.nick);
  14. $('.ts__thumb__age').html(thumbs[0].metadata.age + " ans");
  15. });
  16.  
  17.  
  18. >>>>>>>>>>>>>>>>>>>>>>>>
  19. >>>>>>>>>>>>>>>>>>>>>>>>
  20.  
  21. {/literal}{if isset($smarty.get.idt)}{literal}
  22. params = {
  23. count:1,
  24. id: "{/literal}{$smarty.get.idt|escape:'html'}{literal}",
  25. format: ["320x240"],
  26. metadata: 1,
  27. niches: [{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
  28. categories: [{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'soft'{/if}{literal}],
  29. context: "pdp",
  30. behaviour: 14
  31. };
  32. ThumbManager.getThumbById(params, function(thumb) {
  33. $('.ts__thumb').attr('src', thumb.url['320x240']);
  34. $('.ts__thumb__nick').html(thumb.metadata.nick);
  35. $('.ts__thumb__age').html(thumb.metadata.age + " ans");
  36. });
  37. {/literal}{else}{literal}
  38. var params = {
  39. count: 1,
  40. niches:[{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
  41. categories:[{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'hard'{/if}{literal}],
  42. format: ["320x240"],
  43. context: "pdp",
  44. behaviour: 14,
  45. metadata: 1,
  46. excluded_ids : []
  47. }
  48. ThumbManager.getThumbs(params, function(thumbs) {
  49. ThumbManager.apply(thumbs, [ new ThumbSpec($('.ts__thumb'), "320x240") ]);
  50. $('.ts__thumb__nick').html(thumbs[0].metadata.nick);
  51. $('.ts__thumb__age').html(thumbs[0].metadata.age + " ans");
  52. });
  53. {/literal}{/if}{literal}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement