For example, there is such a code:
$(document).ready(function(){ var cur_width = $(window).width(); $(window).resize(function(){ if($(window).width() <= 720 && cur_width > 720){ //reload location.reload(); } else if($(window).width() > 720 && cur_width <= 720){ //reload location.reload(); } }); }); I want to put in tpl on smarty code. In which: in one condition I need a download like this: {block name = 'product_images_modal}} {include file =' catalog / 1.tpl '} {/ block}, in another: {block name =' product_images_modal '} {include file = 'catalog / 2.tpl'} {/ block}
How to do it?