Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var params = {
- count: 1,
- niches: [{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
- categories: [{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'hard'{/if}{literal}],
- format: ["320x240"],
- context: "pdp",
- metadata: 1,
- behaviour: 14,
- excluded_ids : []
- };
- ThumbManager.getThumbs(params, function(thumbs) {
- ThumbManager.apply(thumbs, [ new ThumbSpec($('.ts__thumb'), "320x240") ]);
- $('.ts__thumb__nick').html(thumbs[0].metadata.nick);
- $('.ts__thumb__age').html(thumbs[0].metadata.age + " ans");
- });
- >>>>>>>>>>>>>>>>>>>>>>>>
- >>>>>>>>>>>>>>>>>>>>>>>>
- {/literal}{if isset($smarty.get.idt)}{literal}
- params = {
- count:1,
- id: "{/literal}{$smarty.get.idt|escape:'html'}{literal}",
- format: ["320x240"],
- metadata: 1,
- niches: [{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
- categories: [{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'soft'{/if}{literal}],
- context: "pdp",
- behaviour: 14
- };
- ThumbManager.getThumbById(params, function(thumb) {
- $('.ts__thumb').attr('src', thumb.url['320x240']);
- $('.ts__thumb__nick').html(thumb.metadata.nick);
- $('.ts__thumb__age').html(thumb.metadata.age + " ans");
- });
- {/literal}{else}{literal}
- var params = {
- count: 1,
- niches:[{/literal}{if $smarty.get.n>0}{$smarty.get.n}{else}151{/if}{literal}],
- categories:[{/literal}{if $smarty.get.c>0}{$smarty.get.c}{else}'hard'{/if}{literal}],
- format: ["320x240"],
- context: "pdp",
- behaviour: 14,
- metadata: 1,
- excluded_ids : []
- }
- ThumbManager.getThumbs(params, function(thumbs) {
- ThumbManager.apply(thumbs, [ new ThumbSpec($('.ts__thumb'), "320x240") ]);
- $('.ts__thumb__nick').html(thumbs[0].metadata.nick);
- $('.ts__thumb__age').html(thumbs[0].metadata.age + " ans");
- });
- {/literal}{/if}{literal}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement