{{if isset($mode) && $mode == 'orbit'}}
{{elseif isset($mode) && $mode =='card'}}
{{foreach $photos as $photo}} {{include file="photo_portfolio_card.tpl"}} {{/foreach}}
{{else}}
{{foreach $photos as $photo}} {{include file="photo_portfolio.tpl"}} {{/foreach}}
{{/if}}