{assign var=type value='p'}
{foreach $photos as $photo}
{include_template_file file="blocks/photo.html" photo=$photo}
{/foreach}