Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {if ($mode=='folder' && $page.plugin_id == '16') || $mode=='search' || $mode=='vendor' || $mode=='favorites'}
- {assign var=gr_thumbs_width value=$shop2.my.gr_thumbs_width|default:'450'}
- {assign var=gr_thumbs_height value=$shop2.my.gr_thumbs_height|default:'450'}
- {assign var=gps_counter value=0}
- {foreach from=$shop2.products key=k item=product name=gps_foo}
- {if $gps_counter<1 && $product.image_filename}
- <link rel="preload" as="image" href="{s3_img width=$gr_thumbs_width height=$gr_thumbs_height src=$product.image_filename method=$shop2.my.s3_img_method}" />
- {else}
- {break}
- {/if}
- {assign var=gps_counter value=$gps_counter+1}
- {/foreach}
- {/if}
- {if $mode=='main' && !empty($top_slider.blocks) && !$top_slider.hide_block}
- {if preg_match("/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i", $smarty.server.HTTP_USER_AGENT)}
- <link rel="preload" as="image" href="{s3_img src=$top_slider.blocks.0.image.filename width=800 method=c}" />
- {else}
- <link rel="preload" as="image" href="{s3_img src=$top_slider.blocks.0.image.filename width=1920 height=586 method=c}" />
- {/if}
- {/if}
- {if $mode=='product'}
- {assign var=card_image_width value=$shop2.my.card_image_width|default:'750'}
- {assign var=card_image_height value=$shop2.my.card_image_height|default:'750'}
- <link rel="preload" as="image" href="{s3_img width=$card_image_width height=$card_image_height src=$product.image_filename method=$shop2.my.s3_img_method}" />
- {/if}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement